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 changed:
- schemas.GoogleCloudDialogflowV2beta1IntentTrainingPhrase.properties.type.enumDescriptions
- schemas.GoogleProtobufEmpty.description

#### dialogflow:v3beta1

The following keys were added:
- schemas.GoogleCloudDialogflowCxV3beta1Agent.properties.locked.description
- schemas.GoogleCloudDialogflowCxV3beta1Agent.properties.locked.type
- schemas.GoogleCloudDialogflowCxV3beta1ExportAgentRequest.properties.dataFormat.description
- schemas.GoogleCloudDialogflowCxV3beta1ExportAgentRequest.properties.dataFormat.enum
- schemas.GoogleCloudDialogflowCxV3beta1ExportAgentRequest.properties.dataFormat.enumDescriptions
- schemas.GoogleCloudDialogflowCxV3beta1ExportAgentRequest.properties.dataFormat.type

The following keys were changed:
- schemas.GoogleCloudDialogflowV2beta1IntentTrainingPhrase.properties.type.enumDescriptions
- schemas.GoogleProtobufEmpty.description

#### dialogflow:v2

The following keys were changed:
- schemas.GoogleCloudDialogflowV2beta1IntentTrainingPhrase.properties.type.enumDescriptions
- schemas.GoogleProtobufEmpty.description

#### dialogflow:v3

The following keys were added:
- schemas.GoogleCloudDialogflowCxV3Agent.properties.locked.description
- schemas.GoogleCloudDialogflowCxV3Agent.properties.locked.type
- schemas.GoogleCloudDialogflowCxV3ExportAgentRequest.properties.dataFormat.description
- schemas.GoogleCloudDialogflowCxV3ExportAgentRequest.properties.dataFormat.enum
- schemas.GoogleCloudDialogflowCxV3ExportAgentRequest.properties.dataFormat.enumDescriptions
- schemas.GoogleCloudDialogflowCxV3ExportAgentRequest.properties.dataFormat.type

