import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import type { DeviceToken, DeviceTokenValid } from "../../auth/v1/auth_pb.js"; import type { Duration } from "@bufbuild/protobuf/wkt"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file cerbos/cloud/apikey/v1/apikey.proto. */ export declare const file_cerbos_cloud_apikey_v1_apikey: GenFile; /** * @generated from message cerbos.cloud.apikey.v1.IssueAccessTokenRequest */ export type IssueAccessTokenRequest = Message<"cerbos.cloud.apikey.v1.IssueAccessTokenRequest"> & { /** * @generated from field: string client_id = 1; */ clientId: string; /** * @generated from field: string client_secret = 2; */ clientSecret: string; }; export type IssueAccessTokenRequestValid = IssueAccessTokenRequest; /** * Describes the message cerbos.cloud.apikey.v1.IssueAccessTokenRequest. * Use `create(IssueAccessTokenRequestSchema)` to create a new message. */ export declare const IssueAccessTokenRequestSchema: GenMessage; /** * @generated from message cerbos.cloud.apikey.v1.IssueAccessTokenResponse */ export type IssueAccessTokenResponse = Message<"cerbos.cloud.apikey.v1.IssueAccessTokenResponse"> & { /** * @generated from field: string access_token = 1; */ accessToken: string; /** * @generated from field: google.protobuf.Duration expires_in = 2; */ expiresIn?: Duration | undefined; }; /** * @generated from message cerbos.cloud.apikey.v1.IssueAccessTokenResponse */ export type IssueAccessTokenResponseValid = Message<"cerbos.cloud.apikey.v1.IssueAccessTokenResponse"> & { /** * @generated from field: string access_token = 1; */ accessToken: string; /** * @generated from field: google.protobuf.Duration expires_in = 2; */ expiresIn: Duration; }; /** * Describes the message cerbos.cloud.apikey.v1.IssueAccessTokenResponse. * Use `create(IssueAccessTokenResponseSchema)` to create a new message. */ export declare const IssueAccessTokenResponseSchema: GenMessage; /** * @generated from message cerbos.cloud.apikey.v1.RegisterDeviceRequest */ export type RegisterDeviceRequest = Message<"cerbos.cloud.apikey.v1.RegisterDeviceRequest"> & {}; export type RegisterDeviceRequestValid = RegisterDeviceRequest; /** * Describes the message cerbos.cloud.apikey.v1.RegisterDeviceRequest. * Use `create(RegisterDeviceRequestSchema)` to create a new message. */ export declare const RegisterDeviceRequestSchema: GenMessage; /** * @generated from message cerbos.cloud.apikey.v1.RegisterDeviceResponse */ export type RegisterDeviceResponse = Message<"cerbos.cloud.apikey.v1.RegisterDeviceResponse"> & { /** * @generated from oneof cerbos.cloud.apikey.v1.RegisterDeviceResponse.message */ message: { /** * @generated from field: string verification_url = 1; */ value: string; case: "verificationUrl"; } | { /** * @generated from field: cerbos.cloud.auth.v1.DeviceToken device_token = 2; */ value: DeviceToken; case: "deviceToken"; } | { case: undefined; value?: undefined; }; }; /** * @generated from message cerbos.cloud.apikey.v1.RegisterDeviceResponse */ export type RegisterDeviceResponseValid = Message<"cerbos.cloud.apikey.v1.RegisterDeviceResponse"> & { /** * @generated from oneof cerbos.cloud.apikey.v1.RegisterDeviceResponse.message */ message: { /** * @generated from field: string verification_url = 1; */ value: string; case: "verificationUrl"; } | { /** * @generated from field: cerbos.cloud.auth.v1.DeviceToken device_token = 2; */ value: DeviceTokenValid; case: "deviceToken"; } | { case: undefined; value?: undefined; }; }; /** * Describes the message cerbos.cloud.apikey.v1.RegisterDeviceResponse. * Use `create(RegisterDeviceResponseSchema)` to create a new message. */ export declare const RegisterDeviceResponseSchema: GenMessage; /** * @generated from message cerbos.cloud.apikey.v1.RefreshDeviceTokenRequest */ export type RefreshDeviceTokenRequest = Message<"cerbos.cloud.apikey.v1.RefreshDeviceTokenRequest"> & { /** * @generated from field: cerbos.cloud.auth.v1.DeviceToken device_token = 1; */ deviceToken?: DeviceToken | undefined; }; /** * @generated from message cerbos.cloud.apikey.v1.RefreshDeviceTokenRequest */ export type RefreshDeviceTokenRequestValid = Message<"cerbos.cloud.apikey.v1.RefreshDeviceTokenRequest"> & { /** * @generated from field: cerbos.cloud.auth.v1.DeviceToken device_token = 1; */ deviceToken: DeviceTokenValid; }; /** * Describes the message cerbos.cloud.apikey.v1.RefreshDeviceTokenRequest. * Use `create(RefreshDeviceTokenRequestSchema)` to create a new message. */ export declare const RefreshDeviceTokenRequestSchema: GenMessage; /** * @generated from message cerbos.cloud.apikey.v1.RefreshDeviceTokenResponse */ export type RefreshDeviceTokenResponse = Message<"cerbos.cloud.apikey.v1.RefreshDeviceTokenResponse"> & { /** * @generated from field: cerbos.cloud.auth.v1.DeviceToken device_token = 1; */ deviceToken?: DeviceToken | undefined; }; /** * @generated from message cerbos.cloud.apikey.v1.RefreshDeviceTokenResponse */ export type RefreshDeviceTokenResponseValid = Message<"cerbos.cloud.apikey.v1.RefreshDeviceTokenResponse"> & { /** * @generated from field: cerbos.cloud.auth.v1.DeviceToken device_token = 1; */ deviceToken: DeviceTokenValid; }; /** * Describes the message cerbos.cloud.apikey.v1.RefreshDeviceTokenResponse. * Use `create(RefreshDeviceTokenResponseSchema)` to create a new message. */ export declare const RefreshDeviceTokenResponseSchema: GenMessage; /** * @generated from service cerbos.cloud.apikey.v1.ApiKeyService */ export declare const ApiKeyService: GenService<{ /** * @generated from rpc cerbos.cloud.apikey.v1.ApiKeyService.IssueAccessToken */ issueAccessToken: { methodKind: "unary"; input: typeof IssueAccessTokenRequestSchema; output: typeof IssueAccessTokenResponseSchema; }; /** * @generated from rpc cerbos.cloud.apikey.v1.ApiKeyService.RegisterDevice */ registerDevice: { methodKind: "server_streaming"; input: typeof RegisterDeviceRequestSchema; output: typeof RegisterDeviceResponseSchema; }; /** * @generated from rpc cerbos.cloud.apikey.v1.ApiKeyService.RefreshDeviceToken */ refreshDeviceToken: { methodKind: "unary"; input: typeof RefreshDeviceTokenRequestSchema; output: typeof RefreshDeviceTokenResponseSchema; }; }>; //# sourceMappingURL=apikey_pb.d.ts.map