import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import type { Timestamp } from "@bufbuild/protobuf/wkt"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file open-api/v1/api-keys.proto. */ export declare const file_open_api_v1_api_keys: GenFile; /** * @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 declare const ApiKeySchema: GenMessage; /** * @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 declare const CreateAPIKeyRequestSchema: GenMessage; /** * @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 declare const CreateAPIKeyResponseSchema: GenMessage; /** * @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 declare const UpdateAPIKeyRequestSchema: GenMessage; /** * @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 declare const UpdateAPIKeyResponseSchema: GenMessage; /** * @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 declare const DeleteAPIKeyRequestSchema: GenMessage; /** * @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 declare const DeleteAPIKeyResponseSchema: GenMessage; /** * @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 declare const GetAPIKeysRequestSchema: GenMessage; /** * @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 declare const GetAPIKeysResponseSchema: GenMessage; /** * @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 declare const GetUserIdByAPIKeyRequestSchema: GenMessage; /** * @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 declare const GetUserIdByAPIKeyResponseSchema: GenMessage; /** * @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 declare const CreateIntegrationAPIKeyRequestSchema: GenMessage; /** * @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 declare const CreateIntegrationAPIKeyResponseSchema: GenMessage; /** * @generated from enum openapi.v1.KeyType */ export declare 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 declare const KeyTypeSchema: GenEnum;