UNPKG

@openpolicy/sdk

Version:

Public API for defining privacy policies with OpenPolicy

49 lines (48 loc) 1.49 kB
//#region src/auto-collected.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"], * }, * }, * }); * ``` */ const dataCollected = {}; /** * 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" }, * ], * }, * }); * ``` */ const thirdParties = []; //#endregion export { dataCollected, thirdParties }; //# sourceMappingURL=auto-collected.js.map