@wildix/wda-insights-client 1.1.4 → 1.1.6

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListConversationsItemEvent = exports.ListConversationsFilterParticipant = exports.ListConversationsFilterDate = exports.ListConversationsFilterPredefinedDateType = exports.InsightsDefinition = exports.InsightsResultDefinition = exports.FileNotFoundException = exports.DownloadStrategy = exports.ConversationFileCategory = exports.InsightsReason = exports.InsightsStatus = exports.FilterNotFoundException = exports.ProjectionStatus = exports.ProjectionSource = exports.ProjectionProvider = exports.ProjectionParameter = exports.ProjectionCondition = exports.AggregationDefinition = exports.AggregationDateDefinitionPrecision = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = exports.NotFoundException = void 0;
3
+ exports.ListConversationsItemEvent = exports.ListConversationsFilterParticipant = exports.ListConversationsFilterDate = exports.ListConversationsFilterPredefinedDateType = exports.InsightsDefinition = exports.InsightsResultDefinition = exports.FileNotFoundException = exports.DownloadStrategy = exports.ConversationFileCategory = exports.InsightsReason = exports.InsightsStatus = exports.FilterNotFoundException = exports.ProjectionStatus = exports.ProjectionProvider = exports.ProjectionParameter = exports.ProjectionCondition = exports.ProjectionEntityConditionValue = exports.AggregationDefinition = exports.AggregationDateDefinitionPrecision = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = exports.NotFoundException = void 0;
4
4
  const WdaInsightsServiceException_1 = require("./WdaInsightsServiceException");
5
5
  class NotFoundException extends WdaInsightsServiceException_1.WdaInsightsServiceException {
6
6
  name = "NotFoundException";
@@ -225,9 +225,16 @@ var AggregationDefinition;
225
225
  return visitor._(value.$unknown[0], value.$unknown[1]);
226
226
  };
227
227
  })(AggregationDefinition || (exports.AggregationDefinition = AggregationDefinition = {}));
228
+ exports.ProjectionEntityConditionValue = {
229
+ CALL: "call",
230
+ CHAT: "chat",
231
+ CONFERENCE: "conference",
232
+ };
228
233
  var ProjectionCondition;
229
234
  (function (ProjectionCondition) {
230
235
  ProjectionCondition.visit = (value, visitor) => {
236
+ if (value.entity !== undefined)
237
+ return visitor.entity(value.entity);
231
238
  if (value.direction !== undefined)
232
239
  return visitor.direction(value.direction);
233
240
  if (value.participants !== undefined)
@@ -252,10 +259,6 @@ var ProjectionParameter;
252
259
  exports.ProjectionProvider = {
253
260
  OPENAI: "OPENAI",
254
261
  };
255
- exports.ProjectionSource = {
256
- CALLS: "CALLS",
257
- CHATS: "CHATS",
258
- };
259
262
  exports.ProjectionStatus = {
260
263
  DISABLED: "DISABLED",
261
264
  ENABLED: "ENABLED",
@@ -43,7 +43,6 @@ const se_CreateProjectionCommand = async (input, context) => {
43
43
  'instructions': [],
44
44
  'model': _ => (0, smithy_client_1._json)(_),
45
45
  'name': [],
46
- 'source': [],
47
46
  }));
48
47
  b.m("POST")
49
48
  .h(headers)
@@ -514,7 +513,6 @@ const se_UpdateProjectionCommand = async (input, context) => {
514
513
  'instructions': [],
515
514
  'model': _ => (0, smithy_client_1._json)(_),
516
515
  'name': [],
517
- 'source': [],
518
516
  }));
519
517
  b.m("PUT")
520
518
  .h(headers)
@@ -219,9 +219,16 @@ export var AggregationDefinition;
219
219
  return visitor._(value.$unknown[0], value.$unknown[1]);
220
220
  };
221
221
  })(AggregationDefinition || (AggregationDefinition = {}));
