@interfere/types 1.0.3 → 4.0.0

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.
@@ -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";
138
139
  client: "client";
139
140
  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";
224
225
  client: "client";
225
226
  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";
248
249
  client: "client";
249
250
  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";
271
272
  client: "client";
272
273
  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";
293
294
  client: "client";
294
295
  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";
319
320
  client: "client";
320
321
  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";
345
346
  client: "client";
346
347
  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";
373
374
  client: "client";
374
375
  server: "server";
375
- edge: "edge";
376
376
  }>>;
377
377
  buildId: z.ZodNullable<z.ZodString>;
378
378
  timestamp: z.ZodDate;
@@ -2,19 +2,20 @@ import { z } from "zod/v4";
2
2
 
3
3
  //#region src/integrations/index.d.ts
4
4
  declare const releaseSourceMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5
+ provider: z.ZodLiteral<"github">;
5
6
  commitMessage: z.ZodString;
6
7
  branch: z.ZodString;
7
8
  commitSha: z.ZodNullable<z.ZodString>;
8
- provider: z.ZodLiteral<"github">;
9
9
  }, z.core.$strip>], "provider">;
10
10
  type ReleaseSourceMetadata = z.infer<typeof releaseSourceMetadataSchema>;
11
11
  declare const releaseDestinationMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
12
+ provider: z.ZodLiteral<"vercel">;
13
+ destinationReleaseId: z.ZodNullable<z.ZodString>;
12
14
  environment: z.ZodNullable<z.ZodString>;
13
15
  deploymentId: z.ZodNullable<z.ZodString>;
14
16
  deploymentUrl: z.ZodNullable<z.ZodString>;
15
17
  environmentName: z.ZodNullable<z.ZodString>;
16
18
  environmentTarget: z.ZodNullable<z.ZodString>;
17
- provider: z.ZodLiteral<"vercel">;
18
19
  }, z.core.$strip>], "provider">;
19
20
  type ReleaseDestinationMetadata = z.infer<typeof releaseDestinationMetadataSchema>;
20
21
  declare const sourceProviderSchema: z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/integrations/index.ts"],"mappings":";;;cAWa,2BAAA,EAA2B,CAAA,CAAA,qBAAA,EAAA,CAAA,CAAA,SAAA;;;;;;KAM5B,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,2BAAA;AAAA,cAMtC,gCAAA,EAAgC,CAAA,CAAA,qBAAA,EAAA,CAAA,CAAA,SAAA;;;;;;;;KAWjC,0BAAA,GAA6B,CAAA,CAAE,KAAA,QAClC,gCAAA;AAAA,cAGI,oBAAA,EAAoB,CAAA,CAAA,OAAA;;;KAGrB,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,cAE/B,yBAAA,EAAyB,CAAA,CAAA,OAAA;;;KAG1B,mBAAA,GAAsB,CAAA,CAAE,KAAA,QAAa,yBAAA;AAAA,cAEpC,2BAAA,EAA2B,CAAA,CAAA,OAAA;;;;;;;KAM5B,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,2BAAA;AAAA,cACtC,sBAAA;AAAA,cAEA,gCAAA,EAAgC,CAAA,CAAA,OAAA;;;;;;;KAMjC,0BAAA,GAA6B,CAAA,CAAE,KAAA,QAClC,gCAAA;AAAA,cAEI,2BAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/integrations/index.ts"],"mappings":";;;cAKa,2BAAA,EAA2B,CAAA,CAAA,qBAAA,EAAA,CAAA,CAAA,SAAA;;;;;;KAS5B,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,2BAAA;AAAA,cAEtC,gCAAA,EAAgC,CAAA,CAAA,qBAAA,EAAA,CAAA,CAAA,SAAA;;;;;;;;;KAejC,0BAAA,GAA6B,CAAA,CAAE,KAAA,QAClC,gCAAA;AAAA,cAGI,oBAAA,EAAoB,CAAA,CAAA,OAAA;;;KACrB,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,cAE/B,yBAAA,EAAyB,CAAA,CAAA,OAAA;;;KAC1B,mBAAA,GAAsB,CAAA,CAAE,KAAA,QAAa,yBAAA;AAAA,cAEpC,2BAAA,EAA2B,CAAA,CAAA,OAAA;;;;;;;KAM5B,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,2BAAA;AAAA,cACtC,sBAAA;AAAA,cAEA,gCAAA,EAAgC,CAAA,CAAA,OAAA;;;;;;;KAMjC,0BAAA,GAA6B,CAAA,CAAE,KAAA,QAClC,gCAAA;AAAA,cAEI,2BAAA"}
@@ -1,12 +1,24 @@
1
- import { githubIntegration, githubSourceIdEnvKeys } from "./platforms/github.mjs";
2
- import { vercelDestinationIdEnvKeys, vercelIntegration } from "./platforms/vercel.mjs";
1
+ import { githubSourceIdEnvKeys } from "./platforms/github.mjs";
2
+ import { vercelDestinationIdEnvKeys } from "./platforms/vercel.mjs";
3
3
  import { z } from "zod/v4";
4
4
  //#region src/integrations/index.ts
