import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file apps.proto. */ export declare const file_apps: GenFile; /** * @generated from message river.RegisterRequest */ export type RegisterRequest = Message<"river.RegisterRequest"> & { /** * public key of the app * * @generated from field: bytes app_id = 1; */ appId: Uint8Array; /** * public key of the app owner * * @generated from field: bytes app_owner_id = 2; */ appOwnerId: Uint8Array; }; /** * Describes the message river.RegisterRequest. * Use `create(RegisterRequestSchema)` to create a new message. */ export declare const RegisterRequestSchema: GenMessage; /** * @generated from message river.RegisterResponse */ export type RegisterResponse = Message<"river.RegisterResponse"> & { /** * The shared secret used to sign the jwt the app registry will use to authenticate to the * app service. This secret should be exactly 32 bytes. * * @generated from field: bytes hs256_shared_secret = 1; */ hs256SharedSecret: Uint8Array; }; /** * Describes the message river.RegisterResponse. * Use `create(RegisterResponseSchema)` to create a new message. */ export declare const RegisterResponseSchema: GenMessage; /** * @generated from message river.RegisterWebhookRequest */ export type RegisterWebhookRequest = Message<"river.RegisterWebhookRequest"> & { /** * public key of the app * * @generated from field: bytes app_id = 1; */ appId: Uint8Array; /** * Webhook for sending requests to the app service * * @generated from field: string webhook_url = 2; */ webhookUrl: string; }; /** * Describes the message river.RegisterWebhookRequest. * Use `create(RegisterWebhookRequestSchema)` to create a new message. */ export declare const RegisterWebhookRequestSchema: GenMessage; /** * @generated from message river.RegisterWebhookResponse */ export type RegisterWebhookResponse = Message<"river.RegisterWebhookResponse"> & {}; /** * Describes the message river.RegisterWebhookResponse. * Use `create(RegisterWebhookResponseSchema)` to create a new message. */ export declare const RegisterWebhookResponseSchema: GenMessage; /** * @generated from message river.RotateSecretRequest */ export type RotateSecretRequest = Message<"river.RotateSecretRequest"> & { /** * public key of the app * * @generated from field: bytes app_id = 1; */ appId: Uint8Array; }; /** * Describes the message river.RotateSecretRequest. * Use `create(RotateSecretRequestSchema)` to create a new message. */ export declare const RotateSecretRequestSchema: GenMessage; /** * @generated from message river.RotateSecretResponse */ export type RotateSecretResponse = Message<"river.RotateSecretResponse"> & { /** * the updated shared secret used to generate the hmac the app registry will send to the app service * * @generated from field: string hmac_shared_secret = 1; */ hmacSharedSecret: string; }; /** * Describes the message river.RotateSecretResponse. * Use `create(RotateSecretResponseSchema)` to create a new message. */ export declare const RotateSecretResponseSchema: GenMessage; /** * @generated from message river.GetStatusRequest */ export type GetStatusRequest = Message<"river.GetStatusRequest"> & { /** * public key of the app * * @generated from field: bytes app_id = 1; */ appId: Uint8Array; }; /** * Describes the message river.GetStatusRequest. * Use `create(GetStatusRequestSchema)` to create a new message. */ export declare const GetStatusRequestSchema: GenMessage; /** * @generated from message river.GetStatusResponse */ export type GetStatusResponse = Message<"river.GetStatusResponse"> & { /** * is_registered describes if the app is registered with a webhook * * @generated from field: bool is_registered = 1; */ isRegistered: boolean; /** * valid_response is set to true if calling the webhook results in a 200 with version * info included in the response body. * * @generated from field: bool valid_response = 2; */ validResponse: boolean; /** * version info returned by the webhook * * @generated from field: string version_info = 3; */ versionInfo: string; }; /** * Describes the message river.GetStatusResponse. * Use `create(GetStatusResponseSchema)` to create a new message. */ export declare const GetStatusResponseSchema: GenMessage; /** * AppRegistryService allows apps and app owners to register apps, and set app-related preferences for messages added * to channels the app has membership in. * * These functions are all authenticated, with the exception of GetStatus, and require a session token to be passed * through the authorization metadata. * This session token can be obtained from the AuthenticationService. If the session token is missing or invalid an * Err_UNAUTHENTICATED (code=16) is returned. * * @generated from service river.AppRegistryService */ export declare const AppRegistryService: GenService<{ /** * @generated from rpc river.AppRegistryService.Register */ register: { methodKind: "unary"; input: typeof RegisterRequestSchema; output: typeof RegisterResponseSchema; }; /** * @generated from rpc river.AppRegistryService.RegisterWebhook */ registerWebhook: { methodKind: "unary"; input: typeof RegisterWebhookRequestSchema; output: typeof RegisterWebhookResponseSchema; }; /** * rpc GetInfo(GetInfoRequest) returns (GetInfoResponse); * rpc RotateSecret(RotateSecretRequest) returns (RotateSecretResponse); * * @generated from rpc river.AppRegistryService.GetStatus */ getStatus: { methodKind: "unary"; input: typeof GetStatusRequestSchema; output: typeof GetStatusResponseSchema; }; }>; //# sourceMappingURL=apps_pb.d.ts.map