The following keys were changed:
- schemas.GoogleCloudDialogflowV2beta1IntentTrainingPhrase.properties.type.enumDescriptions
- schemas.GoogleProtobufEmpty.description
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 1, 2022
1 parent 58847ee commit 26ecf70
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 16 deletions.
6 changes: 3 additions & 3 deletions discovery/dialogflow-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -8077,7 +8077,7 @@
}
}
},
"revision": "20220314",
"revision": "20220330",
"rootUrl": "https://dialogflow.googleapis.com/",
"schemas": {
"GoogleCloudDialogflowCxV3AudioInput": {
Expand Down Expand Up @@ -17846,7 +17846,7 @@
"enumDescriptions": [
"Not specified. This value should never be used.",
"Examples do not contain @-prefixed entity type names, but example parts can be annotated with entity types.",
"Templates are not annotated with entity types, but they can contain @-prefixed entity type names as substrings. Template mode has been deprecated. Example mode is the only supported way to create new training phrases. If you have existing training phrases that you've created in template mode, those will continue to work."
"Templates are not annotated with entity types, but they can contain @-prefixed entity type names as substrings. Note: Template mode has been deprecated. Example mode is the only supported way to create new training phrases. If you have existing training phrases in template mode, they will be removed during training and it can cause a drop in agent performance."
],
"type": "string"
}
Expand Down Expand Up @@ -18665,7 +18665,7 @@
"type": "object"
},
"GoogleProtobufEmpty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.",
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
"id": "GoogleProtobufEmpty",
"properties": {},
"type": "object"
Expand Down
6 changes: 3 additions & 3 deletions discovery/dialogflow-v2beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -7431,7 +7431,7 @@
}
}
},
"revision": "20220314",
"revision": "20220330",
"rootUrl": "https://dialogflow.googleapis.com/",
"schemas": {
"GoogleCloudDialogflowCxV3AudioInput": {
Expand Down Expand Up @@ -16190,7 +16190,7 @@
"enumDescriptions": [
"Not specified. This value should never be used.",
"Examples do not contain @-prefixed entity type names, but example parts can be annotated with entity types.",
"Templates are not annotated with entity types, but they can contain @-prefixed entity type names as substrings. Template mode has been deprecated. Example mode is the only supported way to create new training phrases. If you have existing training phrases that you've created in template mode, those will continue to work."
"Templates are not annotated with entity types, but they can contain @-prefixed entity type names as substrings. Note: Template mode has been deprecated. Example mode is the only supported way to create new training phrases. If you have existing training phrases in template mode, they will be removed during training and it can cause a drop in agent performance."
],
"type": "string"
}
Expand Down Expand Up @@ -18176,7 +18176,7 @@
"type": "object"
},
"GoogleProtobufEmpty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.",
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
"id": "GoogleProtobufEmpty",
"properties": {},
"type": "object"
Expand Down
22 changes: 19 additions & 3 deletions discovery/dialogflow-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -3820,7 +3820,7 @@
}
}
},
"revision": "20220314",
"revision": "20220330",
"rootUrl": "https://dialogflow.googleapis.com/",
"schemas": {
"GoogleCloudDialogflowCxV3AdvancedSettings": {
Expand Down Expand Up @@ -3881,6 +3881,10 @@
"description": "Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.",
"type": "boolean"
},
"locked": {
"description": "Indiciates whether the agent is locked for changes. If the agent is locked, modifications to the agent will be rejected except for RestoreAgent.",
"type": "boolean"
},
"name": {
"description": "The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: `projects//locations//agents/`.",
"type": "string"
Expand Down Expand Up @@ -4880,6 +4884,18 @@
"description": "Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the agent to. The format of this URI must be `gs:///`. If left unspecified, the serialized agent is returned inline. Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).",
"type": "string"
},
"dataFormat": {
"description": "Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.",
"enum": [
"DATA_FORMAT_UNSPECIFIED",
"BLOB"
],
"enumDescriptions": [
"Unspecified format.",
"Agent content will be exported as raw bytes."
],
"type": "string"
},
"environment": {
"description": "Optional. Environment name. If not set, draft environment is assumed. Format: `projects//locations//agents//environments/`.",
"type": "string"
Expand Down Expand Up @@ -13282,7 +13298,7 @@
"enumDescriptions": [
"Not specified. This value should never be used.",
"Examples do not contain @-prefixed entity type names, but example parts can be annotated with entity types.",
"Templates are not annotated with entity types, but they can contain @-prefixed entity type names as substrings. Template mode has been deprecated. Example mode is the only supported way to create new training phrases. If you have existing training phrases that you've created in template mode, those will continue to work."
"Templates are not annotated with entity types, but they can contain @-prefixed entity type names as substrings. Note: Template mode has been deprecated. Example mode is the only supported way to create new training phrases. If you have existing training phrases in template mode, they will be removed during training and it can cause a drop in agent performance."
],
"type": "string"
}
Expand Down Expand Up @@ -14101,7 +14117,7 @@
"type": "object"
},
"GoogleProtobufEmpty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.",
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
"id": "GoogleProtobufEmpty",
"properties": {},
"type": "object"
Expand Down
22 changes: 19 additions & 3 deletions discovery/dialogflow-v3beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3820,7 +3820,7 @@
}
}
},
"revision": "20220314",
"revision": "20220330",
"rootUrl": "https://dialogflow.googleapis.com/",
"schemas": {
"GoogleCloudDialogflowCxV3AudioInput": {
Expand Down Expand Up @@ -5573,6 +5573,10 @@
"description": "Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.",
"type": "boolean"
},
"locked": {
"description": "Indiciates whether the agent is locked for changes. If the agent is locked, modifications to the agent will be rejected except for RestoreAgent.",
"type": "boolean"
},
"name": {
"description": "The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: `projects//locations//agents/`.",
"type": "string"
Expand Down Expand Up @@ -6572,6 +6576,18 @@
"description": "Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the agent to. The format of this URI must be `gs:///`. If left unspecified, the serialized agent is returned inline. Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).",
"type": "string"
},
"dataFormat": {
"description": "Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.",
"enum": [
"DATA_FORMAT_UNSPECIFIED",
"BLOB"
],
"enumDescriptions": [
"Unspecified format.",
"Agent content will be exported as raw bytes."
],
"type": "string"
},
"environment": {
"description": "Optional. Environment name. If not set, draft environment is assumed. Format: `projects//locations//agents//environments/`.",
"type": "string"
Expand Down Expand Up @@ -13282,7 +13298,7 @@
"enumDescriptions": [
"Not specified. This value should never be used.",
"Examples do not contain @-prefixed entity type names, but example parts can be annotated with entity types.",
"Templates are not annotated with entity types, but they can contain @-prefixed entity type names as substrings. Template mode has been deprecated. Example mode is the only supported way to create new training phrases. If you have existing training phrases that you've created in template mode, those will continue to work."
"Templates are not annotated with entity types, but they can contain @-prefixed entity type names as substrings. Note: Template mode has been deprecated. Example mode is the only supported way to create new training phrases. If you have existing training phrases in template mode, they will be removed during training and it can cause a drop in agent performance."
],
"type": "string"
}
Expand Down Expand Up @@ -14101,7 +14117,7 @@
"type": "object"
},
"GoogleProtobufEmpty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.",
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
"id": "GoogleProtobufEmpty",
"properties": {},
"type": "object"
Expand Down
2 changes: 1 addition & 1 deletion src/apis/dialogflow/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7649,7 +7649,7 @@ export namespace dialogflow_v2 {
response?: {[key: string]: any} | null;
}
/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} The JSON representation for `Empty` is empty JSON object `{\}`.
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/
export interface Schema$GoogleProtobufEmpty {}
/**
Expand Down
2 changes: 1 addition & 1 deletion src/apis/dialogflow/v2beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7730,7 +7730,7 @@ export namespace dialogflow_v2beta1 {
response?: {[key: string]: any} | null;
}
/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} The JSON representation for `Empty` is empty JSON object `{\}`.
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/
export interface Schema$GoogleProtobufEmpty {}
/**
Expand Down
16 changes: 15 additions & 1 deletion src/apis/dialogflow/v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ export namespace dialogflow_v3 {
* Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.
*/
enableStackdriverLogging?: boolean | null;
/**
* Indiciates whether the agent is locked for changes. If the agent is locked, modifications to the agent will be rejected except for RestoreAgent.
*/
locked?: boolean | null;
/**
* The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: `projects//locations//agents/`.
*/
Expand Down Expand Up @@ -2175,6 +2179,10 @@ export namespace dialogflow_v3 {
* Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the agent to. The format of this URI must be `gs:///`. If left unspecified, the serialized agent is returned inline. Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
*/
agentUri?: string | null;
/**
* Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.
*/
dataFormat?: string | null;
/**
* Optional. Environment name. If not set, draft environment is assumed. Format: `projects//locations//agents//environments/`.
*/
Expand Down Expand Up @@ -7468,7 +7476,7 @@ export namespace dialogflow_v3 {
response?: {[key: string]: any} | null;
}
/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} The JSON representation for `Empty` is empty JSON object `{\}`.
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/
export interface Schema$GoogleProtobufEmpty {}
/**
Expand Down Expand Up @@ -7925,6 +7933,7 @@ export namespace dialogflow_v3 {
* // "displayName": "my_displayName",
* // "enableSpellCorrection": false,
* // "enableStackdriverLogging": false,
* // "locked": false,
* // "name": "my_name",
* // "securitySettings": "my_securitySettings",
* // "speechToTextSettings": {},
Expand All @@ -7945,6 +7954,7 @@ export namespace dialogflow_v3 {
* // "displayName": "my_displayName",
* // "enableSpellCorrection": false,
* // "enableStackdriverLogging": false,
* // "locked": false,
* // "name": "my_name",
* // "securitySettings": "my_securitySettings",
* // "speechToTextSettings": {},
Expand Down Expand Up @@ -8222,6 +8232,7 @@ export namespace dialogflow_v3 {
* // request body parameters
* // {
* // "agentUri": "my_agentUri",
* // "dataFormat": "my_dataFormat",
* // "environment": "my_environment"
* // }
* },
Expand Down Expand Up @@ -8377,6 +8388,7 @@ export namespace dialogflow_v3 {
* // "displayName": "my_displayName",
* // "enableSpellCorrection": false,
* // "enableStackdriverLogging": false,
* // "locked": false,
* // "name": "my_name",
* // "securitySettings": "my_securitySettings",
* // "speechToTextSettings": {},
Expand Down Expand Up @@ -8817,6 +8829,7 @@ export namespace dialogflow_v3 {
* // "displayName": "my_displayName",
* // "enableSpellCorrection": false,
* // "enableStackdriverLogging": false,
* // "locked": false,
* // "name": "my_name",
* // "securitySettings": "my_securitySettings",
* // "speechToTextSettings": {},
Expand All @@ -8837,6 +8850,7 @@ export namespace dialogflow_v3 {
* // "displayName": "my_displayName",
* // "enableSpellCorrection": false,
* // "enableStackdriverLogging": false,
* // "locked": false,
* // "name": "my_name",
* // "securitySettings": "my_securitySettings",
* // "speechToTextSettings": {},
Expand Down
Loading

0 comments on commit 26ecf70

Please sign in to comment.