5
- const releaseSourceMetadataSchema = z.discriminatedUnion("provider", [githubIntegration.shape.source.extend({ provider: githubIntegration.shape.name })]);
6
- const baseDestinationMetadataSchema = z.object({ environment: z.string().nullable() });
7
- const releaseDestinationMetadataSchema = z.discriminatedUnion("provider", [baseDestinationMetadataSchema.extend(vercelIntegration.shape.destination.shape).extend({ provider: vercelIntegration.shape.name })]);
8
- const sourceProviderSchema = z.enum([githubIntegration.shape.name.value]);
9
- const destinationProviderSchema = z.enum([vercelIntegration.shape.name.value]);
5
+ const releaseSourceMetadataSchema = z.discriminatedUnion("provider", [z.object({
6
+ provider: z.literal("github"),
7
+ commitMessage: z.string(),
8
+ branch: z.string(),
9
+ commitSha: z.string().nullable()
10
+ })]);
11
+ const releaseDestinationMetadataSchema = z.discriminatedUnion("provider", [z.object({
12
+ provider: z.literal("vercel"),
13
+ destinationReleaseId: z.string().nullable(),
14
+ environment: z.string().nullable(),
15
+ deploymentId: z.string().nullable(),
16
+ deploymentUrl: z.string().nullable(),
17
+ environmentName: z.string().nullable(),
18
+ environmentTarget: z.string().nullable()
19
+ })]);
20
+ const sourceProviderSchema = z.enum(["github"]);
21
+ const destinationProviderSchema = z.enum(["vercel"]);
10
22
  const releaseSourceIdEnvKeySchema = z.enum([
11
23
  "NEXT_PUBLIC_INTERFERE_BUILD_ID",
12
24
  "INTERFERE_SOURCE_ID",
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../src/integrations/index.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nimport {\n githubIntegration,\n githubSourceIdEnvKeys,\n} from \"./platforms/github.js\";\nimport {\n vercelDestinationIdEnvKeys,\n vercelIntegration,\n} from \"./platforms/vercel.js\";\n\nexport const releaseSourceMetadataSchema = z.discriminatedUnion(\"provider\", [\n githubIntegration.shape.source.extend({\n provider: githubIntegration.shape.name,\n }),\n]);\n\nexport type ReleaseSourceMetadata = z.infer<typeof releaseSourceMetadataSchema>;\n\nconst baseDestinationMetadataSchema = z.object({\n environment: z.string().nullable(),\n});\n\nexport const releaseDestinationMetadataSchema = z.discriminatedUnion(\n \"provider\",\n [\n baseDestinationMetadataSchema\n .extend(vercelIntegration.shape.destination.shape)\n .extend({\n provider: vercelIntegration.shape.name,\n }),\n ]\n);\n\nexport type ReleaseDestinationMetadata = z.infer<\n typeof releaseDestinationMetadataSchema\n>;\n\nexport const sourceProviderSchema = z.enum([\n githubIntegration.shape.name.value,\n]);\nexport type SourceProvider = z.infer<typeof sourceProviderSchema>;\n\nexport const destinationProviderSchema = z.enum([\n vercelIntegration.shape.name.value,\n]);\nexport type DestinationProvider = z.infer<typeof destinationProviderSchema>;\n\nexport const releaseSourceIdEnvKeySchema = z.enum([\n \"NEXT_PUBLIC_INTERFERE_BUILD_ID\",\n \"INTERFERE_SOURCE_ID\",\n \"NEXT_BUILD_ID\",\n ...githubSourceIdEnvKeys,\n]);\nexport type ReleaseSourceIdEnvKey = z.infer<typeof releaseSourceIdEnvKeySchema>;\nexport const releaseSourceIdEnvKeys = releaseSourceIdEnvKeySchema.options;\n\nexport const releaseDestinationIdEnvKeySchema = z.enum([\n \"NEXT_PUBLIC_INTERFERE_RELEASE_ID\",\n \"INTERFERE_DESTINATION_ID\",\n ...vercelDestinationIdEnvKeys,\n ...githubSourceIdEnvKeys,\n]);\nexport type ReleaseDestinationIdEnvKey = z.infer<\n typeof releaseDestinationIdEnvKeySchema\n>;\nexport const releaseDestinationIdEnvKeys =\n releaseDestinationIdEnvKeySchema.options;\n"],"mappings":";;;;AAWA,MAAa,8BAA8B,EAAE,mBAAmB,YAAY,CAC1E,kBAAkB,MAAM,OAAO,OAAO,EACpC,UAAU,kBAAkB,MAAM,MACnC,CAAC,CACH,CAAC;AAIF,MAAM,gCAAgC,EAAE,OAAO,EAC7C,aAAa,EAAE,QAAQ,CAAC,UAAU,EACnC,CAAC;AAEF,MAAa,mCAAmC,EAAE,mBAChD,YACA,CACE,8BACG,OAAO,kBAAkB,MAAM,YAAY,MAAM,CACjD,OAAO,EACN,UAAU,kBAAkB,MAAM,MACnC,CAAC,CACL,CACF;AAMD,MAAa,uBAAuB,EAAE,KAAK,CACzC,kBAAkB,MAAM,KAAK,MAC9B,CAAC;AAGF,MAAa,4BAA4B,EAAE,KAAK,CAC9C,kBAAkB,MAAM,KAAK,MAC9B,CAAC;AAGF,MAAa,8BAA8B,EAAE,KAAK;CAChD;CACA;CACA;CACA,GAAG;CACJ,CAAC;AAEF,MAAa,yBAAyB,4BAA4B;AAElE,MAAa,mCAAmC,EAAE,KAAK;CACrD;CACA;CACA,GAAG;CACH,GAAG;CACJ,CAAC;AAIF,MAAa,8BACX,iCAAiC"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/integrations/index.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nimport { githubSourceIdEnvKeys } from \"./platforms/github.js\";\nimport { vercelDestinationIdEnvKeys } from \"./platforms/vercel.js\";\n\nexport const releaseSourceMetadataSchema = z.discriminatedUnion(\"provider\", [\n z.object({\n provider: z.literal(\"github\"),\n commitMessage: z.string(),\n branch: z.string(),\n commitSha: z.string().nullable(),\n }),\n]);\n\nexport type ReleaseSourceMetadata = z.infer<typeof releaseSourceMetadataSchema>;\n\nexport const releaseDestinationMetadataSchema = z.discriminatedUnion(\n \"provider\",\n [\n z.object({\n provider: z.literal(\"vercel\"),\n destinationReleaseId: z.string().nullable(),\n environment: z.string().nullable(),\n deploymentId: z.string().nullable(),\n deploymentUrl: z.string().nullable(),\n environmentName: z.string().nullable(),\n environmentTarget: z.string().nullable(),\n }),\n ]\n);\n\nexport type ReleaseDestinationMetadata = z.infer<\n typeof releaseDestinationMetadataSchema\n>;\n\nexport const sourceProviderSchema = z.enum([\"github\"]);\nexport type SourceProvider = z.infer<typeof sourceProviderSchema>;\n\nexport const destinationProviderSchema = z.enum([\"vercel\"]);\nexport type DestinationProvider = z.infer<typeof destinationProviderSchema>;\n\nexport const releaseSourceIdEnvKeySchema = z.enum([\n \"NEXT_PUBLIC_INTERFERE_BUILD_ID\",\n \"INTERFERE_SOURCE_ID\",\n \"NEXT_BUILD_ID\",\n ...githubSourceIdEnvKeys,\n]);\nexport type ReleaseSourceIdEnvKey = z.infer<typeof releaseSourceIdEnvKeySchema>;\nexport const releaseSourceIdEnvKeys = releaseSourceIdEnvKeySchema.options;\n\nexport const releaseDestinationIdEnvKeySchema = z.enum([\n \"NEXT_PUBLIC_INTERFERE_RELEASE_ID\",\n \"INTERFERE_DESTINATION_ID\",\n ...vercelDestinationIdEnvKeys,\n ...githubSourceIdEnvKeys,\n]);\nexport type ReleaseDestinationIdEnvKey = z.infer<\n typeof releaseDestinationIdEnvKeySchema\n>;\nexport const releaseDestinationIdEnvKeys =\n releaseDestinationIdEnvKeySchema.options;\n"],"mappings":";;;;AAKA,MAAa,8BAA8B,EAAE,mBAAmB,YAAY,CAC1E,EAAE,OAAO;CACP,UAAU,EAAE,QAAQ,SAAS;CAC7B,eAAe,EAAE,QAAQ;CACzB,QAAQ,EAAE,QAAQ;CAClB,WAAW,EAAE,QAAQ,CAAC,UAAU;CACjC,CAAC,CACH,CAAC;AAIF,MAAa,mCAAmC,EAAE,mBAChD,YACA,CACE,EAAE,OAAO;CACP,UAAU,EAAE,QAAQ,SAAS;CAC7B,sBAAsB,EAAE,QAAQ,CAAC,UAAU;CAC3C,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,cAAc,EAAE,QAAQ,CAAC,UAAU;CACnC,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACtC,mBAAmB,EAAE,QAAQ,CAAC,UAAU;CACzC,CAAC,CACH,CACF;AAMD,MAAa,uBAAuB,EAAE,KAAK,CAAC,SAAS,CAAC;AAGtD,MAAa,4BAA4B,EAAE,KAAK,CAAC,SAAS,CAAC;AAG3D,MAAa,8BAA8B,EAAE,KAAK;CAChD;CACA;CACA;CACA,GAAG;CACJ,CAAC;AAEF,MAAa,yBAAyB,4BAA4B;AAElE,MAAa,mCAAmC,EAAE,KAAK;CACrD;CACA;CACA,GAAG;CACH,GAAG;CACJ,CAAC;AAIF,MAAa,8BACX,iCAAiC"}
@@ -11,14 +11,10 @@ declare const githubIntegration: z.ZodObject<{
11
11
  name: z.ZodLiteral<"github">;
12
12
  metadata: z.ZodObject<{
13
13
  accountType: z.ZodString;
14
+ avatarUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14
15
  repositories: z.ZodRecord<z.ZodString, z.ZodString>;
15
16
  installationUrl: z.ZodNullable<z.ZodString>;
16
17
  }, z.core.$strip>;
17
- source: z.ZodObject<{
18
- commitMessage: z.ZodString;
19
- branch: z.ZodString;
20
- commitSha: z.ZodNullable<z.ZodString>;
21
- }, z.core.$strip>;
22
18
  }, z.core.$strip>;
