@maxim_mazurok/gapi.client.contactcenterinsights-v1 0.0.20230409 → 0.0.20230424

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 (3) hide show
  1. package/index.d.ts +57 -1
  2. package/package.json +1 -1
  3. package/tests.ts +103 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://contactcenterinsights.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230409
12
+ // Revision: 20230424
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -85,6 +85,16 @@ declare namespace gapi.client {
85
85
  runSentimentAnnotator?: boolean;
86
86
  /** Whether to run the silence annotator. */
87
87
  runSilenceAnnotator?: boolean;
88
+ /** Whether to run the summarization annotator. */
89
+ runSummarizationAnnotator?: boolean;
90
+ /** Configuration for the summarization annotator. */
91
+ summarizationConfig?: GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig;
92
+ }
93
+ interface GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig {
94
+ /** Resource name of the Dialogflow conversation profile. Format: projects/{project}/locations/{location}/conversationProfiles/{conversation_profile} */
95
+ conversationProfile?: string;
96
+ /** Default summarization model to be used. */
97
+ summarizationModel?: string;
88
98
  }
89
99
  interface GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback {
90
100
  /** Indicates whether an answer or item was clicked by the human agent. */
@@ -183,6 +193,8 @@ declare namespace gapi.client {
183
193
  languageCode?: string;
184
194
  /** Output only. The conversation's latest analysis, if one exists. */
185
195
  latestAnalysis?: GoogleCloudContactcenterinsightsV1alpha1Analysis;
196
+ /** Output only. Latest summary of the conversation. */
197
+ latestSummary?: GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData;
186
198
  /** Immutable. The conversation medium, if unspecified will default to PHONE_CALL. */
187
199
  medium?: string;
188
200
  /** Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation} */
@@ -235,6 +247,20 @@ declare namespace gapi.client {
235
247
  /** A user-specified ID representing the participant. */
236
248
  userId?: string;
237
249
  }
250
+ interface GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData {
251
+ /** The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record} */
252
+ answerRecord?: string;
253
+ /** The confidence score of the summarization. */
254
+ confidence?: number;
255
+ /** The name of the model that generates this summary. Format: projects/{project}/locations/{location}/conversationModels/{conversation_model} */
256
+ conversationModel?: string;
257
+ /** A map that contains metadata about the summarization and the document from which it originates. */
258
+ metadata?: { [P in string]: string };
259
+ /** The summarization content that is concatenated into one string. */
260
+ text?: string;
261
+ /** The summarization content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value. */
262
+ textSections?: { [P in string]: string };
263
+ }
238
264
  interface GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript {
239
265
  /** A list of sequential transcript segments that comprise the conversation. */
240
266
  transcriptSegments?: GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment[];
@@ -567,6 +593,8 @@ declare namespace gapi.client {
567
593
  answerFeedback?: GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback;
568
594
  /** Agent Assist Article Suggestion data. */
569
595
  articleSuggestion?: GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData;
596
+ /** Conversation summarization suggestion data. */
597
+ conversationSummarizationSuggestion?: GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData;
570
598
  /** The time at which this annotation was created. */
571
599
  createTime?: string;
572
600
  /** Dialogflow interaction data. */
@@ -714,6 +742,16 @@ declare namespace gapi.client {
714
742
  runSentimentAnnotator?: boolean;
715
743
  /** Whether to run the silence annotator. */
716
744
  runSilenceAnnotator?: boolean;
745
+ /** Whether to run the summarization annotator. */
746
+ runSummarizationAnnotator?: boolean;
747
+ /** Configuration for the summarization annotator. */
748
+ summarizationConfig?: GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig;
749
+ }
750
+ interface GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig {
751
+ /** Resource name of the Dialogflow conversation profile. Format: projects/{project}/locations/{location}/conversationProfiles/{conversation_profile} */
752
+ conversationProfile?: string;
753
+ /** Default summarization model to be used. */
754
+ summarizationModel?: string;
717
755
  }
718
756
  interface GoogleCloudContactcenterinsightsV1AnswerFeedback {
719
757
  /** Indicates whether an answer or item was clicked by the human agent. */
@@ -849,6 +887,8 @@ declare namespace gapi.client {
849
887
  languageCode?: string;
850
888
  /** Output only. The conversation's latest analysis, if one exists. */
851
889
  latestAnalysis?: GoogleCloudContactcenterinsightsV1Analysis;
890
+ /** Output only. Latest summary of the conversation. */
891
+ latestSummary?: GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData;
852
892
  /** Immutable. The conversation medium, if unspecified will default to PHONE_CALL. */
853
893
  medium?: string;
854
894
  /** Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation} */
@@ -901,6 +941,20 @@ declare namespace gapi.client {
901
941
  /** A user-specified ID representing the participant. */
902
942
  userId?: string;
903
943
  }
944
+ interface GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData {
945
+ /** The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record} */
946
+ answerRecord?: string;
947
+ /** The confidence score of the summarization. */
948
+ confidence?: number;
949
+ /** The name of the model that generates this summary. Format: projects/{project}/locations/{location}/conversationModels/{conversation_model} */
950
+ conversationModel?: string;
951
+ /** A map that contains metadata about the summarization and the document from which it originates. */
952
+ metadata?: { [P in string]: string };
953
+ /** The summarization content that is concatenated into one string. */
954
+ text?: string;
955
+ /** The summarization content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value. */
956
+ textSections?: { [P in string]: string };
957
+ }
904
958
  interface GoogleCloudContactcenterinsightsV1ConversationTranscript {
905
959
  /** A list of sequential transcript segments that comprise the conversation. */
906
960
  transcriptSegments?: GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment[];
@@ -1329,6 +1383,8 @@ declare namespace gapi.client {
1329
1383
  answerFeedback?: GoogleCloudContactcenterinsightsV1AnswerFeedback;
1330
1384
  /** Agent Assist Article Suggestion data. */
1331
1385
  articleSuggestion?: GoogleCloudContactcenterinsightsV1ArticleSuggestionData;
1386
+ /** Conversation summarization suggestion data. */
1387
+ conversationSummarizationSuggestion?: GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData;
1332
1388
  /** The time at which this annotation was created. */
1333
1389
  createTime?: string;
1334
1390
  /** Dialogflow interaction data. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.contactcenterinsights-v1",
3
- "version": "0.0.20230409",
3
+ "version": "0.0.20230424",
4
4
  "description": "TypeScript typings for Contact Center AI Insights API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230409
6
+ // Revision: 20230424
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -53,6 +53,11 @@ gapi.load('client', async () => {
53
53
  runPhraseMatcherAnnotator: true,
54
54
  runSentimentAnnotator: true,
55
55
  runSilenceAnnotator: true,
56
+ runSummarizationAnnotator: true,
57
+ summarizationConfig: {
58
+ conversationProfile: "Test string",
59
+ summarizationModel: "Test string",
60
+ },
56
61
  },
57
62
  runtimeIntegrationAnalysisPercentage: 42,
58
63
  uploadConversationAnalysisPercentage: 42,
@@ -89,6 +94,11 @@ gapi.load('client', async () => {
89
94
  runPhraseMatcherAnnotator: true,
90
95
  runSentimentAnnotator: true,
91
96
  runSilenceAnnotator: true,
97
+ runSummarizationAnnotator: true,
98
+ summarizationConfig: {
99
+ conversationProfile: "Test string",
100
+ summarizationModel: "Test string",
101
+ },
92
102
  },
93
103
  filter: "Test string",
94
104
  parent: "Test string",
@@ -240,11 +250,28 @@ gapi.load('client', async () => {
240
250
  runPhraseMatcherAnnotator: true,
241
251
  runSentimentAnnotator: true,
242
252
  runSilenceAnnotator: true,
253
+ runSummarizationAnnotator: true,
254
+ summarizationConfig: {
255
+ conversationProfile: "Test string",
256
+ summarizationModel: "Test string",
257
+ },
243
258
  },
244
259
  createTime: "Test string",
245
260
  name: "Test string",
246
261
  requestTime: "Test string",
247
262
  },
263
+ latestSummary: {
264
+ answerRecord: "Test string",
265
+ confidence: 42,
266
+ conversationModel: "Test string",
267
+ metadata: {
268
+ A: "Test string"
269
+ },
270
+ text: "Test string",
271
+ textSections: {
272
+ A: "Test string"
273
+ },
274
+ },
248
275
  medium: "Test string",
249
276
  name: "Test string",
250
277
  obfuscatedUserId: "Test string",
@@ -266,6 +293,18 @@ gapi.load('client', async () => {
266
293
  title: "Test string",
267
294
  uri: "Test string",
268
295
  },
296
+ conversationSummarizationSuggestion: {
297
+ answerRecord: "Test string",
298
+ confidence: 42,
299
+ conversationModel: "Test string",
300
+ metadata: {
301
+ A: "Test string"
302
+ },
303
+ text: "Test string",
304
+ textSections: {
305
+ A: "Test string"
306
+ },
307
+ },
269
308
  createTime: "Test string",
270
309
  dialogflowInteraction: {
271
310
  confidence: 42,
@@ -520,11 +559,28 @@ gapi.load('client', async () => {
520
559
  runPhraseMatcherAnnotator: true,
521
560
  runSentimentAnnotator: true,
522
561
  runSilenceAnnotator: true,
562
+ runSummarizationAnnotator: true,
563
+ summarizationConfig: {
564
+ conversationProfile: "Test string",
565
+ summarizationModel: "Test string",
566
+ },
523
567
  },
524
568
  createTime: "Test string",
525
569
  name: "Test string",
526
570
  requestTime: "Test string",
527
571
  },
572
+ latestSummary: {
573
+ answerRecord: "Test string",
574
+ confidence: 42,
575
+ conversationModel: "Test string",
576
+ metadata: {
577
+ A: "Test string"
578
+ },
579
+ text: "Test string",
580
+ textSections: {
581
+ A: "Test string"
582
+ },
583
+ },
528
584
  medium: "Test string",
529
585
  name: "Test string",
530
586
  obfuscatedUserId: "Test string",
@@ -546,6 +602,18 @@ gapi.load('client', async () => {
546
602
  title: "Test string",
547
603
  uri: "Test string",
548
604
  },
605
+ conversationSummarizationSuggestion: {
606
+ answerRecord: "Test string",
607
+ confidence: 42,
608
+ conversationModel: "Test string",
609
+ metadata: {
610
+ A: "Test string"
611
+ },
612
+ text: "Test string",
613
+ textSections: {
614
+ A: "Test string"
615
+ },
616
+ },
549
617
  createTime: "Test string",
550
618
  dialogflowInteraction: {
551
619
  confidence: 42,
@@ -767,11 +835,28 @@ gapi.load('client', async () => {
767
835
  runPhraseMatcherAnnotator: true,
768
836
  runSentimentAnnotator: true,
769
837
  runSilenceAnnotator: true,
838
+ runSummarizationAnnotator: true,
839
+ summarizationConfig: {
840
+ conversationProfile: "Test string",
841
+ summarizationModel: "Test string",
842
+ },
770
843
  },
771
844
  createTime: "Test string",
772
845
  name: "Test string",
773
846
  requestTime: "Test string",
774
847
  },
848
+ latestSummary: {
849
+ answerRecord: "Test string",
850
+ confidence: 42,
851
+ conversationModel: "Test string",
852
+ metadata: {
853
+ A: "Test string"
854
+ },
855
+ text: "Test string",
856
+ textSections: {
857
+ A: "Test string"
858
+ },
859
+ },
775
860
  medium: "Test string",
776
861
  name: "Test string",
777
862
  obfuscatedUserId: "Test string",
@@ -793,6 +878,18 @@ gapi.load('client', async () => {
793
878
  title: "Test string",
794
879
  uri: "Test string",
795
880
  },
881
+ conversationSummarizationSuggestion: {
882
+ answerRecord: "Test string",
883
+ confidence: 42,
884
+ conversationModel: "Test string",
885
+ metadata: {
886
+ A: "Test string"
887
+ },
888
+ text: "Test string",
889
+ textSections: {
890
+ A: "Test string"
891
+ },
892
+ },
796
893
  createTime: "Test string",
797
894
  dialogflowInteraction: {
798
895
  confidence: 42,
@@ -992,6 +1089,11 @@ gapi.load('client', async () => {
992
1089
  runPhraseMatcherAnnotator: true,
993
1090
  runSentimentAnnotator: true,
994
1091
  runSilenceAnnotator: true,
1092
+ runSummarizationAnnotator: true,
1093
+ summarizationConfig: {
1094
+ conversationProfile: "Test string",
1095
+ summarizationModel: "Test string",
1096
+ },
995
1097
  },
996
1098
  createTime: "Test string",
997
1099
  name: "Test string",