// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js" // @generated from file open-api/v1/webhooks.proto (package openapi.v1, syntax proto3) /* eslint-disable */ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Timestamp } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file open-api/v1/webhooks.proto. */ export const file_open_api_v1_webhooks: GenFile = /*@__PURE__*/ fileDesc("ChpvcGVuLWFwaS92MS93ZWJob29rcy5wcm90bxIKb3BlbmFwaS52MSLAAQoHV2ViaG9vaxIKCgJpZBgBIAEoAxIuCgpjcmVhdGVkX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIUCgxhcnR3b3JrZXJfaWQYBCABKAMSCwoDdXJsGAUgASgJEg4KBnNlY3JldBgGIAEoCRIWCg5lbmFibGVkX2V2ZW50cxgHIAMoCSJRChRDcmVhdGVXZWJob29rUmVxdWVzdBIUCgxhcnR3b3JrZXJfaWQYASABKAMSCwoDdXJsGAIgASgJEhYKDmVuYWJsZWRfZXZlbnRzGAMgAygJIj0KFUNyZWF0ZVdlYmhvb2tSZXNwb25zZRIkCgd3ZWJob29rGAEgASgLMhMub3BlbmFwaS52MS5XZWJob29rIk8KFFVwZGF0ZVdlYmhvb2tSZXF1ZXN0EhIKCndlYmhvb2tfaWQYASABKAMSCwoDdXJsGAIgASgJEhYKDmVuYWJsZWRfZXZlbnRzGAMgAygJIj0KFVVwZGF0ZVdlYmhvb2tSZXNwb25zZRIkCgd3ZWJob29rGAEgASgLMhMub3BlbmFwaS52MS5XZWJob29rIioKFERlbGV0ZVdlYmhvb2tSZXF1ZXN0EhIKCndlYmhvb2tfaWQYASABKAMiIwoVRGVsZXRlV2ViaG9va1Jlc3BvbnNlEgoKAm9rGAEgASgIIioKEkdldFdlYmhvb2tzUmVxdWVzdBIUCgxhcnR3b3JrZXJfaWQYASABKAMiPAoTR2V0V2ViaG9va3NSZXNwb25zZRIlCgh3ZWJob29rcxgBIAMoCzITLm9wZW5hcGkudjEuV2ViaG9vayI0ChVUZXN0V2ViaG9va1VSTFJlcXVlc3QSCwoDdXJsGAEgASgJEg4KBnNlY3JldBgCIAEoCSItChZUZXN0V2ViaG9va1VSTFJlc3BvbnNlEhMKC3N0YXR1c19jb2RlGAEgASgFQkpaSGJpdGJ1Y2tldC5vcmcva3Vkb3VrL2FydHdvcmtlci1iYWNrZW5kL3Byb3RvL2dlbi9nby9vcGVuYXBpL3YxO29wZW5hcGl2MWIGcHJvdG8z", [file_google_protobuf_timestamp]); /** * @generated from message openapi.v1.Webhook */ export type Webhook = Message<"openapi.v1.Webhook"> & { /** * @generated from field: int64 id = 1; */ id: bigint; /** * @generated from field: google.protobuf.Timestamp created_at = 2; */ createdAt?: Timestamp; /** * @generated from field: google.protobuf.Timestamp updated_at = 3; */ updatedAt?: Timestamp; /** * @generated from field: int64 artworker_id = 4; */ artworkerId: bigint; /** * @generated from field: string url = 5; */ url: string; /** * @generated from field: string secret = 6; */ secret: string; /** * @generated from field: repeated string enabled_events = 7; */ enabledEvents: string[]; }; /** * Describes the message openapi.v1.Webhook. * Use `create(WebhookSchema)` to create a new message. */ export const WebhookSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_webhooks, 0); /** * @generated from message openapi.v1.CreateWebhookRequest */ export type CreateWebhookRequest = Message<"openapi.v1.CreateWebhookRequest"> & { /** * @generated from field: int64 artworker_id = 1; */ artworkerId: bigint; /** * @generated from field: string url = 2; */ url: string; /** * @generated from field: repeated string enabled_events = 3; */ enabledEvents: string[]; }; /** * Describes the message openapi.v1.CreateWebhookRequest. * Use `create(CreateWebhookRequestSchema)` to create a new message. */ export const CreateWebhookRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_webhooks, 1); /** * @generated from message openapi.v1.CreateWebhookResponse */ export type CreateWebhookResponse = Message<"openapi.v1.CreateWebhookResponse"> & { /** * @generated from field: openapi.v1.Webhook webhook = 1; */ webhook?: Webhook; }; /** * Describes the message openapi.v1.CreateWebhookResponse. * Use `create(CreateWebhookResponseSchema)` to create a new message. */ export const CreateWebhookResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_webhooks, 2); /** * @generated from message openapi.v1.UpdateWebhookRequest */ export type UpdateWebhookRequest = Message<"openapi.v1.UpdateWebhookRequest"> & { /** * @generated from field: int64 webhook_id = 1; */ webhookId: bigint; /** * @generated from field: string url = 2; */ url: string; /** * @generated from field: repeated string enabled_events = 3; */ enabledEvents: string[]; }; /** * Describes the message openapi.v1.UpdateWebhookRequest. * Use `create(UpdateWebhookRequestSchema)` to create a new message. */ export const UpdateWebhookRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_webhooks, 3); /** * @generated from message openapi.v1.UpdateWebhookResponse */ export type UpdateWebhookResponse = Message<"openapi.v1.UpdateWebhookResponse"> & { /** * @generated from field: openapi.v1.Webhook webhook = 1; */ webhook?: Webhook; }; /** * Describes the message openapi.v1.UpdateWebhookResponse. * Use `create(UpdateWebhookResponseSchema)` to create a new message. */ export const UpdateWebhookResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_webhooks, 4); /** * @generated from message openapi.v1.DeleteWebhookRequest */ export type DeleteWebhookRequest = Message<"openapi.v1.DeleteWebhookRequest"> & { /** * @generated from field: int64 webhook_id = 1; */ webhookId: bigint; }; /** * Describes the message openapi.v1.DeleteWebhookRequest. * Use `create(DeleteWebhookRequestSchema)` to create a new message. */ export const DeleteWebhookRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_webhooks, 5); /** * @generated from message openapi.v1.DeleteWebhookResponse */ export type DeleteWebhookResponse = Message<"openapi.v1.DeleteWebhookResponse"> & { /** * @generated from field: bool ok = 1; */ ok: boolean; }; /** * Describes the message openapi.v1.DeleteWebhookResponse. * Use `create(DeleteWebhookResponseSchema)` to create a new message. */ export const DeleteWebhookResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_webhooks, 6); /** * @generated from message openapi.v1.GetWebhooksRequest */ export type GetWebhooksRequest = Message<"openapi.v1.GetWebhooksRequest"> & { /** * @generated from field: int64 artworker_id = 1; */ artworkerId: bigint; }; /** * Describes the message openapi.v1.GetWebhooksRequest. * Use `create(GetWebhooksRequestSchema)` to create a new message. */ export const GetWebhooksRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_webhooks, 7); /** * @generated from message openapi.v1.GetWebhooksResponse */ export type GetWebhooksResponse = Message<"openapi.v1.GetWebhooksResponse"> & { /** * @generated from field: repeated openapi.v1.Webhook webhooks = 1; */ webhooks: Webhook[]; }; /** * Describes the message openapi.v1.GetWebhooksResponse. * Use `create(GetWebhooksResponseSchema)` to create a new message. */ export const GetWebhooksResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_webhooks, 8); /** * @generated from message openapi.v1.TestWebhookURLRequest */ export type TestWebhookURLRequest = Message<"openapi.v1.TestWebhookURLRequest"> & { /** * @generated from field: string url = 1; */ url: string; /** * @generated from field: string secret = 2; */ secret: string; }; /** * Describes the message openapi.v1.TestWebhookURLRequest. * Use `create(TestWebhookURLRequestSchema)` to create a new message. */ export const TestWebhookURLRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_webhooks, 9); /** * @generated from message openapi.v1.TestWebhookURLResponse */ export type TestWebhookURLResponse = Message<"openapi.v1.TestWebhookURLResponse"> & { /** * @generated from field: int32 status_code = 1; */ statusCode: number; }; /** * Describes the message openapi.v1.TestWebhookURLResponse. * Use `create(TestWebhookURLResponseSchema)` to create a new message. */ export const TestWebhookURLResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_webhooks, 10);