23
19
  //#endregion
24
20
  export { GithubSourceIdEnvKey, githubIntegration, githubSourceIdEnvKeySchema, githubSourceIdEnvKeys };
@@ -6,13 +6,9 @@ const githubIntegration = z.object({
6
6
  name: z.literal("github"),
7
7
  metadata: z.object({
8
8
  accountType: z.string(),
9
+ avatarUrl: z.string().nullable().default(null),
9
10
  repositories: z.record(z.string(), z.string()),
10
11
  installationUrl: z.string().nullable()
11
- }),
12
- source: z.object({
13
- commitMessage: z.string(),
14
- branch: z.string(),
15
- commitSha: z.string().nullable()
16
12
  })
17
13
  });
18
14
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"github.mjs","names":[],"sources":["../../../src/integrations/platforms/github.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const githubSourceIdEnvKeySchema = z.enum([\n \"VERCEL_GIT_COMMIT_SHA\",\n \"GITHUB_SHA\",\n]);\nexport type GithubSourceIdEnvKey = z.infer<typeof githubSourceIdEnvKeySchema>;\nexport const githubSourceIdEnvKeys = githubSourceIdEnvKeySchema.options;\n\nexport const githubIntegration = z.object({\n name: z.literal(\"github\"),\n metadata: z.object({\n accountType: z.string(),\n repositories: z.record(z.string(), z.string()),\n installationUrl: z.string().nullable(),\n }),\n source: z.object({\n commitMessage: z.string(),\n branch: z.string(),\n commitSha: z.string().nullable(),\n }),\n});\n"],"mappings":";;AAEA,MAAa,6BAA6B,EAAE,KAAK,CAC/C,yBACA,aACD,CAAC;AAEF,MAAa,wBAAwB,2BAA2B;AAEhE,MAAa,oBAAoB,EAAE,OAAO;CACxC,MAAM,EAAE,QAAQ,SAAS;CACzB,UAAU,EAAE,OAAO;EACjB,aAAa,EAAE,QAAQ;EACvB,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC;EAC9C,iBAAiB,EAAE,QAAQ,CAAC,UAAU;EACvC,CAAC;CACF,QAAQ,EAAE,OAAO;EACf,eAAe,EAAE,QAAQ;EACzB,QAAQ,EAAE,QAAQ;EAClB,WAAW,EAAE,QAAQ,CAAC,UAAU;EACjC,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"github.mjs","names":[],"sources":["../../../src/integrations/platforms/github.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const githubSourceIdEnvKeySchema = z.enum([\n \"VERCEL_GIT_COMMIT_SHA\",\n \"GITHUB_SHA\",\n]);\nexport type GithubSourceIdEnvKey = z.infer<typeof githubSourceIdEnvKeySchema>;\nexport const githubSourceIdEnvKeys = githubSourceIdEnvKeySchema.options;\n\nexport const githubIntegration = z.object({\n name: z.literal(\"github\"),\n metadata: z.object({\n accountType: z.string(),\n avatarUrl: z.string().nullable().default(null),\n repositories: z.record(z.string(), z.string()),\n installationUrl: z.string().nullable(),\n }),\n});\n"],"mappings":";;AAEA,MAAa,6BAA6B,EAAE,KAAK,CAC/C,yBACA,aACD,CAAC;AAEF,MAAa,wBAAwB,2BAA2B;AAEhE,MAAa,oBAAoB,EAAE,OAAO;CACxC,MAAM,EAAE,QAAQ,SAAS;CACzB,UAAU,EAAE,OAAO;EACjB,aAAa,EAAE,QAAQ;EACvB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,KAAK;EAC9C,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC;EAC9C,iBAAiB,EAAE,QAAQ,CAAC,UAAU;EACvC,CAAC;CACH,CAAC"}
@@ -6,23 +6,63 @@ declare const vercelDestinationIdEnvKeySchema: z.ZodEnum<{
6
6
  }>;
7
7
  type VercelDestinationIdEnvKey = z.infer<typeof vercelDestinationIdEnvKeySchema>;
8
8
  declare const vercelDestinationIdEnvKeys: "VERCEL_DEPLOYMENT_ID"[];
9
+ declare const vercelTeamMetadata: z.ZodObject<{
10
+ avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12
+ installationUrl: z.ZodNullable<z.ZodString>;
13
+ projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
14
+ accountType: z.ZodLiteral<"team">;
15
+ id: z.ZodString;
16
+ slug: z.ZodString;
17
+ }, z.core.$strip>;
18
+ declare const vercelUserMetadata: z.ZodObject<{
19
+ avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21
+ installationUrl: z.ZodNullable<z.ZodString>;
22
+ projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
23
+ accountType: z.ZodLiteral<"user">;
24
+ id: z.ZodString;
25
+ username: z.ZodString;
26
+ email: z.ZodString;
27
+ }, z.core.$strip>;
28
+ declare const vercelMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
29
+ avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
30
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
31
+ installationUrl: z.ZodNullable<z.ZodString>;
32
+ projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
33
+ accountType: z.ZodLiteral<"team">;
34
+ id: z.ZodString;
35
+ slug: z.ZodString;
36
+ }, z.core.$strip>, z.ZodObject<{
37
+ avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
38
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
39
+ installationUrl: z.ZodNullable<z.ZodString>;
40
+ projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
41
+ accountType: z.ZodLiteral<"user">;
42
+ id: z.ZodString;
43
+ username: z.ZodString;
44
+ email: z.ZodString;
45
+ }, z.core.$strip>], "accountType">;
9
46
  declare const vercelIntegration: z.ZodObject<{
10
47
  name: z.ZodLiteral<"vercel">;
11
- metadata: z.ZodObject<{
12
- teamId: z.ZodNullable<z.ZodString>;
13
- teamSlug: z.ZodNullable<z.ZodString>;
48
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
49
+ avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
50
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
51
+ installationUrl: z.ZodNullable<z.ZodString>;
52
+ projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
53
+ accountType: z.ZodLiteral<"team">;
54
+ id: z.ZodString;
55
+ slug: z.ZodString;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
58
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14
59
  installationUrl: z.ZodNullable<z.ZodString>;
15
- projectId: z.ZodNullable<z.ZodString>;
16
- productionUrl: z.ZodNullable<z.ZodString>;
17
- region: z.ZodNullable<z.ZodString>;
18
- skewProtectionEnabled: z.ZodNullable<z.ZodBoolean>;
19
- }, z.core.$strip>;
20
- destination: z.ZodObject<{
21
- deploymentId: z.ZodNullable<z.ZodString>;
22
- deploymentUrl: z.ZodNullable<z.ZodString>;
23
- environmentName: z.ZodNullable<z.ZodString>;
24
- environmentTarget: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>;
60
+ projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
61
+ accountType: z.ZodLiteral<"user">;
62
+ id: z.ZodString;
63
+ username: z.ZodString;
64
+ email: z.ZodString;
65
+ }, z.core.$strip>], "accountType">;
26
66
  }, z.core.$strip>;
27
67
  //#endregion
