@interfere/types 0.1.0-alpha.3 → 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/dist/events/index.d.mts
CHANGED
|
@@ -135,9 +135,9 @@ declare const factsEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
135
135
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
136
136
|
fingerprint: z.ZodNullable<z.ZodString>;
|
|
137
137
|
errorSource: z.ZodNullable<z.ZodEnum<{
|
|
138
|
-
edge: "edge";
|
|
139
138
|
client: "client";
|
|
140
139
|
server: "server";
|
|
140
|
+
edge: "edge";
|
|
141
141
|
}>>;
|
|
142
142
|
buildId: z.ZodNullable<z.ZodString>;
|
|
143
143
|
timestamp: z.ZodDate;
|
|
@@ -221,9 +221,9 @@ declare const factsEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
221
221
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
222
222
|
fingerprint: z.ZodNullable<z.ZodString>;
|
|
223
223
|
errorSource: z.ZodNullable<z.ZodEnum<{
|
|
224
|
-
edge: "edge";
|
|
225
224
|
client: "client";
|
|
226
225
|
server: "server";
|
|
226
|
+
edge: "edge";
|
|
227
227
|
}>>;
|
|
228
228
|
buildId: z.ZodNullable<z.ZodString>;
|
|
229
229
|
timestamp: z.ZodDate;
|
|
@@ -245,9 +245,9 @@ declare const factsEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
245
245
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
246
246
|
fingerprint: z.ZodNullable<z.ZodString>;
|
|
247
247
|
errorSource: z.ZodNullable<z.ZodEnum<{
|
|
248
|
-
edge: "edge";
|
|
249
248
|
client: "client";
|
|
250
249
|
server: "server";
|
|
250
|
+
edge: "edge";
|
|
251
251
|
}>>;
|
|
252
252
|
buildId: z.ZodNullable<z.ZodString>;
|
|
253
253
|
timestamp: z.ZodDate;
|
|
@@ -268,9 +268,9 @@ declare const factsEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
268
268
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
269
269
|
fingerprint: z.ZodNullable<z.ZodString>;
|
|
270
270
|
errorSource: z.ZodNullable<z.ZodEnum<{
|
|
271
|
-
edge: "edge";
|
|
272
271
|
client: "client";
|
|
273
272
|
server: "server";
|
|
273
|
+
edge: "edge";
|
|
274
274
|
}>>;
|
|
275
275
|
buildId: z.ZodNullable<z.ZodString>;
|
|
276
276
|
timestamp: z.ZodDate;
|
|
@@ -290,9 +290,9 @@ declare const factsEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
290
290
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
291
291
|
fingerprint: z.ZodNullable<z.ZodString>;
|
|
292
292
|
errorSource: z.ZodNullable<z.ZodEnum<{
|
|
293
|
-
edge: "edge";
|
|
294
293
|
client: "client";
|
|
295
294
|
server: "server";
|
|
295
|
+
edge: "edge";
|
|
296
296
|
}>>;
|
|
297
297
|
buildId: z.ZodNullable<z.ZodString>;
|
|
298
298
|
timestamp: z.ZodDate;
|
|
@@ -316,9 +316,9 @@ declare const factsEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
316
316
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
317
317
|
fingerprint: z.ZodNullable<z.ZodString>;
|
|
318
318
|
errorSource: z.ZodNullable<z.ZodEnum<{
|
|
319
|
-
edge: "edge";
|
|
320
319
|
client: "client";
|
|
321
320
|
server: "server";
|
|
321
|
+
edge: "edge";
|
|
322
322
|
}>>;
|
|
323
323
|
buildId: z.ZodNullable<z.ZodString>;
|
|
324
324
|
timestamp: z.ZodDate;
|
|
@@ -342,9 +342,9 @@ declare const factsEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
342
342
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
343
343
|
fingerprint: z.ZodNullable<z.ZodString>;
|
|
344
344
|
errorSource: z.ZodNullable<z.ZodEnum<{
|
|
345
|
-
edge: "edge";
|
|
346
345
|
client: "client";
|
|
347
346
|
server: "server";
|
|
347
|
+
edge: "edge";
|
|
348
348
|
}>>;
|
|
349
349
|
buildId: z.ZodNullable<z.ZodString>;
|
|
350
350
|
timestamp: z.ZodDate;
|
|
@@ -370,9 +370,9 @@ declare const factsEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
370
370
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
371
371
|
fingerprint: z.ZodNullable<z.ZodString>;
|
|
372
372
|
errorSource: z.ZodNullable<z.ZodEnum<{
|
|
373
|
-
edge: "edge";
|
|
374
373
|
client: "client";
|
|
375
374
|
server: "server";
|
|
375
|
+
edge: "edge";
|
|
376
376
|
}>>;
|
|
377
377
|
buildId: z.ZodNullable<z.ZodString>;
|
|
378
378
|
timestamp: z.ZodDate;
|
|
@@ -26,22 +26,22 @@ declare const destinationProviderSchema: z.ZodEnum<{
|
|
|
26
26
|
}>;
|
|
27
27
|
type DestinationProvider = z.infer<typeof destinationProviderSchema>;
|
|
28
28
|
declare const releaseSourceIdEnvKeySchema: z.ZodEnum<{
|
|
29
|
-
VERCEL_GIT_COMMIT_SHA: "VERCEL_GIT_COMMIT_SHA";
|
|
30
|
-
GITHUB_SHA: "GITHUB_SHA";
|
|
31
29
|
NEXT_PUBLIC_INTERFERE_BUILD_ID: "NEXT_PUBLIC_INTERFERE_BUILD_ID";
|
|
32
30
|
INTERFERE_SOURCE_ID: "INTERFERE_SOURCE_ID";
|
|
33
31
|
NEXT_BUILD_ID: "NEXT_BUILD_ID";
|
|
32
|
+
VERCEL_GIT_COMMIT_SHA: "VERCEL_GIT_COMMIT_SHA";
|
|
33
|
+
GITHUB_SHA: "GITHUB_SHA";
|
|
34
34
|
}>;
|
|
35
35
|
type ReleaseSourceIdEnvKey = z.infer<typeof releaseSourceIdEnvKeySchema>;
|
|
36
|
-
declare const releaseSourceIdEnvKeys: ("
|
|
36
|
+
declare const releaseSourceIdEnvKeys: ("NEXT_PUBLIC_INTERFERE_BUILD_ID" | "INTERFERE_SOURCE_ID" | "NEXT_BUILD_ID" | "VERCEL_GIT_COMMIT_SHA" | "GITHUB_SHA")[];
|
|
37
37
|
declare const releaseDestinationIdEnvKeySchema: z.ZodEnum<{
|
|
38
38
|
VERCEL_GIT_COMMIT_SHA: "VERCEL_GIT_COMMIT_SHA";
|
|
39
39
|
GITHUB_SHA: "GITHUB_SHA";
|
|
40
|
-
VERCEL_DEPLOYMENT_ID: "VERCEL_DEPLOYMENT_ID";
|
|
41
40
|
NEXT_PUBLIC_INTERFERE_RELEASE_ID: "NEXT_PUBLIC_INTERFERE_RELEASE_ID";
|
|
42
41
|
INTERFERE_DESTINATION_ID: "INTERFERE_DESTINATION_ID";
|
|
42
|
+
VERCEL_DEPLOYMENT_ID: "VERCEL_DEPLOYMENT_ID";
|
|
43
43
|
}>;
|
|
44
44
|
type ReleaseDestinationIdEnvKey = z.infer<typeof releaseDestinationIdEnvKeySchema>;
|
|
45
|
-
declare const releaseDestinationIdEnvKeys: ("VERCEL_GIT_COMMIT_SHA" | "GITHUB_SHA" | "
|
|
45
|
+
declare const releaseDestinationIdEnvKeys: ("VERCEL_GIT_COMMIT_SHA" | "GITHUB_SHA" | "NEXT_PUBLIC_INTERFERE_RELEASE_ID" | "INTERFERE_DESTINATION_ID" | "VERCEL_DEPLOYMENT_ID")[];
|
|
46
46
|
//#endregion
|
|
47
47
|
export { DestinationProvider, ReleaseDestinationIdEnvKey, ReleaseDestinationMetadata, ReleaseSourceIdEnvKey, ReleaseSourceMetadata, SourceProvider, destinationProviderSchema, releaseDestinationIdEnvKeySchema, releaseDestinationIdEnvKeys, releaseDestinationMetadataSchema, releaseSourceIdEnvKeySchema, releaseSourceIdEnvKeys, releaseSourceMetadataSchema, sourceProviderSchema };
|
package/dist/sdk/config.d.mts
CHANGED
|
@@ -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>>;
|
|
@@ -35,8 +35,8 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
|
|
|
35
35
|
production: "production";
|
|
36
36
|
}>>;
|
|
37
37
|
runtime: z.ZodNullable<z.ZodEnum<{
|
|
38
|
-
browser: "browser";
|
|
39
38
|
edge: "edge";
|
|
39
|
+
browser: "browser";
|
|
40
40
|
node: "node";
|
|
41
41
|
}>>;
|
|
42
42
|
}, z.core.$strip>;
|
|
@@ -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;
|
|
@@ -65,7 +65,7 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
|
|
|
65
65
|
buildId: string | null;
|
|
66
66
|
releaseId: string | null;
|
|
67
67
|
environment: "development" | "preview" | "production" | null;
|
|
68
|
-
runtime: "
|
|
68
|
+
runtime: "edge" | "browser" | "node" | null;
|
|
69
69
|
};
|
|
70
70
|
batch: {
|
|
71
71
|
size: number;
|
|
@@ -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;
|
|
@@ -89,7 +89,7 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
|
|
|
89
89
|
buildId: string | null;
|
|
90
90
|
releaseId: string | null;
|
|
91
91
|
environment: "development" | "preview" | "production" | null;
|
|
92
|
-
runtime: "
|
|
92
|
+
runtime: "edge" | "browser" | "node" | null;
|
|
93
93
|
};
|
|
94
94
|
batch: {
|
|
95
95
|
size: number;
|
|
@@ -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;
|
|
@@ -114,7 +114,7 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
|
|
|
114
114
|
buildId: string | null;
|
|
115
115
|
releaseId: string | null;
|
|
116
116
|
environment: "development" | "preview" | "production" | null;
|
|
117
|
-
runtime: "
|
|
117
|
+
runtime: "edge" | "browser" | "node" | null;
|
|
118
118
|
};
|
|
119
119
|
batch: {
|
|
120
120
|
size: number;
|
|
@@ -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>>;
|
|
@@ -148,8 +148,8 @@ declare const configInputSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
148
148
|
production: "production";
|
|
149
149
|
}>>>;
|
|
150
150
|
runtime: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
151
|
-
browser: "browser";
|
|
152
151
|
edge: "edge";
|
|
152
|
+
browser: "browser";
|
|
153
153
|
node: "node";
|
|
154
154
|
}>>>;
|
|
155
155
|
}, z.core.$strip>>;
|
package/dist/sdk/envelope.d.mts
CHANGED
|
@@ -12,10 +12,10 @@ type EnvelopeVersion = z.infer<typeof envelopeVersion>;
|
|
|
12
12
|
* - "client": Session ID was set on the client (browser SDK)
|
|
13
13
|
*/
|
|
14
14
|
declare const sessionSourceSchema: z.ZodOptional<z.ZodEnum<{
|
|
15
|
+
client: "client";
|
|
15
16
|
header: "header";
|
|
16
17
|
async_context: "async_context";
|
|
17
18
|
fallback: "fallback";
|
|
18
|
-
client: "client";
|
|
19
19
|
}>>;
|
|
20
20
|
type SessionSource = z.infer<typeof sessionSourceSchema>;
|
|
21
21
|
declare const envelopeContextSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -171,16 +171,16 @@ declare const envelopeSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
171
171
|
}>>;
|
|
172
172
|
releaseId: z.ZodNullable<z.ZodString>;
|
|
173
173
|
runtime: z.ZodNullable<z.ZodEnum<{
|
|
174
|
-
browser: "browser";
|
|
175
174
|
edge: "edge";
|
|
175
|
+
browser: "browser";
|
|
176
176
|
node: "node";
|
|
177
177
|
}>>;
|
|
178
178
|
sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
|
|
179
179
|
sessionSource: z.ZodOptional<z.ZodEnum<{
|
|
180
|
+
client: "client";
|
|
180
181
|
header: "header";
|
|
181
182
|
async_context: "async_context";
|
|
182
183
|
fallback: "fallback";
|
|
183
|
-
client: "client";
|
|
184
184
|
}>>;
|
|
185
185
|
uuid: z.ZodUUID;
|
|
186
186
|
v: z.ZodUnion<readonly [z.ZodLiteral<0>]>;
|
|
@@ -329,16 +329,16 @@ declare const stampedEnvelopeSchema: z.ZodIntersection<z.ZodIntersection<z.ZodOb
|
|
|
329
329
|
}>>;
|
|
330
330
|
releaseId: z.ZodNullable<z.ZodString>;
|
|
331
331
|
runtime: z.ZodNullable<z.ZodEnum<{
|
|
332
|
-
browser: "browser";
|
|
333
332
|
edge: "edge";
|
|
333
|
+
browser: "browser";
|
|
334
334
|
node: "node";
|
|
335
335
|
}>>;
|
|
336
336
|
sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
|
|
337
337
|
sessionSource: z.ZodOptional<z.ZodEnum<{
|
|
338
|
+
client: "client";
|
|
338
339
|
header: "header";
|
|
339
340
|
async_context: "async_context";
|
|
340
341
|
fallback: "fallback";
|
|
341
|
-
client: "client";
|
|
342
342
|
}>>;
|
|
343
343
|
uuid: z.ZodUUID;
|
|
344
344
|
v: z.ZodUnion<readonly [z.ZodLiteral<0>]>;
|
|
@@ -2,9 +2,9 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/sdk/plugins/payload/errors.d.ts
|
|
4
4
|
declare const errorSourceSchema: z.ZodEnum<{
|
|
5
|
-
edge: "edge";
|
|
6
5
|
client: "client";
|
|
7
6
|
server: "server";
|
|
7
|
+
edge: "edge";
|
|
8
8
|
}>;
|
|
9
9
|
type ErrorSource = z.infer<typeof errorSourceSchema>;
|
|
10
10
|
declare const errorMechanismSchema: z.ZodObject<{
|
package/dist/sdk/runtime.d.mts
CHANGED
|
@@ -8,8 +8,8 @@ declare const envSchema: z.ZodNullable<z.ZodEnum<{
|
|
|
8
8
|
}>>;
|
|
9
9
|
type Env = z.infer<typeof envSchema>;
|
|
10
10
|
declare const runtimeSchema: z.ZodNullable<z.ZodEnum<{
|
|
11
|
-
browser: "browser";
|
|
12
11
|
edge: "edge";
|
|
12
|
+
browser: "browser";
|
|
13
13
|
node: "node";
|
|
14
14
|
}>>;
|
|
15
15
|
type Runtime = z.infer<typeof runtimeSchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interfere/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0-alpha.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "TypeScript & Zod types for Interfere",
|
|
6
6
|
"keywords": [
|
|
@@ -106,14 +106,14 @@
|
|
|
106
106
|
"typecheck": "tsc --noEmit --incremental"
|
|
107
107
|
},
|
|
108
108
|
"dependencies": {
|
|
109
|
-
"@interfere/constants": "0.
|
|
109
|
+
"@interfere/constants": "0.2.0-alpha.1",
|
|
110
110
|
"error-stack-parser-es": "^1.0.5",
|
|
111
111
|
"zod": "^4.3.6"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@interfere/typescript-config": "1.1.0-alpha.3",
|
|
115
115
|
"@interfere/vitest-config": "1.1.0-alpha.3",
|
|
116
|
-
"@types/node": "^24.
|
|
116
|
+
"@types/node": "^24.12.0",
|
|
117
117
|
"@vitest/coverage-v8": "^4.0.18",
|
|
118
118
|
"tsdown": "0.21.2",
|
|
119
119
|
"typescript": "5.9.3",
|