222
+ export const ProjectionEntityConditionValue = {
223
+ CALL: "call",
224
+ CHAT: "chat",
225
+ CONFERENCE: "conference",
226
+ };
222
227
  export var ProjectionCondition;
223
228
  (function (ProjectionCondition) {
224
229
  ProjectionCondition.visit = (value, visitor) => {
230
+ if (value.entity !== undefined)
231
+ return visitor.entity(value.entity);
225
232
  if (value.direction !== undefined)
226
233
  return visitor.direction(value.direction);
227
234
  if (value.participants !== undefined)
@@ -246,10 +253,6 @@ export var ProjectionParameter;
246
253
  export const ProjectionProvider = {
247
254
  OPENAI: "OPENAI",
248
255
  };
249
- export const ProjectionSource = {
250
- CALLS: "CALLS",
251
- CHATS: "CHATS",
252
- };
253
256
  export const ProjectionStatus = {
254
257
  DISABLED: "DISABLED",
255
258
  ENABLED: "ENABLED",
@@ -38,7 +38,6 @@ export const se_CreateProjectionCommand = async (input, context) => {
38
38
  'instructions': [],
39
39
  'model': _ => _json(_),
40
40
  'name': [],
41
- 'source': [],
42
41
  }));
43
42
  b.m("POST")
44
43
  .h(headers)
@@ -482,7 +481,6 @@ export const se_UpdateProjectionCommand = async (input, context) => {
482
481
  'instructions': [],
483
482
  'model': _ => _json(_),
484
483
  'name': [],
485
- 'source': [],
486
484
  }));
487
485
  b.m("PUT")
488
486
  .h(headers)
