UNPKG

@openpolicy/sdk

Version:

Public API for defining privacy policies with OpenPolicy

52 lines 1.62 kB
//#region src/auto-collected.d.ts /** * Placeholder populated by `@openpolicy/vite-auto-collect` during a Vite * build. The plugin intercepts this module's resolution and replaces it with * the scanned categories, so the literal default below is only used as a * fallback when no auto-collect plugin is active — in which case spreading * it into `dataCollected` is a no-op. * * @example * ```ts * import { dataCollected, defineConfig } from "@openpolicy/sdk"; * * export default defineConfig({ * privacy: { * dataCollected: { * ...dataCollected, * "Manually-tracked Category": ["Field A"], * }, * }, * }); * ``` */ declare const dataCollected: Record<string, string[]>; /** * Placeholder populated by `@openpolicy/vite-auto-collect` during a Vite * build. The plugin intercepts this module's resolution and replaces it with * the third-party services discovered via `thirdParty()` calls, so the literal * default below is only used as a fallback when no auto-collect plugin is * active — in which case spreading it into `thirdParties` is a no-op. * * @example * ```ts * import { thirdParties, defineConfig } from "@openpolicy/sdk"; * * export default defineConfig({ * privacy: { * thirdParties: [ * ...thirdParties, * { name: "Manually-added Service", purpose: "Analytics", policyUrl: "https://example.com/privacy" }, * ], * }, * }); * ``` */ declare const thirdParties: { name: string; purpose: string; policyUrl: string; }[]; //#endregion export { dataCollected, thirdParties }; //# sourceMappingURL=auto-collected.d.ts.map