@dropout-ai/runtime 0.4.1 → 0.4.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.d.ts +38 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dropout-ai/runtime",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Invisible Node.js runtime for understanding behavioral impact of AI interactions.",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
package/src/index.d.ts ADDED
@@ -0,0 +1,38 @@
1
+ // packages/runtime/src/index.d.ts
2
+
3
+ export interface DropoutConfig {
4
+ projectId: string;
5
+ apiKey: string;
6
+ debug?: boolean;
7
+ privacy?: 'full' | 'mask';
8
+ }
9
+
10
+ export default class Dropout {
11
+ /**
12
+ * The project ID associated with this instance.
13
+ */
14
+ projectId: string;
15
+
16
+ /**
17
+ * The API Key used for authentication.
18
+ */
19
+ apiKey: string;
20
+
21
+ /**
22
+ * Enable debug mode for verbose logging.
23
+ */
24
+ debug: boolean;
25
+
26
+ /**
27
+ * Privacy setting ('full' captures text, 'mask' captures metadata only).
28
+ */
29
+ privacy: 'full' | 'mask';
30
+
31
+ /**
32
+ * Universal Initialization Method (Idempotent).
33
+ * Safe to call multiple times; will only initialize once.
34
+ */
35
+ static init(config: DropoutConfig): Dropout;
36
+
37
+ constructor(config: DropoutConfig);
38
+ }