@maxim_mazurok/gapi.client.dialogflow-v2 0.0.20230505 → 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 +314 -7
  2. package/package.json +1 -1
  3. package/tests.ts +379 -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: 20230505
12
+ // Revision: 20230516
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -911,6 +911,12 @@ declare namespace gapi.client {
911
911
  /** Whether turn resulted in End Session page. */
912
912
  reachedEndPage?:
913
913
  boolean;
914
+ /** Sentiment magnitude of the user utterance if [sentiment](https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled. */
915
+ sentimentMagnitude?:
916
+ number;
917
+ /** Sentiment score of the user utterance if [sentiment](https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled. */
918
+ sentimentScore?:
919
+ number;
914
920
  /** Whether user was specifically asking for a live agent. */
915
921
  userEscalated?:
916
922
  boolean;
@@ -958,9 +964,21 @@ declare namespace gapi.client {
958
964
  */
959
965
  allowedCaCerts?:
960
966
  string[];
967
+ /** Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST. */
968
+ httpMethod?:
969
+ string;
970
+ /**
971
+ * Optional. Maps the values extracted from specific fields of the flexible webhook response into session parameters. - Key: session parameter name - Value: field path in the webhook
972
+ * response
973
+ */
974
+ parameterMapping?:
975
+ { [P in string]: string };
961
976
  /** The password for HTTP Basic authentication. */
962
977
  password?:
963
978
  string;
979
+ /** Optional. Defines a custom JSON object as request body to send to flexible webhook. */
980
+ requestBody?:
981
+ string;
964
982
  /** The HTTP request headers to send together with webhook requests. */
965
983
  requestHeaders?:
966
984
  { [P in string]: string };
@@ -970,6 +988,9 @@ declare namespace gapi.client {
970
988
  /** The user name for HTTP Basic authentication. */
971
989
  username?:
972
990
  string;
991
+ /** Optional. Type of the webhook. */
992
+ webhookType?:
993
+ string;
973
994
  }
974
995
  interface GoogleCloudDialogflowCxV3beta1WebhookRequest {
975
996
  /** Always present. The unique identifier of the DetectIntentResponse that will be returned to the API caller. */
@@ -1940,6 +1961,12 @@ declare namespace gapi.client {
1940
1961
  /** Whether turn resulted in End Session page. */
1941
1962
  reachedEndPage?:
1942
1963
  boolean;
1964
+ /** Sentiment magnitude of the user utterance if [sentiment](https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled. */
1965
+ sentimentMagnitude?:
1966
+ number;
1967
+ /** Sentiment score of the user utterance if [sentiment](https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled. */
1968
+ sentimentScore?:
1969
+ number;
1943
1970
  /** Whether user was specifically asking for a live agent. */
1944
1971
  userEscalated?:
1945
1972
  boolean;
@@ -1987,9 +2014,21 @@ declare namespace gapi.client {
1987
2014
  */
1988
2015
  allowedCaCerts?:
1989
2016
  string[];
2017
+ /** Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST. */
2018
+ httpMethod?:
2019
+ string;
2020
+ /**
2021
+ * Optional. Maps the values extracted from specific fields of the flexible webhook response into session parameters. - Key: session parameter name - Value: field path in the webhook
2022
+ * response
2023
+ */
2024
+ parameterMapping?:
2025
+ { [P in string]: string };
1990
2026
  /** The password for HTTP Basic authentication. */
1991
2027
  password?:
1992
2028
  string;
2029
+ /** Optional. Defines a custom JSON object as request body to send to flexible webhook. */
2030
+ requestBody?:
2031
+ string;
1993
2032
  /** The HTTP request headers to send together with webhook requests. */
1994
2033
  requestHeaders?:
1995
2034
  { [P in string]: string };
@@ -1999,6 +2038,9 @@ declare namespace gapi.client {
1999
2038
  /** The user name for HTTP Basic authentication. */
2000
2039
  username?:
2001
2040
  string;
2041
+ /** Optional. Type of the webhook. */
2042
+ webhookType?:
2043
+ string;
2002
2044
  }
2003
2045
  interface GoogleCloudDialogflowCxV3WebhookRequest {
2004
2046
  /** Always present. The unique identifier of the DetectIntentResponse that will be returned to the API caller. */
@@ -2306,8 +2348,8 @@ declare namespace gapi.client {
2306
2348
  agentAssistantDetailFeedback?:
2307
2349
  GoogleCloudDialogflowV2AgentAssistantFeedback;
2308
2350
  /**
2309
- * 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
2310
- * 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.
2311
2353
  */
2312
2354
  clicked?:
2313
2355
  boolean;
@@ -2597,6 +2639,17 @@ declare namespace gapi.client {
2597
2639
  type?:
2598
2640
  string;
2599
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
+ }
2600
2653
  interface GoogleCloudDialogflowV2beta1EntityType {
2601
2654
  /** Optional. Indicates whether the entity type can be automatically expanded. */
2602
2655
  autoExpansionMode?:
@@ -3313,6 +3366,17 @@ declare namespace gapi.client {
3313
3366
  value?:
3314
3367
  string;
3315
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
+ }
3316
3380
  interface GoogleCloudDialogflowV2beta1IntentTrainingPhrase {
3317
3381
  /** Output only. The unique identifier of this training phrase. */
3318
3382
  name?:
@@ -3597,6 +3661,20 @@ declare namespace gapi.client {
3597
3661
  latestMessage?:
3598
3662
  string;
3599
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
+ }
3600
3678
  interface GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse {
3601
3679
  /**
3602
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
@@ -3618,6 +3696,9 @@ declare namespace gapi.client {
3618
3696
  /** SuggestArticlesResponse if request is for ARTICLE_SUGGESTION. */
3619
3697
  suggestArticlesResponse?:
3620
3698
  GoogleCloudDialogflowV2beta1SuggestArticlesResponse;
3699
+ /** SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. */
3700
+ suggestDialogflowAssistsResponse?:
3701
+ GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse;
3621
3702
  /** SuggestFaqAnswersResponse if request is for FAQ_ANSWER. */
3622
3703
  suggestFaqAnswersResponse?:
3623
3704
  GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse;
@@ -4369,6 +4450,53 @@ declare namespace gapi.client {
4369
4450
  uris?:
4370
4451
  string[];
4371
4452
  }
4453
+ interface GoogleCloudDialogflowV2GenerateStatelessSummaryRequest {
4454
+ /** Required. A ConversationProfile containing information required for Summary generation. Required fields: {language_code, security_settings} Optional fields: {agent_assistant_config} */
4455
+ conversationProfile?:
4456
+ GoogleCloudDialogflowV2ConversationProfile;
4457
+ /**
4458
+ * The name of the latest conversation message used as context for generating a Summary. If empty, the latest message of the conversation will be used. The format is specific to the
4459
+ * user and the names of the messages provided.
4460
+ */
4461
+ latestMessage?:
4462
+ string;
4463
+ /** 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. */
4464
+ maxContextSize?:
4465
+ number;
4466
+ /** Required. The conversation to suggest a summary for. */
4467
+ statelessConversation?:
4468
+ GoogleCloudDialogflowV2GenerateStatelessSummaryRequestMinimalConversation;
4469
+ }
4470
+ interface GoogleCloudDialogflowV2GenerateStatelessSummaryRequestMinimalConversation {
4471
+ /**
4472
+ * Required. The messages that the Summary will be generated from. It is expected that this message content is already redacted and does not contain any PII. Required fields: {content,
4473
+ * language_code, participant, participant_role} Optional fields: {send_time} If send_time is not provided, then the messages must be provided in chronological order.
4474
+ */
4475
+ messages?:
4476
+ GoogleCloudDialogflowV2Message[];
4477
+ }
4478
+ interface GoogleCloudDialogflowV2GenerateStatelessSummaryResponse {
4479
+ /**
4480
+ * Number of messages prior to and including last_conversation_message used to compile the suggestion. It may be smaller than the GenerateStatelessSummaryRequest.context_size field in
4481
+ * the request if there weren't that many messages in the conversation.
4482
+ */
4483
+ contextSize?:
4484
+ number;
4485
+ /** The name of the latest conversation message used as context for compiling suggestion. The format is specific to the user and the names of the messages provided. */
4486
+ latestMessage?:
4487
+ string;
4488
+ /** Generated summary. */
4489
+ summary?:
4490
+ GoogleCloudDialogflowV2GenerateStatelessSummaryResponseSummary;
4491
+ }
4492
+ interface GoogleCloudDialogflowV2GenerateStatelessSummaryResponseSummary {
4493
+ /** The summary content that is concatenated into one string. */
4494
+ text?:
4495
+ string;
4496
+ /** The summary 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. */
4497
+ textSections?:
4498
+ { [P in string]: string };
4499
+ }
4372
4500
  interface GoogleCloudDialogflowV2HumanAgentAssistantConfig {
4373
4501
  /** Configuration for agent assistance of end user participant. Currently, this feature is not general available, please contact Google to get access. */
4374
4502
  endUserSuggestionConfig?:
@@ -4384,6 +4512,12 @@ declare namespace gapi.client {
4384
4512
  GoogleCloudDialogflowV2NotificationConfig;
4385
4513
  }
4386
4514
  interface GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig {
4515
+ /**
4516
+ * Version of current baseline model. It will be ignored if model is set. Valid versions are: Article Suggestion baseline model: - 0.9 - 1.0 (default) Summarization baseline model: -
4517
+ * 1.0
4518
+ */
4519
+ baselineModelVersion?:
4520
+ string;
4387
4521
  /** Conversation model resource name. Format: `projects//conversationModels/`. */
4388
4522
  model?:
4389
4523
  string;
@@ -4450,7 +4584,7 @@ declare namespace gapi.client {
4450
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
4451
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
4452
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:
4453
- * ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE.
4587
+ * ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION.
4454
4588
  */
4455
4589
  confidenceThreshold?:
4456
4590
  number;
@@ -5757,9 +5891,6 @@ declare namespace gapi.client {
5757
5891
  string;
5758
5892
  }
5759
5893
  interface GoogleCloudDialogflowV2SuggestConversationSummaryRequest {
5760
- /** Parameters for a human assist query. */
5761
- assistQueryParams?:
5762
- GoogleCloudDialogflowV2AssistQueryParameters;
5763
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. */
5764
5895
  contextSize?:
5765
5896
  number;
@@ -6109,6 +6240,12 @@ declare namespace gapi.client {
6109
6240
  /** Whether turn resulted in End Session page. */
6110
6241
  reachedEndPage?:
6111
6242
  boolean;
6243
+ /** Sentiment magnitude of the user utterance if [sentiment](https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled. */
6244
+ sentimentMagnitude?:
6245
+ number;
6246
+ /** Sentiment score of the user utterance if [sentiment](https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled. */
6247
+ sentimentScore?:
6248
+ number;
6112
6249
  /** Whether agent has triggered the event corresponding to user abandoning the conversation. */
6113
6250
  triggeredAbandonmentEvent?:
6114
6251
  boolean;
@@ -21984,6 +22121,89 @@ declare namespace gapi.client {
21984
22121
  string;
21985
22122
  }): Request<GoogleLongrunningListOperationsResponse>;
21986
22123
  }
22124
+ interface SuggestionsResource {
22125
+ /** Generates and returns a summary for a conversation that does not have a resource created for it. */
22126
+ generateStatelessSummary(request: {
22127
+ /** V1 error format. */
22128
+ "$.xgafv"?:
22129
+ string;
22130
+ /** OAuth access token. */
22131
+ access_token?:
22132
+ string;
22133
+ /** Data format for response. */
22134
+ alt?:
22135
+ string;
22136
+ /** JSONP */
22137
+ callback?:
22138
+ string;
22139
+ /** Selector specifying which fields to include in a partial response. */
22140
+ fields?:
22141
+ string;
22142
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
22143
+ key?:
22144
+ string;
22145
+ /** OAuth 2.0 token for the current user. */
22146
+ oauth_token?:
22147
+ string;
22148
+ /** Required. The parent resource to charge for the Summary's generation. Format: `projects//locations/`. */
22149
+ parent:
22150
+ string;
22151
+ /** Returns response with indentations and line breaks. */
22152
+ prettyPrint?:
22153
+ boolean;
22154
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
22155
+ quotaUser?:
22156
+ string;
22157
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
22158
+ upload_protocol?:
22159
+ string;
22160
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
22161
+ uploadType?:
22162
+ string;
22163
+ /** Request body */
22164
+ resource:
22165
+ GoogleCloudDialogflowV2GenerateStatelessSummaryRequest;
22166
+ }): Request<GoogleCloudDialogflowV2GenerateStatelessSummaryResponse>;
22167
+ generateStatelessSummary(request: {
22168
+ /** V1 error format. */
22169
+ "$.xgafv"?:
22170
+ string;
22171
+ /** OAuth access token. */
22172
+ access_token?:
22173
+ string;
22174
+ /** Data format for response. */
22175
+ alt?:
22176
+ string;
22177
+ /** JSONP */
22178
+ callback?:
22179
+ string;
22180
+ /** Selector specifying which fields to include in a partial response. */
22181
+ fields?:
22182
+ string;
22183
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
22184
+ key?:
22185
+ string;
22186
+ /** OAuth 2.0 token for the current user. */
22187
+ oauth_token?:
22188
+ string;
22189
+ /** Required. The parent resource to charge for the Summary's generation. Format: `projects//locations/`. */
22190
+ parent:
22191
+ string;
22192
+ /** Returns response with indentations and line breaks. */
22193
+ prettyPrint?:
22194
+ boolean;
22195
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
22196
+ quotaUser?:
22197
+ string;
22198
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
22199
+ upload_protocol?:
22200
+ string;
22201
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
22202
+ uploadType?:
22203
+ string;
22204
+ },
22205
+ body: GoogleCloudDialogflowV2GenerateStatelessSummaryRequest): Request<GoogleCloudDialogflowV2GenerateStatelessSummaryResponse>;
22206
+ }
21987
22207
  interface LocationsResource {
21988
22208
  /** Deletes the specified agent. */
21989
22209
  deleteAgent(request?: {
@@ -22259,6 +22479,8 @@ declare namespace gapi.client {
22259
22479
  KnowledgeBasesResource;
22260
22480
  operations:
22261
22481
  OperationsResource;
22482
+ suggestions:
22483
+ SuggestionsResource;
22262
22484
  }
22263
22485
  interface OperationsResource {
22264
22486
  /**
@@ -22393,6 +22615,89 @@ declare namespace gapi.client {
22393
22615
  string;
22394
22616
  }): Request<GoogleLongrunningListOperationsResponse>;
22395
22617
  }
22618
+ interface SuggestionsResource {
22619
+ /** Generates and returns a summary for a conversation that does not have a resource created for it. */
22620
+ generateStatelessSummary(request: {
22621
+ /** V1 error format. */
22622
+ "$.xgafv"?:
22623
+ string;
22624
+ /** OAuth access token. */
22625
+ access_token?:
22626
+ string;
22627
+ /** Data format for response. */
22628
+ alt?:
22629
+ string;
22630
+ /** JSONP */
22631
+ callback?:
22632
+ string;
22633
+ /** Selector specifying which fields to include in a partial response. */
22634
+ fields?:
22635
+ string;
22636
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
22637
+ key?:
22638
+ string;
22639
+ /** OAuth 2.0 token for the current user. */
22640
+ oauth_token?:
22641
+ string;
22642
+ /** Required. The parent resource to charge for the Summary's generation. Format: `projects//locations/`. */
22643
+ parent:
22644
+ string;
22645
+ /** Returns response with indentations and line breaks. */
22646
+ prettyPrint?:
22647
+ boolean;
22648
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
22649
+ quotaUser?:
22650
+ string;
22651
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
22652
+ upload_protocol?:
22653
+ string;
22654
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
22655
+ uploadType?:
22656
+ string;
22657
+ /** Request body */
22658
+ resource:
22659
+ GoogleCloudDialogflowV2GenerateStatelessSummaryRequest;
22660
+ }): Request<GoogleCloudDialogflowV2GenerateStatelessSummaryResponse>;
22661
+ generateStatelessSummary(request: {
22662
+ /** V1 error format. */
22663
+ "$.xgafv"?:
22664
+ string;
22665
+ /** OAuth access token. */
22666
+ access_token?:
22667
+ string;
22668
+ /** Data format for response. */
22669
+ alt?:
22670
+ string;
22671
+ /** JSONP */
22672
+ callback?:
22673
+ string;
22674
+ /** Selector specifying which fields to include in a partial response. */
22675
+ fields?:
22676
+ string;
22677
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
22678
+ key?:
22679
+ string;
22680
+ /** OAuth 2.0 token for the current user. */
22681
+ oauth_token?:
22682
+ string;
22683
+ /** Required. The parent resource to charge for the Summary's generation. Format: `projects//locations/`. */
22684
+ parent:
22685
+ string;
22686
+ /** Returns response with indentations and line breaks. */
22687
+ prettyPrint?:
22688
+ boolean;
22689
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
22690
+ quotaUser?:
22691
+ string;
22692
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
22693
+ upload_protocol?:
22694
+ string;
22695
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
22696
+ uploadType?:
22697
+ string;
22698
+ },
22699
+ body: GoogleCloudDialogflowV2GenerateStatelessSummaryRequest): Request<GoogleCloudDialogflowV2GenerateStatelessSummaryResponse>;
22700
+ }
22396
22701
  interface ProjectsResource {
22397
22702
  /** Deletes the specified agent. */
22398
22703
  deleteAgent(request?: {
@@ -22580,6 +22885,8 @@ declare namespace gapi.client {
22580
22885
  LocationsResource;
22581
22886
  operations:
22582
22887
  OperationsResource;
22888
+ suggestions:
22889
+ SuggestionsResource;
22583
22890
  }
22584
22891
 
22585
22892
  const projects: ProjectsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dialogflow-v2",
3
- "version": "0.0.20230505",
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: 20230505
6
+ // Revision: 20230516
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -2245,6 +2245,7 @@ gapi.load('client', async () => {
2245
2245
  featureConfigs: [
2246
2246
  {
2247
2247
  conversationModelConfig: {
2248
+ baselineModelVersion: "Test string",
2248
2249
  model: "Test string",
2249
2250
  },
2250
2251
  conversationProcessConfig: {
@@ -2288,6 +2289,7 @@ gapi.load('client', async () => {
2288
2289
  featureConfigs: [
2289
2290
  {
2290
2291
  conversationModelConfig: {
2292
+ baselineModelVersion: "Test string",
2291
2293
  model: "Test string",
2292
2294
  },
2293
2295
  conversationProcessConfig: {
@@ -2412,6 +2414,7 @@ gapi.load('client', async () => {
2412
2414
  featureConfigs: [
2413
2415
  {
2414
2416
  conversationModelConfig: {
2417
+ baselineModelVersion: "Test string",
2415
2418
  model: "Test string",
2416
2419
  },
2417
2420
  conversationProcessConfig: {
@@ -2455,6 +2458,7 @@ gapi.load('client', async () => {
2455
2458
  featureConfigs: [
2456
2459
  {
2457
2460
  conversationModelConfig: {
2461
+ baselineModelVersion: "Test string",
2458
2462
  model: "Test string",
2459
2463
  },
2460
2464
  conversationProcessConfig: {
@@ -2560,6 +2564,7 @@ gapi.load('client', async () => {
2560
2564
  participantRole: "Test string",
2561
2565
  suggestionFeatureConfig: {
2562
2566
  conversationModelConfig: {
2567
+ baselineModelVersion: "Test string",
2563
2568
  model: "Test string",
2564
2569
  },
2565
2570
  conversationProcessConfig: {
@@ -2801,11 +2806,6 @@ gapi.load('client', async () => {
2801
2806
  await gapi.client.dialogflow.projects.conversations.suggestions.suggestConversationSummary({
2802
2807
  conversation: "Test string",
2803
2808
  }, {
2804
- assistQueryParams: {
2805
- documentsMetadataFilters: {
2806
- A: "Test string"
2807
- },
2808
- },
2809
2809
  contextSize: 42,
2810
2810
  latestMessage: "Test string",
2811
2811
  });
@@ -5139,6 +5139,7 @@ gapi.load('client', async () => {
5139
5139
  featureConfigs: [
5140
5140
  {
5141
5141
  conversationModelConfig: {
5142
+ baselineModelVersion: "Test string",
5142
5143
  model: "Test string",
5143
5144
  },
5144
5145
  conversationProcessConfig: {
@@ -5182,6 +5183,7 @@ gapi.load('client', async () => {
5182
5183
  featureConfigs: [
5183
5184
  {
5184
5185
  conversationModelConfig: {
5186
+ baselineModelVersion: "Test string",
5185
5187
  model: "Test string",
5186
5188
  },
5187
5189
  conversationProcessConfig: {
@@ -5306,6 +5308,7 @@ gapi.load('client', async () => {
5306
5308
  featureConfigs: [
5307
5309
  {
5308
5310
  conversationModelConfig: {
5311
+ baselineModelVersion: "Test string",
5309
5312
  model: "Test string",
5310
5313
  },
5311
5314
  conversationProcessConfig: {
@@ -5349,6 +5352,7 @@ gapi.load('client', async () => {
5349
5352
  featureConfigs: [
5350
5353
  {
5351
5354
  conversationModelConfig: {
5355
+ baselineModelVersion: "Test string",
5352
5356
  model: "Test string",
5353
5357
  },
5354
5358
  conversationProcessConfig: {
@@ -5454,6 +5458,7 @@ gapi.load('client', async () => {
5454
5458
  participantRole: "Test string",
5455
5459
  suggestionFeatureConfig: {
5456
5460
  conversationModelConfig: {
5461
+ baselineModelVersion: "Test string",
5457
5462
  model: "Test string",
5458
5463
  },
5459
5464
  conversationProcessConfig: {
@@ -5695,11 +5700,6 @@ gapi.load('client', async () => {
5695
5700
  await gapi.client.dialogflow.projects.locations.conversations.suggestions.suggestConversationSummary({
5696
5701
  conversation: "Test string",
5697
5702
  }, {
5698
- assistQueryParams: {
5699
- documentsMetadataFilters: {
5700
- A: "Test string"
5701
- },
5702
- },
5703
5703
  contextSize: 42,
5704
5704
  latestMessage: "Test string",
5705
5705
  });
@@ -5893,6 +5893,190 @@ gapi.load('client', async () => {
5893
5893
  pageSize: 42,
5894
5894
  pageToken: "Test string",
5895
5895
  });
5896
+ /** Generates and returns a summary for a conversation that does not have a resource created for it. */
5897
+ await gapi.client.dialogflow.projects.locations.suggestions.generateStatelessSummary({
5898
+ parent: "Test string",
5899
+ }, {
5900
+ conversationProfile: {
5901
+ automatedAgentConfig: {
5902
+ agent: "Test string",
5903
+ },
5904
+ createTime: "Test string",
5905
+ displayName: "Test string",
5906
+ humanAgentAssistantConfig: {
5907
+ endUserSuggestionConfig: {
5908
+ featureConfigs: [
5909
+ {
5910
+ conversationModelConfig: {
5911
+ baselineModelVersion: "Test string",
5912
+ model: "Test string",
5913
+ },
5914
+ conversationProcessConfig: {
5915
+ recentSentencesCount: 42,
5916
+ },
5917
+ enableEventBasedSuggestion: true,
5918
+ queryConfig: {
5919
+ confidenceThreshold: 42,
5920
+ contextFilterSettings: {
5921
+ dropHandoffMessages: true,
5922
+ dropIvrMessages: true,
5923
+ dropVirtualAgentMessages: true,
5924
+ },
5925
+ dialogflowQuerySource: {
5926
+ agent: "Test string",
5927
+ },
5928
+ documentQuerySource: {
5929
+ documents: [
5930
+ "Test string"
5931
+ ],
5932
+ },
5933
+ knowledgeBaseQuerySource: {
5934
+ knowledgeBases: [
5935
+ "Test string"
5936
+ ],
5937
+ },
5938
+ maxResults: 42,
5939
+ },
5940
+ suggestionFeature: {
5941
+ type: "Test string",
5942
+ },
5943
+ suggestionTriggerSettings: {
5944
+ noSmalltalk: true,
5945
+ onlyEndUser: true,
5946
+ },
5947
+ }
5948
+ ],
5949
+ groupSuggestionResponses: true,
5950
+ },
5951
+ humanAgentSuggestionConfig: {
5952
+ featureConfigs: [
5953
+ {
5954
+ conversationModelConfig: {
5955
+ baselineModelVersion: "Test string",
5956
+ model: "Test string",
5957
+ },
5958
+ conversationProcessConfig: {
5959
+ recentSentencesCount: 42,
5960
+ },
5961
+ enableEventBasedSuggestion: true,
5962
+ queryConfig: {
5963
+ confidenceThreshold: 42,
5964
+ contextFilterSettings: {
5965
+ dropHandoffMessages: true,
5966
+ dropIvrMessages: true,
5967
+ dropVirtualAgentMessages: true,
5968
+ },
5969
+ dialogflowQuerySource: {
5970
+ agent: "Test string",
5971
+ },
5972
+ documentQuerySource: {
5973
+ documents: [
5974
+ "Test string"
5975
+ ],
5976
+ },
5977
+ knowledgeBaseQuerySource: {
5978
+ knowledgeBases: [
5979
+ "Test string"
5980
+ ],
5981
+ },
5982
+ maxResults: 42,
5983
+ },
5984
+ suggestionFeature: {
5985
+ type: "Test string",
5986
+ },
5987
+ suggestionTriggerSettings: {
5988
+ noSmalltalk: true,
5989
+ onlyEndUser: true,
5990
+ },
5991
+ }
5992
+ ],
5993
+ groupSuggestionResponses: true,
5994
+ },
5995
+ messageAnalysisConfig: {
5996
+ enableEntityExtraction: true,
5997
+ enableSentimentAnalysis: true,
5998
+ },
5999
+ notificationConfig: {
6000
+ messageFormat: "Test string",
6001
+ topic: "Test string",
6002
+ },
6003
+ },
6004
+ humanAgentHandoffConfig: {
6005
+ livePersonConfig: {
6006
+ accountNumber: "Test string",
6007
+ },
6008
+ salesforceLiveAgentConfig: {
6009
+ buttonId: "Test string",
6010
+ deploymentId: "Test string",
6011
+ endpointDomain: "Test string",
6012
+ organizationId: "Test string",
6013
+ },
6014
+ },
6015
+ languageCode: "Test string",
6016
+ loggingConfig: {
6017
+ enableStackdriverLogging: true,
6018
+ },
6019
+ name: "Test string",
6020
+ newMessageEventNotificationConfig: {
6021
+ messageFormat: "Test string",
6022
+ topic: "Test string",
6023
+ },
6024
+ notificationConfig: {
6025
+ messageFormat: "Test string",
6026
+ topic: "Test string",
6027
+ },
6028
+ securitySettings: "Test string",
6029
+ sttConfig: {
6030
+ model: "Test string",
6031
+ speechModelVariant: "Test string",
6032
+ },
6033
+ timeZone: "Test string",
6034
+ ttsConfig: {
6035
+ effectsProfileId: [
6036
+ "Test string"
6037
+ ],
6038
+ pitch: 42,
6039
+ speakingRate: 42,
6040
+ voice: {
6041
+ name: "Test string",
6042
+ ssmlGender: "Test string",
6043
+ },
6044
+ volumeGainDb: 42,
6045
+ },
6046
+ updateTime: "Test string",
6047
+ },
6048
+ latestMessage: "Test string",
6049
+ maxContextSize: 42,
6050
+ statelessConversation: {
6051
+ messages: [
6052
+ {
6053
+ content: "Test string",
6054
+ createTime: "Test string",
6055
+ languageCode: "Test string",
6056
+ messageAnnotation: {
6057
+ containEntities: true,
6058
+ parts: [
6059
+ {
6060
+ entityType: "Test string",
6061
+ formattedValue: 42,
6062
+ text: "Test string",
6063
+ }
6064
+ ],
6065
+ },
6066
+ name: "Test string",
6067
+ participant: "Test string",
6068
+ participantRole: "Test string",
6069
+ sendTime: "Test string",
6070
+ sentimentAnalysis: {
6071
+ queryTextSentiment: {
6072
+ magnitude: 42,
6073
+ score: 42,
6074
+ },
6075
+ },
6076
+ }
6077
+ ],
6078
+ },
6079
+ });
5896
6080
  /**
5897
6081
  * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this
5898
6082
  * method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation
@@ -5913,5 +6097,189 @@ gapi.load('client', async () => {
5913
6097
  pageSize: 42,
5914
6098
  pageToken: "Test string",
5915
6099
  });
6100
+ /** Generates and returns a summary for a conversation that does not have a resource created for it. */
6101
+ await gapi.client.dialogflow.projects.suggestions.generateStatelessSummary({
6102
+ parent: "Test string",
6103
+ }, {
6104
+ conversationProfile: {
6105
+ automatedAgentConfig: {
6106
+ agent: "Test string",
6107
+ },
6108
+ createTime: "Test string",
6109
+ displayName: "Test string",
6110
+ humanAgentAssistantConfig: {
6111
+ endUserSuggestionConfig: {
6112
+ featureConfigs: [
6113
+ {
6114
+ conversationModelConfig: {
6115
+ baselineModelVersion: "Test string",
6116
+ model: "Test string",
6117
+ },
6118
+ conversationProcessConfig: {
6119
+ recentSentencesCount: 42,
6120
+ },
6121
+ enableEventBasedSuggestion: true,
6122
+ queryConfig: {
6123
+ confidenceThreshold: 42,
6124
+ contextFilterSettings: {
6125
+ dropHandoffMessages: true,
6126
+ dropIvrMessages: true,
6127
+ dropVirtualAgentMessages: true,
6128
+ },
6129
+ dialogflowQuerySource: {
6130
+ agent: "Test string",
6131
+ },
6132
+ documentQuerySource: {
6133
+ documents: [
6134
+ "Test string"
6135
+ ],
6136
+ },
6137
+ knowledgeBaseQuerySource: {
6138
+ knowledgeBases: [
6139
+ "Test string"
6140
+ ],
6141
+ },
6142
+ maxResults: 42,
6143
+ },
6144
+ suggestionFeature: {
6145
+ type: "Test string",
6146
+ },
6147
+ suggestionTriggerSettings: {
6148
+ noSmalltalk: true,
6149
+ onlyEndUser: true,
6150
+ },
6151
+ }
6152
+ ],
6153
+ groupSuggestionResponses: true,
6154
+ },
6155
+ humanAgentSuggestionConfig: {
6156
+ featureConfigs: [
6157
+ {
6158
+ conversationModelConfig: {
6159
+ baselineModelVersion: "Test string",
6160
+ model: "Test string",
6161
+ },
6162
+ conversationProcessConfig: {
6163
+ recentSentencesCount: 42,
6164
+ },
6165
+ enableEventBasedSuggestion: true,
6166
+ queryConfig: {
6167
+ confidenceThreshold: 42,
6168
+ contextFilterSettings: {
6169
+ dropHandoffMessages: true,
6170
+ dropIvrMessages: true,
6171
+ dropVirtualAgentMessages: true,
6172
+ },
6173
+ dialogflowQuerySource: {
6174
+ agent: "Test string",
6175
+ },
6176
+ documentQuerySource: {
6177
+ documents: [
6178
+ "Test string"
6179
+ ],
6180
+ },
6181
+ knowledgeBaseQuerySource: {
6182
+ knowledgeBases: [
6183
+ "Test string"
6184
+ ],
6185
+ },
6186
+ maxResults: 42,
6187
+ },
6188
+ suggestionFeature: {
6189
+ type: "Test string",
6190
+ },
6191
+ suggestionTriggerSettings: {
6192
+ noSmalltalk: true,
6193
+ onlyEndUser: true,
6194
+ },
6195
+ }
6196
+ ],
6197
+ groupSuggestionResponses: true,
6198
+ },
6199
+ messageAnalysisConfig: {
6200
+ enableEntityExtraction: true,
6201
+ enableSentimentAnalysis: true,
6202
+ },
6203
+ notificationConfig: {
6204
+ messageFormat: "Test string",
6205
+ topic: "Test string",
6206
+ },
6207
+ },
6208
+ humanAgentHandoffConfig: {
6209
+ livePersonConfig: {
6210
+ accountNumber: "Test string",
6211
+ },
6212
+ salesforceLiveAgentConfig: {
6213
+ buttonId: "Test string",
6214
+ deploymentId: "Test string",
6215
+ endpointDomain: "Test string",
6216
+ organizationId: "Test string",
6217
+ },
6218
+ },
6219
+ languageCode: "Test string",
6220
+ loggingConfig: {
6221
+ enableStackdriverLogging: true,
6222
+ },
6223
+ name: "Test string",
6224
+ newMessageEventNotificationConfig: {
6225
+ messageFormat: "Test string",
6226
+ topic: "Test string",
6227
+ },
6228
+ notificationConfig: {
6229
+ messageFormat: "Test string",
6230
+ topic: "Test string",
6231
+ },
6232
+ securitySettings: "Test string",
6233
+ sttConfig: {
6234
+ model: "Test string",
6235
+ speechModelVariant: "Test string",
6236
+ },
6237
+ timeZone: "Test string",
6238
+ ttsConfig: {
6239
+ effectsProfileId: [
6240
+ "Test string"
6241
+ ],
6242
+ pitch: 42,
6243
+ speakingRate: 42,
6244
+ voice: {
6245
+ name: "Test string",
6246
+ ssmlGender: "Test string",
6247
+ },
6248
+ volumeGainDb: 42,
6249
+ },
6250
+ updateTime: "Test string",
6251
+ },
6252
+ latestMessage: "Test string",
6253
+ maxContextSize: 42,
6254
+ statelessConversation: {
6255
+ messages: [
6256
+ {
6257
+ content: "Test string",
6258
+ createTime: "Test string",
6259
+ languageCode: "Test string",
6260
+ messageAnnotation: {
6261
+ containEntities: true,
6262
+ parts: [
6263
+ {
6264
+ entityType: "Test string",
6265
+ formattedValue: 42,
6266
+ text: "Test string",
6267
+ }
6268
+ ],
6269
+ },
6270
+ name: "Test string",
6271
+ participant: "Test string",
6272
+ participantRole: "Test string",
6273
+ sendTime: "Test string",
6274
+ sentimentAnalysis: {
6275
+ queryTextSentiment: {
6276
+ magnitude: 42,
6277
+ score: 42,
6278
+ },
6279
+ },
6280
+ }
6281
+ ],
6282
+ },
6283
+ });
5916
6284
  }
5917
6285
  });