Skip to content

Commit

Permalink
feat(dialogflow): update the API
Browse files Browse the repository at this point in the history
#### dialogflow:v2beta1

The following keys were added:
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.description
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.flatPath
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.httpMethod
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.id
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameterOrder
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.intentView.description
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.intentView.enum
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.intentView.enumDescriptions
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.intentView.location
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.intentView.type
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.languageCode.description
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.languageCode.location
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.languageCode.type
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.pageSize.description
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.pageSize.format
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.pageSize.location
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.pageSize.type
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.pageToken.description
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.pageToken.location
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.pageToken.type
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.parent.description
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.parent.location
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.parent.pattern
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.parent.required
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.parent.type
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.path
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.response.$ref
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.scopes
- schemas.GoogleCloudDialogflowV2beta1AutomatedAgentReply.properties.matchConfidence.description
- schemas.GoogleCloudDialogflowV2beta1AutomatedAgentReply.properties.matchConfidence.format
- schemas.GoogleCloudDialogflowV2beta1AutomatedAgentReply.properties.matchConfidence.type
- schemas.GoogleCloudDialogflowV2beta1AutomatedAgentReply.properties.parameters.additionalProperties.description
- schemas.GoogleCloudDialogflowV2beta1AutomatedAgentReply.properties.parameters.additionalProperties.type
- schemas.GoogleCloudDialogflowV2beta1AutomatedAgentReply.properties.parameters.description
- schemas.GoogleCloudDialogflowV2beta1AutomatedAgentReply.properties.parameters.type

The following keys were changed:
- resources.projects.resources.agent.resources.environments.resources.intents.methods.list.parameters.parent.description
- resources.projects.resources.agent.resources.intents.methods.list.parameters.parent.description
- resources.projects.resources.knowledgeBases.resources.documents.methods.import.description
- resources.projects.resources.locations.resources.agent.resources.intents.methods.list.parameters.parent.description
- resources.projects.resources.locations.resources.knowledgeBases.resources.documents.methods.import.description
- schemas.GoogleCloudDialogflowV2beta1Agent.description
- schemas.GoogleCloudDialogflowV2beta1AutomatedAgentReply.properties.cxSessionParameters.description

#### dialogflow:v3beta1

The following keys were added:
- schemas.GoogleCloudDialogflowCxV3beta1Webhook.properties.serviceDirectory.$ref
- schemas.GoogleCloudDialogflowCxV3beta1Webhook.properties.serviceDirectory.description
- schemas.GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig.description
- schemas.GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig.id
- schemas.GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig.properties.genericWebService.$ref
- schemas.GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig.properties.genericWebService.description
- schemas.GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig.properties.service.description
- schemas.GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig.properties.service.type
- schemas.GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig.type

The following keys were changed:
- schemas.GoogleCloudDialogflowCxV3beta1QueryParameters.properties.parameters.description
- schemas.GoogleCloudDialogflowCxV3beta1QueryParameters.properties.payload.description
- schemas.GoogleCloudDialogflowCxV3beta1SecuritySettings.properties.purgeDataTypes.items.enumDescriptions
- schemas.GoogleCloudDialogflowCxV3beta1SecuritySettings.properties.redactionScope.description
- schemas.GoogleCloudDialogflowCxV3beta1SecuritySettings.properties.retentionWindowDays.description

#### dialogflow:v2

The following keys were added:
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.description
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.flatPath
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.httpMethod
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.id
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameterOrder
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.intentView.description
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.intentView.enum
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.intentView.enumDescriptions
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.intentView.location
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.intentView.type
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.languageCode.description
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.languageCode.location
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.languageCode.type
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.pageSize.description
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.pageSize.format
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.pageSize.location
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.pageSize.type
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.pageToken.description
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.pageToken.location
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.pageToken.type
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.parent.description
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.parent.location
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.parent.pattern
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.parent.required
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.parameters.parent.type
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.path
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.response.$ref
- resources.projects.resources.locations.resources.agent.resources.environments.resources.intents.methods.list.scopes

