diff --git a/internal/daemon/controller/handler.go b/internal/daemon/controller/handler.go index 978045d7a..f2f96f4a4 100644 --- a/internal/daemon/controller/handler.go +++ b/internal/daemon/controller/handler.go @@ -264,7 +264,7 @@ func (c *Controller) registerGrpcServices(s *grpc.Server) error { } services.RegisterCredentialServiceServer(s, c) } - if _, ok := s.GetServiceInfo()[opsservices.HealthService_ServiceDesc.ServiceName]; !ok { + if _, ok := currentServices[opsservices.HealthService_ServiceDesc.ServiceName]; !ok { hs := health.NewService() opsservices.RegisterHealthServiceServer(s, hs) c.HealthService = hs @@ -327,6 +327,9 @@ func registerGrpcGatewayEndpoints(ctx context.Context, gwMux *runtime.ServeMux, if err := services.RegisterCredentialServiceHandlerFromEndpoint(ctx, gwMux, gatewayTarget, dialOptions); err != nil { return fmt.Errorf("failed to register credential service handler: %w", err) } + if err := services.RegisterSessionRecordingServiceHandlerFromEndpoint(ctx, gwMux, gatewayTarget, dialOptions); err != nil { + return fmt.Errorf("failed to register session recording service handler: %w", err) + } return nil } diff --git a/internal/gen/controller.swagger.json b/internal/gen/controller.swagger.json index 6b05738f9..2d40e357c 100644 --- a/internal/gen/controller.swagger.json +++ b/internal/gen/controller.swagger.json @@ -44,6 +44,9 @@ { "name": "controller.api.services.v1.RoleService" }, + { + "name": "controller.api.services.v1.SessionRecordingService" + }, { "name": "controller.api.services.v1.SessionService" }, @@ -2744,6 +2747,107 @@ ] } }, + "/v1/session-recordings": { + "get": { + "summary": "ListSessionRecordings lists all Session recordings. Session recordings are ordered by start_time descending (most recently started first).", + "operationId": "SessionRecordingService_ListSessionRecordings", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/controller.api.services.v1.ListSessionRecordingsResponse" + } + } + }, + "parameters": [ + { + "name": "scope_id", + "description": "The scope in which to list session recordings.\nMust be set unless recursive is set.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "recursive", + "description": "Whether to recurse into child scopes when listing.\nIf set and scope_id is empty, shows session recordings in\nall scopes the caller has access to.", + "in": "query", + "required": false, + "type": "boolean" + } + ], + "tags": [ + "controller.api.services.v1.SessionRecordingService" + ] + } + }, + "/v1/session-recordings/{id}": { + "get": { + "summary": "GetSessionRecording returns a stored Session recording if present. The provided request must include the Session recording ID for the Session recording being retrieved, or the ID of the Session that was recorded. If that ID is missing, malformed or reference a non existing resource, an error is returned.", + "operationId": "SessionRecordingService_GetSessionRecording", + "responses": { + "200": { + "description": "The requested recording.", + "schema": { + "$ref": "#/definitions/controller.api.resources.sessionrecordings.v1.SessionRecording" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The ID of the Session recording, or the ID of the Session that was recorded.", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "controller.api.services.v1.SessionRecordingService" + ] + } + }, + "/v1/session-recordings/{id}:download": { + "get": { + "summary": "Download returns the contents of the specified resource in the specified mime type. Supports both Session ID and Session recording ID for looking up a Session recording. Supports both Connection ID and Connection recording ID to look up a Connection recording. A Channel recording ID is required to look up a Channel recording. The only supported mime type is \"application/x-asciicast\".", + "operationId": "SessionRecordingService_Download", + "responses": { + "200": { + "description": "A successful response.(streaming responses)", + "schema": { + "type": "object", + "properties": { + "result": { + "$ref": "#/definitions/google.api.HttpBody" + }, + "error": { + "$ref": "#/definitions/google.rpc.Status" + } + }, + "title": "Stream result of google.api.HttpBody" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "The ID of the resource that should be downloaded. Supported types:\n - Session ID and Session recording ID for Session recordings\n - Connection ID and Connection recording ID for Connection recordings\n - Channel recording ID for Channel recordings", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "mime_type", + "description": "The format of the response. The only supported mime type is \"application/x-asciicast\".\nDefaults to \"application/x-asciicast\" if not set.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "controller.api.services.v1.SessionRecordingService" + ] + } + }, "/v1/sessions": { "get": { "summary": "Lists all Sessions.", @@ -5244,6 +5348,239 @@ } } }, + "controller.api.resources.sessionrecordings.v1.ChannelRecording": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The ID of the Channel recording." + }, + "bytes_up": { + "type": "string", + "format": "uint64", + "description": "The total number of bytes uploaded from the client in the Channel." + }, + "bytes_down": { + "type": "string", + "format": "uint64", + "description": "The total number of bytes downloaded to the client in the Channel." + }, + "start_time": { + "type": "string", + "format": "date-time", + "description": "The time the Channel started." + }, + "end_time": { + "type": "string", + "format": "date-time", + "description": "The time the Channel ended." + }, + "duration": { + "type": "string", + "description": "The total duration of the Channel." + }, + "mime_types": { + "type": "array", + "items": { + "type": "string" + }, + "description": "MimeTypes define the mime types that can\nbe used to consume the recording of this Channel.\nThe only supported mime type is \"application/x-asciicast\"." + } + }, + "description": "ChannelRecording contains recorded information about a single Channel within a Connection.\nChannels are only present in multiplexed protocols, such as SSH." + }, + "controller.api.resources.sessionrecordings.v1.ConnectionRecording": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The ID of the Connection recording." + }, + "connection_id": { + "type": "string", + "description": "The ID of the Connection this is a recording of." + }, + "bytes_up": { + "type": "string", + "format": "uint64", + "description": "The total number of bytes uploaded from the client in the Connection.\nThis includes any protocol overhead." + }, + "bytes_down": { + "type": "string", + "format": "uint64", + "description": "The total number of bytes downloaded to the client in the Connection.\nThis includes any protocol overhead." + }, + "start_time": { + "type": "string", + "format": "date-time", + "description": "The time the Connection started." + }, + "end_time": { + "type": "string", + "format": "date-time", + "description": "The time the Connection ended." + }, + "duration": { + "type": "string", + "description": "The total duration of the Connection." + }, + "mime_types": { + "type": "array", + "items": { + "type": "string" + }, + "description": "MimeTypes define the mime types that can\nbe used to consume the recording of this Connection.\nNo mime types are currently supported." + }, + "channel_recordings": { + "type": "array", + "items": { + "$ref": "#/definitions/controller.api.resources.sessionrecordings.v1.ChannelRecording" + }, + "description": "Optionally, the channels used in this Connection,\nif it is using a multiplexed protocol, such as SSH." + } + }, + "description": "ConnectionRecording contains the recording of a single Connection within a Session." + }, + "controller.api.resources.sessionrecordings.v1.SessionRecording": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The ID of the Session recording." + }, + "scope": { + "$ref": "#/definitions/controller.api.resources.scopes.v1.ScopeInfo", + "description": "The scope that the Session Recording is in.\nThis is inferred from the storage bucket associated\nwith the target." + }, + "user": { + "$ref": "#/definitions/controller.api.resources.sessionrecordings.v1.User", + "description": "Information about the User that created the Session." + }, + "session_id": { + "type": "string", + "description": "The ID of the Session which this Session Recording recorded." + }, + "target": { + "$ref": "#/definitions/controller.api.resources.sessionrecordings.v1.Target", + "description": "Information about the Target the Session connected to." + }, + "bytes_up": { + "type": "string", + "format": "uint64", + "description": "The total number of bytes uploaded from the client in the Session.\nThis includes all bytes uploaded over all Connections, including\nany protocol overhead." + }, + "bytes_down": { + "type": "string", + "format": "uint64", + "description": "The total number of bytes downloaded to the client in the Session.\nThis includes all bytes downloaded over all Connections, including\nany protocol overhead." + }, + "start_time": { + "type": "string", + "format": "date-time", + "description": "The time the Session started." + }, + "end_time": { + "type": "string", + "format": "date-time", + "description": "The time the Session ended." + }, + "duration": { + "type": "string", + "description": "The total duration of the Session." + }, + "delete_on": { + "type": "string", + "format": "date-time", + "description": "The time that the Session recording will be deleted." + }, + "type": { + "type": "string", + "description": "Type of the Session that was recorded (e.g. ssh)." + }, + "mime_types": { + "type": "array", + "items": { + "type": "string" + }, + "description": "MimeTypes define the mime types that can\nbe used to consume the recording of this Session.\nNo mime types are currently supported." + }, + "connection_recordings": { + "type": "array", + "items": { + "$ref": "#/definitions/controller.api.resources.sessionrecordings.v1.ConnectionRecording" + }, + "description": "The recordings of the connections that were created in the Session.\nThis field may be unset when listing Session recordings." + }, + "authorized_actions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The available actions on this resource for this user." + } + }, + "description": "SessionRecording contains information about the recording of a Session." + }, + "controller.api.resources.sessionrecordings.v1.Target": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The ID of the Target." + }, + "name": { + "type": "string", + "description": "The name of the Target." + }, + "scope": { + "$ref": "#/definitions/controller.api.resources.scopes.v1.ScopeInfo", + "description": "The project that the Target is in." + }, + "storage_bucket_id": { + "type": "string", + "description": "The ID of the storage bucket this Target's recordings use." + } + }, + "description": "Target describes a target in Boundary." + }, + "controller.api.resources.sessionrecordings.v1.User": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The ID of the User." + }, + "name": { + "type": "string", + "description": "The name of the User that created the Session." + }, + "description": { + "type": "string", + "description": "The description of the User that created the Session." + }, + "full_name": { + "type": "string", + "description": "The full name of the User that created the Session,\ninferred from the account used by the user." + }, + "login_name": { + "type": "string", + "description": "The login name of the User that created the Session,\ninferred from the account used by the user." + }, + "email": { + "type": "string", + "description": "The email of the User that created the Session,\ninferred from the account used by the user." + }, + "scope": { + "$ref": "#/definitions/controller.api.resources.scopes.v1.ScopeInfo", + "description": "The scope that the User is in." + }, + "account_id": { + "type": "string", + "description": "The ID of the account that the User that created the Session authenticated with." + } + }, + "description": "User describes an authenticated user in Boundary." + }, "controller.api.resources.sessions.v1.Connection": { "type": "object", "properties": { @@ -6457,6 +6794,15 @@ } } }, + "controller.api.services.v1.GetSessionRecordingResponse": { + "type": "object", + "properties": { + "item": { + "$ref": "#/definitions/controller.api.resources.sessionrecordings.v1.SessionRecording", + "description": "The requested recording." + } + } + }, "controller.api.services.v1.GetSessionResponse": { "type": "object", "properties": { @@ -6654,6 +7000,18 @@ } } }, + "controller.api.services.v1.ListSessionRecordingsResponse": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/controller.api.resources.sessionrecordings.v1.SessionRecording" + }, + "description": "All Session recordings, ordered by start_time descending (most recently started first)." + } + } + }, "controller.api.services.v1.ListSessionsResponse": { "type": "object", "properties": { @@ -6984,6 +7342,39 @@ } } }, + "google.api.HttpBody": { + "type": "object", + "properties": { + "content_type": { + "type": "string", + "description": "The HTTP Content-Type header value specifying the content type of the body." + }, + "data": { + "type": "string", + "format": "byte", + "description": "The HTTP request/response body as raw binary." + }, + "extensions": { + "type": "array", + "items": { + "$ref": "#/definitions/google.protobuf.Any" + }, + "description": "Application specific response metadata. Must be set in the first response\nfor streaming APIs." + } + }, + "description": "Message that represents an arbitrary HTTP body. It should only be used for\npayload formats that can't be represented as JSON, such as raw binary or\nan HTML page.\n\n\nThis message can be used both in streaming and non-streaming API methods in\nthe request as well as the response.\n\nIt can be used as a top-level request field, which is convenient if one\nwants to extract parameters from either the URL or HTTP template into the\nrequest fields and also want access to the raw HTTP body.\n\nExample:\n\n message GetResourceRequest {\n // A unique request id.\n string request_id = 1;\n\n // The raw HTTP body is bound to this field.\n google.api.HttpBody http_body = 2;\n\n }\n\n service ResourceService {\n rpc GetResource(GetResourceRequest)\n returns (google.api.HttpBody);\n rpc UpdateResource(google.api.HttpBody)\n returns (google.protobuf.Empty);\n\n }\n\nExample with streaming methods:\n\n service CaldavService {\n rpc GetCalendar(stream google.api.HttpBody)\n returns (stream google.api.HttpBody);\n rpc UpdateCalendar(stream google.api.HttpBody)\n returns (stream google.api.HttpBody);\n\n }\n\nUse of this type only changes how the request and response bodies are\nhandled, all other features will continue to work unchanged." + }, + "google.protobuf.Any": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\nExample 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\nExample 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + }, "google.protobuf.NullValue": { "type": "string", "enum": [ diff --git a/internal/gen/controller/api/services/session_recording_service.pb.go b/internal/gen/controller/api/services/session_recording_service.pb.go new file mode 100644 index 000000000..e12190a4a --- /dev/null +++ b/internal/gen/controller/api/services/session_recording_service.pb.go @@ -0,0 +1,558 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: controller/api/services/v1/session_recording_service.proto + +package services + +import ( + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + session_recordings "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/session_recordings" + _ "google.golang.org/genproto/googleapis/api/annotations" + httpbody "google.golang.org/genproto/googleapis/api/httpbody" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type GetSessionRecordingRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The ID of the Session recording, or the ID of the Session that was recorded. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // @gotags: class:"public" +} + +func (x *GetSessionRecordingRequest) Reset() { + *x = GetSessionRecordingRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_controller_api_services_v1_session_recording_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetSessionRecordingRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSessionRecordingRequest) ProtoMessage() {} + +func (x *GetSessionRecordingRequest) ProtoReflect() protoreflect.Message { + mi := &file_controller_api_services_v1_session_recording_service_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetSessionRecordingRequest.ProtoReflect.Descriptor instead. +func (*GetSessionRecordingRequest) Descriptor() ([]byte, []int) { + return file_controller_api_services_v1_session_recording_service_proto_rawDescGZIP(), []int{0} +} + +func (x *GetSessionRecordingRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type GetSessionRecordingResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The requested recording. + Item *session_recordings.SessionRecording `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` +} + +func (x *GetSessionRecordingResponse) Reset() { + *x = GetSessionRecordingResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_controller_api_services_v1_session_recording_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetSessionRecordingResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSessionRecordingResponse) ProtoMessage() {} + +func (x *GetSessionRecordingResponse) ProtoReflect() protoreflect.Message { + mi := &file_controller_api_services_v1_session_recording_service_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetSessionRecordingResponse.ProtoReflect.Descriptor instead. +func (*GetSessionRecordingResponse) Descriptor() ([]byte, []int) { + return file_controller_api_services_v1_session_recording_service_proto_rawDescGZIP(), []int{1} +} + +func (x *GetSessionRecordingResponse) GetItem() *session_recordings.SessionRecording { + if x != nil { + return x.Item + } + return nil +} + +type ListSessionRecordingsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The scope in which to list session recordings. + // Must be set unless recursive is set. + ScopeId string `protobuf:"bytes,1,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty"` // @gotags: class:"public" + // Whether to recurse into child scopes when listing. + // If set and scope_id is empty, shows session recordings in + // all scopes the caller has access to. + Recursive bool `protobuf:"varint,2,opt,name=recursive,proto3" json:"recursive,omitempty"` // @gotags: class:"public" +} + +func (x *ListSessionRecordingsRequest) Reset() { + *x = ListSessionRecordingsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_controller_api_services_v1_session_recording_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSessionRecordingsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSessionRecordingsRequest) ProtoMessage() {} + +func (x *ListSessionRecordingsRequest) ProtoReflect() protoreflect.Message { + mi := &file_controller_api_services_v1_session_recording_service_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSessionRecordingsRequest.ProtoReflect.Descriptor instead. +func (*ListSessionRecordingsRequest) Descriptor() ([]byte, []int) { + return file_controller_api_services_v1_session_recording_service_proto_rawDescGZIP(), []int{2} +} + +func (x *ListSessionRecordingsRequest) GetScopeId() string { + if x != nil { + return x.ScopeId + } + return "" +} + +func (x *ListSessionRecordingsRequest) GetRecursive() bool { + if x != nil { + return x.Recursive + } + return false +} + +type ListSessionRecordingsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // All Session recordings, ordered by start_time descending (most recently started first). + Items []*session_recordings.SessionRecording `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` +} + +func (x *ListSessionRecordingsResponse) Reset() { + *x = ListSessionRecordingsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_controller_api_services_v1_session_recording_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSessionRecordingsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSessionRecordingsResponse) ProtoMessage() {} + +func (x *ListSessionRecordingsResponse) ProtoReflect() protoreflect.Message { + mi := &file_controller_api_services_v1_session_recording_service_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSessionRecordingsResponse.ProtoReflect.Descriptor instead. +func (*ListSessionRecordingsResponse) Descriptor() ([]byte, []int) { + return file_controller_api_services_v1_session_recording_service_proto_rawDescGZIP(), []int{3} +} + +func (x *ListSessionRecordingsResponse) GetItems() []*session_recordings.SessionRecording { + if x != nil { + return x.Items + } + return nil +} + +type DownloadRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The ID of the resource that should be downloaded. Supported types: + // - Session ID and Session recording ID for Session recordings + // - Connection ID and Connection recording ID for Connection recordings + // - Channel recording ID for Channel recordings + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // @gotags: class:"public" + // The format of the response. The only supported mime type is "application/x-asciicast". + // Defaults to "application/x-asciicast" if not set. + MimeType string `protobuf:"bytes,2,opt,name=mime_type,proto3" json:"mime_type,omitempty"` // @gotags: class:"public" +} + +func (x *DownloadRequest) Reset() { + *x = DownloadRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_controller_api_services_v1_session_recording_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DownloadRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DownloadRequest) ProtoMessage() {} + +func (x *DownloadRequest) ProtoReflect() protoreflect.Message { + mi := &file_controller_api_services_v1_session_recording_service_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DownloadRequest.ProtoReflect.Descriptor instead. +func (*DownloadRequest) Descriptor() ([]byte, []int) { + return file_controller_api_services_v1_session_recording_service_proto_rawDescGZIP(), []int{4} +} + +func (x *DownloadRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *DownloadRequest) GetMimeType() string { + if x != nil { + return x.MimeType + } + return "" +} + +var File_controller_api_services_v1_session_recording_service_proto protoreflect.FileDescriptor + +var file_controller_api_services_v1_session_recording_service_proto_rawDesc = []byte{ + 0x0a, 0x3a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x45, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, + 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, + 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x62, 0x6f, + 0x64, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2c, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x53, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x72, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x73, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x22, 0x57, 0x0a, 0x1c, 0x4c, 0x69, + 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, + 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x63, + 0x6f, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x63, + 0x6f, 0x70, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, + 0x76, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, + 0x69, 0x76, 0x65, 0x22, 0x76, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x73, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x69, 0x6e, 0x67, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x3f, 0x0a, 0x0f, 0x44, + 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, + 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x32, 0xd1, 0x0a, 0x0a, + 0x17, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, + 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xea, 0x03, 0x0a, 0x13, 0x47, 0x65, 0x74, + 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, + 0x12, 0x36, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, + 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0xe1, 0x02, 0x92, 0x41, 0xb4, 0x02, 0x12, 0xb1, 0x02, 0x47, 0x65, 0x74, 0x53, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x72, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x61, 0x20, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x20, + 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, + 0x67, 0x20, 0x69, 0x66, 0x20, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x2e, 0x20, 0x54, 0x68, + 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x20, 0x6d, 0x75, 0x73, 0x74, 0x20, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x72, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x49, 0x44, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, + 0x6e, 0x67, 0x20, 0x62, 0x65, 0x69, 0x6e, 0x67, 0x20, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, + 0x65, 0x64, 0x2c, 0x20, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x49, 0x44, 0x20, 0x6f, 0x66, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x61, + 0x74, 0x20, 0x77, 0x61, 0x73, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x65, 0x64, 0x2e, 0x20, + 0x49, 0x66, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x49, 0x44, 0x20, 0x69, 0x73, 0x20, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6e, 0x67, 0x2c, 0x20, 0x6d, 0x61, 0x6c, 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x64, + 0x20, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x20, 0x61, 0x20, + 0x6e, 0x6f, 0x6e, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2c, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x20, + 0x69, 0x73, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x2e, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x23, 0x62, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x12, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2d, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x73, + 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0xbe, 0x02, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x12, + 0x38, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, + 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xaf, 0x01, 0x92, 0x41, 0x8d, 0x01, 0x12, 0x8a, 0x01, 0x4c, 0x69, + 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, + 0x6e, 0x67, 0x73, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x53, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x73, + 0x2e, 0x20, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x69, 0x6e, 0x67, 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x65, 0x64, + 0x20, 0x62, 0x79, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x20, 0x64, + 0x65, 0x73, 0x63, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x28, 0x6d, 0x6f, 0x73, 0x74, 0x20, + 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, + 0x20, 0x66, 0x69, 0x72, 0x73, 0x74, 0x29, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, + 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2d, 0x72, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x87, 0x04, 0x0a, 0x08, 0x44, 0x6f, 0x77, 0x6e, 0x6c, + 0x6f, 0x61, 0x64, 0x12, 0x2b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x74, + 0x74, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x22, 0xb5, 0x03, 0x92, 0x41, 0x85, 0x03, 0x12, 0x82, 0x03, + 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x20, 0x6f, 0x66, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, + 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x6d, 0x69, 0x6d, 0x65, 0x20, 0x74, 0x79, + 0x70, 0x65, 0x2e, 0x20, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x20, 0x62, 0x6f, 0x74, + 0x68, 0x20, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x49, 0x44, 0x20, 0x61, 0x6e, 0x64, + 0x20, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, + 0x6e, 0x67, 0x20, 0x49, 0x44, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x6c, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, + 0x67, 0x20, 0x75, 0x70, 0x20, 0x61, 0x20, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x72, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x20, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, + 0x74, 0x73, 0x20, 0x62, 0x6f, 0x74, 0x68, 0x20, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x20, 0x49, 0x44, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x49, + 0x44, 0x20, 0x74, 0x6f, 0x20, 0x6c, 0x6f, 0x6f, 0x6b, 0x20, 0x75, 0x70, 0x20, 0x61, 0x20, 0x43, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x69, 0x6e, 0x67, 0x2e, 0x20, 0x41, 0x20, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x20, 0x72, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x49, 0x44, 0x20, 0x69, 0x73, 0x20, 0x72, + 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x6c, 0x6f, 0x6f, 0x6b, 0x20, + 0x75, 0x70, 0x20, 0x61, 0x20, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x20, 0x72, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x20, 0x54, 0x68, 0x65, 0x20, 0x6f, 0x6e, 0x6c, 0x79, + 0x20, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x20, 0x6d, 0x69, 0x6d, 0x65, 0x20, + 0x74, 0x79, 0x70, 0x65, 0x20, 0x69, 0x73, 0x20, 0x22, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x78, 0x2d, 0x61, 0x73, 0x63, 0x69, 0x69, 0x63, 0x61, 0x73, 0x74, + 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2d, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x73, + 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x30, 0x01, + 0x42, 0x4d, 0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, + 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, + 0x79, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_controller_api_services_v1_session_recording_service_proto_rawDescOnce sync.Once + file_controller_api_services_v1_session_recording_service_proto_rawDescData = file_controller_api_services_v1_session_recording_service_proto_rawDesc +) + +func file_controller_api_services_v1_session_recording_service_proto_rawDescGZIP() []byte { + file_controller_api_services_v1_session_recording_service_proto_rawDescOnce.Do(func() { + file_controller_api_services_v1_session_recording_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_controller_api_services_v1_session_recording_service_proto_rawDescData) + }) + return file_controller_api_services_v1_session_recording_service_proto_rawDescData +} + +var file_controller_api_services_v1_session_recording_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_controller_api_services_v1_session_recording_service_proto_goTypes = []interface{}{ + (*GetSessionRecordingRequest)(nil), // 0: controller.api.services.v1.GetSessionRecordingRequest + (*GetSessionRecordingResponse)(nil), // 1: controller.api.services.v1.GetSessionRecordingResponse + (*ListSessionRecordingsRequest)(nil), // 2: controller.api.services.v1.ListSessionRecordingsRequest + (*ListSessionRecordingsResponse)(nil), // 3: controller.api.services.v1.ListSessionRecordingsResponse + (*DownloadRequest)(nil), // 4: controller.api.services.v1.DownloadRequest + (*session_recordings.SessionRecording)(nil), // 5: controller.api.resources.sessionrecordings.v1.SessionRecording + (*httpbody.HttpBody)(nil), // 6: google.api.HttpBody +} +var file_controller_api_services_v1_session_recording_service_proto_depIdxs = []int32{ + 5, // 0: controller.api.services.v1.GetSessionRecordingResponse.item:type_name -> controller.api.resources.sessionrecordings.v1.SessionRecording + 5, // 1: controller.api.services.v1.ListSessionRecordingsResponse.items:type_name -> controller.api.resources.sessionrecordings.v1.SessionRecording + 0, // 2: controller.api.services.v1.SessionRecordingService.GetSessionRecording:input_type -> controller.api.services.v1.GetSessionRecordingRequest + 2, // 3: controller.api.services.v1.SessionRecordingService.ListSessionRecordings:input_type -> controller.api.services.v1.ListSessionRecordingsRequest + 4, // 4: controller.api.services.v1.SessionRecordingService.Download:input_type -> controller.api.services.v1.DownloadRequest + 1, // 5: controller.api.services.v1.SessionRecordingService.GetSessionRecording:output_type -> controller.api.services.v1.GetSessionRecordingResponse + 3, // 6: controller.api.services.v1.SessionRecordingService.ListSessionRecordings:output_type -> controller.api.services.v1.ListSessionRecordingsResponse + 6, // 7: controller.api.services.v1.SessionRecordingService.Download:output_type -> google.api.HttpBody + 5, // [5:8] is the sub-list for method output_type + 2, // [2:5] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_controller_api_services_v1_session_recording_service_proto_init() } +func file_controller_api_services_v1_session_recording_service_proto_init() { + if File_controller_api_services_v1_session_recording_service_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_controller_api_services_v1_session_recording_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSessionRecordingRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_controller_api_services_v1_session_recording_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSessionRecordingResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_controller_api_services_v1_session_recording_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSessionRecordingsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_controller_api_services_v1_session_recording_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSessionRecordingsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_controller_api_services_v1_session_recording_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DownloadRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_controller_api_services_v1_session_recording_service_proto_rawDesc, + NumEnums: 0, + NumMessages: 5, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_controller_api_services_v1_session_recording_service_proto_goTypes, + DependencyIndexes: file_controller_api_services_v1_session_recording_service_proto_depIdxs, + MessageInfos: file_controller_api_services_v1_session_recording_service_proto_msgTypes, + }.Build() + File_controller_api_services_v1_session_recording_service_proto = out.File + file_controller_api_services_v1_session_recording_service_proto_rawDesc = nil + file_controller_api_services_v1_session_recording_service_proto_goTypes = nil + file_controller_api_services_v1_session_recording_service_proto_depIdxs = nil +} diff --git a/internal/gen/controller/api/services/session_recording_service.pb.gw.go b/internal/gen/controller/api/services/session_recording_service.pb.gw.go new file mode 100644 index 000000000..22f6fb4f9 --- /dev/null +++ b/internal/gen/controller/api/services/session_recording_service.pb.gw.go @@ -0,0 +1,363 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: controller/api/services/v1/session_recording_service.proto + +/* +Package services is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package services + +import ( + "context" + "io" + "net/http" + + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +func request_SessionRecordingService_GetSessionRecording_0(ctx context.Context, marshaler runtime.Marshaler, client SessionRecordingServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetSessionRecordingRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.GetSessionRecording(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_SessionRecordingService_GetSessionRecording_0(ctx context.Context, marshaler runtime.Marshaler, server SessionRecordingServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetSessionRecordingRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.GetSessionRecording(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_SessionRecordingService_ListSessionRecordings_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_SessionRecordingService_ListSessionRecordings_0(ctx context.Context, marshaler runtime.Marshaler, client SessionRecordingServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListSessionRecordingsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SessionRecordingService_ListSessionRecordings_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListSessionRecordings(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_SessionRecordingService_ListSessionRecordings_0(ctx context.Context, marshaler runtime.Marshaler, server SessionRecordingServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListSessionRecordingsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SessionRecordingService_ListSessionRecordings_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListSessionRecordings(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_SessionRecordingService_Download_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_SessionRecordingService_Download_0(ctx context.Context, marshaler runtime.Marshaler, client SessionRecordingServiceClient, req *http.Request, pathParams map[string]string) (SessionRecordingService_DownloadClient, runtime.ServerMetadata, error) { + var protoReq DownloadRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SessionRecordingService_Download_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + stream, err := client.Download(ctx, &protoReq) + if err != nil { + return nil, metadata, err + } + header, err := stream.Header() + if err != nil { + return nil, metadata, err + } + metadata.HeaderMD = header + return stream, metadata, nil + +} + +// RegisterSessionRecordingServiceHandlerServer registers the http handlers for service SessionRecordingService to "mux". +// UnaryRPC :call SessionRecordingServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSessionRecordingServiceHandlerFromEndpoint instead. +func RegisterSessionRecordingServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SessionRecordingServiceServer) error { + + mux.Handle("GET", pattern_SessionRecordingService_GetSessionRecording_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/controller.api.services.v1.SessionRecordingService/GetSessionRecording", runtime.WithHTTPPathPattern("/v1/session-recordings/{id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_SessionRecordingService_GetSessionRecording_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SessionRecordingService_GetSessionRecording_0(annotatedContext, mux, outboundMarshaler, w, req, response_SessionRecordingService_GetSessionRecording_0{resp}, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_SessionRecordingService_ListSessionRecordings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/controller.api.services.v1.SessionRecordingService/ListSessionRecordings", runtime.WithHTTPPathPattern("/v1/session-recordings")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_SessionRecordingService_ListSessionRecordings_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SessionRecordingService_ListSessionRecordings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_SessionRecordingService_Download_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") + _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + }) + + return nil +} + +// RegisterSessionRecordingServiceHandlerFromEndpoint is same as RegisterSessionRecordingServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterSessionRecordingServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterSessionRecordingServiceHandler(ctx, mux, conn) +} + +// RegisterSessionRecordingServiceHandler registers the http handlers for service SessionRecordingService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterSessionRecordingServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterSessionRecordingServiceHandlerClient(ctx, mux, NewSessionRecordingServiceClient(conn)) +} + +// RegisterSessionRecordingServiceHandlerClient registers the http handlers for service SessionRecordingService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SessionRecordingServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SessionRecordingServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "SessionRecordingServiceClient" to call the correct interceptors. +func RegisterSessionRecordingServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SessionRecordingServiceClient) error { + + mux.Handle("GET", pattern_SessionRecordingService_GetSessionRecording_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/controller.api.services.v1.SessionRecordingService/GetSessionRecording", runtime.WithHTTPPathPattern("/v1/session-recordings/{id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_SessionRecordingService_GetSessionRecording_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SessionRecordingService_GetSessionRecording_0(annotatedContext, mux, outboundMarshaler, w, req, response_SessionRecordingService_GetSessionRecording_0{resp}, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_SessionRecordingService_ListSessionRecordings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/controller.api.services.v1.SessionRecordingService/ListSessionRecordings", runtime.WithHTTPPathPattern("/v1/session-recordings")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_SessionRecordingService_ListSessionRecordings_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SessionRecordingService_ListSessionRecordings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_SessionRecordingService_Download_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/controller.api.services.v1.SessionRecordingService/Download", runtime.WithHTTPPathPattern("/v1/session-recordings/{id}:download")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_SessionRecordingService_Download_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SessionRecordingService_Download_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +type response_SessionRecordingService_GetSessionRecording_0 struct { + proto.Message +} + +func (m response_SessionRecordingService_GetSessionRecording_0) XXX_ResponseBody() interface{} { + response := m.Message.(*GetSessionRecordingResponse) + return response.Item +} + +var ( + pattern_SessionRecordingService_GetSessionRecording_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "session-recordings", "id"}, "")) + + pattern_SessionRecordingService_ListSessionRecordings_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "session-recordings"}, "")) + + pattern_SessionRecordingService_Download_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "session-recordings", "id"}, "download")) +) + +var ( + forward_SessionRecordingService_GetSessionRecording_0 = runtime.ForwardResponseMessage + + forward_SessionRecordingService_ListSessionRecordings_0 = runtime.ForwardResponseMessage + + forward_SessionRecordingService_Download_0 = runtime.ForwardResponseStream +) diff --git a/internal/gen/controller/api/services/session_recording_service_grpc.pb.go b/internal/gen/controller/api/services/session_recording_service_grpc.pb.go new file mode 100644 index 000000000..431e87790 --- /dev/null +++ b/internal/gen/controller/api/services/session_recording_service_grpc.pb.go @@ -0,0 +1,225 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package services + +import ( + context "context" + httpbody "google.golang.org/genproto/googleapis/api/httpbody" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// SessionRecordingServiceClient is the client API for SessionRecordingService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type SessionRecordingServiceClient interface { + // GetSessionRecording returns a stored Session recording if present. The provided request + // must include the Session recording ID for the Session recording being retrieved, + // or the ID of the Session that was recorded. If that ID is missing, malformed or reference a + // non existing resource, an error is returned. + GetSessionRecording(ctx context.Context, in *GetSessionRecordingRequest, opts ...grpc.CallOption) (*GetSessionRecordingResponse, error) + // ListSessionRecordings lists all session recordings. + // Session recordings are ordered by start_time descending (most recently started first). + ListSessionRecordings(ctx context.Context, in *ListSessionRecordingsRequest, opts ...grpc.CallOption) (*ListSessionRecordingsResponse, error) + // Download returns the contents of the specified resource in the specified mime type. + // Supports both Session ID and Session recording ID for looking up a Session recording. + // Supports both Connection ID and Connection recording ID to look up a Connection recording. + // A Channel recording ID is required to look up a Channel recording. + // The only supported mime type is "application/x-asciicast". + Download(ctx context.Context, in *DownloadRequest, opts ...grpc.CallOption) (SessionRecordingService_DownloadClient, error) +} + +type sessionRecordingServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSessionRecordingServiceClient(cc grpc.ClientConnInterface) SessionRecordingServiceClient { + return &sessionRecordingServiceClient{cc} +} + +func (c *sessionRecordingServiceClient) GetSessionRecording(ctx context.Context, in *GetSessionRecordingRequest, opts ...grpc.CallOption) (*GetSessionRecordingResponse, error) { + out := new(GetSessionRecordingResponse) + err := c.cc.Invoke(ctx, "/controller.api.services.v1.SessionRecordingService/GetSessionRecording", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *sessionRecordingServiceClient) ListSessionRecordings(ctx context.Context, in *ListSessionRecordingsRequest, opts ...grpc.CallOption) (*ListSessionRecordingsResponse, error) { + out := new(ListSessionRecordingsResponse) + err := c.cc.Invoke(ctx, "/controller.api.services.v1.SessionRecordingService/ListSessionRecordings", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *sessionRecordingServiceClient) Download(ctx context.Context, in *DownloadRequest, opts ...grpc.CallOption) (SessionRecordingService_DownloadClient, error) { + stream, err := c.cc.NewStream(ctx, &SessionRecordingService_ServiceDesc.Streams[0], "/controller.api.services.v1.SessionRecordingService/Download", opts...) + if err != nil { + return nil, err + } + x := &sessionRecordingServiceDownloadClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type SessionRecordingService_DownloadClient interface { + Recv() (*httpbody.HttpBody, error) + grpc.ClientStream +} + +type sessionRecordingServiceDownloadClient struct { + grpc.ClientStream +} + +func (x *sessionRecordingServiceDownloadClient) Recv() (*httpbody.HttpBody, error) { + m := new(httpbody.HttpBody) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// SessionRecordingServiceServer is the server API for SessionRecordingService service. +// All implementations must embed UnimplementedSessionRecordingServiceServer +// for forward compatibility +type SessionRecordingServiceServer interface { + // GetSessionRecording returns a stored Session recording if present. The provided request + // must include the Session recording ID for the Session recording being retrieved, + // or the ID of the Session that was recorded. If that ID is missing, malformed or reference a + // non existing resource, an error is returned. + GetSessionRecording(context.Context, *GetSessionRecordingRequest) (*GetSessionRecordingResponse, error) + // ListSessionRecordings lists all session recordings. + // Session recordings are ordered by start_time descending (most recently started first). + ListSessionRecordings(context.Context, *ListSessionRecordingsRequest) (*ListSessionRecordingsResponse, error) + // Download returns the contents of the specified resource in the specified mime type. + // Supports both Session ID and Session recording ID for looking up a Session recording. + // Supports both Connection ID and Connection recording ID to look up a Connection recording. + // A Channel recording ID is required to look up a Channel recording. + // The only supported mime type is "application/x-asciicast". + Download(*DownloadRequest, SessionRecordingService_DownloadServer) error + mustEmbedUnimplementedSessionRecordingServiceServer() +} + +// UnimplementedSessionRecordingServiceServer must be embedded to have forward compatible implementations. +type UnimplementedSessionRecordingServiceServer struct { +} + +func (UnimplementedSessionRecordingServiceServer) GetSessionRecording(context.Context, *GetSessionRecordingRequest) (*GetSessionRecordingResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetSessionRecording not implemented") +} +func (UnimplementedSessionRecordingServiceServer) ListSessionRecordings(context.Context, *ListSessionRecordingsRequest) (*ListSessionRecordingsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListSessionRecordings not implemented") +} +func (UnimplementedSessionRecordingServiceServer) Download(*DownloadRequest, SessionRecordingService_DownloadServer) error { + return status.Errorf(codes.Unimplemented, "method Download not implemented") +} +func (UnimplementedSessionRecordingServiceServer) mustEmbedUnimplementedSessionRecordingServiceServer() { +} + +// UnsafeSessionRecordingServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SessionRecordingServiceServer will +// result in compilation errors. +type UnsafeSessionRecordingServiceServer interface { + mustEmbedUnimplementedSessionRecordingServiceServer() +} + +func RegisterSessionRecordingServiceServer(s grpc.ServiceRegistrar, srv SessionRecordingServiceServer) { + s.RegisterService(&SessionRecordingService_ServiceDesc, srv) +} + +func _SessionRecordingService_GetSessionRecording_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSessionRecordingRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SessionRecordingServiceServer).GetSessionRecording(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/controller.api.services.v1.SessionRecordingService/GetSessionRecording", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SessionRecordingServiceServer).GetSessionRecording(ctx, req.(*GetSessionRecordingRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SessionRecordingService_ListSessionRecordings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListSessionRecordingsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SessionRecordingServiceServer).ListSessionRecordings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/controller.api.services.v1.SessionRecordingService/ListSessionRecordings", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SessionRecordingServiceServer).ListSessionRecordings(ctx, req.(*ListSessionRecordingsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SessionRecordingService_Download_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(DownloadRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(SessionRecordingServiceServer).Download(m, &sessionRecordingServiceDownloadServer{stream}) +} + +type SessionRecordingService_DownloadServer interface { + Send(*httpbody.HttpBody) error + grpc.ServerStream +} + +type sessionRecordingServiceDownloadServer struct { + grpc.ServerStream +} + +func (x *sessionRecordingServiceDownloadServer) Send(m *httpbody.HttpBody) error { + return x.ServerStream.SendMsg(m) +} + +// SessionRecordingService_ServiceDesc is the grpc.ServiceDesc for SessionRecordingService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var SessionRecordingService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "controller.api.services.v1.SessionRecordingService", + HandlerType: (*SessionRecordingServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetSessionRecording", + Handler: _SessionRecordingService_GetSessionRecording_Handler, + }, + { + MethodName: "ListSessionRecordings", + Handler: _SessionRecordingService_ListSessionRecordings_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Download", + Handler: _SessionRecordingService_Download_Handler, + ServerStreams: true, + }, + }, + Metadata: "controller/api/services/v1/session_recording_service.proto", +} diff --git a/internal/proto/buf.yaml b/internal/proto/buf.yaml index e74bebf6a..6da2c4a9a 100644 --- a/internal/proto/buf.yaml +++ b/internal/proto/buf.yaml @@ -13,3 +13,6 @@ lint: FIELD_LOWER_SNAKE_CASE: - controller/api/v1/error.proto - controller/custom_options/v1/testing.proto + RPC_RESPONSE_STANDARD_NAME: + # Ignore use of google.api.HttpBody for raw HTTP responses + - controller/api/services/v1/session_recording_service.proto diff --git a/internal/proto/controller/api/resources/sessionrecordings/v1/session_recording.proto b/internal/proto/controller/api/resources/sessionrecordings/v1/session_recording.proto new file mode 100644 index 000000000..9e6d53ede --- /dev/null +++ b/internal/proto/controller/api/resources/sessionrecordings/v1/session_recording.proto @@ -0,0 +1,176 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +syntax = "proto3"; + +package controller.api.resources.sessionrecordings.v1; + +import "controller/api/resources/scopes/v1/scope.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/session_recordings;session_recordings"; + +// ChannelRecording contains recorded information about a single Channel within a Connection. +// Channels are only present in multiplexed protocols, such as SSH. +message ChannelRecording { + // The ID of the Channel recording. + string id = 1; // @gotags: class:"public" + + // The total number of bytes uploaded from the client in the Channel. + uint64 bytes_up = 2 [json_name = "bytes_up"]; // @gotags: class:"public" + + // The total number of bytes downloaded to the client in the Channel. + uint64 bytes_down = 3 [json_name = "bytes_down"]; // @gotags: class:"public" + + // The time the Channel started. + google.protobuf.Timestamp start_time = 4 [json_name = "start_time"]; // @gotags: class:"public" + + // The time the Channel ended. + google.protobuf.Timestamp end_time = 5 [json_name = "end_time"]; // @gotags: class:"public" + + // The total duration of the Channel. + google.protobuf.Duration duration = 6; // @gotags: class:"public" + + // MimeTypes define the mime types that can + // be used to consume the recording of this Channel. + // The only supported mime type is "application/x-asciicast". + repeated string mime_types = 7 [json_name = "mime_types"]; // @gotags: class:"public" +} + +// ConnectionRecording contains the recording of a single Connection within a Session. +message ConnectionRecording { + // The ID of the Connection recording. + string id = 1; // @gotags: class:"public" + + // The ID of the Connection this is a recording of. + string connection_id = 2 [json_name = "connection_id"]; // @gotags: class:"public" + + // The total number of bytes uploaded from the client in the Connection. + // This includes any protocol overhead. + uint64 bytes_up = 3 [json_name = "bytes_up"]; // @gotags: class:"public" + + // The total number of bytes downloaded to the client in the Connection. + // This includes any protocol overhead. + uint64 bytes_down = 4 [json_name = "bytes_down"]; // @gotags: class:"public" + + // The time the Connection started. + google.protobuf.Timestamp start_time = 5 [json_name = "start_time"]; // @gotags: class:"public" + + // The time the Connection ended. + google.protobuf.Timestamp end_time = 6 [json_name = "end_time"]; // @gotags: class:"public" + + // The total duration of the Connection. + google.protobuf.Duration duration = 7; // @gotags: class:"public" + + // MimeTypes define the mime types that can + // be used to consume the recording of this Connection. + // No mime types are currently supported. + repeated string mime_types = 8 [json_name = "mime_types"]; // @gotags: class:"public" + + // Optionally, the channels used in this Connection, + // if it is using a multiplexed protocol, such as SSH. + repeated ChannelRecording channel_recordings = 9 [json_name = "channel_recordings"]; +} + +// User describes an authenticated user in Boundary. +message User { + // The ID of the User. + string id = 1; // @gotags: class:"public" + + // The name of the User that created the Session. + string name = 2; // @gotags: class:"sensitive" + + // The description of the User that created the Session. + string description = 3; // @gotags: class:"sensitive" + + // The full name of the User that created the Session, + // inferred from the account used by the user. + string full_name = 4 [json_name = "full_name"]; // @gotags: class:"sensitive" + + // The login name of the User that created the Session, + // inferred from the account used by the user. + string login_name = 5 [json_name = "login_name"]; // @gotags: class:"sensitive" + + // The email of the User that created the Session, + // inferred from the account used by the user. + string email = 6; // @gotags: class:"sensitive" + + // The scope that the User is in. + resources.scopes.v1.ScopeInfo scope = 7; + + // The ID of the account that the User that created the Session authenticated with. + string account_id = 8 [json_name = "account_id"]; // @gotags: class:"public" +} + +// Target describes a target in Boundary. +message Target { + // The ID of the Target. + string id = 1; // @gotags: class:"public" + + // The name of the Target. + string name = 2; // @gotags: class:"public" + + // The project that the Target is in. + resources.scopes.v1.ScopeInfo scope = 3; + + // The ID of the storage bucket this Target's recordings use. + string storage_bucket_id = 4 [json_name = "storage_bucket_id"]; // @gotags: class:"public" +} + +// SessionRecording contains information about the recording of a Session. +message SessionRecording { + // The ID of the Session recording. + string id = 1; // @gotags: class:"public" + + // The scope that the Session Recording is in. + // This is inferred from the storage bucket associated + // with the target. + resources.scopes.v1.ScopeInfo scope = 2; + + // Information about the User that created the Session. + User user = 3; + + // The ID of the Session which this Session Recording recorded. + string session_id = 4 [json_name = "session_id"]; // @gotags: class:"public" + + // Information about the Target the Session connected to. + Target target = 5; + + // The total number of bytes uploaded from the client in the Session. + // This includes all bytes uploaded over all Connections, including + // any protocol overhead. + uint64 bytes_up = 6 [json_name = "bytes_up"]; // @gotags: class:"public" + + // The total number of bytes downloaded to the client in the Session. + // This includes all bytes downloaded over all Connections, including + // any protocol overhead. + uint64 bytes_down = 7 [json_name = "bytes_down"]; // @gotags: class:"public" + + // The time the Session started. + google.protobuf.Timestamp start_time = 8 [json_name = "start_time"]; // @gotags: class:"public" + + // The time the Session ended. + google.protobuf.Timestamp end_time = 9 [json_name = "end_time"]; // @gotags: class:"public" + + // The total duration of the Session. + google.protobuf.Duration duration = 10; // @gotags: class:"public" + + // The time that the Session recording will be deleted. + google.protobuf.Timestamp delete_on = 11 [json_name = "delete_on"]; // @gotags: class:"public" + + // Type of the Session that was recorded (e.g. ssh). + string type = 12; // @gotags: class:"public" + + // MimeTypes define the mime types that can + // be used to consume the recording of this Session. + // No mime types are currently supported. + repeated string mime_types = 13 [json_name = "mime_types"]; // @gotags: class:"public" + + // The recordings of the connections that were created in the Session. + // This field may be unset when listing Session recordings. + repeated ConnectionRecording connection_recordings = 14 [json_name = "connection_recordings"]; + + // The available actions on this resource for this user. + repeated string authorized_actions = 15 [json_name = "authorized_actions"]; // @gotags: class:"public" +} diff --git a/internal/proto/controller/api/services/v1/session_recording_service.proto b/internal/proto/controller/api/services/v1/session_recording_service.proto new file mode 100644 index 000000000..38ac70d21 --- /dev/null +++ b/internal/proto/controller/api/services/v1/session_recording_service.proto @@ -0,0 +1,80 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +syntax = "proto3"; + +package controller.api.services.v1; + +import "controller/api/resources/sessionrecordings/v1/session_recording.proto"; +import "google/api/annotations.proto"; +import "google/api/httpbody.proto"; +import "protoc-gen-openapiv2/options/annotations.proto"; + +option go_package = "github.com/hashicorp/boundary/internal/gen/controller/api/services;services"; + +service SessionRecordingService { + // GetSessionRecording returns a stored Session recording if present. The provided request + // must include the Session recording ID for the Session recording being retrieved, + // or the ID of the Session that was recorded. If that ID is missing, malformed or reference a + // non existing resource, an error is returned. + rpc GetSessionRecording(GetSessionRecordingRequest) returns (GetSessionRecordingResponse) { + option (google.api.http) = { + get: "/v1/session-recordings/{id}" + response_body: "item" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {summary: "GetSessionRecording returns a stored Session recording if present. The provided request must include the Session recording ID for the Session recording being retrieved, or the ID of the Session that was recorded. If that ID is missing, malformed or reference a non existing resource, an error is returned."}; + } + + // ListSessionRecordings lists all session recordings. + // Session recordings are ordered by start_time descending (most recently started first). + rpc ListSessionRecordings(ListSessionRecordingsRequest) returns (ListSessionRecordingsResponse) { + option (google.api.http) = {get: "/v1/session-recordings"}; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {summary: "ListSessionRecordings lists all Session recordings. Session recordings are ordered by start_time descending (most recently started first)."}; + } + + // Download returns the contents of the specified resource in the specified mime type. + // Supports both Session ID and Session recording ID for looking up a Session recording. + // Supports both Connection ID and Connection recording ID to look up a Connection recording. + // A Channel recording ID is required to look up a Channel recording. + // The only supported mime type is "application/x-asciicast". + rpc Download(DownloadRequest) returns (stream google.api.HttpBody) { + option (google.api.http) = {get: "/v1/session-recordings/{id}:download"}; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {summary: "Download returns the contents of the specified resource in the specified mime type. Supports both Session ID and Session recording ID for looking up a Session recording. Supports both Connection ID and Connection recording ID to look up a Connection recording. A Channel recording ID is required to look up a Channel recording. The only supported mime type is \"application/x-asciicast\"."}; + } +} + +message GetSessionRecordingRequest { + // The ID of the Session recording, or the ID of the Session that was recorded. + string id = 1; // @gotags: class:"public" +} + +message GetSessionRecordingResponse { + // The requested recording. + resources.sessionrecordings.v1.SessionRecording item = 1; +} + +message ListSessionRecordingsRequest { + // The scope in which to list session recordings. + // Must be set unless recursive is set. + string scope_id = 1; // @gotags: class:"public" + // Whether to recurse into child scopes when listing. + // If set and scope_id is empty, shows session recordings in + // all scopes the caller has access to. + bool recursive = 2; // @gotags: class:"public" +} + +message ListSessionRecordingsResponse { + // All Session recordings, ordered by start_time descending (most recently started first). + repeated resources.sessionrecordings.v1.SessionRecording items = 1; +} + +message DownloadRequest { + // The ID of the resource that should be downloaded. Supported types: + // - Session ID and Session recording ID for Session recordings + // - Connection ID and Connection recording ID for Connection recordings + // - Channel recording ID for Channel recordings + string id = 1; // @gotags: class:"public" + // The format of the response. The only supported mime type is "application/x-asciicast". + // Defaults to "application/x-asciicast" if not set. + string mime_type = 2 [json_name = "mime_type"]; // @gotags: class:"public" +} diff --git a/sdk/pbs/controller/api/resources/session_recordings/session_recording.pb.go b/sdk/pbs/controller/api/resources/session_recordings/session_recording.pb.go new file mode 100644 index 000000000..6d620788c --- /dev/null +++ b/sdk/pbs/controller/api/resources/session_recordings/session_recording.pb.go @@ -0,0 +1,920 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: controller/api/resources/sessionrecordings/v1/session_recording.proto + +package session_recordings + +import ( + scopes "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/scopes" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// ChannelRecording contains recorded information about a single Channel within a Connection. +// Channels are only present in multiplexed protocols, such as SSH. +type ChannelRecording struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The ID of the Channel recording. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // @gotags: class:"public" + // The total number of bytes uploaded from the client in the Channel. + BytesUp uint64 `protobuf:"varint,2,opt,name=bytes_up,proto3" json:"bytes_up,omitempty"` // @gotags: class:"public" + // The total number of bytes downloaded to the client in the Channel. + BytesDown uint64 `protobuf:"varint,3,opt,name=bytes_down,proto3" json:"bytes_down,omitempty"` // @gotags: class:"public" + // The time the Channel started. + StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,proto3" json:"start_time,omitempty"` // @gotags: class:"public" + // The time the Channel ended. + EndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_time,proto3" json:"end_time,omitempty"` // @gotags: class:"public" + // The total duration of the Channel. + Duration *durationpb.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` // @gotags: class:"public" + // MimeTypes define the mime types that can + // be used to consume the recording of this Channel. + // The only supported mime type is "application/x-asciicast". + MimeTypes []string `protobuf:"bytes,7,rep,name=mime_types,proto3" json:"mime_types,omitempty"` // @gotags: class:"public" +} + +func (x *ChannelRecording) Reset() { + *x = ChannelRecording{} + if protoimpl.UnsafeEnabled { + mi := &file_controller_api_resources_sessionrecordings_v1_session_recording_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChannelRecording) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChannelRecording) ProtoMessage() {} + +func (x *ChannelRecording) ProtoReflect() protoreflect.Message { + mi := &file_controller_api_resources_sessionrecordings_v1_session_recording_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChannelRecording.ProtoReflect.Descriptor instead. +func (*ChannelRecording) Descriptor() ([]byte, []int) { + return file_controller_api_resources_sessionrecordings_v1_session_recording_proto_rawDescGZIP(), []int{0} +} + +func (x *ChannelRecording) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ChannelRecording) GetBytesUp() uint64 { + if x != nil { + return x.BytesUp + } + return 0 +} + +func (x *ChannelRecording) GetBytesDown() uint64 { + if x != nil { + return x.BytesDown + } + return 0 +} + +func (x *ChannelRecording) GetStartTime() *timestamppb.Timestamp { + if x != nil { + return x.StartTime + } + return nil +} + +func (x *ChannelRecording) GetEndTime() *timestamppb.Timestamp { + if x != nil { + return x.EndTime + } + return nil +} + +func (x *ChannelRecording) GetDuration() *durationpb.Duration { + if x != nil { + return x.Duration + } + return nil +} + +func (x *ChannelRecording) GetMimeTypes() []string { + if x != nil { + return x.MimeTypes + } + return nil +} + +// ConnectionRecording contains the recording of a single Connection within a Session. +type ConnectionRecording struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The ID of the Connection recording. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // @gotags: class:"public" + // The ID of the Connection this is a recording of. + ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,proto3" json:"connection_id,omitempty"` // @gotags: class:"public" + // The total number of bytes uploaded from the client in the Connection. + // This includes any protocol overhead. + BytesUp uint64 `protobuf:"varint,3,opt,name=bytes_up,proto3" json:"bytes_up,omitempty"` // @gotags: class:"public" + // The total number of bytes downloaded to the client in the Connection. + // This includes any protocol overhead. + BytesDown uint64 `protobuf:"varint,4,opt,name=bytes_down,proto3" json:"bytes_down,omitempty"` // @gotags: class:"public" + // The time the Connection started. + StartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_time,proto3" json:"start_time,omitempty"` // @gotags: class:"public" + // The time the Connection ended. + EndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_time,proto3" json:"end_time,omitempty"` // @gotags: class:"public" + // The total duration of the Connection. + Duration *durationpb.Duration `protobuf:"bytes,7,opt,name=duration,proto3" json:"duration,omitempty"` // @gotags: class:"public" + // MimeTypes define the mime types that can + // be used to consume the recording of this Connection. + // No mime types are currently supported. + MimeTypes []string `protobuf:"bytes,8,rep,name=mime_types,proto3" json:"mime_types,omitempty"` // @gotags: class:"public" + // Optionally, the channels used in this Connection, + // if it is using a multiplexed protocol, such as SSH. + ChannelRecordings []*ChannelRecording `protobuf:"bytes,9,rep,name=channel_recordings,proto3" json:"channel_recordings,omitempty"` +} + +func (x *ConnectionRecording) Reset() { + *x = ConnectionRecording{} + if protoimpl.UnsafeEnabled { + mi := &file_controller_api_resources_sessionrecordings_v1_session_recording_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ConnectionRecording) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectionRecording) ProtoMessage() {} + +func (x *ConnectionRecording) ProtoReflect() protoreflect.Message { + mi := &file_controller_api_resources_sessionrecordings_v1_session_recording_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ConnectionRecording.ProtoReflect.Descriptor instead. +func (*ConnectionRecording) Descriptor() ([]byte, []int) { + return file_controller_api_resources_sessionrecordings_v1_session_recording_proto_rawDescGZIP(), []int{1} +} + +func (x *ConnectionRecording) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ConnectionRecording) GetConnectionId() string { + if x != nil { + return x.ConnectionId + } + return "" +} + +func (x *ConnectionRecording) GetBytesUp() uint64 { + if x != nil { + return x.BytesUp + } + return 0 +} + +func (x *ConnectionRecording) GetBytesDown() uint64 { + if x != nil { + return x.BytesDown + } + return 0 +} + +func (x *ConnectionRecording) GetStartTime() *timestamppb.Timestamp { + if x != nil { + return x.StartTime + } + return nil +} + +func (x *ConnectionRecording) GetEndTime() *timestamppb.Timestamp { + if x != nil { + return x.EndTime + } + return nil +} + +func (x *ConnectionRecording) GetDuration() *durationpb.Duration { + if x != nil { + return x.Duration + } + return nil +} + +func (x *ConnectionRecording) GetMimeTypes() []string { + if x != nil { + return x.MimeTypes + } + return nil +} + +func (x *ConnectionRecording) GetChannelRecordings() []*ChannelRecording { + if x != nil { + return x.ChannelRecordings + } + return nil +} + +// User describes an authenticated user in Boundary. +type User struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The ID of the User. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // @gotags: class:"public" + // The name of the User that created the Session. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // @gotags: class:"sensitive" + // The description of the User that created the Session. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // @gotags: class:"sensitive" + // The full name of the User that created the Session, + // inferred from the account used by the user. + FullName string `protobuf:"bytes,4,opt,name=full_name,proto3" json:"full_name,omitempty"` // @gotags: class:"sensitive" + // The login name of the User that created the Session, + // inferred from the account used by the user. + LoginName string `protobuf:"bytes,5,opt,name=login_name,proto3" json:"login_name,omitempty"` // @gotags: class:"sensitive" + // The email of the User that created the Session, + // inferred from the account used by the user. + Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` // @gotags: class:"sensitive" + // The scope that the User is in. + Scope *scopes.ScopeInfo `protobuf:"bytes,7,opt,name=scope,proto3" json:"scope,omitempty"` + // The ID of the account that the User that created the Session authenticated with. + AccountId string `protobuf:"bytes,8,opt,name=account_id,proto3" json:"account_id,omitempty"` // @gotags: class:"public" +} + +func (x *User) Reset() { + *x = User{} + if protoimpl.UnsafeEnabled { + mi := &file_controller_api_resources_sessionrecordings_v1_session_recording_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *User) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*User) ProtoMessage() {} + +func (x *User) ProtoReflect() protoreflect.Message { + mi := &file_controller_api_resources_sessionrecordings_v1_session_recording_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use User.ProtoReflect.Descriptor instead. +func (*User) Descriptor() ([]byte, []int) { + return file_controller_api_resources_sessionrecordings_v1_session_recording_proto_rawDescGZIP(), []int{2} +} + +func (x *User) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *User) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *User) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *User) GetFullName() string { + if x != nil { + return x.FullName + } + return "" +} + +func (x *User) GetLoginName() string { + if x != nil { + return x.LoginName + } + return "" +} + +func (x *User) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *User) GetScope() *scopes.ScopeInfo { + if x != nil { + return x.Scope + } + return nil +} + +func (x *User) GetAccountId() string { + if x != nil { + return x.AccountId + } + return "" +} + +// Target describes a target in Boundary. +type Target struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The ID of the Target. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // @gotags: class:"public" + // The name of the Target. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // @gotags: class:"public" + // The project that the Target is in. + Scope *scopes.ScopeInfo `protobuf:"bytes,3,opt,name=scope,proto3" json:"scope,omitempty"` + // The ID of the storage bucket this Target's recordings use. + StorageBucketId string `protobuf:"bytes,4,opt,name=storage_bucket_id,proto3" json:"storage_bucket_id,omitempty"` // @gotags: class:"public" +} + +func (x *Target) Reset() { + *x = Target{} + if protoimpl.UnsafeEnabled { + mi := &file_controller_api_resources_sessionrecordings_v1_session_recording_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Target) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Target) ProtoMessage() {} + +func (x *Target) ProtoReflect() protoreflect.Message { + mi := &file_controller_api_resources_sessionrecordings_v1_session_recording_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Target.ProtoReflect.Descriptor instead. +func (*Target) Descriptor() ([]byte, []int) { + return file_controller_api_resources_sessionrecordings_v1_session_recording_proto_rawDescGZIP(), []int{3} +} + +func (x *Target) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Target) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Target) GetScope() *scopes.ScopeInfo { + if x != nil { + return x.Scope + } + return nil +} + +func (x *Target) GetStorageBucketId() string { + if x != nil { + return x.StorageBucketId + } + return "" +} + +// SessionRecording contains information about the recording of a Session. +type SessionRecording struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The ID of the Session recording. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // @gotags: class:"public" + // The scope that the Session Recording is in. + // This is inferred from the storage bucket associated + // with the target. + Scope *scopes.ScopeInfo `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"` + // Information about the User that created the Session. + User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` + // The ID of the Session which this Session Recording recorded. + SessionId string `protobuf:"bytes,4,opt,name=session_id,proto3" json:"session_id,omitempty"` // @gotags: class:"public" + // Information about the Target the Session connected to. + Target *Target `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"` + // The total number of bytes uploaded from the client in the Session. + // This includes all bytes uploaded over all Connections, including + // any protocol overhead. + BytesUp uint64 `protobuf:"varint,6,opt,name=bytes_up,proto3" json:"bytes_up,omitempty"` // @gotags: class:"public" + // The total number of bytes downloaded to the client in the Session. + // This includes all bytes downloaded over all Connections, including + // any protocol overhead. + BytesDown uint64 `protobuf:"varint,7,opt,name=bytes_down,proto3" json:"bytes_down,omitempty"` // @gotags: class:"public" + // The time the Session started. + StartTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=start_time,proto3" json:"start_time,omitempty"` // @gotags: class:"public" + // The time the Session ended. + EndTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=end_time,proto3" json:"end_time,omitempty"` // @gotags: class:"public" + // The total duration of the Session. + Duration *durationpb.Duration `protobuf:"bytes,10,opt,name=duration,proto3" json:"duration,omitempty"` // @gotags: class:"public" + // The time that the Session recording will be deleted. + DeleteOn *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=delete_on,proto3" json:"delete_on,omitempty"` // @gotags: class:"public" + // Type of the Session that was recorded (e.g. ssh). + Type string `protobuf:"bytes,12,opt,name=type,proto3" json:"type,omitempty"` // @gotags: class:"public" + // MimeTypes define the mime types that can + // be used to consume the recording of this Session. + // No mime types are currently supported. + MimeTypes []string `protobuf:"bytes,13,rep,name=mime_types,proto3" json:"mime_types,omitempty"` // @gotags: class:"public" + // The recordings of the connections that were created in the Session. + // This field may be unset when listing Session recordings. + ConnectionRecordings []*ConnectionRecording `protobuf:"bytes,14,rep,name=connection_recordings,proto3" json:"connection_recordings,omitempty"` + // The available actions on this resource for this user. + AuthorizedActions []string `protobuf:"bytes,15,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty"` // @gotags: class:"public" +} + +func (x *SessionRecording) Reset() { + *x = SessionRecording{} + if protoimpl.UnsafeEnabled { + mi := &file_controller_api_resources_sessionrecordings_v1_session_recording_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SessionRecording) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SessionRecording) ProtoMessage() {} + +func (x *SessionRecording) ProtoReflect() protoreflect.Message { + mi := &file_controller_api_resources_sessionrecordings_v1_session_recording_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SessionRecording.ProtoReflect.Descriptor instead. +func (*SessionRecording) Descriptor() ([]byte, []int) { + return file_controller_api_resources_sessionrecordings_v1_session_recording_proto_rawDescGZIP(), []int{4} +} + +func (x *SessionRecording) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *SessionRecording) GetScope() *scopes.ScopeInfo { + if x != nil { + return x.Scope + } + return nil +} + +func (x *SessionRecording) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +func (x *SessionRecording) GetSessionId() string { + if x != nil { + return x.SessionId + } + return "" +} + +func (x *SessionRecording) GetTarget() *Target { + if x != nil { + return x.Target + } + return nil +} + +func (x *SessionRecording) GetBytesUp() uint64 { + if x != nil { + return x.BytesUp + } + return 0 +} + +func (x *SessionRecording) GetBytesDown() uint64 { + if x != nil { + return x.BytesDown + } + return 0 +} + +func (x *SessionRecording) GetStartTime() *timestamppb.Timestamp { + if x != nil { + return x.StartTime + } + return nil +} + +func (x *SessionRecording) GetEndTime() *timestamppb.Timestamp { + if x != nil { + return x.EndTime + } + return nil +} + +func (x *SessionRecording) GetDuration() *durationpb.Duration { + if x != nil { + return x.Duration + } + return nil +} + +func (x *SessionRecording) GetDeleteOn() *timestamppb.Timestamp { + if x != nil { + return x.DeleteOn + } + return nil +} + +func (x *SessionRecording) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *SessionRecording) GetMimeTypes() []string { + if x != nil { + return x.MimeTypes + } + return nil +} + +func (x *SessionRecording) GetConnectionRecordings() []*ConnectionRecording { + if x != nil { + return x.ConnectionRecordings + } + return nil +} + +func (x *SessionRecording) GetAuthorizedActions() []string { + if x != nil { + return x.AuthorizedActions + } + return nil +} + +var File_controller_api_resources_sessionrecordings_v1_session_recording_proto protoreflect.FileDescriptor + +var file_controller_api_resources_sessionrecordings_v1_session_recording_proto_rawDesc = []byte{ + 0x0a, 0x45, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x76, 0x31, 0x2f, + 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, + 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, + 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x2f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x6f, 0x70, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa9, 0x02, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, + 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, + 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, + 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x75, 0x70, 0x12, 0x1e, 0x0a, 0x0a, 0x62, 0x79, 0x74, 0x65, + 0x73, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x62, 0x79, + 0x74, 0x65, 0x73, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x12, 0x3a, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, + 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x22, 0xc3, 0x03, 0x0a, 0x13, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, + 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x75, 0x70, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x08, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x75, 0x70, 0x12, 0x1e, 0x0a, + 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x12, 0x3a, 0x0a, + 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x08, 0x65, 0x6e, 0x64, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, + 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x69, 0x6d, 0x65, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x69, + 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x6f, 0x0a, 0x12, 0x63, 0x68, 0x61, 0x6e, + 0x6e, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x09, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, + 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, + 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x72, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x85, 0x02, 0x0a, 0x04, 0x55, 0x73, + 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x75, 0x6c, + 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x6f, 0x67, 0x69, + 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x43, 0x0a, 0x05, + 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, + 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, + 0x64, 0x22, 0x9f, 0x01, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x43, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2d, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x63, 0x6f, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, + 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x5f, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x11, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, + 0x5f, 0x69, 0x64, 0x22, 0x9e, 0x06, 0x0a, 0x10, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x43, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, + 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x2e, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x6f, + 0x70, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x47, 0x0a, + 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x72, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x12, 0x4d, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, + 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x06, 0x74, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x75, + 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x75, + 0x70, 0x12, 0x1e, 0x0a, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x64, 0x6f, 0x77, + 0x6e, 0x12, 0x3a, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x36, 0x0a, + 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x08, 0x65, 0x6e, 0x64, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x0a, 0x09, + 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x64, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0c, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x69, + 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, + 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x78, 0x0a, 0x15, 0x63, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, + 0x6e, 0x67, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x72, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x15, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2e, 0x0a, 0x12, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, + 0x65, 0x64, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x12, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x66, 0x5a, 0x64, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x62, 0x6f, 0x75, + 0x6e, 0x64, 0x61, 0x72, 0x79, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x73, 0x2f, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x3b, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_controller_api_resources_sessionrecordings_v1_session_recording_proto_rawDescOnce sync.Once + file_controller_api_resources_sessionrecordings_v1_session_recording_proto_rawDescData = file_controller_api_resources_sessionrecordings_v1_session_recording_proto_rawDesc +) + +func file_controller_api_resources_sessionrecordings_v1_session_recording_proto_rawDescGZIP() []byte { + file_controller_api_resources_sessionrecordings_v1_session_recording_proto_rawDescOnce.Do(func() { + file_controller_api_resources_sessionrecordings_v1_session_recording_proto_rawDescData = protoimpl.X.CompressGZIP(file_controller_api_resources_sessionrecordings_v1_session_recording_proto_rawDescData) + }) + return file_controller_api_resources_sessionrecordings_v1_session_recording_proto_rawDescData +} + +var file_controller_api_resources_sessionrecordings_v1_session_recording_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_controller_api_resources_sessionrecordings_v1_session_recording_proto_goTypes = []interface{}{ + (*ChannelRecording)(nil), // 0: controller.api.resources.sessionrecordings.v1.ChannelRecording + (*ConnectionRecording)(nil), // 1: controller.api.resources.sessionrecordings.v1.ConnectionRecording + (*User)(nil), // 2: controller.api.resources.sessionrecordings.v1.User + (*Target)(nil), // 3: controller.api.resources.sessionrecordings.v1.Target + (*SessionRecording)(nil), // 4: controller.api.resources.sessionrecordings.v1.SessionRecording + (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 6: google.protobuf.Duration + (*scopes.ScopeInfo)(nil), // 7: controller.api.resources.scopes.v1.ScopeInfo +} +var file_controller_api_resources_sessionrecordings_v1_session_recording_proto_depIdxs = []int32{ + 5, // 0: controller.api.resources.sessionrecordings.v1.ChannelRecording.start_time:type_name -> google.protobuf.Timestamp + 5, // 1: controller.api.resources.sessionrecordings.v1.ChannelRecording.end_time:type_name -> google.protobuf.Timestamp + 6, // 2: controller.api.resources.sessionrecordings.v1.ChannelRecording.duration:type_name -> google.protobuf.Duration + 5, // 3: controller.api.resources.sessionrecordings.v1.ConnectionRecording.start_time:type_name -> google.protobuf.Timestamp + 5, // 4: controller.api.resources.sessionrecordings.v1.ConnectionRecording.end_time:type_name -> google.protobuf.Timestamp + 6, // 5: controller.api.resources.sessionrecordings.v1.ConnectionRecording.duration:type_name -> google.protobuf.Duration + 0, // 6: controller.api.resources.sessionrecordings.v1.ConnectionRecording.channel_recordings:type_name -> controller.api.resources.sessionrecordings.v1.ChannelRecording + 7, // 7: controller.api.resources.sessionrecordings.v1.User.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo + 7, // 8: controller.api.resources.sessionrecordings.v1.Target.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo + 7, // 9: controller.api.resources.sessionrecordings.v1.SessionRecording.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo + 2, // 10: controller.api.resources.sessionrecordings.v1.SessionRecording.user:type_name -> controller.api.resources.sessionrecordings.v1.User + 3, // 11: controller.api.resources.sessionrecordings.v1.SessionRecording.target:type_name -> controller.api.resources.sessionrecordings.v1.Target + 5, // 12: controller.api.resources.sessionrecordings.v1.SessionRecording.start_time:type_name -> google.protobuf.Timestamp + 5, // 13: controller.api.resources.sessionrecordings.v1.SessionRecording.end_time:type_name -> google.protobuf.Timestamp + 6, // 14: controller.api.resources.sessionrecordings.v1.SessionRecording.duration:type_name -> google.protobuf.Duration + 5, // 15: controller.api.resources.sessionrecordings.v1.SessionRecording.delete_on:type_name -> google.protobuf.Timestamp + 1, // 16: controller.api.resources.sessionrecordings.v1.SessionRecording.connection_recordings:type_name -> controller.api.resources.sessionrecordings.v1.ConnectionRecording + 17, // [17:17] is the sub-list for method output_type + 17, // [17:17] is the sub-list for method input_type + 17, // [17:17] is the sub-list for extension type_name + 17, // [17:17] is the sub-list for extension extendee + 0, // [0:17] is the sub-list for field type_name +} + +func init() { file_controller_api_resources_sessionrecordings_v1_session_recording_proto_init() } +func file_controller_api_resources_sessionrecordings_v1_session_recording_proto_init() { + if File_controller_api_resources_sessionrecordings_v1_session_recording_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_controller_api_resources_sessionrecordings_v1_session_recording_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChannelRecording); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_controller_api_resources_sessionrecordings_v1_session_recording_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConnectionRecording); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_controller_api_resources_sessionrecordings_v1_session_recording_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*User); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_controller_api_resources_sessionrecordings_v1_session_recording_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Target); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_controller_api_resources_sessionrecordings_v1_session_recording_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SessionRecording); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_controller_api_resources_sessionrecordings_v1_session_recording_proto_rawDesc, + NumEnums: 0, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_controller_api_resources_sessionrecordings_v1_session_recording_proto_goTypes, + DependencyIndexes: file_controller_api_resources_sessionrecordings_v1_session_recording_proto_depIdxs, + MessageInfos: file_controller_api_resources_sessionrecordings_v1_session_recording_proto_msgTypes, + }.Build() + File_controller_api_resources_sessionrecordings_v1_session_recording_proto = out.File + file_controller_api_resources_sessionrecordings_v1_session_recording_proto_rawDesc = nil + file_controller_api_resources_sessionrecordings_v1_session_recording_proto_goTypes = nil + file_controller_api_resources_sessionrecordings_v1_session_recording_proto_depIdxs = nil +}