@maxim_mazurok/gapi.client.dialogflow-v2 0.0.20240607 → 0.0.20240617

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 (2) hide show
  1. package/index.d.ts +36 -26
  2. package/package.json +1 -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://dialogflow.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20240607
12
+ // Revision: 20240617
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -709,9 +709,9 @@ declare namespace gapi.client {
709
709
  testTime?: string;
710
710
  }
711
711
  interface GoogleCloudDialogflowCxV3beta1TestConfig {
712
- /** Flow name to start the test case with. Format: `projects//locations//agents//flows/`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If both are set, `page` takes precedence over `flow`. If neither is set, the test case will start with start page on the default start flow. */
712
+ /** Flow name to start the test case with. Format: `projects//locations//agents//flows/`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow. */
713
713
  flow?: string;
714
- /** The page to start the test case with. Format: `projects//locations//agents//flows//pages/`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If both are set, `page` takes precedence over `flow`. If neither is set, the test case will start with start page on the default start flow. */
714
+ /** The page to start the test case with. Format: `projects//locations//agents//flows//pages/`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow. */
715
715
  page?: string;
716
716
  /** Session parameters to be compared when calculating differences. */
717
717
  trackingParameters?: string[];
@@ -1499,9 +1499,9 @@ declare namespace gapi.client {
1499
1499
  testTime?: string;
1500
1500
  }
1501
1501
  interface GoogleCloudDialogflowCxV3TestConfig {
1502
- /** Flow name to start the test case with. Format: `projects//locations//agents//flows/`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If both are set, `page` takes precedence over `flow`. If neither is set, the test case will start with start page on the default start flow. */
1502
+ /** Flow name to start the test case with. Format: `projects//locations//agents//flows/`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow. */
1503
1503
  flow?: string;
1504
- /** The page to start the test case with. Format: `projects//locations//agents//flows//pages/`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If both are set, `page` takes precedence over `flow`. If neither is set, the test case will start with start page on the default start flow. */
1504
+ /** The page to start the test case with. Format: `projects//locations//agents//flows//pages/`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow. */
1505
1505
  page?: string;
1506
1506
  /** Session parameters to be compared when calculating differences. */
1507
1507
  trackingParameters?: string[];
@@ -2759,13 +2759,13 @@ declare namespace gapi.client {
2759
2759
  interface GoogleCloudDialogflowV2Conversation {
2760
2760
  /** Required. The Conversation Profile to be used to configure this Conversation. This field cannot be updated. Format: `projects//locations//conversationProfiles/`. */
2761
2761
  conversationProfile?: string;
2762
- /** The stage of a conversation. It indicates whether the virtual agent or a human agent is handling the conversation. If the conversation is created with the conversation profile that has Dialogflow config set, defaults to ConversationStage.VIRTUAL_AGENT_STAGE; Otherwise, defaults to ConversationStage.HUMAN_ASSIST_STAGE. If the conversation is created with the conversation profile that has Dialogflow config set but explicitly sets conversation_stage to ConversationStage.HUMAN_ASSIST_STAGE, it skips ConversationStage.VIRTUAL_AGENT_STAGE stage and directly goes to ConversationStage.HUMAN_ASSIST_STAGE. */
2762
+ /** Optional. The stage of a conversation. It indicates whether the virtual agent or a human agent is handling the conversation. If the conversation is created with the conversation profile that has Dialogflow config set, defaults to ConversationStage.VIRTUAL_AGENT_STAGE; Otherwise, defaults to ConversationStage.HUMAN_ASSIST_STAGE. If the conversation is created with the conversation profile that has Dialogflow config set but explicitly sets conversation_stage to ConversationStage.HUMAN_ASSIST_STAGE, it skips ConversationStage.VIRTUAL_AGENT_STAGE stage and directly goes to ConversationStage.HUMAN_ASSIST_STAGE. */
2763
2763
  conversationStage?: string;
2764
2764
  /** Output only. The time the conversation was finished. */
2765
2765
  endTime?: string;
2766
2766
  /** Output only. The current state of the Conversation. */
2767
2767
  lifecycleState?: string;
2768
- /** Output only. The unique identifier of this conversation. Format: `projects//locations//conversations/`. */
2768
+ /** Output only. Identifier. The unique identifier of this conversation. Format: `projects//locations//conversations/`. */
2769
2769
  name?: string;
2770
2770
  /** Output only. It will not be empty if the conversation is to be connected over telephony. */
2771
2771
  phoneNumber?: GoogleCloudDialogflowV2ConversationPhoneNumber;
@@ -3161,9 +3161,9 @@ declare namespace gapi.client {
3161
3161
  interface GoogleCloudDialogflowV2GenerateStatelessSummaryRequest {
3162
3162
  /** Required. A ConversationProfile containing information required for Summary generation. Required fields: {language_code, security_settings} Optional fields: {agent_assistant_config} */
3163
3163
  conversationProfile?: GoogleCloudDialogflowV2ConversationProfile;
3164
- /** 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 user and the names of the messages provided. */
3164
+ /** Optional. 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 user and the names of the messages provided. */
3165
3165
  latestMessage?: string;
3166
- /** 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. */
3166
+ /** Optional. 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. */
3167
3167
  maxContextSize?: number;
3168
3168
  /** Required. The conversation to suggest a summary for. */
3169
3169
  statelessConversation?: GoogleCloudDialogflowV2GenerateStatelessSummaryRequestMinimalConversation;
@@ -4089,17 +4089,17 @@ declare namespace gapi.client {
4089
4089
  uri?: string;
4090
4090
  }
4091
4091
  interface GoogleCloudDialogflowV2SearchKnowledgeRequest {
4092
- /** The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
4092
+ /** Optional. The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
4093
4093
  conversation?: string;
4094
4094
  /** Required. The conversation profile used to configure the search. Format: `projects//locations//conversationProfiles/`. */
4095
4095
  conversationProfile?: string;
4096
- /** The name of the latest conversation message when the request is triggered. Format: `projects//locations//conversations//messages/`. */
4096
+ /** Optional. The name of the latest conversation message when the request is triggered. Format: `projects//locations//conversations//messages/`. */
4097
4097
  latestMessage?: string;
4098
- /** The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
4098
+ /** Required. The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
4099
4099
  parent?: string;
4100
4100
  /** Required. The natural language text query for knowledge search. */
4101
4101
  query?: GoogleCloudDialogflowV2TextInput;
4102
- /** The ID of the search session. The session_id can be combined with Dialogflow V3 Agent ID retrieved from conversation profile or on its own to identify a search session. The search history of the same session will impact the search result. It's up to the API caller to choose an appropriate `Session ID`. It can be a random number or some type of session identifiers (preferably hashed). The length must not exceed 36 characters. */
4102
+ /** Optional. The ID of the search session. The session_id can be combined with Dialogflow V3 Agent ID retrieved from conversation profile or on its own to identify a search session. The search history of the same session will impact the search result. It's up to the API caller to choose an appropriate `Session ID`. It can be a random number or some type of session identifiers (preferably hashed). The length must not exceed 36 characters. */
4103
4103
  sessionId?: string;
4104
4104
  }
4105
4105
  interface GoogleCloudDialogflowV2SearchKnowledgeResponse {
@@ -4179,8 +4179,18 @@ declare namespace gapi.client {
4179
4179
  phrases?: string[];
4180
4180
  }
4181
4181
  interface GoogleCloudDialogflowV2SpeechToTextConfig {
4182
+ /** Defines the list of other language codes in addition to the one provided by the conversation profile that may be detected as the language code for the utterances over the conversation. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. */
4183
+ alternativeLanguageCodes?: string[];
4184
+ /** Audio encoding of the audio content to process. */
4185
+ audioEncoding?: string;
4186
+ /** If `true`, Dialogflow returns SpeechWordInfo in StreamingRecognitionResult with information about the recognized speech words, e.g. start and end time offsets. If false or unspecified, Speech doesn't return any word-level information. */
4187
+ enableWordInfo?: boolean;
4188
+ /** The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. */
4189
+ languageCode?: string;
4182
4190
  /** Which Speech model to select. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then Dialogflow auto-selects a model based on other parameters in the SpeechToTextConfig and Agent settings. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search Leave this field unspecified to use [Agent Speech settings](https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech) for model selection. */
4183
4191
  model?: string;
4192
+ /** Sample rate (in Hertz) of the audio content sent in the query. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics) for more details. */
4193
+ sampleRateHertz?: number;
4184
4194
  /** The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in AnalyzeContentRequest and StreamingAnalyzeContentRequest request. If enhanced model variant is specified and an enhanced version of the specified model for the language does not exist, then it would emit an error. */
4185
4195
  speechModelVariant?: string;
4186
4196
  /** Use timeout based endpointing, interpreting endpointer sensitivy as seconds of timeout value. */
@@ -4203,11 +4213,11 @@ declare namespace gapi.client {
4203
4213
  latestMessage?: string;
4204
4214
  }
4205
4215
  interface GoogleCloudDialogflowV2SuggestConversationSummaryRequest {
4206
- /** Parameters for a human assist query. Only used for POC/demo purpose. */
4216
+ /** Optional. Parameters for a human assist query. Only used for POC/demo purpose. */
4207
4217
  assistQueryParams?: GoogleCloudDialogflowV2AssistQueryParameters;
4208
- /** 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. */
4218
+ /** Optional. 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. */
4209
4219
  contextSize?: number;
4210
- /** The name of the latest conversation message used as context for compiling suggestion. If empty, the latest message of the conversation will be used. Format: `projects//locations//conversations//messages/`. */
4220
+ /** Optional. The name of the latest conversation message used as context for compiling suggestion. If empty, the latest message of the conversation will be used. Format: `projects//locations//conversations//messages/`. */
4211
4221
  latestMessage?: string;
4212
4222
  }
4213
4223
  interface GoogleCloudDialogflowV2SuggestConversationSummaryResponse {
@@ -9136,7 +9146,7 @@ declare namespace gapi.client {
9136
9146
  alt?: string;
9137
9147
  /** JSONP */
9138
9148
  callback?: string;
9139
- /** The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
9149
+ /** Optional. The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
9140
9150
  conversation: string;
9141
9151
  /** Selector specifying which fields to include in a partial response. */
9142
9152
  fields?: string;
@@ -9165,7 +9175,7 @@ declare namespace gapi.client {
9165
9175
  alt?: string;
9166
9176
  /** JSONP */
9167
9177
  callback?: string;
9168
- /** The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
9178
+ /** Optional. The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
9169
9179
  conversation: string;
9170
9180
  /** Selector specifying which fields to include in a partial response. */
9171
9181
  fields?: string;
@@ -9403,7 +9413,7 @@ declare namespace gapi.client {
9403
9413
  callback?: string;
9404
9414
  /** Selector specifying which fields to include in a partial response. */
9405
9415
  fields?: string;
9406
- /** A filter expression that filters conversations listed in the response. In general, the expression must specify the field name, a comparison operator, and the value to use for filtering: - The value must be a string, a number, or a boolean. - The comparison operator must be either `=`,`!=`, `>`, or `<`. - To filter on multiple expressions, separate the expressions with `AND` or `OR` (omitting both implies `AND`). - For clarity, expressions can be enclosed in parentheses. Only `lifecycle_state` can be filtered on in this way. For example, the following expression only returns `COMPLETED` conversations: `lifecycle_state = "COMPLETED"` For more information about filtering, see [API Filtering](https://aip.dev/160). */
9416
+ /** Optional. A filter expression that filters conversations listed in the response. Only `lifecycle_state` can be filtered on in this way. For example, the following expression only returns `COMPLETED` conversations: `lifecycle_state = "COMPLETED"` For more information about filtering, see [API Filtering](https://aip.dev/160). */
9407
9417
  filter?: string;
9408
9418
  /** 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. */
9409
9419
  key?: string;
@@ -14388,7 +14398,7 @@ declare namespace gapi.client {
14388
14398
  alt?: string;
14389
14399
  /** JSONP */
14390
14400
  callback?: string;
14391
- /** The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
14401
+ /** Optional. The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
14392
14402
  conversation: string;
14393
14403
  /** Selector specifying which fields to include in a partial response. */
14394
14404
  fields?: string;
@@ -14417,7 +14427,7 @@ declare namespace gapi.client {
14417
14427
  alt?: string;
14418
14428
  /** JSONP */
14419
14429
  callback?: string;
14420
- /** The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
14430
+ /** Optional. The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
14421
14431
  conversation: string;
14422
14432
  /** Selector specifying which fields to include in a partial response. */
14423
14433
  fields?: string;
@@ -14655,7 +14665,7 @@ declare namespace gapi.client {
14655
14665
  callback?: string;
14656
14666
  /** Selector specifying which fields to include in a partial response. */
14657
14667
  fields?: string;
14658
- /** A filter expression that filters conversations listed in the response. In general, the expression must specify the field name, a comparison operator, and the value to use for filtering: - The value must be a string, a number, or a boolean. - The comparison operator must be either `=`,`!=`, `>`, or `<`. - To filter on multiple expressions, separate the expressions with `AND` or `OR` (omitting both implies `AND`). - For clarity, expressions can be enclosed in parentheses. Only `lifecycle_state` can be filtered on in this way. For example, the following expression only returns `COMPLETED` conversations: `lifecycle_state = "COMPLETED"` For more information about filtering, see [API Filtering](https://aip.dev/160). */
14668
+ /** Optional. A filter expression that filters conversations listed in the response. Only `lifecycle_state` can be filtered on in this way. For example, the following expression only returns `COMPLETED` conversations: `lifecycle_state = "COMPLETED"` For more information about filtering, see [API Filtering](https://aip.dev/160). */
14659
14669
  filter?: string;
14660
14670
  /** 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. */
14661
14671
  key?: string;
@@ -15710,7 +15720,7 @@ declare namespace gapi.client {
15710
15720
  key?: string;
15711
15721
  /** OAuth 2.0 token for the current user. */
15712
15722
  oauth_token?: string;
15713
- /** The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
15723
+ /** Required. The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
15714
15724
  parent: string;
15715
15725
  /** Returns response with indentations and line breaks. */
15716
15726
  prettyPrint?: boolean;
@@ -15739,7 +15749,7 @@ declare namespace gapi.client {
15739
15749
  key?: string;
15740
15750
  /** OAuth 2.0 token for the current user. */
15741
15751
  oauth_token?: string;
15742
- /** The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
15752
+ /** Required. The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
15743
15753
  parent: string;
15744
15754
  /** Returns response with indentations and line breaks. */
15745
15755
  prettyPrint?: boolean;
@@ -16106,7 +16116,7 @@ declare namespace gapi.client {
16106
16116
  key?: string;
16107
16117
  /** OAuth 2.0 token for the current user. */
16108
16118
  oauth_token?: string;
16109
- /** The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
16119
+ /** Required. The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
16110
16120
  parent: string;
16111
16121
  /** Returns response with indentations and line breaks. */
16112
16122
  prettyPrint?: boolean;
@@ -16135,7 +16145,7 @@ declare namespace gapi.client {
16135
16145
  key?: string;
16136
16146
  /** OAuth 2.0 token for the current user. */
16137
16147
  oauth_token?: string;
16138
- /** The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
16148
+ /** Required. The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
16139
16149
  parent: string;
16140
16150
  /** Returns response with indentations and line breaks. */
16141
16151
  prettyPrint?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dialogflow-v2",
3
- "version": "0.0.20240607",
3
+ "version": "0.0.20240617",
4
4
  "description": "TypeScript typings for Dialogflow API v2",
5
5
  "repository": {
6
6
  "type": "git",