The following keys were changed:
- resources.projects.resources.agent.resources.environments.resources.intents.methods.list.parameters.parent.description
- resources.projects.resources.agent.resources.intents.methods.list.parameters.parent.description
- resources.projects.resources.locations.resources.agent.resources.intents.methods.list.parameters.parent.description
- schemas.GoogleCloudDialogflowV2Agent.description
- schemas.GoogleCloudDialogflowV2AutomatedAgentReply.properties.detectIntentResponse.description

#### dialogflow:v3

The following keys were added:
- schemas.GoogleCloudDialogflowCxV3Webhook.properties.serviceDirectory.$ref
- schemas.GoogleCloudDialogflowCxV3Webhook.properties.serviceDirectory.description
- schemas.GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig.description
- schemas.GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig.id
- schemas.GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig.properties.genericWebService.$ref
- schemas.GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig.properties.genericWebService.description
- schemas.GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig.properties.service.description
- schemas.GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig.properties.service.type
- schemas.GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig.type

The following keys were changed:
- schemas.GoogleCloudDialogflowCxV3QueryParameters.properties.parameters.description
- schemas.GoogleCloudDialogflowCxV3QueryParameters.properties.payload.description
- schemas.GoogleCloudDialogflowCxV3SecuritySettings.properties.purgeDataTypes.items.enumDescriptions
- schemas.GoogleCloudDialogflowCxV3SecuritySettings.properties.redactionScope.description
- schemas.GoogleCloudDialogflowCxV3SecuritySettings.properties.retentionWindowDays.description
  • Loading branch information
