@maxim_mazurok/gapi.client.dialogflow-v2beta1 0.0.20250327 → 0.0.20250416

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 +39 -3
  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=v2beta1
12
- // Revision: 20250327
12
+ // Revision: 20250416
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1346,6 +1346,8 @@ declare namespace gapi.client {
1346
1346
  languageCode?: string;
1347
1347
  /** The natural language text to be processed. */
1348
1348
  text?: GoogleCloudDialogflowCxV3TextInput;
1349
+ /** The results of a tool executed by the client. */
1350
+ toolCallResult?: GoogleCloudDialogflowCxV3ToolCallResult;
1349
1351
  }
1350
1352
  interface GoogleCloudDialogflowCxV3ResponseMessage {
1351
1353
  /** The channel which the response is associated with. Clients can specify the channel via QueryParameters.channel, and only associated channel response will be returned. */
@@ -1372,6 +1374,8 @@ declare namespace gapi.client {
1372
1374
  telephonyTransferCall?: GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall;
1373
1375
  /** Returns a text response. */
1374
1376
  text?: GoogleCloudDialogflowCxV3ResponseMessageText;
1377
+ /** Returns the definition of a tool call that should be executed by the client. */
1378
+ toolCall?: GoogleCloudDialogflowCxV3ToolCall;
1375
1379
  }
1376
1380
  interface GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess {
1377
1381
  /** Custom metadata. Dialogflow doesn't impose any structure on this. */
@@ -1500,6 +1504,28 @@ declare namespace gapi.client {
1500
1504
  /** Required. The UTF-8 encoded natural language text to be processed. */
1501
1505
  text?: string;
1502
1506
  }
1507
+ interface GoogleCloudDialogflowCxV3ToolCall {
1508
+ /** Required. The name of the tool's action associated with this call. */
1509
+ action?: string;
1510
+ /** Optional. The action's input parameters. */
1511
+ inputParameters?: {[P in string]: any};
1512
+ /** Required. The tool associated with this call. Format: `projects//locations//agents//tools/`. */
1513
+ tool?: string;
1514
+ }
1515
+ interface GoogleCloudDialogflowCxV3ToolCallResult {
1516
+ /** Required. The name of the tool's action associated with this call. */
1517
+ action?: string;
1518
+ /** The tool call's error. */
1519
+ error?: GoogleCloudDialogflowCxV3ToolCallResultError;
1520
+ /** The tool call's output parameters. */
1521
+ outputParameters?: {[P in string]: any};
1522
+ /** Required. The tool associated with this call. Format: `projects//locations//agents//tools/`. */
1523
+ tool?: string;
1524
+ }
1525
+ interface GoogleCloudDialogflowCxV3ToolCallResultError {
1526
+ /** Optional. The error message of the function. */
1527
+ message?: string;
1528
+ }
1503
1529
  interface GoogleCloudDialogflowCxV3TransitionRoute {
1504
1530
  /** The condition to evaluate against form parameters or session parameters. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled. */
1505
1531
  condition?: string;
@@ -2163,6 +2189,14 @@ declare namespace gapi.client {
2163
2189
  /** Required. Resource identifier of the conversation to create message. Format: `projects//locations//conversations/`. */
2164
2190
  parent?: string;
2165
2191
  }
2192
+ interface GoogleCloudDialogflowV2beta1CustomPronunciationParams {
2193
+ /** The phonetic encoding of the phrase. */
2194
+ phoneticEncoding?: string;
2195
+ /** The phrase to which the customization is applied. The phrase can be multiple words, such as proper nouns, but shouldn't span the length of the sentence. */
2196
+ phrase?: string;
2197
+ /** The pronunciation of the phrase. This must be in the phonetic encoding specified above. */
2198
+ pronunciation?: string;
2199
+ }
2166
2200
  interface GoogleCloudDialogflowV2beta1DetectIntentRequest {
2167
2201
  /** The natural language speech audio to be processed. This field should be populated iff `query_input` is set to an input audio config. A single request can contain up to 1 minute of speech audio data. */
2168
2202
  inputAudio?: string;
@@ -2700,7 +2734,7 @@ declare namespace gapi.client {
2700
2734
  enableAutomaticPunctuation?: boolean;
2701
2735
  /** 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. */
2702
2736
  enableWordInfo?: boolean;
2703
- /** Required. 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. */
2737
+ /** Required. 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. If not set, the language is inferred from the ConversationProfile.stt_config. */
2704
2738
  languageCode?: string;
2705
2739
  /** Optional. Which Speech model to select for the given request. For more information, see [Speech models](https://cloud.google.com/dialogflow/es/docs/speech-models). */
2706
2740
  model?: string;
@@ -3696,7 +3730,7 @@ declare namespace gapi.client {
3696
3730
  audioEncoding?: string;
3697
3731
  /** 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. */
3698
3732
  enableWordInfo?: boolean;
3699
- /** 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. */
3733
+ /** 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. If not specified, the default language configured at ConversationProfile is used. */
3700
3734
  languageCode?: string;
3701
3735
  /** 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. */
3702
3736
  model?: string;
@@ -3950,6 +3984,8 @@ declare namespace gapi.client {
3950
3984
  effectsProfileId?: string[];
3951
3985
  /** Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 semitones from the original pitch. -20 means decrease 20 semitones from the original pitch. */
3952
3986
  pitch?: number;
3987
+ /** Optional. The custom pronunciations for the synthesized audio. */
3988
+ pronunciations?: GoogleCloudDialogflowV2beta1CustomPronunciationParams[];
3953
3989
  /** Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other values < 0.25 or > 4.0 will return an error. */
3954
3990
  speakingRate?: number;
3955
3991
  /** Optional. The desired voice of the synthesized audio. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dialogflow-v2beta1",
3
- "version": "0.0.20250327",
3
+ "version": "0.0.20250416",
4
4
  "description": "TypeScript typings for Dialogflow API v2beta1",
5
5
  "repository": {
6
6
  "type": "git",