/** * #externalendpoints.ts * * Code generated by ts-proto. DO NOT EDIT. * @packageDocumentation */ /** External endpoint token / endpoint access permission. */ export declare enum Scope { SCOPE_UNSPECIFIED = 0, /** * SCOPE_INSTALL - Install allows short-lived callback tokens generated by the app in an * outgoing `fetch()` wherever the app is installed (a subreddit or user * account). */ SCOPE_INSTALL = 1, /** SCOPE_GLOBAL - Global allows managed tokens. */ SCOPE_GLOBAL = 2, UNRECOGNIZED = -1 } export type GetCallbackUrlRequest = { /** * Name of the external endpoint entry in `devvit.json` * `server.externalEndpoints`. eg, `OnImageReady`. */ entry: string; }; export type GetCallbackUrlResponse = { /** * full callback URL including token * e.g. https://wsbapp-2th52-external.devvit.net/external/on/image/generated?externalToken=devvit_at_abc123 */ callbackUrl: string; }; export type GetExternalUrlRequest = { /** The account of the install. Eg, `wsbapp`. */ appSlug: string; /** The T5 of the install. Eg, `t5_2th52`. */ locationId: string; }; export type GetExternalUrlResponse = { /** * URL for the root external endpoint of the install. Eg, * `https://wsbapp-2th52-external.devvit.net/external/`. */ externalUrl: string; }; //# sourceMappingURL=externalendpoints.d.ts.map