syntax = "proto3";

package com.wixpress.iptf.webhooks.api.v1;

import "google/api/annotations.proto";
import "wix/api/validations.proto";

service WebhooksDebugService {
    rpc submit(SubmitWebhookRequest) returns (SubmitWebhookResponse) {
        option (google.api.http) = {
            post: "debug/submit"
        };
    }
}

message SubmitWebhookRequest {
    string url = 1;
    string event_type = 2;
    string topic = 3;
    string payload = 4;
    string http_method = 5;
    string jwt_secret = 6;
    int64 expireInMs = 7;
    int64 submitted = 8;
    bool should_override_proxy = 9;
    string rsa_private_key = 10;
}

message SubmitWebhookResponse {
    int32 status_code = 1;
    string message = 2;
}