// @generated by protoc-gen-es v2.10.1 with parameter "target=ts,import_extension=js" // @generated from file open-api/v1/api-keys.proto (package openapi.v1, syntax proto3) /* eslint-disable */ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, 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/api-keys.proto. */ export const file_open_api_v1_api_keys: GenFile = /*@__PURE__*/ fileDesc("ChpvcGVuLWFwaS92MS9hcGkta2V5cy5wcm90bxIKb3BlbmFwaS52MSKTAgoGQXBpS2V5EgoKAmlkGAEgASgDEi4KCmNyZWF0ZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhQKDGFydHdvcmtlcl9pZBgEIAEoAxIMCgRuYW1lGAUgASgJEhQKDHJlc3RyaWN0aW9ucxgGIAEoCRIrCgdleHBpcmVzGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIPCgdhcGlfa2V5GAggASgJEiUKCGtleV90eXBlGAkgASgOMhMub3BlbmFwaS52MS5LZXlUeXBlInYKE0NyZWF0ZUFQSUtleVJlcXVlc3QSFAoMYXJ0d29ya2VyX2lkGAEgASgDEgwKBG5hbWUYAiABKAkSFAoMcmVzdHJpY3Rpb25zGAMgASgJEiUKCGtleV90eXBlGAQgASgOMhMub3BlbmFwaS52MS5LZXlUeXBlIloKFENyZWF0ZUFQSUtleVJlc3BvbnNlEiMKB2FwaV9rZXkYASABKAsyEi5vcGVuYXBpLnYxLkFwaUtleRIdChVhcGlfa2V5X29uZV90aW1lX3ZpZXcYAiABKAkiTQoTVXBkYXRlQVBJS2V5UmVxdWVzdBISCgphcGlfa2V5X2lkGAEgASgDEgwKBG5hbWUYAiABKAkSFAoMcmVzdHJpY3Rpb25zGAMgASgJIjsKFFVwZGF0ZUFQSUtleVJlc3BvbnNlEiMKB2FwaV9rZXkYASABKAsyEi5vcGVuYXBpLnYxLkFwaUtleSIpChNEZWxldGVBUElLZXlSZXF1ZXN0EhIKCmFwaV9rZXlfaWQYASABKAMiIgoURGVsZXRlQVBJS2V5UmVzcG9uc2USCgoCb2sYASABKAgiKQoRR2V0QVBJS2V5c1JlcXVlc3QSFAoMYXJ0d29ya2VyX2lkGAEgASgDIjoKEkdldEFQSUtleXNSZXNwb25zZRIkCghhcGlfa2V5cxgBIAMoCzISLm9wZW5hcGkudjEuQXBpS2V5IisKGEdldFVzZXJJZEJ5QVBJS2V5UmVxdWVzdBIPCgdhcGlfa2V5GAEgASgJIjEKGUdldFVzZXJJZEJ5QVBJS2V5UmVzcG9uc2USFAoMYXJ0d29ya2VyX2lkGAEgASgDIlAKHkNyZWF0ZUludGVncmF0aW9uQVBJS2V5UmVxdWVzdBIUCgxhcnR3b3JrZXJfaWQYASABKAMSGAoQaW50ZWdyYXRpb25fbmFtZRgCIAEoCSIyCh9DcmVhdGVJbnRlZ3JhdGlvbkFQSUtleVJlc3BvbnNlEg8KB2FwaV9rZXkYASABKAkqRAoHS2V5VHlwZRISCg5LZXlUeXBlVU5LTk9XThAAEhEKDUtleVR5cGVQVUJMSUMQARISCg5LZXlUeXBlUFJJVkFURRACQkpaSGJpdGJ1Y2tldC5vcmcva3Vkb3VrL2FydHdvcmtlci1iYWNrZW5kL3Byb3RvL2dlbi9nby9vcGVuYXBpL3YxO29wZW5hcGl2MWIGcHJvdG8z", [file_google_protobuf_timestamp]); /** * @generated from message openapi.v1.ApiKey */ export type ApiKey = Message<"openapi.v1.ApiKey"> & { /** * @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 name = 5; */ name: string; /** * @generated from field: string restrictions = 6; */ restrictions: string; /** * @generated from field: google.protobuf.Timestamp expires = 7; */ expires?: Timestamp; /** * @generated from field: string api_key = 8; */ apiKey: string; /** * @generated from field: openapi.v1.KeyType key_type = 9; */ keyType: KeyType; }; /** * Describes the message openapi.v1.ApiKey. * Use `create(ApiKeySchema)` to create a new message. */ export const ApiKeySchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_api_keys, 0); /** * @generated from message openapi.v1.CreateAPIKeyRequest */ export type CreateAPIKeyRequest = Message<"openapi.v1.CreateAPIKeyRequest"> & { /** * @generated from field: int64 artworker_id = 1; */ artworkerId: bigint; /** * @generated from field: string name = 2; */ name: string; /** * @generated from field: string restrictions = 3; */ restrictions: string; /** * @generated from field: openapi.v1.KeyType key_type = 4; */ keyType: KeyType; }; /** * Describes the message openapi.v1.CreateAPIKeyRequest. * Use `create(CreateAPIKeyRequestSchema)` to create a new message. */ export const CreateAPIKeyRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_api_keys, 1); /** * @generated from message openapi.v1.CreateAPIKeyResponse */ export type CreateAPIKeyResponse = Message<"openapi.v1.CreateAPIKeyResponse"> & { /** * @generated from field: openapi.v1.ApiKey api_key = 1; */ apiKey?: ApiKey; /** * @generated from field: string api_key_one_time_view = 2; */ apiKeyOneTimeView: string; }; /** * Describes the message openapi.v1.CreateAPIKeyResponse. * Use `create(CreateAPIKeyResponseSchema)` to create a new message. */ export const CreateAPIKeyResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_api_keys, 2); /** * @generated from message openapi.v1.UpdateAPIKeyRequest */ export type UpdateAPIKeyRequest = Message<"openapi.v1.UpdateAPIKeyRequest"> & { /** * @generated from field: int64 api_key_id = 1; */ apiKeyId: bigint; /** * @generated from field: string name = 2; */ name: string; /** * @generated from field: string restrictions = 3; */ restrictions: string; }; /** * Describes the message openapi.v1.UpdateAPIKeyRequest. * Use `create(UpdateAPIKeyRequestSchema)` to create a new message. */ export const UpdateAPIKeyRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_api_keys, 3); /** * @generated from message openapi.v1.UpdateAPIKeyResponse */ export type UpdateAPIKeyResponse = Message<"openapi.v1.UpdateAPIKeyResponse"> & { /** * @generated from field: openapi.v1.ApiKey api_key = 1; */ apiKey?: ApiKey; }; /** * Describes the message openapi.v1.UpdateAPIKeyResponse. * Use `create(UpdateAPIKeyResponseSchema)` to create a new message. */ export const UpdateAPIKeyResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_api_keys, 4); /** * @generated from message openapi.v1.DeleteAPIKeyRequest */ export type DeleteAPIKeyRequest = Message<"openapi.v1.DeleteAPIKeyRequest"> & { /** * @generated from field: int64 api_key_id = 1; */ apiKeyId: bigint; }; /** * Describes the message openapi.v1.DeleteAPIKeyRequest. * Use `create(DeleteAPIKeyRequestSchema)` to create a new message. */ export const DeleteAPIKeyRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_api_keys, 5); /** * @generated from message openapi.v1.DeleteAPIKeyResponse */ export type DeleteAPIKeyResponse = Message<"openapi.v1.DeleteAPIKeyResponse"> & { /** * @generated from field: bool ok = 1; */ ok: boolean; }; /** * Describes the message openapi.v1.DeleteAPIKeyResponse. * Use `create(DeleteAPIKeyResponseSchema)` to create a new message. */ export const DeleteAPIKeyResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_api_keys, 6); /** * @generated from message openapi.v1.GetAPIKeysRequest */ export type GetAPIKeysRequest = Message<"openapi.v1.GetAPIKeysRequest"> & { /** * @generated from field: int64 artworker_id = 1; */ artworkerId: bigint; }; /** * Describes the message openapi.v1.GetAPIKeysRequest. * Use `create(GetAPIKeysRequestSchema)` to create a new message. */ export const GetAPIKeysRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_api_keys, 7); /** * @generated from message openapi.v1.GetAPIKeysResponse */ export type GetAPIKeysResponse = Message<"openapi.v1.GetAPIKeysResponse"> & { /** * @generated from field: repeated openapi.v1.ApiKey api_keys = 1; */ apiKeys: ApiKey[]; }; /** * Describes the message openapi.v1.GetAPIKeysResponse. * Use `create(GetAPIKeysResponseSchema)` to create a new message. */ export const GetAPIKeysResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_api_keys, 8); /** * @generated from message openapi.v1.GetUserIdByAPIKeyRequest */ export type GetUserIdByAPIKeyRequest = Message<"openapi.v1.GetUserIdByAPIKeyRequest"> & { /** * @generated from field: string api_key = 1; */ apiKey: string; }; /** * Describes the message openapi.v1.GetUserIdByAPIKeyRequest. * Use `create(GetUserIdByAPIKeyRequestSchema)` to create a new message. */ export const GetUserIdByAPIKeyRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_api_keys, 9); /** * @generated from message openapi.v1.GetUserIdByAPIKeyResponse */ export type GetUserIdByAPIKeyResponse = Message<"openapi.v1.GetUserIdByAPIKeyResponse"> & { /** * @generated from field: int64 artworker_id = 1; */ artworkerId: bigint; }; /** * Describes the message openapi.v1.GetUserIdByAPIKeyResponse. * Use `create(GetUserIdByAPIKeyResponseSchema)` to create a new message. */ export const GetUserIdByAPIKeyResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_api_keys, 10); /** * @generated from message openapi.v1.CreateIntegrationAPIKeyRequest */ export type CreateIntegrationAPIKeyRequest = Message<"openapi.v1.CreateIntegrationAPIKeyRequest"> & { /** * @generated from field: int64 artworker_id = 1; */ artworkerId: bigint; /** * @generated from field: string integration_name = 2; */ integrationName: string; }; /** * Describes the message openapi.v1.CreateIntegrationAPIKeyRequest. * Use `create(CreateIntegrationAPIKeyRequestSchema)` to create a new message. */ export const CreateIntegrationAPIKeyRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_api_keys, 11); /** * @generated from message openapi.v1.CreateIntegrationAPIKeyResponse */ export type CreateIntegrationAPIKeyResponse = Message<"openapi.v1.CreateIntegrationAPIKeyResponse"> & { /** * @generated from field: string api_key = 1; */ apiKey: string; }; /** * Describes the message openapi.v1.CreateIntegrationAPIKeyResponse. * Use `create(CreateIntegrationAPIKeyResponseSchema)` to create a new message. */ export const CreateIntegrationAPIKeyResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_open_api_v1_api_keys, 12); /** * @generated from enum openapi.v1.KeyType */ export enum KeyType { /** * @generated from enum value: KeyTypeUNKNOWN = 0; */ KeyTypeUNKNOWN = 0, /** * @generated from enum value: KeyTypePUBLIC = 1; */ KeyTypePUBLIC = 1, /** * @generated from enum value: KeyTypePRIVATE = 2; */ KeyTypePRIVATE = 2, } /** * Describes the enum openapi.v1.KeyType. */ export const KeyTypeSchema: GenEnum = /*@__PURE__*/ enumDesc(file_open_api_v1_api_keys, 0);