@maxim_mazurok/gapi.client.dialogflow-v2beta1 0.0.20241212 → 0.0.20241216
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 +64 -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:
|
|
12
|
+
// Revision: 20241216
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1773,7 +1773,7 @@ declare namespace gapi.client {
|
|
|
1773
1773
|
eventInput?: GoogleCloudDialogflowV2beta1EventInput;
|
|
1774
1774
|
/** The intent to be triggered on V3 agent. */
|
|
1775
1775
|
intentInput?: GoogleCloudDialogflowV2beta1IntentInput;
|
|
1776
|
-
/** Optional. The send time of the message from end user or human agent's perspective. It is used for identifying the same message under one participant. Given two messages under the same participant: * If send time are different regardless of whether the content of the messages are exactly the same, the conversation will regard them as two distinct messages sent by the participant. * If send time is the same regardless of whether the content of the messages are exactly the same, the conversation will regard them as same message, and ignore the message received later. If the value is not provided, a new request will always be regarded as a new message without any de-duplication. */
|
|
1776
|
+
/** Optional. The send time of the message from end user or human agent's perspective. It is used for identifying the same message under one participant. For BatchCreateMessages API only: Given two messages under the same participant: * If send time are different regardless of whether the content of the messages are exactly the same, the conversation will regard them as two distinct messages sent by the participant. * If send time is the same regardless of whether the content of the messages are exactly the same, the conversation will regard them as same message, and ignore the message received later. If the value is not provided, a new request will always be regarded as a new message without any de-duplication. */
|
|
1777
1777
|
messageSendTime?: string;
|
|
1778
1778
|
/** Parameters for a Dialogflow virtual-agent query. */
|
|
1779
1779
|
queryParams?: GoogleCloudDialogflowV2beta1QueryParameters;
|
|
@@ -2038,6 +2038,8 @@ declare namespace gapi.client {
|
|
|
2038
2038
|
errorStatus?: GoogleRpcStatus;
|
|
2039
2039
|
/** Payload of NEW_MESSAGE event. */
|
|
2040
2040
|
newMessagePayload?: GoogleCloudDialogflowV2beta1Message;
|
|
2041
|
+
/** Payload of NEW_RECOGNITION_RESULT event. */
|
|
2042
|
+
newRecognitionResultPayload?: GoogleCloudDialogflowV2beta1StreamingRecognitionResult;
|
|
2041
2043
|
/** Required. The type of the event that this notification refers to. */
|
|
2042
2044
|
type?: string;
|
|
2043
2045
|
}
|
|
@@ -2064,6 +2066,8 @@ declare namespace gapi.client {
|
|
|
2064
2066
|
name?: string;
|
|
2065
2067
|
/** Configuration for publishing new message events. Event will be sent in format of ConversationEvent */
|
|
2066
2068
|
newMessageEventNotificationConfig?: GoogleCloudDialogflowV2beta1NotificationConfig;
|
|
2069
|
+
/** Optional. Configuration for publishing transcription intermediate results. Event will be sent in format of ConversationEvent. If configured, the following information will be populated as ConversationEvent Pub/Sub message attributes: - "participant_id" - "participant_role" - "message_id" */
|
|
2070
|
+
newRecognitionResultNotificationConfig?: GoogleCloudDialogflowV2beta1NotificationConfig;
|
|
2067
2071
|
/** Configuration for publishing conversation lifecycle events. */
|
|
2068
2072
|
notificationConfig?: GoogleCloudDialogflowV2beta1NotificationConfig;
|
|
2069
2073
|
/** Name of the CX SecuritySettings reference for the agent. Format: `projects//locations//securitySettings/`. */
|
|
@@ -3553,6 +3557,36 @@ declare namespace gapi.client {
|
|
|
3553
3557
|
/** Use timeout based endpointing, interpreting endpointer sensitivy as seconds of timeout value. */
|
|
3554
3558
|
useTimeoutBasedEndpointing?: boolean;
|
|
3555
3559
|
}
|
|
3560
|
+
interface GoogleCloudDialogflowV2beta1SpeechWordInfo {
|
|
3561
|
+
/** The Speech confidence between 0.0 and 1.0 for this word. A higher number indicates an estimated greater likelihood that the recognized word is correct. The default of 0.0 is a sentinel value indicating that confidence was not set. This field is not guaranteed to be fully stable over time for the same audio input. Users should also not rely on it to always be provided. */
|
|
3562
|
+
confidence?: number;
|
|
3563
|
+
/** Time offset relative to the beginning of the audio that corresponds to the end of the spoken word. This is an experimental feature and the accuracy of the time offset can vary. */
|
|
3564
|
+
endOffset?: string;
|
|
3565
|
+
/** Time offset relative to the beginning of the audio that corresponds to the start of the spoken word. This is an experimental feature and the accuracy of the time offset can vary. */
|
|
3566
|
+
startOffset?: string;
|
|
3567
|
+
/** The word this info is for. */
|
|
3568
|
+
word?: string;
|
|
3569
|
+
}
|
|
3570
|
+
interface GoogleCloudDialogflowV2beta1StreamingRecognitionResult {
|
|
3571
|
+
/** The Speech confidence between 0.0 and 1.0 for the current portion of audio. A higher number indicates an estimated greater likelihood that the recognized words are correct. The default of 0.0 is a sentinel value indicating that confidence was not set. This field is typically only provided if `is_final` is true and you should not rely on it being accurate or even set. */
|
|
3572
|
+
confidence?: number;
|
|
3573
|
+
/** DTMF digits. Populated if and only if `message_type` = `DTMF_DIGITS`. */
|
|
3574
|
+
dtmfDigits?: GoogleCloudDialogflowV2beta1TelephonyDtmfEvents;
|
|
3575
|
+
/** If `false`, the `StreamingRecognitionResult` represents an interim result that may change. If `true`, the recognizer will not return any further hypotheses about this piece of the audio. May only be populated for `message_type` = `TRANSCRIPT`. */
|
|
3576
|
+
isFinal?: boolean;
|
|
3577
|
+
/** Detected language code for the transcript. */
|
|
3578
|
+
languageCode?: string;
|
|
3579
|
+
/** Type of the result message. */
|
|
3580
|
+
messageType?: string;
|
|
3581
|
+
/** Time offset of the end of this Speech recognition result relative to the beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`. */
|
|
3582
|
+
speechEndOffset?: string;
|
|
3583
|
+
/** Word-specific information for the words recognized by Speech in transcript. Populated if and only if `message_type` = `TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set. */
|
|
3584
|
+
speechWordInfo?: GoogleCloudDialogflowV2beta1SpeechWordInfo[];
|
|
3585
|
+
/** An estimate of the likelihood that the speech recognizer will not change its guess about this interim recognition result: * If the value is unspecified or 0.0, Dialogflow didn't compute the stability. In particular, Dialogflow will only provide stability for `TRANSCRIPT` results with `is_final = false`. * Otherwise, the value is in (0.0, 1.0] where 0.0 means completely unstable and 1.0 means completely stable. */
|
|
3586
|
+
stability?: number;
|
|
3587
|
+
/** Transcript text representing the words that the user spoke. Populated if and only if `message_type` = `TRANSCRIPT`. */
|
|
3588
|
+
transcript?: string;
|
|
3589
|
+
}
|
|
3556
3590
|
interface GoogleCloudDialogflowV2beta1SubAgent {
|
|
3557
3591
|
/** Optional. The unique identifier (`environment name` in dialogflow console) of this sub-agent environment. Assumes draft environment if `environment` is not set. */
|
|
3558
3592
|
environment?: string;
|
|
@@ -3879,6 +3913,8 @@ declare namespace gapi.client {
|
|
|
3879
3913
|
errorStatus?: GoogleRpcStatus;
|
|
3880
3914
|
/** Payload of NEW_MESSAGE event. */
|
|
3881
3915
|
newMessagePayload?: GoogleCloudDialogflowV2Message;
|
|
3916
|
+
/** Payload of NEW_RECOGNITION_RESULT event. */
|
|
3917
|
+
newRecognitionResultPayload?: GoogleCloudDialogflowV2StreamingRecognitionResult;
|
|
3882
3918
|
/** The type of the event that this notification refers to. */
|
|
3883
3919
|
type?: string;
|
|
3884
3920
|
}
|
|
@@ -4501,6 +4537,32 @@ declare namespace gapi.client {
|
|
|
4501
4537
|
/** Optional. Type of the smart reply model. If not provided, model_type is used. */
|
|
4502
4538
|
trainingModelType?: string;
|
|
4503
4539
|
}
|
|
4540
|
+
interface GoogleCloudDialogflowV2SpeechWordInfo {
|
|
4541
|
+
/** The Speech confidence between 0.0 and 1.0 for this word. A higher number indicates an estimated greater likelihood that the recognized word is correct. The default of 0.0 is a sentinel value indicating that confidence was not set. This field is not guaranteed to be fully stable over time for the same audio input. Users should also not rely on it to always be provided. */
|
|
4542
|
+
confidence?: number;
|
|
4543
|
+
/** Time offset relative to the beginning of the audio that corresponds to the end of the spoken word. This is an experimental feature and the accuracy of the time offset can vary. */
|
|
4544
|
+
endOffset?: string;
|
|
4545
|
+
/** Time offset relative to the beginning of the audio that corresponds to the start of the spoken word. This is an experimental feature and the accuracy of the time offset can vary. */
|
|
4546
|
+
startOffset?: string;
|
|
4547
|
+
/** The word this info is for. */
|
|
4548
|
+
word?: string;
|
|
4549
|
+
}
|
|
4550
|
+
interface GoogleCloudDialogflowV2StreamingRecognitionResult {
|
|
4551
|
+
/** The Speech confidence between 0.0 and 1.0 for the current portion of audio. A higher number indicates an estimated greater likelihood that the recognized words are correct. The default of 0.0 is a sentinel value indicating that confidence was not set. This field is typically only provided if `is_final` is true and you should not rely on it being accurate or even set. */
|
|
4552
|
+
confidence?: number;
|
|
4553
|
+
/** If `false`, the `StreamingRecognitionResult` represents an interim result that may change. If `true`, the recognizer will not return any further hypotheses about this piece of the audio. May only be populated for `message_type` = `TRANSCRIPT`. */
|
|
4554
|
+
isFinal?: boolean;
|
|
4555
|
+
/** Detected language code for the transcript. */
|
|
4556
|
+
languageCode?: string;
|
|
4557
|
+
/** Type of the result message. */
|
|
4558
|
+
messageType?: string;
|
|
4559
|
+
/** Time offset of the end of this Speech recognition result relative to the beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`. */
|
|
4560
|
+
speechEndOffset?: string;
|
|
4561
|
+
/** Word-specific information for the words recognized by Speech in transcript. Populated if and only if `message_type` = `TRANSCRIPT` and [InputAudioConfig.enable_word_info] is set. */
|
|
4562
|
+
speechWordInfo?: GoogleCloudDialogflowV2SpeechWordInfo[];
|
|
4563
|
+
/** Transcript text representing the words that the user spoke. Populated if and only if `message_type` = `TRANSCRIPT`. */
|
|
4564
|
+
transcript?: string;
|
|
4565
|
+
}
|
|
4504
4566
|
interface GoogleCloudDialogflowV2SuggestArticlesResponse {
|
|
4505
4567
|
/** Articles ordered by score in descending order. */
|
|
4506
4568
|
articleAnswers?: GoogleCloudDialogflowV2ArticleAnswer[];
|