28
- export { VercelDestinationIdEnvKey, vercelDestinationIdEnvKeySchema, vercelDestinationIdEnvKeys, vercelIntegration };
68
+ export { VercelDestinationIdEnvKey, vercelDestinationIdEnvKeySchema, vercelDestinationIdEnvKeys, vercelIntegration, vercelMetadataSchema, vercelTeamMetadata, vercelUserMetadata };
@@ -1 +1 @@
1
- {"version":3,"file":"vercel.d.mts","names":[],"sources":["../../../src/integrations/platforms/vercel.ts"],"mappings":";;;cAEa,+BAAA,EAA+B,CAAA,CAAA,OAAA;;;KAChC,yBAAA,GAA4B,CAAA,CAAE,KAAA,QACjC,+BAAA;AAAA,cAEI,0BAAA;AAAA,cAGA,iBAAA,EAAiB,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"vercel.d.mts","names":[],"sources":["../../../src/integrations/platforms/vercel.ts"],"mappings":";;;cAEa,+BAAA,EAA+B,CAAA,CAAA,OAAA;;;KAChC,yBAAA,GAA4B,CAAA,CAAE,KAAA,QACjC,+BAAA;AAAA,cAEI,0BAAA;AAAA,cAUA,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;cAMlB,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;cAOlB,oBAAA,EAAoB,CAAA,CAAA,qBAAA,EAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAKpB,iBAAA,EAAiB,CAAA,CAAA,SAAA"}
@@ -2,23 +2,27 @@ import { z } from "zod/v4";
2
2
  //#region src/integrations/platforms/vercel.ts
3
3
  const vercelDestinationIdEnvKeySchema = z.enum(["VERCEL_DEPLOYMENT_ID"]);
4
4
  const vercelDestinationIdEnvKeys = vercelDestinationIdEnvKeySchema.options;
5
+ const vercelMetadataBase = z.object({
6
+ avatar: z.string().nullable().default(null),
7
+ name: z.string().nullable().default(null),
8
+ installationUrl: z.string().nullable(),
9
+ projects: z.record(z.string(), z.string()).default({})
10
+ });
11
+ const vercelTeamMetadata = vercelMetadataBase.extend({
12
+ accountType: z.literal("team"),
13
+ id: z.string(),
14
+ slug: z.string()
15
+ });
16
+ const vercelUserMetadata = vercelMetadataBase.extend({
17
+ accountType: z.literal("user"),
18
+ id: z.string(),
19
+ username: z.string(),
20
+ email: z.string()
21
+ });
22
+ const vercelMetadataSchema = z.discriminatedUnion("accountType", [vercelTeamMetadata, vercelUserMetadata]);
5
23
  const vercelIntegration = z.object({
6
24
  name: z.literal("vercel"),
7
- metadata: z.object({
8
- teamId: z.string().nullable(),
9
- teamSlug: z.string().nullable(),
10
- installationUrl: z.string().nullable(),
11
- projectId: z.string().nullable(),
12
- productionUrl: z.string().nullable(),
13
- region: z.string().nullable(),
14
- skewProtectionEnabled: z.boolean().nullable()
15
- }),
16
- destination: z.object({
17
- deploymentId: z.string().nullable(),
18
- deploymentUrl: z.string().nullable(),
19
- environmentName: z.string().nullable(),
20
- environmentTarget: z.string().nullable()
21
- })
25
+ metadata: vercelMetadataSchema
22
26
  });
23
27
  //#endregion
24
- export { vercelDestinationIdEnvKeySchema, vercelDestinationIdEnvKeys, vercelIntegration };
28
+ export { vercelDestinationIdEnvKeySchema, vercelDestinationIdEnvKeys, vercelIntegration, vercelMetadataSchema, vercelTeamMetadata, vercelUserMetadata };
@@ -1 +1 @@
1
- {"version":3,"file":"vercel.mjs","names":[],"sources":["../../../src/integrations/platforms/vercel.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const vercelDestinationIdEnvKeySchema = z.enum([\"VERCEL_DEPLOYMENT_ID\"]);\nexport type VercelDestinationIdEnvKey = z.infer<\n typeof vercelDestinationIdEnvKeySchema\n>;\nexport const vercelDestinationIdEnvKeys =\n vercelDestinationIdEnvKeySchema.options;\n\nexport const vercelIntegration = z.object({\n name: z.literal(\"vercel\"),\n metadata: z.object({\n teamId: z.string().nullable(),\n teamSlug: z.string().nullable(),\n installationUrl: z.string().nullable(),\n projectId: z.string().nullable(),\n productionUrl: z.string().nullable(),\n region: z.string().nullable(),\n skewProtectionEnabled: z.boolean().nullable(),\n }),\n destination: z.object({\n deploymentId: z.string().nullable(),\n deploymentUrl: z.string().nullable(),\n environmentName: z.string().nullable(),\n environmentTarget: z.string().nullable(),\n }),\n});\n"],"mappings":";;AAEA,MAAa,kCAAkC,EAAE,KAAK,CAAC,uBAAuB,CAAC;AAI/E,MAAa,6BACX,gCAAgC;AAElC,MAAa,oBAAoB,EAAE,OAAO;CACxC,MAAM,EAAE,QAAQ,SAAS;CACzB,UAAU,EAAE,OAAO;EACjB,QAAQ,EAAE,QAAQ,CAAC,UAAU;EAC7B,UAAU,EAAE,QAAQ,CAAC,UAAU;EAC/B,iBAAiB,EAAE,QAAQ,CAAC,UAAU;EACtC,WAAW,EAAE,QAAQ,CAAC,UAAU;EAChC,eAAe,EAAE,QAAQ,CAAC,UAAU;EACpC,QAAQ,EAAE,QAAQ,CAAC,UAAU;EAC7B,uBAAuB,EAAE,SAAS,CAAC,UAAU;EAC9C,CAAC;CACF,aAAa,EAAE,OAAO;EACpB,cAAc,EAAE,QAAQ,CAAC,UAAU;EACnC,eAAe,EAAE,QAAQ,CAAC,UAAU;EACpC,iBAAiB,EAAE,QAAQ,CAAC,UAAU;EACtC,mBAAmB,EAAE,QAAQ,CAAC,UAAU;EACzC,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"vercel.mjs","names":[],"sources":["../../../src/integrations/platforms/vercel.ts"],"sourcesContent":["import { z } from \"zod/v4\";\n\nexport const vercelDestinationIdEnvKeySchema = z.enum([\"VERCEL_DEPLOYMENT_ID\"]);\nexport type VercelDestinationIdEnvKey = z.infer<\n typeof vercelDestinationIdEnvKeySchema\n>;\nexport const vercelDestinationIdEnvKeys =\n vercelDestinationIdEnvKeySchema.options;\n\nconst vercelMetadataBase = z.object({\n avatar: z.string().nullable().default(null),\n name: z.string().nullable().default(null),\n installationUrl: z.string().nullable(),\n projects: z.record(z.string(), z.string()).default({}),\n});\n\nexport const vercelTeamMetadata = vercelMetadataBase.extend({\n accountType: z.literal(\"team\"),\n id: z.string(),\n slug: z.string(),\n});\n\nexport const vercelUserMetadata = vercelMetadataBase.extend({\n accountType: z.literal(\"user\"),\n id: z.string(),\n username: z.string(),\n email: z.string(),\n});\n\nexport const vercelMetadataSchema = z.discriminatedUnion(\"accountType\", [\n vercelTeamMetadata,\n vercelUserMetadata,\n]);\n\nexport const vercelIntegration = z.object({\n name: z.literal(\"vercel\"),\n metadata: vercelMetadataSchema,\n});\n"],"mappings":";;AAEA,MAAa,kCAAkC,EAAE,KAAK,CAAC,uBAAuB,CAAC;AAI/E,MAAa,6BACX,gCAAgC;AAElC,MAAM,qBAAqB,EAAE,OAAO;CAClC,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,KAAK;CAC3C,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,KAAK;CACzC,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACtC,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;CACvD,CAAC;AAEF,MAAa,qBAAqB,mBAAmB,OAAO;CAC1D,aAAa,EAAE,QAAQ,OAAO;CAC9B,IAAI,EAAE,QAAQ;CACd,MAAM,EAAE,QAAQ;CACjB,CAAC;AAEF,MAAa,qBAAqB,mBAAmB,OAAO;CAC1D,aAAa,EAAE,QAAQ,OAAO;CAC9B,IAAI,EAAE,QAAQ;CACd,UAAU,EAAE,QAAQ;CACpB,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEF,MAAa,uBAAuB,EAAE,mBAAmB,eAAe,CACtE,oBACA,mBACD,CAAC;AAEF,MAAa,oBAAoB,EAAE,OAAO;CACxC,MAAM,EAAE,QAAQ,SAAS;CACzB,UAAU;CACX,CAAC"}
@@ -10,18 +10,19 @@ declare const releaseStatusSchema: z.ZodEnum<{
10
10
  }>;