@@ -37,11 +37,15 @@ declare const CreateProjectionCommand_base: {
37
37
  * const input = { // CreateProjectionInput
38
38
  * categoryId: "STRING_VALUE", // required
39
39
  * name: "STRING_VALUE", // required
40
- * source: "CALLS" || "CHATS",
41
40
  * description: "STRING_VALUE",
42
41
  * instructions: "STRING_VALUE",
43
42
  * conditions: [ // ProjectionConditionsList
44
43
  * { // ProjectionCondition Union: only one key present
44
+ * entity: { // ProjectionEntityCondition
45
+ * equals: [ // ProjectionEntityConditionValuesList // required
46
+ * "call" || "conference" || "chat",
47
+ * ],
48
+ * },
45
49
  * direction: { // ProjectionDirectionCondition
46
50
  * equals: [ // ProjectionDirectionConditionValuesList // required
47
51
  * "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
@@ -96,11 +100,15 @@ declare const CreateProjectionCommand_base: {
96
100
  * // projection: { // Projection
97
101
  * // categoryId: "STRING_VALUE", // required
98
102
  * // name: "STRING_VALUE", // required
99
- * // source: "CALLS" || "CHATS",
100
103
  * // description: "STRING_VALUE",
101
104
  * // instructions: "STRING_VALUE",
102
105
  * // conditions: [ // ProjectionConditionsList
103
106
  * // { // ProjectionCondition Union: only one key present
107
+ * // entity: { // ProjectionEntityCondition
108
+ * // equals: [ // ProjectionEntityConditionValuesList // required
109
+ * // "call" || "conference" || "chat",
110
+ * // ],
111
+ * // },
104
112
  * // direction: { // ProjectionDirectionCondition
105
113
  * // equals: [ // ProjectionDirectionConditionValuesList // required
106
114
  * // "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
@@ -44,11 +44,15 @@ declare const DisableProjectionCommand_base: {
44
44
  * // projection: { // Projection
45
45
  * // categoryId: "STRING_VALUE", // required
46
46
  * // name: "STRING_VALUE", // required
47
- * // source: "CALLS" || "CHATS",
48
47
  * // description: "STRING_VALUE",
49
48
  * // instructions: "STRING_VALUE",
50
49
  * // conditions: [ // ProjectionConditionsList
51
50
  * // { // ProjectionCondition Union: only one key present
51
+ * // entity: { // ProjectionEntityCondition
52
+ * // equals: [ // ProjectionEntityConditionValuesList // required
53
+ * // "call" || "conference" || "chat",
54
+ * // ],
55
+ * // },
52
56
  * // direction: { // ProjectionDirectionCondition
53
57
  * // equals: [ // ProjectionDirectionConditionValuesList // required
54
58
  * // "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
@@ -44,11 +44,15 @@ declare const EnableProjectionCommand_base: {
44
44
  * // projection: { // Projection
45
45
  * // categoryId: "STRING_VALUE", // required
46
46
  * // name: "STRING_VALUE", // required
47
- * // source: "CALLS" || "CHATS",
48
47
  * // description: "STRING_VALUE",
49
48
  * // instructions: "STRING_VALUE",
50
49
  * // conditions: [ // ProjectionConditionsList
51
50
  * // { // ProjectionCondition Union: only one key present
51
+ * // entity: { // ProjectionEntityCondition
52
+ * // equals: [ // ProjectionEntityConditionValuesList // required
53
+ * // "call" || "conference" || "chat",
54
+ * // ],
55
+ * // },
52
56
  * // direction: { // ProjectionDirectionCondition
53
57
  * // equals: [ // ProjectionDirectionConditionValuesList // required
54
58
  * // "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
@@ -44,11 +44,15 @@ declare const GetProjectionCommand_base: {
44
44
  * // projection: { // Projection
45
45
  * // categoryId: "STRING_VALUE", // required
46
46
  * // name: "STRING_VALUE", // required
47
- * // source: "CALLS" || "CHATS",
48
47
  * // description: "STRING_VALUE",
49
48
  * // instructions: "STRING_VALUE",
50
49
  * // conditions: [ // ProjectionConditionsList
51
50
  * // { // ProjectionCondition Union: only one key present
51
+ * // entity: { // ProjectionEntityCondition
52
+ * // equals: [ // ProjectionEntityConditionValuesList // required
53
+ * // "call" || "conference" || "chat",
54
+ * // ],
55
+ * // },
52
56
  * // direction: { // ProjectionDirectionCondition
53
57
  * // equals: [ // ProjectionDirectionConditionValuesList // required
54
58
  * // "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
@@ -497,6 +497,7 @@ declare const ListConversationsCommand_base: {
497
497
  * // value: "STRING_VALUE", // required
498
498
  * // },
499
499
  * // ],
500
+ * // language: "STRING_VALUE",
500
501
  * // },
501
502
  * // highlight: { // ListConversationsItemHighlight
502
503
  * // transcription: [ // ListConversationsItemHighlightTranscriptionList
@@ -44,11 +44,15 @@ declare const ListProjectionsCommand_base: {
44
44
  * // { // Projection
45
45
  * // categoryId: "STRING_VALUE", // required
46
46
  * // name: "STRING_VALUE", // required
47
- * // source: "CALLS" || "CHATS",
48
47
  * // description: "STRING_VALUE",
49
48
  * // instructions: "STRING_VALUE",
50
49
  * // conditions: [ // ProjectionConditionsList
51
50
  * // { // ProjectionCondition Union: only one key present
51
+ * // entity: { // ProjectionEntityCondition
52
+ * // equals: [ // ProjectionEntityConditionValuesList // required
53
+ * // "call" || "conference" || "chat",
54
+ * // ],
55
+ * // },
52
56
  * // direction: { // ProjectionDirectionCondition
53
57
  * // equals: [ // ProjectionDirectionConditionValuesList // required
54
58
  * // "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
@@ -44,11 +44,15 @@ declare const PauseProjectionCommand_base: {
44
44
  * // projection: { // Projection
45
45
  * // categoryId: "STRING_VALUE", // required
46
46
  * // name: "STRING_VALUE", // required
47
- * // source: "CALLS" || "CHATS",
48
47
  * // description: "STRING_VALUE",
49
48
  * // instructions: "STRING_VALUE",
50
49
  * // conditions: [ // ProjectionConditionsList
51
50
  * // { // ProjectionCondition Union: only one key present
51
+ * // entity: { // ProjectionEntityCondition
52
+ * // equals: [ // ProjectionEntityConditionValuesList // required
53
+ * // "call" || "conference" || "chat",
54
+ * // ],
55
+ * // },
52
56
  * // direction: { // ProjectionDirectionCondition
53
57
  * // equals: [ // ProjectionDirectionConditionValuesList // required
54
58
  * // "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
@@ -37,11 +37,15 @@ declare const UpdateProjectionCommand_base: {
37
37
  * const input = { // UpdateProjectionInput
38
38
  * categoryId: "STRING_VALUE", // required
39
39
  * name: "STRING_VALUE", // required
40
- * source: "CALLS" || "CHATS",
41
40
  * description: "STRING_VALUE",
42
41
  * instructions: "STRING_VALUE",
43
42
  * conditions: [ // ProjectionConditionsList
44
43
  * { // ProjectionCondition Union: only one key present
44
+ * entity: { // ProjectionEntityCondition
45
+ * equals: [ // ProjectionEntityConditionValuesList // required
46
+ * "call" || "conference" || "chat",
47
+ * ],
48
+ * },
45
49
  * direction: { // ProjectionDirectionCondition
46
50
  * equals: [ // ProjectionDirectionConditionValuesList // required
47
51
  * "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
@@ -96,11 +100,15 @@ declare const UpdateProjectionCommand_base: {
96
100
  * // projection: { // Projection
97
101
  * // categoryId: "STRING_VALUE", // required
98
102
  * // name: "STRING_VALUE", // required
99
- * // source: "CALLS" || "CHATS",
100
103
  * // description: "STRING_VALUE",
101
104
  * // instructions: "STRING_VALUE",
102
105
  * // conditions: [ // ProjectionConditionsList
103
106
  * // { // ProjectionCondition Union: only one key present
107
+ * // entity: { // ProjectionEntityCondition
108
+ * // equals: [ // ProjectionEntityConditionValuesList // required
109
+ * // "call" || "conference" || "chat",
110
+ * // ],
111
+ * // },
104
112
  * // direction: { // ProjectionDirectionCondition
105
113
  * // equals: [ // ProjectionDirectionConditionValuesList // required
106
114
  * // "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
@@ -1199,6 +1199,25 @@ export interface ProjectionDurationCondition {
1199
1199
  minimum: number;
1200
1200
  maximum: number;
1201
1201
  }
1202
+ /**
1203
+ * @public
1204
+ * @enum
1205
+ */
1206
+ export declare const ProjectionEntityConditionValue: {
1207
+ readonly CALL: "call";
1208
+ readonly CHAT: "chat";
1209
+ readonly CONFERENCE: "conference";
1210
+ };
1211
+ /**
1212
+ * @public
1213
+ */
1214
+ export type ProjectionEntityConditionValue = typeof ProjectionEntityConditionValue[keyof typeof ProjectionEntityConditionValue];
1215
+ /**
1216
+ * @public
1217
+ */
1218
+ export interface ProjectionEntityCondition {
1219
+ equals: (ProjectionEntityConditionValue)[];
1220
+ }
1202
1221
  /**
1203
1222
  * @public
1204
1223
  */
@@ -1210,24 +1229,34 @@ export interface ProjectionParticipantsCondition {
1210
1229
  /**
1211
1230
  * @public
1212
1231
  */
1213
- export type ProjectionCondition = ProjectionCondition.DirectionMember | ProjectionCondition.DurationMember | ProjectionCondition.ParticipantsMember | ProjectionCondition.$UnknownMember;
1232
+ export type ProjectionCondition = ProjectionCondition.DirectionMember | ProjectionCondition.DurationMember | ProjectionCondition.EntityMember | ProjectionCondition.ParticipantsMember | ProjectionCondition.$UnknownMember;
1214
1233
  /**
1215
1234
  * @public
1216
1235
  */
1217
1236
  export declare namespace ProjectionCondition {
1237
+ interface EntityMember {
1238
+ entity: ProjectionEntityCondition;
1239
+ direction?: never;
1240
+ participants?: never;
1241
+ duration?: never;
1242
+ $unknown?: never;
1243
+ }
1218
1244
  interface DirectionMember {
1245
+ entity?: never;
1219
1246
  direction: ProjectionDirectionCondition;
1220
1247
  participants?: never;
1221
1248
  duration?: never;
1222
1249
  $unknown?: never;
1223
1250
  }
1224
1251
  interface ParticipantsMember {
1252
+ entity?: never;
1225
1253
  direction?: never;
1226
1254
  participants: ProjectionParticipantsCondition;
1227
1255
  duration?: never;
1228
1256
  $unknown?: never;
1229
1257
  }
1230
1258
  interface DurationMember {
1259
+ entity?: never;
1231
1260
  direction?: never;
1232
1261
  participants?: never;
1233
1262
  duration: ProjectionDurationCondition;
@@ -1237,12 +1266,14 @@ export declare namespace ProjectionCondition {
1237
1266
  * @public
1238
1267
  */
1239
1268
  interface $UnknownMember {
1269
+ entity?: never;
1240
1270
  direction?: never;
1241
1271
  participants?: never;
1242
1272
  duration?: never;
1243
1273
  $unknown: [string, any];
1244
1274
  }
1245
1275
  interface Visitor<T> {
1276
+ entity: (value: ProjectionEntityCondition) => T;
1246
1277
  direction: (value: ProjectionDirectionCondition) => T;
1247
1278
  participants: (value: ProjectionParticipantsCondition) => T;
1248
1279
  duration: (value: ProjectionDurationCondition) => T;
@@ -1339,25 +1370,12 @@ export interface ProjectionModel {
1339
1370
  provider?: ProjectionProvider | undefined;
1340
1371
  name?: string | undefined;
1341
1372
  }
1342
- /**
1343
- * @public
1344
- * @enum
1345
- */
1346
- export declare const ProjectionSource: {
1347
- readonly CALLS: "CALLS";
1348
- readonly CHATS: "CHATS";
1349
- };
1350
- /**
1351
- * @public
1352
- */
1353
- export type ProjectionSource = typeof ProjectionSource[keyof typeof ProjectionSource];
1354
1373
  /**
1355
1374
  * @public
1356
1375
  */
1357
1376
  export interface CreateProjectionInput {
1358
1377
  categoryId: string;
1359
1378
  name: string;
1360
- source?: ProjectionSource | undefined;
1361
1379
  description?: string | undefined;
1362
1380
  instructions?: string | undefined;
1363
1381
  conditions?: (ProjectionCondition)[] | undefined;
@@ -1395,7 +1413,6 @@ export type ProjectionStatus = typeof ProjectionStatus[keyof typeof ProjectionSt
1395
1413
  export interface Projection {
1396
1414
  categoryId: string;
1397
1415
  name: string;
1398
- source?: ProjectionSource | undefined;
1399
1416
  description?: string | undefined;
1400
1417
  instructions?: string | undefined;
1401
1418
  conditions?: (ProjectionCondition)[] | undefined;
@@ -2451,6 +2468,7 @@ export interface ListConversationsItemSummary {
2451
2468
  title?: string | undefined;
2452
2469
  brief?: string | undefined;
2453
2470
  insights?: (ListConversationsItemInsight)[] | undefined;
2471
+ language?: string | undefined;
2454
2472
  }
2455
2473
  /**
2456
2474
  * @public
@@ -2636,7 +2654,6 @@ export interface UpdateFilterOutput {
2636
2654
  export interface UpdateProjectionInput {
2637
2655
  categoryId: string;
2638
2656
  name: string;
2639
- source?: ProjectionSource | undefined;
2640
2657
  description?: string | undefined;
2641
2658
  instructions?: string | undefined;
2642
2659
  conditions?: (ProjectionCondition)[] | undefined;
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.4",
4
+ "version": "1.1.6",
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",