// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js" // @generated from file integrations/v1/integrations.proto (package integrations.v1, syntax proto3) /* eslint-disable */ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt"; import type { JsonObject, Message } from "@bufbuild/protobuf"; /** * Describes the file integrations/v1/integrations.proto. */ export const file_integrations_v1_integrations: GenFile = /*@__PURE__*/ fileDesc("CiJpbnRlZ3JhdGlvbnMvdjEvaW50ZWdyYXRpb25zLnByb3RvEg9pbnRlZ3JhdGlvbnMudjEiagoFRXZlbnQSFAoMYXJ0d29ya2VyX2lkGAEgASgDEhMKC2ludGVncmF0aW9uGAIgASgJEgwKBHR5cGUYAyABKAkSKAoHcGF5bG9hZBgEIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QiKgoDQWNrEhAKCGFjY2VwdGVkGAEgASgIEhEKCWVycm9yX21zZxgCIAEoCSJ0Cg1BY3Rpb25SZXF1ZXN0EhQKDGFydHdvcmtlcl9pZBgBIAEoAxITCgtpbnRlZ3JhdGlvbhgCIAEoCRIOCgZhY3Rpb24YAyABKAkSKAoHcGF5bG9hZBgEIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QiXgoMQWN0aW9uUmVzdWx0EhEKCXN1Y2NlZWRlZBgBIAEoCBIRCgllcnJvcl9tc2cYAiABKAkSKAoHcGF5bG9hZBgDIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QikAEKH1Vwc2VydEludGVncmF0aW9uU2V0dGluZ1JlcXVlc3QSFAoMYXJ0d29ya2VyX2lkGAEgASgDEhMKC2ludGVncmF0aW9uGAIgASgJEiwKC2NvbmZpZ19qc29uGAMgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBIUCgxpc190ZXN0X21vZGUYBCABKAgiWAogVXBzZXJ0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pb25zdjFiBnByb3RvMw", [file_google_protobuf_struct]); /** * Event represents an inbound event from an integration * * @generated from message integrations.v1.Event */ export type Event = Message<"integrations.v1.Event"> & { /** * @generated from field: int64 artworker_id = 1; */ artworkerId: bigint; /** * @generated from field: string integration = 2; */ integration: string; /** * @generated from field: string type = 3; */ type: string; /** * @generated from field: google.protobuf.Struct payload = 4; */ payload?: JsonObject; }; /** * Describes the message integrations.v1.Event. * Use `create(EventSchema)` to create a new message. */ export const EventSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 0); /** * Ack represents an acknowledgment of an event * * @generated from message integrations.v1.Ack */ export type Ack = Message<"integrations.v1.Ack"> & { /** * @generated from field: bool accepted = 1; */ accepted: boolean; /** * @generated from field: string error_msg = 2; */ errorMsg: string; }; /** * Describes the message integrations.v1.Ack. * Use `create(AckSchema)` to create a new message. */ export const AckSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 1); /** * ActionRequest represents an outbound action request to an integration * * @generated from message integrations.v1.ActionRequest */ export type ActionRequest = Message<"integrations.v1.ActionRequest"> & { /** * @generated from field: int64 artworker_id = 1; */ artworkerId: bigint; /** * @generated from field: string integration = 2; */ integration: string; /** * @generated from field: string action = 3; */ action: string; /** * @generated from field: google.protobuf.Struct payload = 4; */ payload?: JsonObject; }; /** * Describes the message integrations.v1.ActionRequest. * Use `create(ActionRequestSchema)` to create a new message. */ export const ActionRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 2); /** * ActionResult represents the result of an action * * @generated from message integrations.v1.ActionResult */ export type ActionResult = Message<"integrations.v1.ActionResult"> & { /** * @generated from field: bool succeeded = 1; */ succeeded: boolean; /** * @generated from field: string error_msg = 2; */ errorMsg: string; /** * @generated from field: google.protobuf.Struct payload = 3; */ payload?: JsonObject; }; /** * Describes the message integrations.v1.ActionResult. * Use `create(ActionResultSchema)` to create a new message. */ export const ActionResultSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 3); /** * UpsertIntegrationSettingRequest represents a request to update an integration setting * * @generated from message integrations.v1.UpsertIntegrationSettingRequest */ export type UpsertIntegrationSettingRequest = Message<"integrations.v1.UpsertIntegrationSettingRequest"> & { /** * @generated from field: int64 artworker_id = 1; */ artworkerId: bigint; /** * @generated from field: string integration = 2; */ integration: string; /** * @generated from field: google.protobuf.Struct config_json = 3; */ configJson?: JsonObject; /** * @generated from field: bool is_test_mode = 4; */ isTestMode: boolean; }; /** * Describes the message integrations.v1.UpsertIntegrationSettingRequest. * Use `create(UpsertIntegrationSettingRequestSchema)` to create a new message. */ export const UpsertIntegrationSettingRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 4); /** * @generated from message integrations.v1.UpsertIntegrationSettingResponse */ export type UpsertIntegrationSettingResponse = Message<"integrations.v1.UpsertIntegrationSettingResponse"> & { /** * @generated from field: integrations.v1.IntegrationSetting setting = 1; */ setting?: IntegrationSetting; }; /** * Describes the message integrations.v1.UpsertIntegrationSettingResponse. * Use `create(UpsertIntegrationSettingResponseSchema)` to create a new message. */ export const UpsertIntegrationSettingResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 5); /** * Test mode management messages * * @generated from message integrations.v1.GetIntegrationSettingRequest */ export type GetIntegrationSettingRequest = Message<"integrations.v1.GetIntegrationSettingRequest"> & { /** * @generated from field: int64 artworker_id = 1; */ artworkerId: bigint; /** * @generated from field: string integration = 2; */ integration: string; /** * @generated from field: bool populate_current_test = 3; */ populateCurrentTest: boolean; }; /** * Describes the message integrations.v1.GetIntegrationSettingRequest. * Use `create(GetIntegrationSettingRequestSchema)` to create a new message. */ export const GetIntegrationSettingRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 6); /** * @generated from message integrations.v1.TestMessage */ export type TestMessage = Message<"integrations.v1.TestMessage"> & { /** * @generated from field: string id = 1; */ id: string; /** * @generated from field: int64 artworker_id = 2; */ artworkerId: bigint; /** * @generated from field: string integration = 3; */ integration: string; /** * @generated from field: string type = 4; */ type: string; /** * @generated from field: string status = 5; */ status: string; /** * @generated from field: string error_message = 6; */ errorMessage: string; }; /** * Describes the message integrations.v1.TestMessage. * Use `create(TestMessageSchema)` to create a new message. */ export const TestMessageSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 7); /** * @generated from message integrations.v1.IntegrationSetting */ export type IntegrationSetting = Message<"integrations.v1.IntegrationSetting"> & { /** * @generated from field: int64 artworker_id = 1; */ artworkerId: bigint; /** * @generated from field: string integration = 2; */ integration: string; /** * @generated from field: google.protobuf.Struct config_json = 3; */ configJson?: JsonObject; /** * @generated from field: bool is_test_mode = 4; */ isTestMode: boolean; /** * @generated from field: string current_test_id = 5; */ currentTestId: string; /** * @generated from field: integrations.v1.TestMessage current_test = 6; */ currentTest?: TestMessage; /** * @generated from field: bool enabled = 7; */ enabled: boolean; }; /** * Describes the message integrations.v1.IntegrationSetting. * Use `create(IntegrationSettingSchema)` to create a new message. */ export const IntegrationSettingSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 8); /** * @generated from message integrations.v1.GetIntegrationSettingResponse */ export type GetIntegrationSettingResponse = Message<"integrations.v1.GetIntegrationSettingResponse"> & { /** * @generated from field: integrations.v1.IntegrationSetting setting = 1; */ setting?: IntegrationSetting; }; /** * Describes the message integrations.v1.GetIntegrationSettingResponse. * Use `create(GetIntegrationSettingResponseSchema)` to create a new message. */ export const GetIntegrationSettingResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 9); /** * @generated from message integrations.v1.SendTestMessageRequest */ export type SendTestMessageRequest = Message<"integrations.v1.SendTestMessageRequest"> & { /** * @generated from field: int64 artworker_id = 1; */ artworkerId: bigint; /** * @generated from field: string integration = 2; */ integration: string; /** * @generated from field: string type = 3; */ type: string; }; /** * Describes the message integrations.v1.SendTestMessageRequest. * Use `create(SendTestMessageRequestSchema)` to create a new message. */ export const SendTestMessageRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 10); /** * @generated from message integrations.v1.SendTestMessageResponse */ export type SendTestMessageResponse = Message<"integrations.v1.SendTestMessageResponse"> & { /** * @generated from field: string test_message_id = 1; */ testMessageId: string; }; /** * Describes the message integrations.v1.SendTestMessageResponse. * Use `create(SendTestMessageResponseSchema)` to create a new message. */ export const SendTestMessageResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 11); /** * Test mode enable/disable messages * * @generated from message integrations.v1.EnableTestModeRequest */ export type EnableTestModeRequest = Message<"integrations.v1.EnableTestModeRequest"> & { /** * @generated from field: int64 artworker_id = 1; */ artworkerId: bigint; /** * @generated from field: string integration = 2; */ integration: string; }; /** * Describes the message integrations.v1.EnableTestModeRequest. * Use `create(EnableTestModeRequestSchema)` to create a new message. */ export const EnableTestModeRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 12); /** * @generated from message integrations.v1.EnableTestModeResponse */ export type EnableTestModeResponse = Message<"integrations.v1.EnableTestModeResponse"> & { /** * @generated from field: integrations.v1.IntegrationSetting setting = 1; */ setting?: IntegrationSetting; }; /** * Describes the message integrations.v1.EnableTestModeResponse. * Use `create(EnableTestModeResponseSchema)` to create a new message. */ export const EnableTestModeResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 13); /** * @generated from message integrations.v1.DisableTestModeRequest */ export type DisableTestModeRequest = Message<"integrations.v1.DisableTestModeRequest"> & { /** * @generated from field: int64 artworker_id = 1; */ artworkerId: bigint; /** * @generated from field: string integration = 2; */ integration: string; }; /** * Describes the message integrations.v1.DisableTestModeRequest. * Use `create(DisableTestModeRequestSchema)` to create a new message. */ export const DisableTestModeRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 14); /** * @generated from message integrations.v1.DisableTestModeResponse */ export type DisableTestModeResponse = Message<"integrations.v1.DisableTestModeResponse"> & { /** * @generated from field: integrations.v1.IntegrationSetting setting = 1; */ setting?: IntegrationSetting; }; /** * Describes the message integrations.v1.DisableTestModeResponse. * Use `create(DisableTestModeResponseSchema)` to create a new message. */ export const DisableTestModeResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 15); /** * Enable/Disable management messages * * @generated from message integrations.v1.EnableIntegrationRequest */ export type EnableIntegrationRequest = Message<"integrations.v1.EnableIntegrationRequest"> & { /** * @generated from field: int64 artworker_id = 1; */ artworkerId: bigint; /** * @generated from field: string integration = 2; */ integration: string; }; /** * Describes the message integrations.v1.EnableIntegrationRequest. * Use `create(EnableIntegrationRequestSchema)` to create a new message. */ export const EnableIntegrationRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 16); /** * @generated from message integrations.v1.EnableIntegrationResponse */ export type EnableIntegrationResponse = Message<"integrations.v1.EnableIntegrationResponse"> & { /** * @generated from field: integrations.v1.IntegrationSetting setting = 1; */ setting?: IntegrationSetting; }; /** * Describes the message integrations.v1.EnableIntegrationResponse. * Use `create(EnableIntegrationResponseSchema)` to create a new message. */ export const EnableIntegrationResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 17); /** * @generated from message integrations.v1.DisableIntegrationRequest */ export type DisableIntegrationRequest = Message<"integrations.v1.DisableIntegrationRequest"> & { /** * @generated from field: int64 artworker_id = 1; */ artworkerId: bigint; /** * @generated from field: string integration = 2; */ integration: string; }; /** * Describes the message integrations.v1.DisableIntegrationRequest. * Use `create(DisableIntegrationRequestSchema)` to create a new message. */ export const DisableIntegrationRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 18); /** * @generated from message integrations.v1.DisableIntegrationResponse */ export type DisableIntegrationResponse = Message<"integrations.v1.DisableIntegrationResponse"> & { /** * @generated from field: integrations.v1.IntegrationSetting setting = 1; */ setting?: IntegrationSetting; }; /** * Describes the message integrations.v1.DisableIntegrationResponse. * Use `create(DisableIntegrationResponseSchema)` to create a new message. */ export const DisableIntegrationResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 19); /** * Enable integration with test mode messages * * @generated from message integrations.v1.EnableIntegrationWithTestModeRequest */ export type EnableIntegrationWithTestModeRequest = Message<"integrations.v1.EnableIntegrationWithTestModeRequest"> & { /** * @generated from field: int64 artworker_id = 1; */ artworkerId: bigint; /** * @generated from field: string integration = 2; */ integration: string; }; /** * Describes the message integrations.v1.EnableIntegrationWithTestModeRequest. * Use `create(EnableIntegrationWithTestModeRequestSchema)` to create a new message. */ export const EnableIntegrationWithTestModeRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 20); /** * @generated from message integrations.v1.EnableIntegrationWithTestModeResponse */ export type EnableIntegrationWithTestModeResponse = Message<"integrations.v1.EnableIntegrationWithTestModeResponse"> & { /** * @generated from field: integrations.v1.IntegrationSetting setting = 1; */ setting?: IntegrationSetting; }; /** * Describes the message integrations.v1.EnableIntegrationWithTestModeResponse. * Use `create(EnableIntegrationWithTestModeResponseSchema)` to create a new message. */ export const EnableIntegrationWithTestModeResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_integrations_v1_integrations, 21);