// M-Files Server gRPC API 26.11. Generated from the M-Files Server IDL; do not edit.
// Documentation: https://developer.m-files.com/APIs/gRPC-API/
syntax = "proto3";

package MFiles;

import "mfiles/api/annotations.proto";

option csharp_namespace = "MFiles.Grpc";
option go_package = "github.com/M-Files/mfiles-grpc-api/go/mfiles;mfiles";
option java_multiple_files = true;
option java_package = "com.mfiles.grpc";
option objc_class_prefix = "MF_";

// Registers an M-Files Web Companion installation with a vault.
//
// **For M-Files components only.** M-Files Web calls this service when it pairs with the M-Files
// Web Companion app that runs on the user's computer. Applications should not call it.
service IRPCWebCompanionOperation {
	option (mfiles.api.service) = { book: "integration" level: LEVEL_SPECIALIZED title: "Web companion" };

	// Registers an M-Files Web Companion installation with the vault for the calling user.
	//
	// **For M-Files components only.** M-Files Web calls it when it pairs with M-Files Web Companion.
	// Applications should not call it.
	rpc RegisterWebCompanion( RegisterWebCompanionRequest ) returns ( RegisterWebCompanionResponse ) {
		option (mfiles.api.method) = { session: SESSION_REQUIREMENT_SESSION internal: true };
	}
}

// The request of RegisterWebCompanion.
message RegisterWebCompanionRequest {

	// The app ID of the Web Companion installation, at most 125 characters.
	string app_id = 1;
}

// The response of RegisterWebCompanion.
message RegisterWebCompanionResponse {

	// For M-Files Web Companion.
	string secret_key = 1;
}