11
11
  declare const createReleaseRequest: z.ZodObject<{
12
12
  source: z.ZodDiscriminatedUnion<[z.ZodObject<{
13
+ provider: z.ZodLiteral<"github">;
13
14
  commitMessage: z.ZodString;
14
15
  branch: z.ZodString;
15
16
  commitSha: z.ZodNullable<z.ZodString>;
16
- provider: z.ZodLiteral<"github">;
17
17
  }, z.core.$strip>], "provider">;
18
18
  destination: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
19
+ provider: z.ZodLiteral<"vercel">;
20
+ destinationReleaseId: z.ZodNullable<z.ZodString>;
19
21
  environment: z.ZodNullable<z.ZodString>;
20
22
  deploymentId: z.ZodNullable<z.ZodString>;
21
23
  deploymentUrl: z.ZodNullable<z.ZodString>;
22
24
  environmentName: z.ZodNullable<z.ZodString>;
23
25
  environmentTarget: z.ZodNullable<z.ZodString>;
24
- provider: z.ZodLiteral<"vercel">;
25
26
  }, z.core.$strip>], "provider">>;
26
27
  buildId: z.ZodString;
27
28
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"definition.d.mts","names":[],"sources":["../../src/releases/definition.ts"],"mappings":";;;cAOa,mBAAA,EAAmB,CAAA,CAAA,OAAA;;;;;;;cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;KAMrB,oBAAA,GAAuB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,cAErC,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;KAsBtB,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,qBAAA"}
1
+ {"version":3,"file":"definition.d.mts","names":[],"sources":["../../src/releases/definition.ts"],"mappings":";;;cAOa,mBAAA,EAAmB,CAAA,CAAA,OAAA;;;;;;;cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;KAMrB,oBAAA,GAAuB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,cAErC,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;KAsBtB,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,qBAAA"}
@@ -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
- fingerprint: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
15
14
  errors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
15
+ fingerprint: 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
- fingerprint: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
24
23
  errors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
24
+ fingerprint: 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,14 +35,15 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
35
35
  production: "production";
36
36
  }>>;
37
37
  runtime: z.ZodNullable<z.ZodEnum<{
38
- edge: "edge";
39
38
  browser: "browser";
40
39
  node: "node";
40
+ edge: "edge";
41
41
  }>>;
42
42
  }, z.core.$strip>;
43
43
  batch: z.ZodDefault<z.ZodObject<{
44
44
  size: z.ZodDefault<z.ZodNumber>;
45
45
  ms: z.ZodDefault<z.ZodNumber>;
46
+ maxBufferSize: z.ZodDefault<z.ZodNumber>;
46
47
  }, z.core.$strip>>;
