@openpolicy/sdk 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # OpenPolicy SDK
2
+
3
+ This is the SDK package for the OpenPolicy project.
@@ -0,0 +1,4 @@
1
+ import type { PrivacyPolicyConfig } from "@openpolicy/core";
2
+ export type { PrivacyPolicyConfig } from "@openpolicy/core";
3
+ export declare function definePrivacyPolicy(config: PrivacyPolicyConfig): PrivacyPolicyConfig;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,wBAAgB,mBAAmB,CAClC,MAAM,EAAE,mBAAmB,GACzB,mBAAmB,CAErB"}
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ // src/index.ts
2
+ function definePrivacyPolicy(config) {
3
+ return config;
4
+ }
5
+ export {
6
+ definePrivacyPolicy
7
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@openpolicy/sdk",
3
+ "version": "0.0.2",
4
+ "type": "module",
5
+ "description": "Public API for defining privacy policies with OpenPolicy",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/openpolicy/openpolicy",
10
+ "directory": "packages/sdk"
11
+ },
12
+ "files": [
13
+ "dist",
14
+ "README.md"
15
+ ],
16
+ "exports": {
17
+ ".": "./src/index.ts"
18
+ },
19
+ "publishConfig": {
20
+ "exports": {
21
+ ".": {
22
+ "import": "./dist/index.js",
23
+ "types": "./dist/index.d.ts"
24
+ }
25
+ }
26
+ },
27
+ "scripts": {
28
+ "build": "bun build ./src/index.ts --outdir dist && tsc --emitDeclarationOnly",
29
+ "check-types": "tsc --noEmit",
30
+ "test": "bun test"
31
+ },
32
+ "devDependencies": {
33
+ "@openpolicy/core": "workspace:*",
34
+ "@openpolicy/tooling": "workspace:*"
35
+ }
36
+ }