@maxim_mazurok/gapi.client.dialogflow-v2 0.0.20230508 → 0.0.20230516

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 +43 -7
  2. package/package.json +1 -1
  3. package/tests.ts +1 -11
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://dialogflow.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20230508
12
+ // Revision: 20230516
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -2348,8 +2348,8 @@ declare namespace gapi.client {
2348
2348
  agentAssistantDetailFeedback?:
2349
2349
  GoogleCloudDialogflowV2AgentAssistantFeedback;
2350
2350
  /**
2351
- * Indicates whether the answer/item was clicked by the human agent or not. Default to false. For knowledge search, the answer record is considered to be clicked if the answer was
2352
- * copied or any URI was clicked.
2351
+ * Indicates whether the answer/item was clicked by the human agent or not. Default to false. For knowledge search and knowledge assist, the answer record is considered to be clicked
2352
+ * if the answer was copied or any URI was clicked.
2353
2353
  */
2354
2354
  clicked?:
2355
2355
  boolean;
@@ -2639,6 +2639,17 @@ declare namespace gapi.client {
2639
2639
  type?:
2640
2640
  string;
2641
2641
  }
2642
+ interface GoogleCloudDialogflowV2beta1DialogflowAssistAnswer {
2643
+ /** The name of answer record, in the format of "projects//locations//answerRecords/" */
2644
+ answerRecord?:
2645
+ string;
2646
+ /** An intent suggestion generated from conversation. */
2647
+ intentSuggestion?:
2648
+ GoogleCloudDialogflowV2beta1IntentSuggestion;
2649
+ /** Result from v2 agent. */
2650
+ queryResult?:
2651
+ GoogleCloudDialogflowV2beta1QueryResult;
2652
+ }
2642
2653
  interface GoogleCloudDialogflowV2beta1EntityType {
2643
2654
  /** Optional. Indicates whether the entity type can be automatically expanded. */
2644
2655
  autoExpansionMode?:
@@ -3355,6 +3366,17 @@ declare namespace gapi.client {
3355
3366
  value?:
3356
3367
  string;
3357
3368
  }
3369
+ interface GoogleCloudDialogflowV2beta1IntentSuggestion {
3370
+ /** Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters. */
3371
+ description?:
3372
+ string;
3373
+ /** The display name of the intent. */
3374
+ displayName?:
3375
+ string;
3376
+ /** The unique identifier of this intent. Format: `projects//locations//agent/intents/`. */
3377
+ intentV2?:
3378
+ string;
3379
+ }
3358
3380
  interface GoogleCloudDialogflowV2beta1IntentTrainingPhrase {
3359
3381
  /** Output only. The unique identifier of this training phrase. */
3360
3382
  name?:
@@ -3639,6 +3661,20 @@ declare namespace gapi.client {
3639
3661
  latestMessage?:
3640
3662
  string;
3641
3663
  }
3664
+ interface GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse {
3665
+ /**
3666
+ * Number of messages prior to and including latest_message to compile the suggestion. It may be smaller than the SuggestDialogflowAssistsRequest.context_size field in the request if
3667
+ * there aren't that many messages in the conversation.
3668
+ */
3669
+ contextSize?:
3670
+ number;
3671
+ /** Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction. */
3672
+ dialogflowAssistAnswers?:
3673
+ GoogleCloudDialogflowV2beta1DialogflowAssistAnswer[];
3674
+ /** The name of the latest conversation message used to suggest answer. Format: `projects//locations//conversations//messages/`. */
3675
+ latestMessage?:
3676
+ string;
3677
+ }
3642
3678
  interface GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse {
3643
3679
  /**
3644
3680
  * Number of messages prior to and including latest_message to compile the suggestion. It may be smaller than the SuggestFaqAnswersRequest.context_size field in the request if there
@@ -3660,6 +3696,9 @@ declare namespace gapi.client {
3660
3696
  /** SuggestArticlesResponse if request is for ARTICLE_SUGGESTION. */
3661
3697
  suggestArticlesResponse?:
3662
3698
  GoogleCloudDialogflowV2beta1SuggestArticlesResponse;
3699
+ /** SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. */
3700
+ suggestDialogflowAssistsResponse?:
3701
+ GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse;
3663
3702
  /** SuggestFaqAnswersResponse if request is for FAQ_ANSWER. */
3664
3703
  suggestFaqAnswersResponse?:
3665
3704
  GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse;
@@ -4545,7 +4584,7 @@ declare namespace gapi.client {
4545
4584
  * context. A score of 0.0 has no relevance, while a score of 1.0 has high relevance. Only suggestions with a score greater than or equal to the value of this field are included in the
4546
4585
  * results. For a baseline model (the default), the recommended value is in the range [0.05, 0.1]. For a custom model, there is no recommended value. Tune this value by starting from a
4547
4586
  * very low value and slowly increasing until you have desired results. If this field is not set, it defaults to 0.0, which means that all suggestions are returned. Supported features:
4548
- * ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST.
4587
+ * ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION.
4549
4588
  */
4550
4589
  confidenceThreshold?:
4551
4590
  number;
@@ -5852,9 +5891,6 @@ declare namespace gapi.client {
5852
5891
  string;
5853
5892
  }
5854
5893
  interface GoogleCloudDialogflowV2SuggestConversationSummaryRequest {
5855
- /** Parameters for a human assist query. */
5856
- assistQueryParams?:
5857
- GoogleCloudDialogflowV2AssistQueryParameters;
5858
5894
  /** Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. By default 500 and at most 1000. */
5859
5895
  contextSize?:
5860
5896
  number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dialogflow-v2",
3
- "version": "0.0.20230508",
3
+ "version": "0.0.20230516",
4
4
  "description": "TypeScript typings for Dialogflow API v2",
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: 20230508
6
+ // Revision: 20230516
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -2806,11 +2806,6 @@ gapi.load('client', async () => {
2806
2806
  await gapi.client.dialogflow.projects.conversations.suggestions.suggestConversationSummary({
2807
2807
  conversation: "Test string",
2808
2808
  }, {
2809
- assistQueryParams: {
2810
- documentsMetadataFilters: {
2811
- A: "Test string"
2812
- },
2813
- },
2814
2809
  contextSize: 42,
2815
2810
  latestMessage: "Test string",
2816
2811
  });
@@ -5705,11 +5700,6 @@ gapi.load('client', async () => {
5705
5700
  await gapi.client.dialogflow.projects.locations.conversations.suggestions.suggestConversationSummary({
5706
5701
  conversation: "Test string",
5707
5702
  }, {
5708
- assistQueryParams: {
5709
- documentsMetadataFilters: {
5710
- A: "Test string"
5711
- },
5712
- },
5713
5703
  contextSize: 42,
5714
5704
  latestMessage: "Test string",
5715
5705
  });