yoshi-automation authored and sofisl committed May 21, 2021
1 parent b198f70 commit 31b0300
Show file tree
Hide file tree
Showing 8 changed files with 3,261 additions and 2,522 deletions.
71 changes: 65 additions & 6 deletions discovery/dialogflow-v2.json
Expand Up @@ -1021,7 +1021,7 @@
"type": "string"
},
"parent": {
"description": "Required. The agent to list all intents from. Format: `projects//agent`.",
"description": "Required. The agent to list all intents from. Format: `projects//agent` or `projects//locations//agent`. Alternatively, you can specify the environment to list intents for. Format: `projects//agent/environments/` or `projects//locations//agent/environments/`. Note: training phrases of the intents will not be returned for non-draft environment.",
"location": "path",
"pattern": "^projects/[^/]+/agent/environments/[^/]+$",
"required": true,
Expand Down Expand Up @@ -1636,7 +1636,7 @@
"type": "string"
},
"parent": {
"description": "Required. The agent to list all intents from. Format: `projects//agent`.",
"description": "Required. The agent to list all intents from. Format: `projects//agent` or `projects//locations//agent`. Alternatively, you can specify the environment to list intents for. Format: `projects//agent/environments/` or `projects//locations//agent/environments/`. Note: training phrases of the intents will not be returned for non-draft environment.",
"location": "path",
"pattern": "^projects/[^/]+/agent$",
"required": true,
Expand Down Expand Up @@ -4458,6 +4458,65 @@
}
},
"resources": {
"intents": {
"methods": {
"list": {
"description": "Returns the list of all intents in the specified agent.",
"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/intents",
"httpMethod": "GET",
"id": "dialogflow.projects.locations.agent.environments.intents.list",
"parameterOrder": [
"parent"
],
"parameters": {
"intentView": {
"description": "Optional. The resource view to apply to the returned intent.",
"enum": [
"INTENT_VIEW_UNSPECIFIED",
"INTENT_VIEW_FULL"
],
"enumDescriptions": [
"Training phrases field is not populated in the response.",
"All fields are populated."
],
"location": "query",
"type": "string"
},
"languageCode": {
"description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. The next_page_token value returned from a previous list request.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The agent to list all intents from. Format: `projects//agent` or `projects//locations//agent`. Alternatively, you can specify the environment to list intents for. Format: `projects//agent/environments/` or `projects//locations//agent/environments/`. Note: training phrases of the intents will not be returned for non-draft environment.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2/{+parent}/intents",
"response": {
"$ref": "GoogleCloudDialogflowV2ListIntentsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/dialogflow"
]
}
}
},
"users": {
"resources": {
"sessions": {
Expand Down Expand Up @@ -5055,7 +5114,7 @@
"type": "string"
},
"parent": {
"description": "Required. The agent to list all intents from. Format: `projects//agent`.",
"description": "Required. The agent to list all intents from. Format: `projects//agent` or `projects//locations//agent`. Alternatively, you can specify the environment to list intents for. Format: `projects//agent/environments/` or `projects//locations//agent/environments/`. Note: training phrases of the intents will not be returned for non-draft environment.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/agent$",
"required": true,
Expand Down Expand Up @@ -6856,7 +6915,7 @@
}
}
},
"revision": "20210426",
"revision": "20210517",
"rootUrl": "https://dialogflow.googleapis.com/",
"schemas": {
"GoogleCloudDialogflowCxV3AudioInput": {
Expand Down Expand Up @@ -9862,7 +9921,7 @@
"type": "object"
},
"GoogleCloudDialogflowV2Agent": {
"description": "A Dialogflow agent is a virtual agent that handles conversations with your end-users. It is a natural language understanding module that understands the nuances of human language. Dialogflow translates end-user text or audio during a conversation to structured data that your apps and services can understand. You design and build a Dialogflow agent to handle the types of conversations required for your system. For more information about agents, see the [Agent guide](https://cloud.google.com/dialogflow/docs/agents-overview).",
"description": "A Dialogflow agent is a virtual agent that handles conversations with your end-users. It is a natural language understanding module that understands the nuances of human language. Dialogflow translates end-user text or audio during a conversation to structured data that your apps and services can understand. You design and build a Dialogflow agent to handle the types of conversations required for your system. For more information about agents, see the [Agent guide](https://cloud.google.com/dialogflow/docs/agents-overview). ",
"id": "GoogleCloudDialogflowV2Agent",
"properties": {
"apiVersion": {
Expand Down Expand Up @@ -10227,7 +10286,7 @@
"properties": {
"detectIntentResponse": {
"$ref": "GoogleCloudDialogflowV2DetectIntentResponse",
"description": "Response of the Dialogflow Sessions.DetectIntent call."
"description": "Required. Response of the Dialogflow Sessions.DetectIntent call."
}
},
"type": "object"
Expand Down
88 changes: 80 additions & 8 deletions discovery/dialogflow-v2beta1.json
Expand Up @@ -1021,7 +1021,7 @@
"type": "string"
},
"parent": {
"description": "Required. The agent to list all intents from. Format: `projects//agent`.",
"description": "Required. The agent to list all intents from. Format: `projects//agent` or `projects//locations//agent`. Alternatively, you can specify the environment to list intents for. Format: `projects//agent/environments/` or `projects//locations//agent/environments/`. Note: training phrases of the intents will not be returned for non-draft environment.",
"location": "path",
"pattern": "^projects/[^/]+/agent/environments/[^/]+$",
"required": true,
Expand Down Expand Up @@ -1636,7 +1636,7 @@
"type": "string"
},
"parent": {
"description": "Required. The agent to list all intents from. Format: `projects//agent`.",
"description": "Required. The agent to list all intents from. Format: `projects//agent` or `projects//locations//agent`. Alternatively, you can specify the environment to list intents for. Format: `projects//agent/environments/` or `projects//locations//agent/environments/`. Note: training phrases of the intents will not be returned for non-draft environment.",
"location": "path",
"pattern": "^projects/[^/]+/agent$",
"required": true,
Expand Down Expand Up @@ -3657,7 +3657,7 @@
]
},
"import": {
"description": "Create documents by importing data from external sources.",
"description": "Create documents by importing data from external sources. Dialogflow supports up to 350 documents in each request. If you try to import more, Dialogflow will return an error.",
"flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents:import",
"httpMethod": "POST",
"id": "dialogflow.projects.knowledgeBases.documents.import",
Expand Down Expand Up @@ -4667,6 +4667,65 @@
}
},
"resources": {
"intents": {
"methods": {
"list": {
"description": "Returns the list of all intents in the specified agent.",
"flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}/intents",
"httpMethod": "GET",
"id": "dialogflow.projects.locations.agent.environments.intents.list",
"parameterOrder": [
"parent"
],
"parameters": {
"intentView": {
"description": "Optional. The resource view to apply to the returned intent.",
"enum": [
"INTENT_VIEW_UNSPECIFIED",
"INTENT_VIEW_FULL"
],
"enumDescriptions": [
"Training phrases field is not populated in the response.",
"All fields are populated."
],
"location": "query",
"type": "string"
},
"languageCode": {
"description": "Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. The next_page_token value returned from a previous list request.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The agent to list all intents from. Format: `projects//agent` or `projects//locations//agent`. Alternatively, you can specify the environment to list intents for. Format: `projects//agent/environments/` or `projects//locations//agent/environments/`. Note: training phrases of the intents will not be returned for non-draft environment.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2beta1/{+parent}/intents",
"response": {
"$ref": "GoogleCloudDialogflowV2beta1ListIntentsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/dialogflow"
]
}
}
},
"users": {
"resources": {
"sessions": {
Expand Down Expand Up @@ -5264,7 +5323,7 @@
"type": "string"
},
"parent": {
"description": "Required. The agent to list all intents from. Format: `projects//agent`.",
"description": "Required. The agent to list all intents from. Format: `projects//agent` or `projects//locations//agent`. Alternatively, you can specify the environment to list intents for. Format: `projects//agent/environments/` or `projects//locations//agent/environments/`. Note: training phrases of the intents will not be returned for non-draft environment.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/agent$",
"required": true,
Expand Down Expand Up @@ -6849,7 +6908,7 @@
]
},
"import": {
"description": "Create documents by importing data from external sources.",
"description": "Create documents by importing data from external sources. Dialogflow supports up to 350 documents in each request. If you try to import more, Dialogflow will return an error.",
"flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/knowledgeBases/{knowledgeBasesId}/documents:import",
"httpMethod": "POST",
"id": "dialogflow.projects.locations.knowledgeBases.documents.import",
Expand Down Expand Up @@ -7188,7 +7247,7 @@
}
}
},
"revision": "20210426",
"revision": "20210517",
"rootUrl": "https://dialogflow.googleapis.com/",
"schemas": {
"GoogleCloudDialogflowCxV3AudioInput": {
Expand Down Expand Up @@ -11818,7 +11877,7 @@
"type": "object"
},
"GoogleCloudDialogflowV2beta1Agent": {
"description": "A Dialogflow agent is a virtual agent that handles conversations with your end-users. It is a natural language understanding module that understands the nuances of human language. Dialogflow translates end-user text or audio during a conversation to structured data that your apps and services can understand. You design and build a Dialogflow agent to handle the types of conversations required for your system. For more information about agents, see the [Agent guide](https://cloud.google.com/dialogflow/docs/agents-overview).",
"description": "A Dialogflow agent is a virtual agent that handles conversations with your end-users. It is a natural language understanding module that understands the nuances of human language. Dialogflow translates end-user text or audio during a conversation to structured data that your apps and services can understand. You design and build a Dialogflow agent to handle the types of conversations required for your system. For more information about agents, see the [Agent guide](https://cloud.google.com/dialogflow/docs/agents-overview). ",
"id": "GoogleCloudDialogflowV2beta1Agent",
"properties": {
"apiVersion": {
Expand Down Expand Up @@ -12210,7 +12269,7 @@
"description": "Properties of the object.",
"type": "any"
},
"description": "The collection of current Dialogflow CX agent session parameters at the time of this response.",
"description": "The collection of current Dialogflow CX agent session parameters at the time of this response. Deprecated: Use `parameters` instead.",
"type": "object"
},
"detectIntentResponse": {
Expand All @@ -12225,6 +12284,19 @@
"description": "Name of the intent if an intent is matched for the query. For a V2 query, the value format is `projects//locations/ /agent/intents/`. For a V3 query, the value format is `projects//locations/ /agents//intents/`.",
"type": "string"
},
"matchConfidence": {
"description": "The confidence of the match. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation.",
"format": "float",
"type": "number"
},
"parameters": {
"additionalProperties": {
"description": "Properties of the object.",
"type": "any"
},
"description": "The collection of current parameters at the time of this response.",
"type": "object"
},
"responseMessages": {
"description": "Response messages from the automated agent.",
"items": {
Expand Down

0 comments on commit 31b0300

Please sign in to comment.