;
};
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): _RotateWebhookSecretRequest;
serializeBinary(): Uint8Array;
static deserializeBinary(bytes: Uint8Array): _RotateWebhookSecretRequest;
}
export class _RotateWebhookSecretResponse extends pb_1.Message {
#private;
constructor(data?: any[] | {
secret_string?: string;
});
get secret_string(): string;
set secret_string(value: string);
static fromObject(data: {
secret_string?: string;
}): _RotateWebhookSecretResponse;
toObject(): {
secret_string?: string;
};
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): _RotateWebhookSecretResponse;
serializeBinary(): Uint8Array;
static deserializeBinary(bytes: Uint8Array): _RotateWebhookSecretResponse;
}
interface GrpcUnaryServiceInterface {
(message: P, metadata: grpc_1.Metadata, options: grpc_1.CallOptions, callback: grpc_1.requestCallback): grpc_1.ClientUnaryCall;
(message: P, metadata: grpc_1.Metadata, callback: grpc_1.requestCallback): grpc_1.ClientUnaryCall;
(message: P, options: grpc_1.CallOptions, callback: grpc_1.requestCallback): grpc_1.ClientUnaryCall;
(message: P, callback: grpc_1.requestCallback): grpc_1.ClientUnaryCall;
}
export abstract class UnimplementedWebhookService {
static definition: {
PutWebhook: {
path: string;
requestStream: boolean;
responseStream: boolean;
requestSerialize: (message: _PutWebhookRequest) => Buffer;
requestDeserialize: (bytes: Buffer) => _PutWebhookRequest;
responseSerialize: (message: _PutWebhookResponse) => Buffer;
responseDeserialize: (bytes: Buffer) => _PutWebhookResponse;
};
DeleteWebhook: {
path: string;
requestStream: boolean;
responseStream: boolean;
requestSerialize: (message: _DeleteWebhookRequest) => Buffer;
requestDeserialize: (bytes: Buffer) => _DeleteWebhookRequest;
responseSerialize: (message: _DeleteWebhookResponse) => Buffer;
responseDeserialize: (bytes: Buffer) => _DeleteWebhookResponse;
};
ListWebhooks: {
path: string;
requestStream: boolean;
responseStream: boolean;
requestSerialize: (message: _ListWebhookRequest) => Buffer;
requestDeserialize: (bytes: Buffer) => _ListWebhookRequest;
responseSerialize: (message: _ListWebhooksResponse) => Buffer;
responseDeserialize: (bytes: Buffer) => _ListWebhooksResponse;
};
GetWebhookSecret: {
path: string;
requestStream: boolean;
responseStream: boolean;
requestSerialize: (message: _GetWebhookSecretRequest) => Buffer;
requestDeserialize: (bytes: Buffer) => _GetWebhookSecretRequest;
responseSerialize: (message: _GetWebhookSecretResponse) => Buffer;
responseDeserialize: (bytes: Buffer) => _GetWebhookSecretResponse;
};
RotateWebhookSecret: {
path: string;
requestStream: boolean;
responseStream: boolean;
requestSerialize: (message: _RotateWebhookSecretRequest) => Buffer;
requestDeserialize: (bytes: Buffer) => _RotateWebhookSecretRequest;
responseSerialize: (message: _RotateWebhookSecretResponse) => Buffer;
responseDeserialize: (bytes: Buffer) => _RotateWebhookSecretResponse;
};
};
[method: string]: grpc_1.UntypedHandleCall;
abstract PutWebhook(call: grpc_1.ServerUnaryCall<_PutWebhookRequest, _PutWebhookResponse>, callback: grpc_1.sendUnaryData<_PutWebhookResponse>): void;
abstract DeleteWebhook(call: grpc_1.ServerUnaryCall<_DeleteWebhookRequest, _DeleteWebhookResponse>, callback: grpc_1.sendUnaryData<_DeleteWebhookResponse>): void;
abstract ListWebhooks(call: grpc_1.ServerUnaryCall<_ListWebhookRequest, _ListWebhooksResponse>, callback: grpc_1.sendUnaryData<_ListWebhooksResponse>): void;
abstract GetWebhookSecret(call: grpc_1.ServerUnaryCall<_GetWebhookSecretRequest, _GetWebhookSecretResponse>, callback: grpc_1.sendUnaryData<_GetWebhookSecretResponse>): void;
abstract RotateWebhookSecret(call: grpc_1.ServerUnaryCall<_RotateWebhookSecretRequest, _RotateWebhookSecretResponse>, callback: grpc_1.sendUnaryData<_RotateWebhookSecretResponse>): void;
}
const WebhookClient_base: grpc_1.ServiceClientConstructor;
export class WebhookClient extends WebhookClient_base {
constructor(address: string, credentials: grpc_1.ChannelCredentials, options?: Partial);
PutWebhook: GrpcUnaryServiceInterface<_PutWebhookRequest, _PutWebhookResponse>;
DeleteWebhook: GrpcUnaryServiceInterface<_DeleteWebhookRequest, _DeleteWebhookResponse>;
ListWebhooks: GrpcUnaryServiceInterface<_ListWebhookRequest, _ListWebhooksResponse>;
GetWebhookSecret: GrpcUnaryServiceInterface<_GetWebhookSecretRequest, _GetWebhookSecretResponse>;
RotateWebhookSecret: GrpcUnaryServiceInterface<_RotateWebhookSecretRequest, _RotateWebhookSecretResponse>;
}
export {};
}