Skip to content

Commit f4cee8f

Browse files
yoshi-automationsofisl
authored andcommitted
feat(dialogflow): update the API
#### dialogflow:v3beta1 The following keys were added: - schemas.GoogleCloudDialogflowCxV3beta1Action.properties.event.$ref - schemas.GoogleCloudDialogflowCxV3beta1Action.properties.event.description - schemas.GoogleCloudDialogflowCxV3beta1Action.properties.flowTransition.$ref - schemas.GoogleCloudDialogflowCxV3beta1Action.properties.flowTransition.description - schemas.GoogleCloudDialogflowCxV3beta1Action.properties.playbookTransition.$ref - schemas.GoogleCloudDialogflowCxV3beta1Action.properties.playbookTransition.description - schemas.GoogleCloudDialogflowCxV3beta1Event.description - schemas.GoogleCloudDialogflowCxV3beta1Event.id - schemas.GoogleCloudDialogflowCxV3beta1Event.properties.event.description - schemas.GoogleCloudDialogflowCxV3beta1Event.properties.event.type - schemas.GoogleCloudDialogflowCxV3beta1Event.type - schemas.GoogleCloudDialogflowCxV3beta1FlowTransition.description - schemas.GoogleCloudDialogflowCxV3beta1FlowTransition.id - schemas.GoogleCloudDialogflowCxV3beta1FlowTransition.properties.displayName.description - schemas.GoogleCloudDialogflowCxV3beta1FlowTransition.properties.displayName.readOnly - schemas.GoogleCloudDialogflowCxV3beta1FlowTransition.properties.displayName.type - schemas.GoogleCloudDialogflowCxV3beta1FlowTransition.properties.flow.description - schemas.GoogleCloudDialogflowCxV3beta1FlowTransition.properties.flow.type - schemas.GoogleCloudDialogflowCxV3beta1FlowTransition.type - schemas.GoogleCloudDialogflowCxV3beta1Playbook.properties.playbookType.description - schemas.GoogleCloudDialogflowCxV3beta1Playbook.properties.playbookType.enum - schemas.GoogleCloudDialogflowCxV3beta1Playbook.properties.playbookType.enumDescriptions - schemas.GoogleCloudDialogflowCxV3beta1Playbook.properties.playbookType.type - schemas.GoogleCloudDialogflowCxV3beta1PlaybookTransition.description - schemas.GoogleCloudDialogflowCxV3beta1PlaybookTransition.id - schemas.GoogleCloudDialogflowCxV3beta1PlaybookTransition.properties.displayName.description - schemas.GoogleCloudDialogflowCxV3beta1PlaybookTransition.properties.displayName.readOnly - schemas.GoogleCloudDialogflowCxV3beta1PlaybookTransition.properties.displayName.type - schemas.GoogleCloudDialogflowCxV3beta1PlaybookTransition.properties.playbook.description - schemas.GoogleCloudDialogflowCxV3beta1PlaybookTransition.properties.playbook.type - schemas.GoogleCloudDialogflowCxV3beta1PlaybookTransition.type
1 parent 8a3fb81 commit f4cee8f

File tree

2 files changed

+121
-1
lines changed

2 files changed

+121
-1
lines changed

