@interfere/types 0.1.0-alpha.2 → 0.2.0-alpha.1

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,34 @@
1
+ <p align="center">
2
+ <a href="https://interfere.com">
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://qyzkf4cgb8ydxtq1.public.blob.vercel-storage.com/v2/header/logo-dark.png">
5
+ <img src="https://qyzkf4cgb8ydxtq1.public.blob.vercel-storage.com/v2/header/logo-light.png" height="64">
6
+ </picture>
7
+ </a>
8
+ <h1 align="center">@interfere/types</h1>
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/@interfere/types"><img src="https://img.shields.io/npm/v/@interfere/types.svg" /></a>
13
+ <a href="https://github.com/interfere-inc/interfere/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/@interfere/types.svg" /></a>
14
+ </p>
15
+
16
+ <p align="center">
17
+ Shared TypeScript types and Zod schemas for <a href="https://interfere.com">Interfere</a> SDKs.
18
+ </p>
19
+
20
+ ---
21
+
22
+ ## Installation
23
+
24
+ ```bash
25
+ npm install @interfere/types
26
+ ```
27
+
28
+ ## Notice
29
+
30
+ This is still a work in progress, and we are pushing breaking changes almost daily. Until `v1.0.0`, there are no guarantees of stable backwards compatibility.
31
+
32
+ ## License
33
+
34
+ MIT
@@ -11,8 +11,8 @@ declare const apiBaseUrlSchema: z.ZodUnion<readonly [z.ZodString, z.ZodEnum<{
11
11
  "http://localhost:3001": "http://localhost:3001";
12
12
  }>]>;
13
13
  declare const featuresSchema: z.ZodDefault<z.ZodObject<{
14
- errors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
15
14
  fingerprint: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
15
+ errors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
16
16
  pageEvents: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
17
17
  rageClick: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
18
18
  replay: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -20,8 +20,8 @@ declare const featuresSchema: z.ZodDefault<z.ZodObject<{
20
20
  type Features = z.infer<typeof featuresSchema>;
21
21
  declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
22
22
  features: z.ZodDefault<z.ZodObject<{
23
- errors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
24
23
  fingerprint: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
24
+ errors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
25
25
  pageEvents: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
26
26
  rageClick: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
27
27
  replay: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -55,8 +55,8 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
55
55
  surfaceToken: z.ZodString;
56
56
  }, z.core.$strip>]>>, z.ZodTransform<({
57
57
  features: {
58
- errors?: boolean | undefined;
59
58
  fingerprint?: boolean | undefined;
59
+ errors?: boolean | undefined;
60
60
  pageEvents?: boolean | undefined;
61
61
  rageClick?: boolean | undefined;
62
62
  replay?: boolean | undefined;
@@ -79,8 +79,8 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
79
79
  proxyUrl: string;
80
80
  }) | ({
81
81
  features: {
82
- errors?: boolean | undefined;
83
82
  fingerprint?: boolean | undefined;
83
+ errors?: boolean | undefined;
84
84
  pageEvents?: boolean | undefined;
85
85
  rageClick?: boolean | undefined;
86
86
  replay?: boolean | undefined;
@@ -104,8 +104,8 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
104
104
  surfaceToken: string;
105
105
  }), {
106
106
  features: {
107
- errors?: boolean | undefined;
108
107
  fingerprint?: boolean | undefined;
108
+ errors?: boolean | undefined;
109
109
  pageEvents?: boolean | undefined;
110
110
  rageClick?: boolean | undefined;
111
111
  replay?: boolean | undefined;
@@ -133,8 +133,8 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
133
133
  type Config = z.output<typeof configSchema>;
134
134
  declare const configInputSchema: z.ZodIntersection<z.ZodObject<{
135
135
  features: z.ZodOptional<z.ZodDefault<z.ZodObject<{
136
- errors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
137
136
  fingerprint: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
137
+ errors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
138
138
  pageEvents: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
139
139
  rageClick: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
140
140
  replay: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interfere/types",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.2.0-alpha.1",
4
4
  "license": "MIT",
5
5
  "description": "TypeScript & Zod types for Interfere",
6
6
  "keywords": [
@@ -106,17 +106,17 @@
106
106
  "typecheck": "tsc --noEmit --incremental"
107
107
  },
108
108
  "dependencies": {
109
- "@interfere/constants": "workspace:*",
110
- "error-stack-parser-es": "catalog:",
111
- "zod": "catalog:"
109
+ "@interfere/constants": "0.2.0-alpha.1",
110
+ "error-stack-parser-es": "^1.0.5",
111
+ "zod": "^4.3.6"
112
112
  },
113
113
  "devDependencies": {
114
- "@interfere/typescript-config": "workspace:*",
115
- "@interfere/vitest-config": "workspace:*",
116
- "@types/node": "catalog:",
117
- "@vitest/coverage-v8": "catalog:",
118
- "tsdown": "catalog:",
119
- "typescript": "catalog:",
120
- "vitest": "catalog:"
114
+ "@interfere/typescript-config": "1.1.0-alpha.3",
115
+ "@interfere/vitest-config": "1.1.0-alpha.3",
116
+ "@types/node": "^24.12.0",
117
+ "@vitest/coverage-v8": "^4.0.18",
118
+ "tsdown": "0.21.2",
119
+ "typescript": "5.9.3",
120
+ "vitest": "^4.0.18"
121
121
  }
122
122
  }