UNPKG

@assistant/actions

Version:
1,173 lines (1,172 loc) 187 kB
{ "nested": { "google": { "nested": { "actions": { "nested": { "sdk": { "nested": { "v2": { "options": { "go_package": "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk", "java_multiple_files": true, "java_outer_classname": "EventLogsProto", "java_package": "com.google.actions.sdk.v2" }, "nested": { "AccountLinking": { "fields": { "enableAccountCreation": { "type": "bool", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "linkingType": { "type": "LinkingType", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "authGrantType": { "type": "AuthGrantType", "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "appClientId": { "type": "string", "id": 4, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "authorizationUrl": { "type": "string", "id": 5, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "tokenUrl": { "type": "string", "id": 6, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "scopes": { "rule": "repeated", "type": "string", "id": 7, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "learnMoreUrl": { "type": "string", "id": 8, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "useBasicAuthHeader": { "type": "bool", "id": 9, "options": { "(google.api.field_behavior)": "OPTIONAL" } } }, "nested": { "LinkingType": { "values": { "LINKING_TYPE_UNSPECIFIED": 0, "GOOGLE_SIGN_IN": 1, "OAUTH_AND_GOOGLE_SIGN_IN": 2, "OAUTH": 3 } }, "AuthGrantType": { "values": { "AUTH_GRANT_TYPE_UNSPECIFIED": 0, "AUTH_CODE": 1, "IMPLICIT": 2 } } } }, "AccountLinkingSecret": { "fields": { "encryptedClientSecret": { "type": "bytes", "id": 1 }, "encryptionKeyVersion": { "type": "string", "id": 2 } } }, "Actions": { "fields": { "custom": { "keyType": "string", "type": "CustomAction", "id": 3 } }, "nested": { "Engagement": { "oneofs": { "recurringUpdate": { "oneof": [ "dailyUpdate" ] } }, "fields": { "title": { "type": "string", "id": 1 }, "pushNotification": { "type": "PushNotification", "id": 2 }, "dailyUpdate": { "type": "DailyUpdate", "id": 3 }, "actionLink": { "type": "ActionLink", "id": 4, "options": { "deprecated": true } }, "assistantLink": { "type": "AssistantLink", "id": 6 } }, "nested": { "PushNotification": { "fields": {} }, "DailyUpdate": { "fields": {} }, "ActionLink": { "options": { "deprecated": true }, "fields": { "title": { "type": "string", "id": 1 } } }, "AssistantLink": { "fields": { "title": { "type": "string", "id": 1 } } } } }, "CustomAction": { "fields": { "engagement": { "type": "Engagement", "id": 2 } } } } }, "ActionsSdk": { "options": { "(google.api.default_host)": "actions.googleapis.com" }, "methods": { "WriteDraft": { "requestType": "WriteDraftRequest", "requestStream": true, "responseType": "Draft", "options": { "(google.api.http).post": "/v2/{parent=projects/*}/draft:write", "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v2/{parent=projects/*}/draft:write", "body": "*" } } ] }, "WritePreview": { "requestType": "WritePreviewRequest", "requestStream": true, "responseType": "Preview", "options": { "(google.api.http).post": "/v2/{parent=projects/*}/preview:write", "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v2/{parent=projects/*}/preview:write", "body": "*" } } ] }, "CreateVersion": { "requestType": "CreateVersionRequest", "requestStream": true, "responseType": "Version", "options": { "(google.api.http).post": "/v2/{parent=projects/*}/versions:create", "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v2/{parent=projects/*}/versions:create", "body": "*" } } ] }, "ReadDraft": { "requestType": "ReadDraftRequest", "responseType": "ReadDraftResponse", "responseStream": true, "options": { "(google.api.http).post": "/v2/{name=projects/*/draft}:read", "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v2/{name=projects/*/draft}:read", "body": "*" } } ] }, "ReadVersion": { "requestType": "ReadVersionRequest", "responseType": "ReadVersionResponse", "responseStream": true, "options": { "(google.api.http).post": "/v2/{name=projects/*/versions/*}:read", "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v2/{name=projects/*/versions/*}:read", "body": "*" } } ] }, "EncryptSecret": { "requestType": "EncryptSecretRequest", "responseType": "EncryptSecretResponse", "options": { "(google.api.http).post": "/v2:encryptSecret", "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v2:encryptSecret", "body": "*" } } ] }, "DecryptSecret": { "requestType": "DecryptSecretRequest", "responseType": "DecryptSecretResponse", "options": { "(google.api.http).post": "/v2:decryptSecret", "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v2:decryptSecret", "body": "*" } } ] }, "ListSampleProjects": { "requestType": "ListSampleProjectsRequest", "responseType": "ListSampleProjectsResponse", "options": { "(google.api.http).get": "/v2/sampleProjects" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v2/sampleProjects" } } ] }, "ListReleaseChannels": { "requestType": "ListReleaseChannelsRequest", "responseType": "ListReleaseChannelsResponse", "options": { "(google.api.http).get": "/v2/{parent=projects/*}/releaseChannels", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v2/{parent=projects/*}/releaseChannels" } }, { "(google.api.method_signature)": "parent" } ] }, "ListVersions": { "requestType": "ListVersionsRequest", "responseType": "ListVersionsResponse", "options": { "(google.api.http).get": "/v2/{parent=projects/*}/versions", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v2/{parent=projects/*}/versions" } }, { "(google.api.method_signature)": "parent" } ] } } }, "WriteDraftRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).child_type": "actions.googleapis.com/Draft" } }, "files": { "type": "Files", "id": 4, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "Draft": { "options": { "(google.api.resource).type": "actions.googleapis.com/Draft", "(google.api.resource).pattern": "projects/{project}/draft" }, "fields": { "name": { "type": "string", "id": 1 }, "validationResults": { "type": "ValidationResults", "id": 2 } } }, "WritePreviewRequest": { "oneofs": { "source": { "oneof": [ "files", "draft", "submittedVersion" ] } }, "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).child_type": "actions.googleapis.com/Preview" } }, "files": { "type": "Files", "id": 5 }, "draft": { "type": "ContentFromDraft", "id": 6 }, "submittedVersion": { "type": "ContentFromSubmittedVersion", "id": 7 }, "previewSettings": { "type": "PreviewSettings", "id": 4, "options": { "(google.api.field_behavior)": "REQUIRED" } } }, "nested": { "ContentFromDraft": { "fields": {} }, "ContentFromSubmittedVersion": { "fields": { "version": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "actions.googleapis.com/Version" } } } }, "PreviewSettings": { "fields": { "sandbox": { "type": "google.protobuf.BoolValue", "id": 1 } } } } }, "Preview": { "options": { "(google.api.resource).type": "actions.googleapis.com/Preview", "(google.api.resource).pattern": "projects/{project}/previews/{preview}" }, "fields": { "name": { "type": "string", "id": 1 }, "validationResults": { "type": "ValidationResults", "id": 2 }, "simulatorUrl": { "type": "string", "id": 3 } } }, "CreateVersionRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).child_type": "actions.googleapis.com/Version" } }, "files": { "type": "Files", "id": 5, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "releaseChannel": { "type": "string", "id": 4, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "ReadDraftRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "clientSecretEncryptionKeyVersion": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "ReadDraftResponse": { "fields": { "files": { "type": "Files", "id": 3 } } }, "ReadVersionRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "clientSecretEncryptionKeyVersion": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "ReadVersionResponse": { "fields": { "files": { "type": "Files", "id": 1 } } }, "EncryptSecretRequest": { "fields": { "clientSecret": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "EncryptSecretResponse": { "fields": { "accountLinkingSecret": { "type": "AccountLinkingSecret", "id": 1 } } }, "DecryptSecretRequest": { "fields": { "encryptedClientSecret": { "type": "bytes", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "DecryptSecretResponse": { "fields": { "clientSecret": { "type": "string", "id": 1 } } }, "ListSampleProjectsRequest": { "fields": { "pageSize": { "type": "int32", "id": 1, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "pageToken": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "ListSampleProjectsResponse": { "fields": { "sampleProjects": { "rule": "repeated", "type": "SampleProject", "id": 1 }, "nextPageToken": { "type": "string", "id": 2 } } }, "SampleProject": { "options": { "(google.api.resource).type": "actions.googleapis.com/SampleProject", "(google.api.resource).pattern": "sampleProjects/{sample_project}" }, "fields": { "name": { "type": "string", "id": 1 }, "hostedUrl": { "type": "string", "id": 2 }, "description": { "type": "string", "id": 3 } } }, "ListReleaseChannelsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).child_type": "actions.googleapis.com/ReleaseChannel" } }, "pageSize": { "type": "int32", "id": 2 }, "pageToken": { "type": "string", "id": 3 } } }, "ListReleaseChannelsResponse": { "fields": { "releaseChannels": { "rule": "repeated", "type": "ReleaseChannel", "id": 1 }, "nextPageToken": { "type": "string", "id": 2 } } }, "ListVersionsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).child_type": "actions.googleapis.com/Version" } }, "pageSize": { "type": "int32", "id": 2 }, "pageToken": { "type": "string", "id": 3 } } }, "ListVersionsResponse": { "fields": { "versions": { "rule": "repeated", "type": "Version", "id": 1 }, "nextPageToken": { "type": "string", "id": 2 } } }, "Files": { "oneofs": { "fileType": { "oneof": [ "configFiles", "dataFiles" ] } }, "fields": { "configFiles": { "type": "ConfigFiles", "id": 1 }, "dataFiles": { "type": "DataFiles", "id": 2 } } }, "ConfigFiles": { "fields": { "configFiles": { "rule": "repeated", "type": "ConfigFile", "id": 1 } } }, "ConfigFile": { "oneofs": { "file": { "oneof": [ "manifest", "actions", "settings", "webhook", "intent", "type", "entitySet", "globalIntentEvent", "scene", "staticPrompt", "accountLinkingSecret", "resourceBundle" ] } }, "fields": { "filePath": { "type": "string", "id": 1 }, "manifest": { "type": "Manifest", "id": 2 }, "actions": { "type": "Actions", "id": 3 }, "settings": { "type": "Settings", "id": 4 }, "webhook": { "type": "Webhook", "id": 6 }, "intent": { "type": "google.actions.sdk.v2.interactionmodel.Intent", "id": 7 }, "type": { "type": "google.actions.sdk.v2.interactionmodel.type.Type", "id": 8 }, "entitySet": { "type": "google.actions.sdk.v2.interactionmodel.EntitySet", "id": 15 }, "globalIntentEvent": { "type": "google.actions.sdk.v2.interactionmodel.GlobalIntentEvent", "id": 9 }, "scene": { "type": "google.actions.sdk.v2.interactionmodel.Scene", "id": 10 }, "staticPrompt": { "type": "google.actions.sdk.v2.interactionmodel.prompt.StaticPrompt", "id": 11 }, "accountLinkingSecret": { "type": "AccountLinkingSecret", "id": 13 }, "resourceBundle": { "type": "google.protobuf.Struct", "id": 12 } } }, "interactionmodel": { "options": { "go_package": "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel;interactionmodel", "java_multiple_files": true, "java_outer_classname": "SlotProto", "java_package": "com.google.actions.sdk.v2.interactionmodel" }, "nested": { "EntitySet": { "fields": { "entities": { "rule": "repeated", "type": "Entity", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } } }, "nested": { "Entity": { "fields": { "id": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } } } } } }, "GlobalIntentEvent": { "fields": { "transitionToScene": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "handler": { "type": "EventHandler", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "EventHandler": { "oneofs": { "prompt": { "oneof": [ "staticPrompt", "staticPromptName" ] } }, "fields": { "webhookHandler": { "type": "string", "id": 1 }, "staticPrompt": { "type": "google.actions.sdk.v2.interactionmodel.prompt.StaticPrompt", "id": 2 }, "staticPromptName": { "type": "string", "id": 3 } } }, "prompt": { "options": { "go_package": "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt", "java_multiple_files": true, "java_outer_classname": "SurfaceCapabilitiesProto", "java_package": "com.google.actions.sdk.v2.interactionmodel.prompt" }, "nested": { "StaticPrompt": { "fields": { "candidates": { "rule": "repeated", "type": "StaticPromptCandidate", "id": 1 } }, "nested": { "StaticPromptCandidate": { "fields": { "selector": { "type": "Selector", "id": 1, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "promptResponse": { "type": "StaticPromptResponse", "id": 2 } }, "nested": { "StaticPromptResponse": { "fields": { "firstSimple": { "type": "StaticSimplePrompt", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "content": { "type": "StaticContentPrompt", "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "lastSimple": { "type": "StaticSimplePrompt", "id": 4, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "suggestions": { "rule": "repeated", "type": "Suggestion", "id": 5, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "link": { "type": "StaticLinkPrompt", "id": 6, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "override": { "type": "bool", "id": 7, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "canvas": { "type": "StaticCanvasPrompt", "id": 8 } } } } }, "Selector": { "fields": { "surfaceCapabilities": { "type": "SurfaceCapabilities", "id": 1 } } } } }, "StaticCanvasPrompt": { "fields": { "url": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "data": { "rule": "repeated", "type": "google.protobuf.Value", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "suppressMic": { "type": "bool", "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "sendStateDataToCanvasApp": { "type": "bool", "id": 5, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "enableFullScreen": { "type": "bool", "id": 6, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "StaticContentPrompt": { "oneofs": { "content": { "oneof": [ "card", "image", "table", "media", "list", "collection", "collectionBrowse" ] } }, "fields": { "card": { "type": "StaticCardPrompt", "id": 1 }, "image": { "type": "StaticImagePrompt", "id": 2 }, "table": { "type": "StaticTablePrompt", "id": 3 }, "media": { "type": "StaticMediaPrompt", "id": 4 }, "list": { "type": "StaticListPrompt", "id": 5 }, "collection": { "type": "StaticCollectionPrompt", "id": 6 }, "collectionBrowse": { "type": "StaticCollectionBrowsePrompt", "id": 7 } } }, "StaticCardPrompt": { "fields": { "title": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "subtitle": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "text": { "type": "string", "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "image": { "type": "StaticImagePrompt", "id": 4, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "imageFill": { "type": "StaticImagePrompt.ImageFill", "id": 5, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "button": { "type": "StaticLinkPrompt", "id": 6, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "StaticImagePrompt": { "fields": { "url": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "alt": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "height": { "type": "int32", "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "width": { "type": "int32", "id": 4, "options": { "(google.api.field_behavior)": "OPTIONAL" } } }, "nested": { "ImageFill": { "values": { "UNSPECIFIED": 0, "GRAY": 1, "WHITE": 2, "CROPPED": 3 } } } }, "StaticLinkPrompt": { "fields": { "name": { "type": "string", "id": 1 },