// This proto file was generated from internal-user-creation-api.yml.
// Care should be taken while both files exist to maintain backwards compatibility with the Conjure generated code.

syntax = "proto3";

package nominal.user_creation.v1;

import "google/api/annotations.proto";

option java_multiple_files = true;
option java_package = "io.nominal.usercreation.v1";

// Internal service responsible for handling creation of new users.
service InternalUserCreationService {
  // Ensures that the user corresponding to the auth header provided exists in the database.
  // No-op if the user already exists.
  rpc EnsureDatabaseUserExists(EnsureDatabaseUserExistsRequest) returns (EnsureDatabaseUserExistsResponse) {
    option (google.api.http) = {
      put: "/user-creation/v1/database"
      body: "*"
    };
  }
}

message EnsureDatabaseUserExistsRequest {}

message EnsureDatabaseUserExistsResponse {}