47
48
  offline: z.ZodDefault<z.ZodObject<{
48
49
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -55,8 +56,8 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
55
56
  surfaceToken: z.ZodString;
56
57
  }, z.core.$strip>]>>, z.ZodTransform<({
57
58
  features: {
58
- fingerprint?: boolean | undefined;
59
59
  errors?: boolean | undefined;
60
+ fingerprint?: boolean | undefined;
60
61
  pageEvents?: boolean | undefined;
61
62
  rageClick?: boolean | undefined;
62
63
  replay?: boolean | undefined;
@@ -65,11 +66,12 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
65
66
  buildId: string | null;
66
67
  releaseId: string | null;
67
68
  environment: "development" | "preview" | "production" | null;
68
- runtime: "edge" | "browser" | "node" | null;
69
+ runtime: "browser" | "node" | "edge" | null;
69
70
  };
70
71
  batch: {
71
72
  size: number;
72
73
  ms: number;
74
+ maxBufferSize: number;
73
75
  };
74
76
  offline: {
75
77
  enabled: boolean;
@@ -79,8 +81,8 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
79
81
  proxyUrl: string;
80
82
  }) | ({
81
83
  features: {
82
- fingerprint?: boolean | undefined;
83
84
  errors?: boolean | undefined;
85
+ fingerprint?: boolean | undefined;
84
86
  pageEvents?: boolean | undefined;
85
87
  rageClick?: boolean | undefined;
86
88
  replay?: boolean | undefined;
@@ -89,11 +91,12 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
89
91
  buildId: string | null;
90
92
  releaseId: string | null;
91
93
  environment: "development" | "preview" | "production" | null;
92
- runtime: "edge" | "browser" | "node" | null;
94
+ runtime: "browser" | "node" | "edge" | null;
93
95
  };
94
96
  batch: {
95
97
  size: number;
96
98
  ms: number;
99
+ maxBufferSize: number;
97
100
  };
98
101
  offline: {
99
102
  enabled: boolean;
@@ -104,8 +107,8 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
104
107
  surfaceToken: string;
105
108
  }), {
106
109
  features: {
107
- fingerprint?: boolean | undefined;
108
110
  errors?: boolean | undefined;
111
+ fingerprint?: boolean | undefined;
109
112
  pageEvents?: boolean | undefined;
110
113
  rageClick?: boolean | undefined;
111
114
  replay?: boolean | undefined;
@@ -114,11 +117,12 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
114
117
  buildId: string | null;
115
118
  releaseId: string | null;
116
119
  environment: "development" | "preview" | "production" | null;
117
- runtime: "edge" | "browser" | "node" | null;
120
+ runtime: "browser" | "node" | "edge" | null;
118
121
  };
119
122
  batch: {
120
123
  size: number;
121
124
  ms: number;
125
+ maxBufferSize: number;
122
126
  };
123
127
  offline: {
124
128
  enabled: boolean;
@@ -133,8 +137,8 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
133
137
  type Config = z.output<typeof configSchema>;
134
138
  declare const configInputSchema: z.ZodIntersection<z.ZodObject<{
135
139
  features: z.ZodOptional<z.ZodDefault<z.ZodObject<{
136
- fingerprint: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
137
140
  errors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
141
+ fingerprint: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
138
142
  pageEvents: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
139
143
  rageClick: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
140
144
  replay: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -148,14 +152,15 @@ declare const configInputSchema: z.ZodIntersection<z.ZodObject<{
148
152
  production: "production";
149
153
  }>>>;
150
154
  runtime: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
151
- edge: "edge";
152
155
  browser: "browser";
153
156
  node: "node";
157
+ edge: "edge";
154
158
  }>>>;
155
159
  }, z.core.$strip>>;
156
160
  batch: z.ZodOptional<z.ZodObject<{
157
161
  size: z.ZodOptional<z.ZodNumber>;
158
162
  ms: z.ZodOptional<z.ZodNumber>;
163
+ maxBufferSize: z.ZodOptional<z.ZodNumber>;
159
164
  }, z.core.$strip>>;
160
165
  offline: z.ZodOptional<z.ZodDefault<z.ZodObject<{
161
166
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.mts","names":[],"sources":["../../src/sdk/config.ts"],"mappings":";;;cAWa,oBAAA,EAAoB,CAAA,CAAA,UAAA,CAAA,CAAA,CAAA,SAAA;;;;KAgBrB,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,cAE/B,gBAAA,EAAgB,CAAA,CAAA,QAAA,WAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,OAAA;;;;cAKhB,cAAA,EAAc,CAAA,CAAA,UAAA,CAAA,CAAA,CAAA,SAAA;;;;;;;KAgBf,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA;AAAA,cAgCzB,YAAA,EAAY,CAAA,CAAA,OAAA,CAAA,CAAA,CAAA,eAAA,CAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAeb,MAAA,GAAS,CAAA,CAAE,MAAA,QAAc,YAAA;AAAA,cAExB,iBAAA,EAAiB,CAAA,CAAA,eAAA,CAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuBlB,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;AAAA,cAE5B,qBAAA,EAAqB,CAAA,CAAA,OAAA;;;;;KAMtB,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,qBAAA"}
1
+ {"version":3,"file":"config.d.mts","names":[],"sources":["../../src/sdk/config.ts"],"mappings":";;;cAYa,oBAAA,EAAoB,CAAA,CAAA,UAAA,CAAA,CAAA,CAAA,SAAA;;;;KAgBrB,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,cAE/B,gBAAA,EAAgB,CAAA,CAAA,QAAA,WAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,OAAA;;;;cAKhB,cAAA,EAAc,CAAA,CAAA,UAAA,CAAA,CAAA,CAAA,SAAA;;;;;;;KAgBf,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA;AAAA,cAqCzB,YAAA,EAAY,CAAA,CAAA,OAAA,CAAA,CAAA,CAAA,eAAA,CAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAeb,MAAA,GAAS,CAAA,CAAE,MAAA,QAAc,YAAA;AAAA,cAExB,iBAAA,EAAiB,CAAA,CAAA,eAAA,CAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAwBlB,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;AAAA,cAE5B,qBAAA,EAAqB,CAAA,CAAA,OAAA;;;;;KAMtB,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,qBAAA"}
@@ -5,6 +5,7 @@ import { envSchema, runtimeSchema } from "#sdk/runtime";
5
5
  //#region src/sdk/config.ts
6
6
  const DEFAULT_BATCH_SIZE = 10;
7
7
  const DEFAULT_BATCH_MS = 250;
8
+ const DEFAULT_MAX_BUFFER_SIZE = 1e3;
8
9
  const offlineStorageSchema = z.object({
9
10
  enabled: z.boolean().default(false),
10
11
  maxQueueSize: z.number().default(100)
@@ -24,10 +25,12 @@ const baseSdkConfigSchema = z.object({
24
25
  }),
25
26
  batch: z.object({
26
27
  size: z.number().default(DEFAULT_BATCH_SIZE),
27
- ms: z.number().default(DEFAULT_BATCH_MS)
28
+ ms: z.number().default(DEFAULT_BATCH_MS),
29
+ maxBufferSize: z.number().default(DEFAULT_MAX_BUFFER_SIZE)
28
30
  }).default(() => ({
29
31
  size: DEFAULT_BATCH_SIZE,
30
- ms: DEFAULT_BATCH_MS
32
+ ms: DEFAULT_BATCH_MS,
33
+ maxBufferSize: DEFAULT_MAX_BUFFER_SIZE
31
34
  })),
32
35
  offline: offlineStorageSchema
33
36
  });
@@ -54,7 +57,8 @@ const configInputSchema = z.object({
54
57
  }).partial().optional(),
55
58
  batch: z.object({
56
59
  size: z.number(),
57
- ms: z.number()
60
+ ms: z.number(),
61
+ maxBufferSize: z.number()
58
62
  }).partial().optional(),
59
63
  offline: offlineStorageSchema.optional()
60
64
  }).and(z.union([proxyConfigSchema, directConfigSchema]));
@@ -1 +1 @@
1
- {"version":3,"file":"config.mjs","names":[],"sources":["../../src/sdk/config.ts"],"sourcesContent":["import { API_URL } from \"@interfere/constants/api\";\n\nimport { z } from \"zod/v4\";\n\nimport { envSchema, runtimeSchema } from \"#sdk/runtime\";\n\nimport { PLUGIN_MANIFEST, type PluginKey } from \"./plugins/manifest.js\";\n\nconst DEFAULT_BATCH_SIZE = 10;\nconst DEFAULT_BATCH_MS = 250;\n\nexport const offlineStorageSchema = z\n .object({\n /**\n * Whether to enable offline storage (IndexedDB persistence).\n * When enabled, envelopes that fail to send are stored and retried when connectivity returns.\n * @default false\n */\n enabled: z.boolean().default(false),\n /**\n * Maximum number of envelopes to store offline.\n * @default 100\n */\n maxQueueSize: z.number().default(100),\n })\n .default({ enabled: false, maxQueueSize: 100 });\n\nexport type OfflineStorage = z.infer<typeof offlineStorageSchema>;\n\nexport const apiBaseUrlSchema = z.union([\n z.string(),\n z.enum([API_URL, \"http://localhost:3001\"]),\n]);\n\nexport const featuresSchema = z\n .object(\n Object.fromEntries(\n PLUGIN_MANIFEST.map((plugin) => [\n plugin.name,\n z.boolean().default(plugin.defaultEnabled),\n ])\n ) as Record<PluginKey, z.ZodDefault<z.ZodBoolean>>\n )\n .partial()\n .default(\n Object.fromEntries(\n PLUGIN_MANIFEST.map((plugin) => [plugin.name, plugin.defaultEnabled])\n )\n );\n\nexport type Features = z.infer<typeof featuresSchema>;\n\nconst baseSdkConfigSchema = z.object({\n features: featuresSchema,\n metadata: z.object({\n buildId: z.string().nullable(),\n releaseId: z.string().nullable(),\n environment: envSchema,\n runtime: runtimeSchema,\n }),\n batch: z\n .object({\n size: z.number().default(DEFAULT_BATCH_SIZE),\n ms: z.number().default(DEFAULT_BATCH_MS),\n })\n .default(() => ({ size: DEFAULT_BATCH_SIZE, ms: DEFAULT_BATCH_MS })),\n /**\n * Offline storage configuration.\n * When enabled, envelopes that fail to send are persisted to IndexedDB and\n * retried when connectivity returns.\n * @default { enabled: false }\n */\n offline: offlineStorageSchema,\n});\n\nconst proxyConfigSchema = z.object({ proxyUrl: z.string() });\n\nconst directConfigSchema = z.object({\n ingestUrl: z.string(),\n surfaceToken: z.string(),\n});\n\nexport const configSchema = baseSdkConfigSchema\n .and(z.union([proxyConfigSchema, directConfigSchema]))\n .transform((cfg) => {\n const env = cfg.metadata.environment;\n const replayDefault = env !== \"development\";\n\n if (cfg.features.replay === undefined) {\n cfg.features = {\n ...cfg.features,\n replay: replayDefault,\n };\n }\n return cfg;\n });\n\nexport type Config = z.output<typeof configSchema>;\n\nexport const configInputSchema = z\n .object({\n features: featuresSchema.optional(),\n metadata: z\n .object({\n buildId: z.string().nullable(),\n releaseId: z.string().nullable(),\n environment: envSchema,\n runtime: runtimeSchema,\n })\n .partial()\n .optional(),\n batch: z\n .object({\n size: z.number(),\n ms: z.number(),\n })\n .partial()\n .optional(),\n offline: offlineStorageSchema.optional(),\n })\n .and(z.union([proxyConfigSchema, directConfigSchema]));\n\nexport type ConfigInput = z.infer<typeof configInputSchema>;\n\nexport const persistenceTypeSchema = z.enum([\n \"localStorage\",\n \"sessionStorage\",\n \"memory\",\n]);\n\nexport type PersistenceType = z.infer<typeof persistenceTypeSchema>;\n"],"mappings":";;;;;AAQA,MAAM,qBAAqB;AAC3B,MAAM,mBAAmB;AAEzB,MAAa,uBAAuB,EACjC,OAAO;CAMN,SAAS,EAAE,SAAS,CAAC,QAAQ,MAAM;CAKnC,cAAc,EAAE,QAAQ,CAAC,QAAQ,IAAI;CACtC,CAAC,CACD,QAAQ;CAAE,SAAS;CAAO,cAAc;CAAK,CAAC;AAIjD,MAAa,mBAAmB,EAAE,MAAM,CACtC,EAAE,QAAQ,EACV,EAAE,KAAK,CAAC,SAAS,wBAAwB,CAAC,CAC3C,CAAC;AAEF,MAAa,iBAAiB,EAC3B,OACC,OAAO,YACL,gBAAgB,KAAK,WAAW,CAC9B,OAAO,MACP,EAAE,SAAS,CAAC,QAAQ,OAAO,eAAe,CAC3C,CAAC,CACH,CACF,CACA,SAAS,CACT,QACC,OAAO,YACL,gBAAgB,KAAK,WAAW,CAAC,OAAO,MAAM,OAAO,eAAe,CAAC,CACtE,CACF;AAIH,MAAM,sBAAsB,EAAE,OAAO;CACnC,UAAU;CACV,UAAU,EAAE,OAAO;EACjB,SAAS,EAAE,QAAQ,CAAC,UAAU;EAC9B,WAAW,EAAE,QAAQ,CAAC,UAAU;EAChC,aAAa;EACb,SAAS;EACV,CAAC;CACF,OAAO,EACJ,OAAO;EACN,MAAM,EAAE,QAAQ,CAAC,QAAQ,mBAAmB;EAC5C,IAAI,EAAE,QAAQ,CAAC,QAAQ,iBAAiB;EACzC,CAAC,CACD,eAAe;EAAE,MAAM;EAAoB,IAAI;EAAkB,EAAE;CAOtE,SAAS;CACV,CAAC;AAEF,MAAM,oBAAoB,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC;AAE5D,MAAM,qBAAqB,EAAE,OAAO;CAClC,WAAW,EAAE,QAAQ;CACrB,cAAc,EAAE,QAAQ;CACzB,CAAC;AAEF,MAAa,eAAe,oBACzB,IAAI,EAAE,MAAM,CAAC,mBAAmB,mBAAmB,CAAC,CAAC,CACrD,WAAW,QAAQ;CAElB,MAAM,gBADM,IAAI,SAAS,gBACK;AAE9B,KAAI,IAAI,SAAS,WAAW,KAAA,EAC1B,KAAI,WAAW;EACb,GAAG,IAAI;EACP,QAAQ;EACT;AAEH,QAAO;EACP;AAIJ,MAAa,oBAAoB,EAC9B,OAAO;CACN,UAAU,eAAe,UAAU;CACnC,UAAU,EACP,OAAO;EACN,SAAS,EAAE,QAAQ,CAAC,UAAU;EAC9B,WAAW,EAAE,QAAQ,CAAC,UAAU;EAChC,aAAa;EACb,SAAS;EACV,CAAC,CACD,SAAS,CACT,UAAU;CACb,OAAO,EACJ,OAAO;EACN,MAAM,EAAE,QAAQ;EAChB,IAAI,EAAE,QAAQ;EACf,CAAC,CACD,SAAS,CACT,UAAU;CACb,SAAS,qBAAqB,UAAU;CACzC,CAAC,CACD,IAAI,EAAE,MAAM,CAAC,mBAAmB,mBAAmB,CAAC,CAAC;AAIxD,MAAa,wBAAwB,EAAE,KAAK;CAC1C;CACA;CACA;CACD,CAAC"}
1
+ {"version":3,"file":"config.mjs","names":[],"sources":["../../src/sdk/config.ts"],"sourcesContent":["import { API_URL } from \"@interfere/constants/api\";\n\nimport { z } from \"zod/v4\";\n\nimport { envSchema, runtimeSchema } from \"#sdk/runtime\";\n\nimport { PLUGIN_MANIFEST, type PluginKey } from \"./plugins/manifest.js\";\n\nconst DEFAULT_BATCH_SIZE = 10;\nconst DEFAULT_BATCH_MS = 250;\nconst DEFAULT_MAX_BUFFER_SIZE = 1000;\n\nexport const offlineStorageSchema = z\n .object({\n /**\n * Whether to enable offline storage (IndexedDB persistence).\n * When enabled, envelopes that fail to send are stored and retried when connectivity returns.\n * @default false\n */\n enabled: z.boolean().default(false),\n /**\n * Maximum number of envelopes to store offline.\n * @default 100\n */\n maxQueueSize: z.number().default(100),\n })\n .default({ enabled: false, maxQueueSize: 100 });\n\nexport type OfflineStorage = z.infer<typeof offlineStorageSchema>;\n\nexport const apiBaseUrlSchema = z.union([\n z.string(),\n z.enum([API_URL, \"http://localhost:3001\"]),\n]);\n\nexport const featuresSchema = z\n .object(\n Object.fromEntries(\n PLUGIN_MANIFEST.map((plugin) => [\n plugin.name,\n z.boolean().default(plugin.defaultEnabled),\n ])\n ) as Record<PluginKey, z.ZodDefault<z.ZodBoolean>>\n )\n .partial()\n .default(\n Object.fromEntries(\n PLUGIN_MANIFEST.map((plugin) => [plugin.name, plugin.defaultEnabled])\n )\n );\n\nexport type Features = z.infer<typeof featuresSchema>;\n\nconst baseSdkConfigSchema = z.object({\n features: featuresSchema,\n metadata: z.object({\n buildId: z.string().nullable(),\n releaseId: z.string().nullable(),\n environment: envSchema,\n runtime: runtimeSchema,\n }),\n batch: z\n .object({\n size: z.number().default(DEFAULT_BATCH_SIZE),\n ms: z.number().default(DEFAULT_BATCH_MS),\n maxBufferSize: z.number().default(DEFAULT_MAX_BUFFER_SIZE),\n })\n .default(() => ({\n size: DEFAULT_BATCH_SIZE,\n ms: DEFAULT_BATCH_MS,\n maxBufferSize: DEFAULT_MAX_BUFFER_SIZE,\n })),\n /**\n * Offline storage configuration.\n * When enabled, envelopes that fail to send are persisted to IndexedDB and\n * retried when connectivity returns.\n * @default { enabled: false }\n */\n offline: offlineStorageSchema,\n});\n\nconst proxyConfigSchema = z.object({ proxyUrl: z.string() });\n\nconst directConfigSchema = z.object({\n ingestUrl: z.string(),\n surfaceToken: z.string(),\n});\n\nexport const configSchema = baseSdkConfigSchema\n .and(z.union([proxyConfigSchema, directConfigSchema]))\n .transform((cfg) => {\n const env = cfg.metadata.environment;\n const replayDefault = env !== \"development\";\n\n if (cfg.features.replay === undefined) {\n cfg.features = {\n ...cfg.features,\n replay: replayDefault,\n };\n }\n return cfg;\n });\n\nexport type Config = z.output<typeof configSchema>;\n\nexport const configInputSchema = z\n .object({\n features: featuresSchema.optional(),\n metadata: z\n .object({\n buildId: z.string().nullable(),\n releaseId: z.string().nullable(),\n environment: envSchema,\n runtime: runtimeSchema,\n })\n .partial()\n .optional(),\n batch: z\n .object({\n size: z.number(),\n ms: z.number(),\n maxBufferSize: z.number(),\n })\n .partial()\n .optional(),\n offline: offlineStorageSchema.optional(),\n })\n .and(z.union([proxyConfigSchema, directConfigSchema]));\n\nexport type ConfigInput = z.infer<typeof configInputSchema>;\n\nexport const persistenceTypeSchema = z.enum([\n \"localStorage\",\n \"sessionStorage\",\n \"memory\",\n]);\n\nexport type PersistenceType = z.infer<typeof persistenceTypeSchema>;\n"],"mappings":";;;;;AAQA,MAAM,qBAAqB;AAC3B,MAAM,mBAAmB;AACzB,MAAM,0BAA0B;AAEhC,MAAa,uBAAuB,EACjC,OAAO;CAMN,SAAS,EAAE,SAAS,CAAC,QAAQ,MAAM;CAKnC,cAAc,EAAE,QAAQ,CAAC,QAAQ,IAAI;CACtC,CAAC,CACD,QAAQ;CAAE,SAAS;CAAO,cAAc;CAAK,CAAC;AAIjD,MAAa,mBAAmB,EAAE,MAAM,CACtC,EAAE,QAAQ,EACV,EAAE,KAAK,CAAC,SAAS,wBAAwB,CAAC,CAC3C,CAAC;AAEF,MAAa,iBAAiB,EAC3B,OACC,OAAO,YACL,gBAAgB,KAAK,WAAW,CAC9B,OAAO,MACP,EAAE,SAAS,CAAC,QAAQ,OAAO,eAAe,CAC3C,CAAC,CACH,CACF,CACA,SAAS,CACT,QACC,OAAO,YACL,gBAAgB,KAAK,WAAW,CAAC,OAAO,MAAM,OAAO,eAAe,CAAC,CACtE,CACF;AAIH,MAAM,sBAAsB,EAAE,OAAO;CACnC,UAAU;CACV,UAAU,EAAE,OAAO;EACjB,SAAS,EAAE,QAAQ,CAAC,UAAU;EAC9B,WAAW,EAAE,QAAQ,CAAC,UAAU;EAChC,aAAa;EACb,SAAS;EACV,CAAC;CACF,OAAO,EACJ,OAAO;EACN,MAAM,EAAE,QAAQ,CAAC,QAAQ,mBAAmB;EAC5C,IAAI,EAAE,QAAQ,CAAC,QAAQ,iBAAiB;EACxC,eAAe,EAAE,QAAQ,CAAC,QAAQ,wBAAwB;EAC3D,CAAC,CACD,eAAe;EACd,MAAM;EACN,IAAI;EACJ,eAAe;EAChB,EAAE;CAOL,SAAS;CACV,CAAC;AAEF,MAAM,oBAAoB,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC;AAE5D,MAAM,qBAAqB,EAAE,OAAO;CAClC,WAAW,EAAE,QAAQ;CACrB,cAAc,EAAE,QAAQ;CACzB,CAAC;AAEF,MAAa,eAAe,oBACzB,IAAI,EAAE,MAAM,CAAC,mBAAmB,mBAAmB,CAAC,CAAC,CACrD,WAAW,QAAQ;CAElB,MAAM,gBADM,IAAI,SAAS,gBACK;AAE9B,KAAI,IAAI,SAAS,WAAW,KAAA,EAC1B,KAAI,WAAW;EACb,GAAG,IAAI;EACP,QAAQ;EACT;AAEH,QAAO;EACP;AAIJ,MAAa,oBAAoB,EAC9B,OAAO;CACN,UAAU,eAAe,UAAU;CACnC,UAAU,EACP,OAAO;EACN,SAAS,EAAE,QAAQ,CAAC,UAAU;EAC9B,WAAW,EAAE,QAAQ,CAAC,UAAU;EAChC,aAAa;EACb,SAAS;EACV,CAAC,CACD,SAAS,CACT,UAAU;CACb,OAAO,EACJ,OAAO;EACN,MAAM,EAAE,QAAQ;EAChB,IAAI,EAAE,QAAQ;EACd,eAAe,EAAE,QAAQ;EAC1B,CAAC,CACD,SAAS,CACT,UAAU;CACb,SAAS,qBAAqB,UAAU;CACzC,CAAC,CACD,IAAI,EAAE,MAAM,CAAC,mBAAmB,mBAAmB,CAAC,CAAC;AAIxD,MAAa,wBAAwB,EAAE,KAAK;CAC1C;CACA;CACA;CACD,CAAC"}
@@ -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";
16
15
  header: "header";
17
16
  async_context: "async_context";
18
17
  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
- edge: "edge";
175
174
  browser: "browser";
176
175
  node: "node";
176
+ edge: "edge";
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";
181
180
  header: "header";
182
181
  async_context: "async_context";
183
182
  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
- edge: "edge";
333
332
  browser: "browser";
334
333
  node: "node";
334
+ edge: "edge";
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";
339
338
  header: "header";
340
339
  async_context: "async_context";
341
340
  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/v4";
2
2
 
3
3
  //#region src/sdk/plugins/payload/errors.d.ts
4
4
  declare const errorSourceSchema: z.ZodEnum<{
5
+ edge: "edge";
5
6
  client: "client";
6
7
  server: "server";
7
- edge: "edge";
8
8
  }>;
9
9
  type ErrorSource = z.infer<typeof errorSourceSchema>;
10
10
  declare const errorMechanismSchema: z.ZodObject<{
@@ -8,9 +8,9 @@ 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
- edge: "edge";
12
11
  browser: "browser";
13
12
  node: "node";
13
+ edge: "edge";
14
14
  }>>;
15
15
  type Runtime = z.infer<typeof runtimeSchema>;
16
16
  declare function inferRuntime(options?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interfere/types",
3
- "version": "1.0.3",
3
+ "version": "4.0.0",
4
4
  "license": "MIT",
5
5
  "description": "TypeScript & Zod types for Interfere",
6
6
  "keywords": [
@@ -106,16 +106,16 @@
106
106
  "typecheck": "tsc --noEmit --incremental"
107
107
  },
108
108
  "dependencies": {
109
- "@interfere/constants": "^1.0.3",
109
+ "@interfere/constants": "^4.0.0",
110
110
  "error-stack-parser-es": "^1.0.5",
111
111
  "zod": "^4.3.6"
112
112
  },
113
113
  "devDependencies": {
114
- "@interfere/typescript-config": "^2.0.3",
115
- "@interfere/vitest-config": "^2.0.3",
114
+ "@interfere/typescript-config": "^4.0.0",
115
+ "@interfere/vitest-config": "^4.0.0",
116
116
  "@types/node": "^24.12.0",
117
117
  "@vitest/coverage-v8": "^4.0.18",
118
- "tsdown": "^0.21.2",
118
+ "tsdown": "^0.21.3",
119
119
  "typescript": "5.9.3",
120
120
  "vitest": "^4.0.18"
121
121
  }