‎discovery/dialogflow-v3beta1.json

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5343,7 +5343,7 @@
53435343
}
53445344
}
53455345
},
5346-
"revision": "20250310",
5346+
"revision": "20250313",
53475347
"rootUrl": "https://dialogflow.googleapis.com/",
53485348
"schemas": {
53495349
"GoogleCloudDialogflowCxV3AdvancedSettings": {
@@ -7676,14 +7676,26 @@
76767676
"$ref": "GoogleCloudDialogflowCxV3beta1AgentUtterance",
76777677
"description": "Optional. Action performed by the agent as a message."
76787678
},
7679+
"event": {
7680+
"$ref": "GoogleCloudDialogflowCxV3beta1Event",
7681+
"description": "Optional. The agent received an event from the customer or a system event is emitted."
7682+
},
76797683
"flowInvocation": {
76807684
"$ref": "GoogleCloudDialogflowCxV3beta1FlowInvocation",
76817685
"description": "Optional. Action performed on behalf of the agent by invoking a CX flow."
76827686
},
7687+
"flowTransition": {
7688+
"$ref": "GoogleCloudDialogflowCxV3beta1FlowTransition",
7689+
"description": "Optional. Action performed on behalf of the agent by transitioning to a target CX flow."
7690+
},
76837691
"playbookInvocation": {
76847692
"$ref": "GoogleCloudDialogflowCxV3beta1PlaybookInvocation",
76857693
"description": "Optional. Action performed on behalf of the agent by invoking a child playbook."
76867694
},
7695+
"playbookTransition": {
7696+
"$ref": "GoogleCloudDialogflowCxV3beta1PlaybookTransition",
7697+
"description": "Optional. Action performed on behalf of the agent by transitioning to a target playbook."
7698+
},
76877699
"toolUse": {
76887700
"$ref": "GoogleCloudDialogflowCxV3beta1ToolUse",
76897701
"description": "Optional. Action performed on behalf of the agent by calling a plugin tool."
@@ -9507,6 +9519,17 @@
95079519
},
95089520
"type": "object"
95099521
},
9522+
"GoogleCloudDialogflowCxV3beta1Event": {
9523+
"description": "Event represents the event sent by the customer.",
9524+
"id": "GoogleCloudDialogflowCxV3beta1Event",
9525+
"properties": {
9526+
"event": {
9527+
"description": "Required. Name of the event.",
9528+
"type": "string"
9529+
}
9530+
},
9531+
"type": "object"
9532+
},
95109533
"GoogleCloudDialogflowCxV3beta1EventHandler": {
95119534
"description": "An event handler specifies an event that can be handled during a session. When the specified event happens, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the event, it will be called. * If there is a `target_page` associated with the event, the session will transition into the specified page. * If there is a `target_flow` associated with the event, the session will transition into the specified flow.",
95129535
"id": "GoogleCloudDialogflowCxV3beta1EventHandler",
@@ -10341,6 +10364,22 @@
1034110364
},
1034210365
"type": "object"
1034310366
},
10367+
"GoogleCloudDialogflowCxV3beta1FlowTransition": {
10368+
"description": "Stores metadata of the transition to a target CX flow. Flow transition actions exit the caller playbook and enter the child flow.",
10369+
"id": "GoogleCloudDialogflowCxV3beta1FlowTransition",
10370+
"properties": {
10371+
"displayName": {
10372+
"description": "Output only. The display name of the flow.",
10373+
"readOnly": true,
10374+
"type": "string"
10375+
},
10376+
"flow": {
10377+
"description": "Required. The unique identifier of the flow. Format: `projects//locations//agents/`.",
10378+
"type": "string"
10379+
}
10380+
},
10381+
"type": "object"
10382+
},
1034410383
"GoogleCloudDialogflowCxV3beta1FlowValidationResult": {
1034510384
"description": "The response message for Flows.GetFlowValidationResult.",
1034610385
"id": "GoogleCloudDialogflowCxV3beta1FlowValidationResult",
@@ -12347,6 +12386,20 @@
1234712386
},
1234812387
"type": "array"
1234912388
},
12389+
"playbookType": {
12390+
"description": "Optional. Type of the playbook.",
12391+
"enum": [
12392+
"PLAYBOOK_TYPE_UNSPECIFIED",
12393+
"TASK",
12394+
"ROUTINE"
12395+
],
12396+
"enumDescriptions": [
12397+
"Unspecified type. Default to TASK.",
12398+
"Task playbook.",
12399+
"Routine playbook."
12400+
],
12401+
"type": "string"
12402+
},
1235012403
"referencedFlows": {
1235112404
"description": "Output only. The resource name of flows referenced by the current playbook in the instructions.",
1235212405
"items": {
@@ -12507,6 +12560,22 @@
1250712560
},
1250812561
"type": "object"
1250912562
},
12563+
"GoogleCloudDialogflowCxV3beta1PlaybookTransition": {
12564+
"description": "Stores metadata of the transition to another target playbook. Playbook transition actions exit the caller playbook and enter the target playbook.",
12565+
"id": "GoogleCloudDialogflowCxV3beta1PlaybookTransition",
12566+
"properties": {
12567+
"displayName": {
12568+
"description": "Output only. The display name of the playbook.",
12569+
"readOnly": true,
12570+
"type": "string"
12571+
},
12572+
"playbook": {
12573+
"description": "Required. The unique identifier of the playbook. Format: `projects//locations//agents//playbooks/`.",
12574+
"type": "string"
12575+
}
12576+
},
12577+
"type": "object"
12578+
},
1251012579
"GoogleCloudDialogflowCxV3beta1PlaybookVersion": {
1251112580
"description": "Playbook version is a snapshot of the playbook at certain timestamp.",
1251212581
"id": "GoogleCloudDialogflowCxV3beta1PlaybookVersion",

‎src/apis/dialogflow/v3beta1.ts

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,26 @@ export namespace dialogflow_v3beta1 {
260260
* Optional. Action performed by the agent as a message.
261261
*/
262262
agentUtterance?: Schema$GoogleCloudDialogflowCxV3beta1AgentUtterance;
263+
/**
264+
* Optional. The agent received an event from the customer or a system event is emitted.
265+
*/
266+
event?: Schema$GoogleCloudDialogflowCxV3beta1Event;
263267
/**
264268
* Optional. Action performed on behalf of the agent by invoking a CX flow.
265269
*/
266270
flowInvocation?: Schema$GoogleCloudDialogflowCxV3beta1FlowInvocation;
271+
/**
272+
* Optional. Action performed on behalf of the agent by transitioning to a target CX flow.
273+
*/
274+
flowTransition?: Schema$GoogleCloudDialogflowCxV3beta1FlowTransition;
267275
/**
268276
* Optional. Action performed on behalf of the agent by invoking a child playbook.
269277
*/
270278
playbookInvocation?: Schema$GoogleCloudDialogflowCxV3beta1PlaybookInvocation;
279+
/**
280+
* Optional. Action performed on behalf of the agent by transitioning to a target playbook.
281+
*/
282+
playbookTransition?: Schema$GoogleCloudDialogflowCxV3beta1PlaybookTransition;
271283
/**
272284
* Optional. Action performed on behalf of the agent by calling a plugin tool.
273285
*/
@@ -1618,6 +1630,15 @@ export namespace dialogflow_v3beta1 {
16181630
*/
16191631
webhookOverrides?: Schema$GoogleCloudDialogflowCxV3beta1Webhook[];
16201632
}
1633+
/**
1634+
* Event represents the event sent by the customer.
1635+
*/
1636+
export interface Schema$GoogleCloudDialogflowCxV3beta1Event {
1637+
/**
1638+
* Required. Name of the event.
1639+
*/
1640+
event?: string | null;
1641+
}
16211642
/**
16221643
* An event handler specifies an event that can be handled during a session. When the specified event happens, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the event, it will be called. * If there is a `target_page` associated with the event, the session will transition into the specified page. * If there is a `target_flow` associated with the event, the session will transition into the specified flow.
16231644
*/
@@ -2184,6 +2205,19 @@ export namespace dialogflow_v3beta1 {
21842205
*/
21852206
supportedResponseLanguageCodes?: string[] | null;
21862207
}
2208+
/**
2209+
* Stores metadata of the transition to a target CX flow. Flow transition actions exit the caller playbook and enter the child flow.
2210+
*/
2211+
export interface Schema$GoogleCloudDialogflowCxV3beta1FlowTransition {
2212+
/**
2213+
* Output only. The display name of the flow.
2214+
*/
2215+
displayName?: string | null;
2216+
/**
2217+
* Required. The unique identifier of the flow. Format: `projects//locations//agents/`.
2218+
*/
2219+
flow?: string | null;
2220+
}
21872221
/**
21882222
* The response message for Flows.GetFlowValidationResult.
21892223
*/
@@ -3621,6 +3655,10 @@ export namespace dialogflow_v3beta1 {
36213655
* Optional. Defined structured output parameters for this playbook.
36223656
*/
36233657
outputParameterDefinitions?: Schema$GoogleCloudDialogflowCxV3beta1ParameterDefinition[];
3658+
/**
3659+
* Optional. Type of the playbook.
3660+
*/
3661+
playbookType?: string | null;
36243662
/**
36253663
* Output only. The resource name of flows referenced by the current playbook in the instructions.
36263664
*/
@@ -3723,6 +3761,19 @@ export namespace dialogflow_v3beta1 {
37233761
*/
37243762
text?: string | null;
37253763
}
3764+
/**
3765+
* Stores metadata of the transition to another target playbook. Playbook transition actions exit the caller playbook and enter the target playbook.
3766+
*/
3767+
export interface Schema$GoogleCloudDialogflowCxV3beta1PlaybookTransition {
3768+
/**
3769+
* Output only. The display name of the playbook.
3770+
*/
3771+
displayName?: string | null;
3772+
/**
3773+
* Required. The unique identifier of the playbook. Format: `projects//locations//agents//playbooks/`.
3774+
*/
3775+
playbook?: string | null;
3776+
}
37263777
/**
37273778
* Playbook version is a snapshot of the playbook at certain timestamp.
37283779
*/

0 commit comments

Comments
 (0)