/** * #bundle_service.ts * * Code generated by ts-proto. DO NOT EDIT. * @packageDocumentation */ import _m0 from "protobufjs/minimal.js"; import { Metadata } from "../../../lib/Types.js"; import { Empty } from "../../google/protobuf/empty.js"; import { LinkedBundle } from "../runtime/bundle.js"; /** Fetch a bundle */ export interface BundleRequest { /** Must be an identifier for the bundle, i.e. an app ID (UUID) in prod, or "untitled-1234567890" from play */ actorId: string; } export declare const BundleRequest: { $type: "devvit.service.BundleRequest"; encode(message: BundleRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BundleRequest; fromJSON(object: any): BundleRequest; toJSON(message: BundleRequest): unknown; create(base?: DeepPartial): BundleRequest; fromPartial(object: DeepPartial): BundleRequest; }; export interface BundleService { /** Upload a bundle to the bundle repo */ Upload(request: LinkedBundle, metadata?: Metadata): Promise; /** Retrieve a bundle from the bundle repo */ Fetch(request: BundleRequest, metadata?: Metadata): Promise; } export declare const BundleServiceServiceName = "devvit.service.BundleService"; export declare class BundleServiceClientImpl implements BundleService { private readonly rpc; private readonly service; constructor(rpc: Rpc, opts?: { service?: string; }); Upload(request: LinkedBundle, metadata?: Metadata): Promise; Fetch(request: BundleRequest, metadata?: Metadata): Promise; } export type BundleServiceDefinition = typeof BundleServiceDefinition; export declare const BundleServiceDefinition: { readonly name: "BundleService"; readonly fullName: "devvit.service.BundleService"; readonly methods: { /** Upload a bundle to the bundle repo */ readonly upload: { readonly name: "Upload"; readonly requestType: { $type: "devvit.runtime.LinkedBundle"; encode(message: LinkedBundle, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): LinkedBundle; fromJSON(object: any): LinkedBundle; toJSON(message: LinkedBundle): unknown; create(base?: { actor?: { name?: string; owner?: string; version?: string; } | undefined; code?: string; sourceMap?: string | undefined | undefined; hostname?: string; provides?: { fullName?: string; methods?: { fullName?: string; name?: string; requestStream?: boolean; responseStream?: boolean; requestType?: string; responseType?: string; }[]; name?: string; version?: string; }[]; uses?: /*elided*/ any[]; buildInfo?: { created?: Date | undefined; dependencies?: { [x: string]: string | undefined; }; targetRuntime?: import("../runtime/bundle.js").TargetRuntime; } | undefined; assetsUrl?: string | undefined | undefined; assets?: { [x: string]: string | undefined; }; webviewAssets?: { [x: string]: string | undefined; }; products?: { [x: string]: string | undefined; }; server?: { code?: string; sourceMap?: string; } | undefined; }): LinkedBundle; fromPartial(object: { actor?: { name?: string; owner?: string; version?: string; } | undefined; code?: string; sourceMap?: string | undefined | undefined; hostname?: string; provides?: { fullName?: string; methods?: { fullName?: string; name?: string; requestStream?: boolean; responseStream?: boolean; requestType?: string; responseType?: string; }[]; name?: string; version?: string; }[]; uses?: /*elided*/ any[]; buildInfo?: { created?: Date | undefined; dependencies?: { [x: string]: string | undefined; }; targetRuntime?: import("../runtime/bundle.js").TargetRuntime; } | undefined; assetsUrl?: string | undefined | undefined; assets?: { [x: string]: string | undefined; }; webviewAssets?: { [x: string]: string | undefined; }; products?: { [x: string]: string | undefined; }; server?: { code?: string; sourceMap?: string; } | undefined; }): LinkedBundle; }; readonly requestStream: false; readonly responseType: { $type: "google.protobuf.Empty"; encode(_: Empty, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Empty; fromJSON(_: any): Empty; toJSON(_: Empty): unknown; create(base?: {}): Empty; fromPartial(_: {}): Empty; }; readonly responseStream: false; readonly options: {}; }; /** Retrieve a bundle from the bundle repo */ readonly fetch: { readonly name: "Fetch"; readonly requestType: { $type: "devvit.service.BundleRequest"; encode(message: BundleRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BundleRequest; fromJSON(object: any): BundleRequest; toJSON(message: BundleRequest): unknown; create(base?: DeepPartial): BundleRequest; fromPartial(object: DeepPartial): BundleRequest; }; readonly requestStream: false; readonly responseType: { $type: "devvit.runtime.LinkedBundle"; encode(message: LinkedBundle, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): LinkedBundle; fromJSON(object: any): LinkedBundle; toJSON(message: LinkedBundle): unknown; create(base?: { actor?: { name?: string; owner?: string; version?: string; } | undefined; code?: string; sourceMap?: string | undefined | undefined; hostname?: string; provides?: { fullName?: string; methods?: { fullName?: string; name?: string; requestStream?: boolean; responseStream?: boolean; requestType?: string; responseType?: string; }[]; name?: string; version?: string; }[]; uses?: /*elided*/ any[]; buildInfo?: { created?: Date | undefined; dependencies?: { [x: string]: string | undefined; }; targetRuntime?: import("../runtime/bundle.js").TargetRuntime; } | undefined; assetsUrl?: string | undefined | undefined; assets?: { [x: string]: string | undefined; }; webviewAssets?: { [x: string]: string | undefined; }; products?: { [x: string]: string | undefined; }; server?: { code?: string; sourceMap?: string; } | undefined; }): LinkedBundle; fromPartial(object: { actor?: { name?: string; owner?: string; version?: string; } | undefined; code?: string; sourceMap?: string | undefined | undefined; hostname?: string; provides?: { fullName?: string; methods?: { fullName?: string; name?: string; requestStream?: boolean; responseStream?: boolean; requestType?: string; responseType?: string; }[]; name?: string; version?: string; }[]; uses?: /*elided*/ any[]; buildInfo?: { created?: Date | undefined; dependencies?: { [x: string]: string | undefined; }; targetRuntime?: import("../runtime/bundle.js").TargetRuntime; } | undefined; assetsUrl?: string | undefined | undefined; assets?: { [x: string]: string | undefined; }; webviewAssets?: { [x: string]: string | undefined; }; products?: { [x: string]: string | undefined; }; server?: { code?: string; sourceMap?: string; } | undefined; }): LinkedBundle; }; readonly responseStream: false; readonly options: {}; }; }; }; interface Rpc { request(service: string, method: string, data: Uint8Array, metadata?: Metadata): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; type DeepPartial = T extends Builtin ? T : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {}; //# sourceMappingURL=bundle_service.d.ts.map