From a785018bb5d7a7267ef4d4452baab016682e36c8 Mon Sep 17 00:00:00 2001 From: nicain Date: Tue, 28 Sep 2021 11:08:12 -0700 Subject: [PATCH 1/4] chore: Update owlbot.py (#53) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update owlbot.py Update copyright year to unblock https://github.com/googleapis/python-contact-center-insights/pull/46 https://github.com/googleapis/python-contact-center-insights/pull/46/files#r717178756 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: edit owlbot.py copyright yeat chore: Update copyright year to unblock #46 https://github.com/googleapis/python-contact-center-insights/pull/46/files#r717178756 Co-authored-by: Owl Bot --- owlbot.py | 2 ++ samples/snippets/noxfile.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/owlbot.py b/owlbot.py index c60820d..7afc640 100644 --- a/owlbot.py +++ b/owlbot.py @@ -95,6 +95,8 @@ "# The root toctree document.", ) +s.replace("samples/snippets/noxfile.py", r"# Copyright 2019 Google LLC", r"# Copyright 2021 Google LLC") + # ---------------------------------------------------------------------------- # Run blacken session # ---------------------------------------------------------------------------- diff --git a/samples/snippets/noxfile.py b/samples/snippets/noxfile.py index b008613..0e13f5f 100644 --- a/samples/snippets/noxfile.py +++ b/samples/snippets/noxfile.py @@ -1,4 +1,4 @@ -# Copyright 2019 Google LLC +# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From d884ec25b1e48e9462aa7fcf2ce81fc61581258c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 28 Sep 2021 20:19:13 +0200 Subject: [PATCH 2/4] chore(deps): update all dependencies (#46) --- samples/snippets/requirements-test.txt | 4 ++-- samples/snippets/requirements.txt | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index 63777ec..14f9f9d 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -google-auth==2.0.2 +google-auth==2.2.0 google-cloud-pubsub==2.8.0 -protobuf==3.17.3 +protobuf==3.18.0 pytest==6.2.5 \ No newline at end of file diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index e3aa4be..45f99ab 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,4 +1,4 @@ google-api-core==2.0.1 -google-cloud-bigquery==2.26.0 -google-cloud-contact-center-insights==0.2.0 -protobuf==3.17.3 \ No newline at end of file +google-cloud-bigquery==2.27.1 +google-cloud-contact-center-insights==0.3.1 +protobuf==3.18.0 \ No newline at end of file From ef575cf076376261c784b9c3332ef2befa1a11d9 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 29 Sep 2021 00:14:17 +0000 Subject: [PATCH 3/4] feat: add metadata from dialogflow related to transcript segment (#54) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 399513805 Source-Link: https://github.com/googleapis/googleapis/commit/0766e6d42598a894007ab037c3c96283f58ab30b Source-Link: https://github.com/googleapis/googleapis-gen/commit/2bc8343812fa9c07c73292ac34b43f05c9686b74 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmJjODM0MzgxMmZhOWMwN2M3MzI5MmFjMzRiNDNmMDVjOTY4NmI3NCJ9 feat: add sentiment data for transcript segment feat: add obfuscated if from dialogflow --- .../types/resources.py | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/google/cloud/contact_center_insights_v1/types/resources.py b/google/cloud/contact_center_insights_v1/types/resources.py index e2df252..2d64af3 100644 --- a/google/cloud/contact_center_insights_v1/types/resources.py +++ b/google/cloud/contact_center_insights_v1/types/resources.py @@ -157,6 +157,9 @@ class Transcript(proto.Message): class TranscriptSegment(proto.Message): r"""A segment of a full transcript. Attributes: + message_time (google.protobuf.timestamp_pb2.Timestamp): + The time that the message occurred, if + provided. text (str): The text of this segment. confidence (float): @@ -179,6 +182,11 @@ class TranscriptSegment(proto.Message): indicates that the audio is mono. segment_participant (google.cloud.contact_center_insights_v1.types.ConversationParticipant): The participant of this segment. + dialogflow_segment_metadata (google.cloud.contact_center_insights_v1.types.Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata): + CCAI metadata relating to the current + transcript segment. + sentiment (google.cloud.contact_center_insights_v1.types.SentimentData): + The sentiment for this transcript segment. """ class WordInfo(proto.Message): @@ -209,6 +217,22 @@ class WordInfo(proto.Message): word = proto.Field(proto.STRING, number=3,) confidence = proto.Field(proto.FLOAT, number=4,) + class DialogflowSegmentMetadata(proto.Message): + r"""Metadata from Dialogflow relating to the current transcript + segment. + + Attributes: + smart_reply_allowlist_covered (bool): + Whether the transcript segment was covered + under the configured smart reply allowlist in + Agent Assist. + """ + + smart_reply_allowlist_covered = proto.Field(proto.BOOL, number=1,) + + message_time = proto.Field( + proto.MESSAGE, number=6, message=timestamp_pb2.Timestamp, + ) text = proto.Field(proto.STRING, number=1,) confidence = proto.Field(proto.FLOAT, number=2,) words = proto.RepeatedField( @@ -221,6 +245,12 @@ class WordInfo(proto.Message): segment_participant = proto.Field( proto.MESSAGE, number=9, message="ConversationParticipant", ) + dialogflow_segment_metadata = proto.Field( + proto.MESSAGE, + number=10, + message="Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata", + ) + sentiment = proto.Field(proto.MESSAGE, number=11, message="SentimentData",) transcript_segments = proto.RepeatedField( proto.MESSAGE, @@ -1276,6 +1306,8 @@ class ConversationParticipant(proto.Message): Deprecated. Use ``dialogflow_participant_name`` instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} + obfuscated_external_user_id (str): + Obfuscated user ID from Dialogflow. role (google.cloud.contact_center_insights_v1.types.ConversationParticipant.Role): The role of the participant. """ @@ -1293,6 +1325,7 @@ class Role(proto.Enum): ) user_id = proto.Field(proto.STRING, number=6, oneof="participant",) dialogflow_participant = proto.Field(proto.STRING, number=1,) + obfuscated_external_user_id = proto.Field(proto.STRING, number=3,) role = proto.Field(proto.ENUM, number=2, enum=Role,) From b9a564fa74d847b0b5c073d7fb86b244085254c5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 29 Sep 2021 14:50:31 +0000 Subject: [PATCH 4/4] chore: release 0.4.0 (#56) :robot: I have created a release \*beep\* \*boop\* --- ## [0.4.0](https://www.github.com/googleapis/python-contact-center-insights/compare/v0.3.1...v0.4.0) (2021-09-29) ### Features * add metadata from dialogflow related to transcript segment ([#54](https://www.github.com/googleapis/python-contact-center-insights/issues/54)) ([ef575cf](https://www.github.com/googleapis/python-contact-center-insights/commit/ef575cf076376261c784b9c3332ef2befa1a11d9)) * add obfuscated if from dialogflow ([ef575cf](https://www.github.com/googleapis/python-contact-center-insights/commit/ef575cf076376261c784b9c3332ef2befa1a11d9)) * add sentiment data for transcript segment ([ef575cf](https://www.github.com/googleapis/python-contact-center-insights/commit/ef575cf076376261c784b9c3332ef2befa1a11d9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 9 +++++++++ setup.py | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c18e564..c91d4e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [0.4.0](https://www.github.com/googleapis/python-contact-center-insights/compare/v0.3.1...v0.4.0) (2021-09-29) + + +### Features + +* add metadata from dialogflow related to transcript segment ([#54](https://www.github.com/googleapis/python-contact-center-insights/issues/54)) ([ef575cf](https://www.github.com/googleapis/python-contact-center-insights/commit/ef575cf076376261c784b9c3332ef2befa1a11d9)) +* add obfuscated if from dialogflow ([ef575cf](https://www.github.com/googleapis/python-contact-center-insights/commit/ef575cf076376261c784b9c3332ef2befa1a11d9)) +* add sentiment data for transcript segment ([ef575cf](https://www.github.com/googleapis/python-contact-center-insights/commit/ef575cf076376261c784b9c3332ef2befa1a11d9)) + ### [0.3.1](https://www.github.com/googleapis/python-contact-center-insights/compare/v0.3.0...v0.3.1) (2021-09-24) diff --git a/setup.py b/setup.py index 89f07ef..fbb1fe0 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ name = "google-cloud-contact-center-insights" description = "Contact Center AI Insights API" -version = "0.3.1" +version = "0.4.0" release_status = "Development Status :: 4 - Beta" url = "https://github.com/googleapis/python-contact-center-insights" dependencies = [