/** * #app.ts * * Code generated by ts-proto. DO NOT EDIT. * @packageDocumentation */ import type { AdsConfig } from "../../ads/v1/ads.js"; import type { Scope } from "../../app_permission/v1/app_permission.js"; export declare enum AppVisibility { PUBLIC = 0, PRIVATE = 1, UNLISTED = 2, UNRECOGNIZED = -1 } /** The App structure represents information that remains constant across the entire App (regardless of app version). */ export type App = { /** App unique identifier, eg '04adab23-60c0-467d-9958-948cea1ff6be' */ id: string; /** App slug, eg 'my-devvit-app' */ slug: string; /** App name, eg 'My Devvit App' */ name: string; /** The visibility of the app (PUBLIC, PRIVATE, or UNLISTED) */ visibility: AppVisibility; /** Information about the app owner */ owner?: AppOwner | undefined; /** The app version, eg '1.2.3' */ version: string; /** Configuration related to ads */ adsConfig?: AdsConfig | undefined; /** URL to the app's terms and conditions */ termsAndConditions: string; /** URL to the app's privacy policy */ privacyPolicy: string; /** The permission scopes requested by the app version */ requestedPermissionScopes: Scope[]; /** * A `RenderVersion` value. An integer is used over an enum to avoid GraphQL * implementation for new values. * Deprecated: Use reddit.devvit.common.v1.Installation.RenderVersion instead. * * @deprecated */ renderVersion?: number | undefined; /** List of app categories */ categories: AppCategory[]; }; export type AppOwner = { /** t2_ userId of the app owner, eg 't2_11t51216bu' */ userId: string; /** Username of the app owner, eg 'slowcooked99' */ userName: string; }; /** Loosely models a subset of the fields found in devvit.json. */ export type AppConfig = { /** Map of the app's Post entrypoints mapping entryname to entrypointUrl. Example: "leaderboard" maps to "https://{{slug}}-{{location}}-{{version}}-webview.devvit.net/leaderboard.html"> */ entrypoints: { [key: string]: string; }; }; export type AppConfig_EntrypointsEntry = { key: string; value: string; }; /** Corresponds to AppCategory in the ecosystem database */ export type AppCategory = { id: number; name: string; parentId?: number | undefined; }; //# sourceMappingURL=app.d.ts.map