@maxim_mazurok/gapi.client.dialogflow-v2beta1 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.
- package/index.d.ts +36 -26
- 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=v2beta1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240617
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -713,9 +713,9 @@ declare namespace gapi.client {
|
|
|
713
713
|
testTime?: string;
|
|
714
714
|
}
|
|
715
715
|
interface GoogleCloudDialogflowCxV3beta1TestConfig {
|
|
716
|
-
/** 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
|
|
716
|
+
/** 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. */
|
|
717
717
|
flow?: string;
|
|
718
|
-
/** 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
|
|
718
|
+
/** 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. */
|
|
719
719
|
page?: string;
|
|
720
720
|
/** Session parameters to be compared when calculating differences. */
|
|
721
721
|
trackingParameters?: string[];
|
|
@@ -1503,9 +1503,9 @@ declare namespace gapi.client {
|
|
|
1503
1503
|
testTime?: string;
|
|
1504
1504
|
}
|
|
1505
1505
|
interface GoogleCloudDialogflowCxV3TestConfig {
|
|
1506
|
-
/** 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
|
|
1506
|
+
/** 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. */
|
|
1507
1507
|
flow?: string;
|
|
1508
|
-
/** 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
|
|
1508
|
+
/** 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. */
|
|
1509
1509
|
page?: string;
|
|
1510
1510
|
/** Session parameters to be compared when calculating differences. */
|
|
1511
1511
|
trackingParameters?: string[];
|
|
@@ -2046,13 +2046,13 @@ declare namespace gapi.client {
|
|
|
2046
2046
|
interface GoogleCloudDialogflowV2beta1Conversation {
|
|
2047
2047
|
/** Required. The Conversation Profile to be used to configure this Conversation. This field cannot be updated. Format: `projects//locations//conversationProfiles/`. */
|
|
2048
2048
|
conversationProfile?: string;
|
|
2049
|
-
/** 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. */
|
|
2049
|
+
/** 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. */
|
|
2050
2050
|
conversationStage?: string;
|
|
2051
2051
|
/** Output only. The time the conversation was finished. */
|
|
2052
2052
|
endTime?: string;
|
|
2053
2053
|
/** Output only. The current state of the Conversation. */
|
|
2054
2054
|
lifecycleState?: string;
|
|
2055
|
-
/** Output only. The unique identifier of this conversation. Format: `projects//locations//conversations/`. */
|
|
2055
|
+
/** Output only. Identifier. The unique identifier of this conversation. Format: `projects//locations//conversations/`. */
|
|
2056
2056
|
name?: string;
|
|
2057
2057
|
/** Output only. Required if the conversation is to be connected over telephony. */
|
|
2058
2058
|
phoneNumber?: GoogleCloudDialogflowV2beta1ConversationPhoneNumber;
|
|
@@ -2342,9 +2342,9 @@ declare namespace gapi.client {
|
|
|
2342
2342
|
interface GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest {
|
|
2343
2343
|
/** Required. A ConversationProfile containing information required for Summary generation. Required fields: {language_code, security_settings} Optional fields: {agent_assistant_config} */
|
|
2344
2344
|
conversationProfile?: GoogleCloudDialogflowV2beta1ConversationProfile;
|
|
2345
|
-
/** 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. */
|
|
2345
|
+
/** 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. */
|
|
2346
2346
|
latestMessage?: string;
|
|
2347
|
-
/** 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. */
|
|
2347
|
+
/** 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. */
|
|
2348
2348
|
maxContextSize?: number;
|
|
2349
2349
|
/** Required. The conversation to suggest a summary for. */
|
|
2350
2350
|
statelessConversation?: GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation;
|
|
@@ -3402,17 +3402,17 @@ declare namespace gapi.client {
|
|
|
3402
3402
|
uri?: string;
|
|
3403
3403
|
}
|
|
3404
3404
|
interface GoogleCloudDialogflowV2beta1SearchKnowledgeRequest {
|
|
3405
|
-
/** The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
|
|
3405
|
+
/** Optional. The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
|
|
3406
3406
|
conversation?: string;
|
|
3407
3407
|
/** Required. The conversation profile used to configure the search. Format: `projects//locations//conversationProfiles/`. */
|
|
3408
3408
|
conversationProfile?: string;
|
|
3409
|
-
/** The name of the latest conversation message when the request is triggered. Format: `projects//locations//conversations//messages/`. */
|
|
3409
|
+
/** Optional. The name of the latest conversation message when the request is triggered. Format: `projects//locations//conversations//messages/`. */
|
|
3410
3410
|
latestMessage?: string;
|
|
3411
|
-
/** The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
|
|
3411
|
+
/** Required. The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
|
|
3412
3412
|
parent?: string;
|
|
3413
3413
|
/** Required. The natural language text query for knowledge search. */
|
|
3414
3414
|
query?: GoogleCloudDialogflowV2beta1TextInput;
|
|
3415
|
-
/** 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. */
|
|
3415
|
+
/** 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. */
|
|
3416
3416
|
sessionId?: string;
|
|
3417
3417
|
}
|
|
3418
3418
|
interface GoogleCloudDialogflowV2beta1SearchKnowledgeResponse {
|
|
@@ -3474,8 +3474,18 @@ declare namespace gapi.client {
|
|
|
3474
3474
|
phrases?: string[];
|
|
3475
3475
|
}
|
|
3476
3476
|
interface GoogleCloudDialogflowV2beta1SpeechToTextConfig {
|
|
3477
|
+
/** 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. */
|
|
3478
|
+
alternativeLanguageCodes?: string[];
|
|
3479
|
+
/** Audio encoding of the audio content to process. */
|
|
3480
|
+
audioEncoding?: string;
|
|
3481
|
+
/** 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. */
|
|
3482
|
+
enableWordInfo?: boolean;
|
|
3483
|
+
/** 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. */
|
|
3484
|
+
languageCode?: string;
|
|
3477
3485
|
/** 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. */
|
|
3478
3486
|
model?: string;
|
|
3487
|
+
/** 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. */
|
|
3488
|
+
sampleRateHertz?: number;
|
|
3479
3489
|
/** 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. */
|
|
3480
3490
|
speechModelVariant?: string;
|
|
3481
3491
|
/** Use timeout based endpointing, interpreting endpointer sensitivy as seconds of timeout value. */
|
|
@@ -3504,11 +3514,11 @@ declare namespace gapi.client {
|
|
|
3504
3514
|
latestMessage?: string;
|
|
3505
3515
|
}
|
|
3506
3516
|
interface GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest {
|
|
3507
|
-
/** Parameters for a human assist query. Only used for POC/demo purpose. */
|
|
3517
|
+
/** Optional. Parameters for a human assist query. Only used for POC/demo purpose. */
|
|
3508
3518
|
assistQueryParams?: GoogleCloudDialogflowV2beta1AssistQueryParameters;
|
|
3509
|
-
/** 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. */
|
|
3519
|
+
/** 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. */
|
|
3510
3520
|
contextSize?: number;
|
|
3511
|
-
/** 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/`. */
|
|
3521
|
+
/** 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/`. */
|
|
3512
3522
|
latestMessage?: string;
|
|
3513
3523
|
}
|
|
3514
3524
|
interface GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse {
|
|
@@ -8939,7 +8949,7 @@ declare namespace gapi.client {
|
|
|
8939
8949
|
alt?: string;
|
|
8940
8950
|
/** JSONP */
|
|
8941
8951
|
callback?: string;
|
|
8942
|
-
/** The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
|
|
8952
|
+
/** Optional. The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
|
|
8943
8953
|
conversation: string;
|
|
8944
8954
|
/** Selector specifying which fields to include in a partial response. */
|
|
8945
8955
|
fields?: string;
|
|
@@ -8968,7 +8978,7 @@ declare namespace gapi.client {
|
|
|
8968
8978
|
alt?: string;
|
|
8969
8979
|
/** JSONP */
|
|
8970
8980
|
callback?: string;
|
|
8971
|
-
/** The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
|
|
8981
|
+
/** Optional. The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
|
|
8972
8982
|
conversation: string;
|
|
8973
8983
|
/** Selector specifying which fields to include in a partial response. */
|
|
8974
8984
|
fields?: string;
|
|
@@ -9206,7 +9216,7 @@ declare namespace gapi.client {
|
|
|
9206
9216
|
callback?: string;
|
|
9207
9217
|
/** Selector specifying which fields to include in a partial response. */
|
|
9208
9218
|
fields?: string;
|
|
9209
|
-
/** A filter expression that filters conversations listed in the response.
|
|
9219
|
+
/** 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). */
|
|
9210
9220
|
filter?: string;
|
|
9211
9221
|
/** 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. */
|
|
9212
9222
|
key?: string;
|
|
@@ -13639,7 +13649,7 @@ declare namespace gapi.client {
|
|
|
13639
13649
|
alt?: string;
|
|
13640
13650
|
/** JSONP */
|
|
13641
13651
|
callback?: string;
|
|
13642
|
-
/** The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
|
|
13652
|
+
/** Optional. The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
|
|
13643
13653
|
conversation: string;
|
|
13644
13654
|
/** Selector specifying which fields to include in a partial response. */
|
|
13645
13655
|
fields?: string;
|
|
@@ -13668,7 +13678,7 @@ declare namespace gapi.client {
|
|
|
13668
13678
|
alt?: string;
|
|
13669
13679
|
/** JSONP */
|
|
13670
13680
|
callback?: string;
|
|
13671
|
-
/** The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
|
|
13681
|
+
/** Optional. The conversation (between human agent and end user) where the search request is triggered. Format: `projects//locations//conversations/`. */
|
|
13672
13682
|
conversation: string;
|
|
13673
13683
|
/** Selector specifying which fields to include in a partial response. */
|
|
13674
13684
|
fields?: string;
|
|
@@ -13906,7 +13916,7 @@ declare namespace gapi.client {
|
|
|
13906
13916
|
callback?: string;
|
|
13907
13917
|
/** Selector specifying which fields to include in a partial response. */
|
|
13908
13918
|
fields?: string;
|
|
13909
|
-
/** A filter expression that filters conversations listed in the response.
|
|
13919
|
+
/** 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). */
|
|
13910
13920
|
filter?: string;
|
|
13911
13921
|
/** 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. */
|
|
13912
13922
|
key?: string;
|
|
@@ -14907,7 +14917,7 @@ declare namespace gapi.client {
|
|
|
14907
14917
|
key?: string;
|
|
14908
14918
|
/** OAuth 2.0 token for the current user. */
|
|
14909
14919
|
oauth_token?: string;
|
|
14910
|
-
/** The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
|
|
14920
|
+
/** Required. The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
|
|
14911
14921
|
parent: string;
|
|
14912
14922
|
/** Returns response with indentations and line breaks. */
|
|
14913
14923
|
prettyPrint?: boolean;
|
|
@@ -14936,7 +14946,7 @@ declare namespace gapi.client {
|
|
|
14936
14946
|
key?: string;
|
|
14937
14947
|
/** OAuth 2.0 token for the current user. */
|
|
14938
14948
|
oauth_token?: string;
|
|
14939
|
-
/** The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
|
|
14949
|
+
/** Required. The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
|
|
14940
14950
|
parent: string;
|
|
14941
14951
|
/** Returns response with indentations and line breaks. */
|
|
14942
14952
|
prettyPrint?: boolean;
|
|
@@ -15301,7 +15311,7 @@ declare namespace gapi.client {
|
|
|
15301
15311
|
key?: string;
|
|
15302
15312
|
/** OAuth 2.0 token for the current user. */
|
|
15303
15313
|
oauth_token?: string;
|
|
15304
|
-
/** The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
|
|
15314
|
+
/** Required. The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
|
|
15305
15315
|
parent: string;
|
|
15306
15316
|
/** Returns response with indentations and line breaks. */
|
|
15307
15317
|
prettyPrint?: boolean;
|
|
@@ -15330,7 +15340,7 @@ declare namespace gapi.client {
|
|
|
15330
15340
|
key?: string;
|
|
15331
15341
|
/** OAuth 2.0 token for the current user. */
|
|
15332
15342
|
oauth_token?: string;
|
|
15333
|
-
/** The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
|
|
15343
|
+
/** Required. The parent resource contains the conversation profile Format: 'projects/' or `projects//locations/`. */
|
|
15334
15344
|
parent: string;
|
|
15335
15345
|
/** Returns response with indentations and line breaks. */
|
|
15336
15346
|
prettyPrint?: boolean;
|