@interfere/types 10.1.2 → 10.2.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.
Files changed (171) hide show
  1. package/dist/data/frame.cjs +1 -1
  2. package/dist/data/frame.d.cts +6 -7
  3. package/dist/data/frame.d.mts +6 -7
  4. package/dist/data/frame.mjs +1 -1
  5. package/dist/data/session.cjs +1 -1
  6. package/dist/data/session.d.cts +3 -4
  7. package/dist/data/session.d.mts +3 -4
  8. package/dist/data/session.mjs +1 -1
  9. package/dist/data/source-map-batch.cjs +1 -0
  10. package/dist/data/source-map-batch.d.cts +4 -0
  11. package/dist/data/source-map-batch.d.mts +4 -0
  12. package/dist/data/source-map-batch.mjs +1 -0
  13. package/dist/data/source-map-diagnostics.cjs +1 -0
  14. package/dist/data/source-map-diagnostics.d.cts +49 -0
  15. package/dist/data/source-map-diagnostics.d.mts +49 -0
  16. package/dist/data/source-map-diagnostics.mjs +1 -0
  17. package/dist/data/source-map-status.cjs +1 -0
  18. package/dist/data/source-map-status.d.cts +65 -0
  19. package/dist/data/source-map-status.d.mts +65 -0
  20. package/dist/data/source-map-status.mjs +1 -0
  21. package/dist/data/source-map-upload-batch.cjs +1 -0
  22. package/dist/data/source-map-upload-batch.d.cts +22 -0
  23. package/dist/data/source-map-upload-batch.d.mts +22 -0
  24. package/dist/data/source-map-upload-batch.mjs +1 -0
  25. package/dist/data/source-maps.cjs +1 -1
  26. package/dist/data/source-maps.d.cts +73 -63
  27. package/dist/data/source-maps.d.mts +73 -63
  28. package/dist/data/source-maps.mjs +1 -1
  29. package/dist/events/error.cjs +1 -1
  30. package/dist/events/error.d.cts +118 -111
  31. package/dist/events/error.d.mts +118 -111
  32. package/dist/events/error.mjs +1 -1
  33. package/dist/events/pageleave.cjs +1 -1
  34. package/dist/events/pageleave.d.cts +5 -6
  35. package/dist/events/pageleave.d.mts +5 -6
  36. package/dist/events/pageleave.mjs +1 -1
  37. package/dist/events/pageview.cjs +1 -1
  38. package/dist/events/pageview.d.cts +6 -7
  39. package/dist/events/pageview.d.mts +6 -7
  40. package/dist/events/pageview.mjs +1 -1
  41. package/dist/integrations/index.cjs +1 -1
  42. package/dist/integrations/index.d.cts +62 -63
  43. package/dist/integrations/index.d.mts +62 -63
  44. package/dist/integrations/index.mjs +1 -1
  45. package/dist/integrations/platforms/cli.cjs +1 -1
  46. package/dist/integrations/platforms/cli.d.cts +3 -4
  47. package/dist/integrations/platforms/cli.d.mts +3 -4
  48. package/dist/integrations/platforms/cli.mjs +1 -1
  49. package/dist/integrations/platforms/cloudflare.cjs +1 -1
  50. package/dist/integrations/platforms/cloudflare.d.cts +12 -13
  51. package/dist/integrations/platforms/cloudflare.d.mts +12 -13
  52. package/dist/integrations/platforms/cloudflare.mjs +1 -1
  53. package/dist/integrations/platforms/github.cjs +1 -1
  54. package/dist/integrations/platforms/github.d.cts +30 -31
  55. package/dist/integrations/platforms/github.d.mts +30 -31
  56. package/dist/integrations/platforms/github.mjs +1 -1
  57. package/dist/integrations/platforms/slack.cjs +1 -1
  58. package/dist/integrations/platforms/slack.d.cts +7 -8
  59. package/dist/integrations/platforms/slack.d.mts +7 -8
  60. package/dist/integrations/platforms/slack.mjs +1 -1
  61. package/dist/integrations/platforms/vercel.cjs +1 -1
  62. package/dist/integrations/platforms/vercel.d.cts +12 -13
  63. package/dist/integrations/platforms/vercel.d.mts +12 -13
  64. package/dist/integrations/platforms/vercel.mjs +1 -1
  65. package/dist/releases/build-telemetry.d.cts +8 -9
  66. package/dist/releases/build-telemetry.d.mts +8 -9
  67. package/dist/releases/definition.cjs +1 -1
  68. package/dist/releases/definition.d.cts +48 -49
  69. package/dist/releases/definition.d.mts +48 -49
  70. package/dist/releases/definition.mjs +1 -1
  71. package/dist/releases/slug.d.cts +5 -6
  72. package/dist/releases/slug.d.mts +5 -6
  73. package/dist/sdk/build-config.cjs +1 -0
  74. package/dist/sdk/build-config.d.cts +22 -0
  75. package/dist/sdk/build-config.d.mts +22 -0
  76. package/dist/sdk/build-config.mjs +1 -0
  77. package/dist/sdk/build-diagnostics.cjs +1 -1
  78. package/dist/sdk/build-diagnostics.d.cts +11 -12
  79. package/dist/sdk/build-diagnostics.d.mts +11 -12
  80. package/dist/sdk/build-diagnostics.mjs +1 -1
  81. package/dist/sdk/cli-destination.cjs +1 -1
  82. package/dist/sdk/cli-destination.d.cts +7 -4
  83. package/dist/sdk/cli-destination.d.mts +7 -4
  84. package/dist/sdk/cli-destination.mjs +1 -1
  85. package/dist/sdk/deploy-environment.cjs +1 -1
  86. package/dist/sdk/deploy-environment.d.cts +28 -6
  87. package/dist/sdk/deploy-environment.d.mts +28 -6
  88. package/dist/sdk/deploy-environment.mjs +1 -1
  89. package/dist/sdk/env.d.cts +3 -4
  90. package/dist/sdk/env.d.mts +3 -4
  91. package/dist/sdk/envelope.cjs +1 -1
  92. package/dist/sdk/envelope.d.cts +129 -130
  93. package/dist/sdk/envelope.d.mts +129 -130
  94. package/dist/sdk/envelope.mjs +1 -1
  95. package/dist/sdk/errors.cjs +2 -2
  96. package/dist/sdk/errors.d.cts +70 -28
  97. package/dist/sdk/errors.d.mts +70 -28
  98. package/dist/sdk/errors.mjs +2 -2
  99. package/dist/sdk/geo.cjs +1 -1
  100. package/dist/sdk/geo.d.cts +4 -5
  101. package/dist/sdk/geo.d.mts +4 -5
  102. package/dist/sdk/geo.mjs +1 -1
  103. package/dist/sdk/github-source.cjs +1 -1
  104. package/dist/sdk/github-source.d.cts +9 -9
  105. package/dist/sdk/github-source.d.mts +9 -9
  106. package/dist/sdk/github-source.mjs +1 -1
  107. package/dist/sdk/identify.cjs +1 -1
  108. package/dist/sdk/identify.d.cts +13 -14
  109. package/dist/sdk/identify.d.mts +13 -14
  110. package/dist/sdk/identify.mjs +1 -1
  111. package/dist/sdk/injected-globals.d.cts +9 -10
  112. package/dist/sdk/injected-globals.d.mts +9 -10
  113. package/dist/sdk/log-sourcing.cjs +1 -1
  114. package/dist/sdk/log-sourcing.d.cts +9 -10
  115. package/dist/sdk/log-sourcing.d.mts +9 -10
  116. package/dist/sdk/log-sourcing.mjs +1 -1
  117. package/dist/sdk/plugins/context/browser.cjs +1 -1
  118. package/dist/sdk/plugins/context/browser.d.cts +17 -18
  119. package/dist/sdk/plugins/context/browser.d.mts +17 -18
  120. package/dist/sdk/plugins/context/browser.mjs +1 -1
  121. package/dist/sdk/plugins/context/edge.cjs +1 -1
  122. package/dist/sdk/plugins/context/edge.d.cts +3 -4
  123. package/dist/sdk/plugins/context/edge.d.mts +3 -4
  124. package/dist/sdk/plugins/context/edge.mjs +1 -1
  125. package/dist/sdk/plugins/context/next.cjs +1 -1
  126. package/dist/sdk/plugins/context/next.d.cts +8 -9
  127. package/dist/sdk/plugins/context/next.d.mts +8 -9
  128. package/dist/sdk/plugins/context/next.mjs +1 -1
  129. package/dist/sdk/plugins/context/node.cjs +1 -1
  130. package/dist/sdk/plugins/context/node.d.cts +3 -4
  131. package/dist/sdk/plugins/context/node.d.mts +3 -4
  132. package/dist/sdk/plugins/context/node.mjs +1 -1
  133. package/dist/sdk/plugins/manifest.d.cts +8 -9
  134. package/dist/sdk/plugins/manifest.d.mts +8 -9
  135. package/dist/sdk/plugins/payload/errors.cjs +1 -1
  136. package/dist/sdk/plugins/payload/errors.d.cts +23 -24
  137. package/dist/sdk/plugins/payload/errors.d.mts +23 -24
  138. package/dist/sdk/plugins/payload/errors.mjs +1 -1
  139. package/dist/sdk/plugins/payload/page-events.cjs +1 -1
  140. package/dist/sdk/plugins/payload/page-events.d.cts +9 -10
  141. package/dist/sdk/plugins/payload/page-events.d.mts +9 -10
  142. package/dist/sdk/plugins/payload/page-events.mjs +1 -1
  143. package/dist/sdk/plugins/payload/rage-click.cjs +1 -1
  144. package/dist/sdk/plugins/payload/rage-click.d.cts +5 -6
  145. package/dist/sdk/plugins/payload/rage-click.d.mts +5 -6
  146. package/dist/sdk/plugins/payload/rage-click.mjs +1 -1
  147. package/dist/sdk/plugins/payload/replay.cjs +1 -1
  148. package/dist/sdk/plugins/payload/replay.d.cts +4 -5
  149. package/dist/sdk/plugins/payload/replay.d.mts +4 -5
  150. package/dist/sdk/plugins/payload/replay.mjs +1 -1
  151. package/dist/sdk/remote-config.cjs +1 -1
  152. package/dist/sdk/remote-config.d.cts +43 -20
  153. package/dist/sdk/remote-config.d.mts +43 -20
  154. package/dist/sdk/remote-config.mjs +1 -1
  155. package/dist/sdk/runtime.cjs +1 -1
  156. package/dist/sdk/runtime.d.cts +11 -12
  157. package/dist/sdk/runtime.d.mts +11 -12
  158. package/dist/sdk/runtime.mjs +1 -1
  159. package/dist/sdk/server-tracing.cjs +1 -1
  160. package/dist/sdk/server-tracing.d.cts +9 -10
  161. package/dist/sdk/server-tracing.d.mts +9 -10
  162. package/dist/sdk/server-tracing.mjs +1 -1
  163. package/dist/sdk/source-map-richness.cjs +1 -0
  164. package/dist/sdk/source-map-richness.d.cts +9 -0
  165. package/dist/sdk/source-map-richness.d.mts +9 -0
  166. package/dist/sdk/source-map-richness.mjs +1 -0
  167. package/dist/sdk/trace-freshness.cjs +1 -0
  168. package/dist/sdk/trace-freshness.d.cts +6 -0
  169. package/dist/sdk/trace-freshness.d.mts +6 -0
  170. package/dist/sdk/trace-freshness.mjs +1 -0
  171. package/package.json +11 -11
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const ingestedFrame=zod.z.object({id:zod.z.string().optional(),file:zod.z.string().optional(),fn:zod.z.string().optional(),line:zod.z.number().optional(),column:zod.z.number().optional(),source:zod.z.string().optional(),debugId:zod.z.string().optional()}).meta({id:`Frame`,title:`Frame`,description:`A single stack frame captured from an error.`});exports.ingestedFrame=ingestedFrame;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const ingestedFrame=zod.z.object({column:zod.z.number().optional(),debugId:zod.z.string().optional(),file:zod.z.string().optional(),fn:zod.z.string().optional(),id:zod.z.string().optional(),line:zod.z.number().optional(),source:zod.z.string().optional()}).meta({description:`A single stack frame captured from an error.`,id:`Frame`,title:`Frame`});exports.ingestedFrame=ingestedFrame;
@@ -11,15 +11,14 @@ import { z } from "zod";
11
11
  * which lifecycle stage they're at. The wire format is the same
12
12
  * across SDK + collector + enrichment + storage.
13
13
  */
14
- declare const ingestedFrame: z.ZodObject<{
15
- id: z.ZodOptional<z.ZodString>;
14
+ export declare const ingestedFrame: z.ZodObject<{
15
+ column: z.ZodOptional<z.ZodNumber>;
16
+ debugId: z.ZodOptional<z.ZodString>;
16
17
  file: z.ZodOptional<z.ZodString>;
17
18
  fn: z.ZodOptional<z.ZodString>;
19
+ id: z.ZodOptional<z.ZodString>;
18
20
  line: z.ZodOptional<z.ZodNumber>;
19
- column: z.ZodOptional<z.ZodNumber>;
20
21
  source: z.ZodOptional<z.ZodString>;
21
- debugId: z.ZodOptional<z.ZodString>;
22
22
  }, z.core.$strip>;
23
- type IngestedFrame = z.infer<typeof ingestedFrame>;
24
- //#endregion
25
- export { IngestedFrame, ingestedFrame };
23
+ export type IngestedFrame = z.infer<typeof ingestedFrame>;
24
+ //#endregion
@@ -11,15 +11,14 @@ import { z } from "zod";
11
11
  * which lifecycle stage they're at. The wire format is the same
12
12
  * across SDK + collector + enrichment + storage.
13
13
  */
14
- declare const ingestedFrame: z.ZodObject<{
15
- id: z.ZodOptional<z.ZodString>;
14
+ export declare const ingestedFrame: z.ZodObject<{
15
+ column: z.ZodOptional<z.ZodNumber>;
16
+ debugId: z.ZodOptional<z.ZodString>;
16
17
  file: z.ZodOptional<z.ZodString>;
17
18
  fn: z.ZodOptional<z.ZodString>;
19
+ id: z.ZodOptional<z.ZodString>;
18
20
  line: z.ZodOptional<z.ZodNumber>;
19
- column: z.ZodOptional<z.ZodNumber>;
20
21
  source: z.ZodOptional<z.ZodString>;
21
- debugId: z.ZodOptional<z.ZodString>;
22
22
  }, z.core.$strip>;
23
- type IngestedFrame = z.infer<typeof ingestedFrame>;
24
- //#endregion
25
- export { IngestedFrame, ingestedFrame };
23
+ export type IngestedFrame = z.infer<typeof ingestedFrame>;
24
+ //#endregion
@@ -1 +1 @@
1
- import{z}from"zod";const ingestedFrame=z.object({id:z.string().optional(),file:z.string().optional(),fn:z.string().optional(),line:z.number().optional(),column:z.number().optional(),source:z.string().optional(),debugId:z.string().optional()}).meta({id:`Frame`,title:`Frame`,description:`A single stack frame captured from an error.`});export{ingestedFrame};
1
+ import{z}from"zod";const ingestedFrame=z.object({column:z.number().optional(),debugId:z.string().optional(),file:z.string().optional(),fn:z.string().optional(),id:z.string().optional(),line:z.number().optional(),source:z.string().optional()}).meta({description:`A single stack frame captured from an error.`,id:`Frame`,title:`Frame`});export{ingestedFrame};
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const sessionIdSchema=zod.z.union([zod.z.uuidv7(),zod.z.templateLiteral([`server_`,zod.z.uuidv7()])]).meta({id:`SessionId`,title:`SessionId`,description:`UUIDv7 (from the client SDK) or server_<uuidv7> (server-side fallback).`}).brand();exports.sessionIdSchema=sessionIdSchema;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const sessionIdSchema=zod.z.union([zod.z.uuidv7(),zod.z.templateLiteral([`server_`,zod.z.uuidv7()])]).meta({description:`UUIDv7 (from the client SDK) or server_<uuidv7> (server-side fallback).`,id:`SessionId`,title:`SessionId`}).brand();exports.sessionIdSchema=sessionIdSchema;
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  //#region src/data/session.d.ts
3
- declare const sessionIdSchema: z.core.$ZodBranded<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>, "SessionId", "out">;
4
- type SessionId = z.infer<typeof sessionIdSchema>;
5
- //#endregion
6
- export { SessionId, sessionIdSchema };
3
+ export declare const sessionIdSchema: z.core.$ZodBranded<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>, "SessionId", "out">;
4
+ export type SessionId = z.infer<typeof sessionIdSchema>;
5
+ //#endregion
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  //#region src/data/session.d.ts
3
- declare const sessionIdSchema: z.core.$ZodBranded<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>, "SessionId", "out">;
4
- type SessionId = z.infer<typeof sessionIdSchema>;
5
- //#endregion
6
- export { SessionId, sessionIdSchema };
3
+ export declare const sessionIdSchema: z.core.$ZodBranded<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>, "SessionId", "out">;
4
+ export type SessionId = z.infer<typeof sessionIdSchema>;
5
+ //#endregion
@@ -1 +1 @@
1
- import{z}from"zod";const sessionIdSchema=z.union([z.uuidv7(),z.templateLiteral([`server_`,z.uuidv7()])]).meta({id:`SessionId`,title:`SessionId`,description:`UUIDv7 (from the client SDK) or server_<uuidv7> (server-side fallback).`}).brand();export{sessionIdSchema};
1
+ import{z}from"zod";const sessionIdSchema=z.union([z.uuidv7(),z.templateLiteral([`server_`,z.uuidv7()])]).meta({description:`UUIDv7 (from the client SDK) or server_<uuidv7> (server-side fallback).`,id:`SessionId`,title:`SessionId`}).brand();export{sessionIdSchema};
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});async function sourceMapBatchDigest(batch){let files=batch.files.toSorted((left,right)=>left.path<right.path?-1:Number(left.path>right.path)),content=JSON.stringify({bundler:batch.bundler,sourceFileCount:batch.sourceFileCount??null,files:files.map(({path,hash,debugId,chunkUrl})=>[path,hash,debugId,chunkUrl])}),digest=await crypto.subtle.digest(`SHA-256`,new TextEncoder().encode(content));return Array.from(new Uint8Array(digest),byte=>byte.toString(16).padStart(2,`0`)).join(``)}exports.sourceMapBatchDigest=sourceMapBatchDigest;
@@ -0,0 +1,4 @@
1
+ import { CompleteSourceMapsRequest } from "./source-maps.cjs";
2
+ //#region src/data/source-map-batch.d.ts
3
+ export declare function sourceMapBatchDigest(batch: CompleteSourceMapsRequest): Promise<string>;
4
+ //#endregion
@@ -0,0 +1,4 @@
1
+ import { CompleteSourceMapsRequest } from "./source-maps.mjs";
2
+ //#region src/data/source-map-batch.d.ts
3
+ export declare function sourceMapBatchDigest(batch: CompleteSourceMapsRequest): Promise<string>;
4
+ //#endregion
@@ -0,0 +1 @@
1
+ async function sourceMapBatchDigest(batch){let files=batch.files.toSorted((left,right)=>left.path<right.path?-1:Number(left.path>right.path)),content=JSON.stringify({bundler:batch.bundler,sourceFileCount:batch.sourceFileCount??null,files:files.map(({path,hash,debugId,chunkUrl})=>[path,hash,debugId,chunkUrl])}),digest=await crypto.subtle.digest(`SHA-256`,new TextEncoder().encode(content));return Array.from(new Uint8Array(digest),byte=>byte.toString(16).padStart(2,`0`)).join(``)}export{sourceMapBatchDigest};
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const phase=zod.z.enum([`files`,`manifest`,`release`,`continuation`,`completion`,`complete`]),timestamp=zod.z.number().int().nonnegative(),maximum=zod.z.object({attempt:zod.z.number().int().positive(),durationMs:timestamp}),sourceMapPublicationDiagnostics=zod.z.object({attempt:zod.z.number().int().positive(),scheduledAtMs:timestamp.nullable(),startedAtMs:timestamp,completedAtMs:timestamp.nullable(),phase,publishedAtStart:zod.z.number().int().nonnegative(),progressObservedAtMs:timestamp.nullable(),nativeRetryCount:zod.z.number().int().nonnegative(),interruptedAttempts:zod.z.number().int().nonnegative(),longestAttempt:maximum.nullable(),longestAlarmDelay:maximum.nullable(),nextAlarmAtMs:timestamp.nullable(),lastFailure:zod.z.object({attempt:zod.z.number().int().positive(),atMs:timestamp,phase,kind:zod.z.enum([`timeout`,`aborted`,`error`,`non-error`])}).nullable()});exports.sourceMapPublicationDiagnostics=sourceMapPublicationDiagnostics;
@@ -0,0 +1,49 @@
1
+ import { z } from "zod";
2
+ //#region src/data/source-map-diagnostics.d.ts
3
+ export declare const sourceMapPublicationDiagnostics: z.ZodObject<{
4
+ attempt: z.ZodNumber;
5
+ scheduledAtMs: z.ZodNullable<z.ZodNumber>;
6
+ startedAtMs: z.ZodNumber;
7
+ completedAtMs: z.ZodNullable<z.ZodNumber>;
8
+ phase: z.ZodEnum<{
9
+ complete: "complete";
10
+ completion: "completion";
11
+ continuation: "continuation";
12
+ files: "files";
13
+ manifest: "manifest";
14
+ release: "release";
15
+ }>;
16
+ publishedAtStart: z.ZodNumber;
17
+ progressObservedAtMs: z.ZodNullable<z.ZodNumber>;
18
+ nativeRetryCount: z.ZodNumber;
19
+ interruptedAttempts: z.ZodNumber;
20
+ longestAttempt: z.ZodNullable<z.ZodObject<{
21
+ attempt: z.ZodNumber;
22
+ durationMs: z.ZodNumber;
23
+ }, z.core.$strip>>;
24
+ longestAlarmDelay: z.ZodNullable<z.ZodObject<{
25
+ attempt: z.ZodNumber;
26
+ durationMs: z.ZodNumber;
27
+ }, z.core.$strip>>;
28
+ nextAlarmAtMs: z.ZodNullable<z.ZodNumber>;
29
+ lastFailure: z.ZodNullable<z.ZodObject<{
30
+ attempt: z.ZodNumber;
31
+ atMs: z.ZodNumber;
32
+ phase: z.ZodEnum<{
33
+ complete: "complete";
34
+ completion: "completion";
35
+ continuation: "continuation";
36
+ files: "files";
37
+ manifest: "manifest";
38
+ release: "release";
39
+ }>;
40
+ kind: z.ZodEnum<{
41
+ aborted: "aborted";
42
+ error: "error";
43
+ "non-error": "non-error";
44
+ timeout: "timeout";
45
+ }>;
46
+ }, z.core.$strip>>;
47
+ }, z.core.$strip>;
48
+ export type SourceMapPublicationDiagnostics = z.infer<typeof sourceMapPublicationDiagnostics>;
49
+ //#endregion
@@ -0,0 +1,49 @@
1
+ import { z } from "zod";
2
+ //#region src/data/source-map-diagnostics.d.ts
3
+ export declare const sourceMapPublicationDiagnostics: z.ZodObject<{
4
+ attempt: z.ZodNumber;
5
+ scheduledAtMs: z.ZodNullable<z.ZodNumber>;
6
+ startedAtMs: z.ZodNumber;
7
+ completedAtMs: z.ZodNullable<z.ZodNumber>;
8
+ phase: z.ZodEnum<{
9
+ complete: "complete";
10
+ completion: "completion";
11
+ continuation: "continuation";
12
+ files: "files";
13
+ manifest: "manifest";
14
+ release: "release";
15
+ }>;
16
+ publishedAtStart: z.ZodNumber;
17
+ progressObservedAtMs: z.ZodNullable<z.ZodNumber>;
18
+ nativeRetryCount: z.ZodNumber;
19
+ interruptedAttempts: z.ZodNumber;
20
+ longestAttempt: z.ZodNullable<z.ZodObject<{
21
+ attempt: z.ZodNumber;
22
+ durationMs: z.ZodNumber;
23
+ }, z.core.$strip>>;
24
+ longestAlarmDelay: z.ZodNullable<z.ZodObject<{
25
+ attempt: z.ZodNumber;
26
+ durationMs: z.ZodNumber;
27
+ }, z.core.$strip>>;
28
+ nextAlarmAtMs: z.ZodNullable<z.ZodNumber>;
29
+ lastFailure: z.ZodNullable<z.ZodObject<{
30
+ attempt: z.ZodNumber;
31
+ atMs: z.ZodNumber;
32
+ phase: z.ZodEnum<{
33
+ complete: "complete";
34
+ completion: "completion";
35
+ continuation: "continuation";
36
+ files: "files";
37
+ manifest: "manifest";
38
+ release: "release";
39
+ }>;
40
+ kind: z.ZodEnum<{
41
+ aborted: "aborted";
42
+ error: "error";
43
+ "non-error": "non-error";
44
+ timeout: "timeout";
45
+ }>;
46
+ }, z.core.$strip>>;
47
+ }, z.core.$strip>;
48
+ export type SourceMapPublicationDiagnostics = z.infer<typeof sourceMapPublicationDiagnostics>;
49
+ //#endregion
@@ -0,0 +1 @@
1
+ import{z}from"zod";const phase=z.enum([`files`,`manifest`,`release`,`continuation`,`completion`,`complete`]),timestamp=z.number().int().nonnegative(),maximum=z.object({attempt:z.number().int().positive(),durationMs:timestamp}),sourceMapPublicationDiagnostics=z.object({attempt:z.number().int().positive(),scheduledAtMs:timestamp.nullable(),startedAtMs:timestamp,completedAtMs:timestamp.nullable(),phase,publishedAtStart:z.number().int().nonnegative(),progressObservedAtMs:timestamp.nullable(),nativeRetryCount:z.number().int().nonnegative(),interruptedAttempts:z.number().int().nonnegative(),longestAttempt:maximum.nullable(),longestAlarmDelay:maximum.nullable(),nextAlarmAtMs:timestamp.nullable(),lastFailure:z.object({attempt:z.number().int().positive(),atMs:timestamp,phase,kind:z.enum([`timeout`,`aborted`,`error`,`non-error`])}).nullable()});export{sourceMapPublicationDiagnostics};
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const require_data_source_map_diagnostics=require("./source-map-diagnostics.cjs"),require_releases_slug=require("../releases/slug.cjs");let zod=require("zod");const sourceMapPublicationStatus=zod.z.object({releaseSlug:require_releases_slug.releaseSlugSchema,environment:zod.z.string().nullable(),sessionId:zod.z.uuid().nullable(),state:zod.z.enum([`absent`,`uploading`,`accepted`,`ready`,`expiring`,`expired`]),fileCount:zod.z.number().int().nonnegative(),publishedFileCount:zod.z.number().int().nonnegative(),batchDigest:zod.z.string().regex(/^[a-f0-9]{64}$/u).nullable(),manifestReady:zod.z.boolean(),diagnostics:require_data_source_map_diagnostics.sourceMapPublicationDiagnostics.optional()}).meta({id:`SourceMapPublicationStatus`,title:`Source map publication status`});exports.sourceMapPublicationStatus=sourceMapPublicationStatus;
@@ -0,0 +1,65 @@
1
+ import { z } from "zod";
2
+ //#region src/data/source-map-status.d.ts
3
+ export declare const sourceMapPublicationStatus: z.ZodObject<{
4
+ releaseSlug: z.core.$ZodBranded<z.ZodTemplateLiteral<`rel_${string}`>, "ReleaseSlug", "out">;
5
+ environment: z.ZodNullable<z.ZodString>;
6
+ sessionId: z.ZodNullable<z.ZodUUID>;
7
+ state: z.ZodEnum<{
8
+ absent: "absent";
9
+ accepted: "accepted";
10
+ expired: "expired";
11
+ expiring: "expiring";
12
+ ready: "ready";
13
+ uploading: "uploading";
14
+ }>;
15
+ fileCount: z.ZodNumber;
16
+ publishedFileCount: z.ZodNumber;
17
+ batchDigest: z.ZodNullable<z.ZodString>;
18
+ manifestReady: z.ZodBoolean;
19
+ diagnostics: z.ZodOptional<z.ZodObject<{
20
+ attempt: z.ZodNumber;
21
+ scheduledAtMs: z.ZodNullable<z.ZodNumber>;
22
+ startedAtMs: z.ZodNumber;
23
+ completedAtMs: z.ZodNullable<z.ZodNumber>;
24
+ phase: z.ZodEnum<{
25
+ complete: "complete";
26
+ completion: "completion";
27
+ continuation: "continuation";
28
+ files: "files";
29
+ manifest: "manifest";
30
+ release: "release";
31
+ }>;
32
+ publishedAtStart: z.ZodNumber;
33
+ progressObservedAtMs: z.ZodNullable<z.ZodNumber>;
34
+ nativeRetryCount: z.ZodNumber;
35
+ interruptedAttempts: z.ZodNumber;
36
+ longestAttempt: z.ZodNullable<z.ZodObject<{
37
+ attempt: z.ZodNumber;
38
+ durationMs: z.ZodNumber;
39
+ }, z.core.$strip>>;
40
+ longestAlarmDelay: z.ZodNullable<z.ZodObject<{
41
+ attempt: z.ZodNumber;
42
+ durationMs: z.ZodNumber;
43
+ }, z.core.$strip>>;
44
+ nextAlarmAtMs: z.ZodNullable<z.ZodNumber>;
45
+ lastFailure: z.ZodNullable<z.ZodObject<{
46
+ attempt: z.ZodNumber;
47
+ atMs: z.ZodNumber;
48
+ phase: z.ZodEnum<{
49
+ complete: "complete";
50
+ completion: "completion";
51
+ continuation: "continuation";
52
+ files: "files";
53
+ manifest: "manifest";
54
+ release: "release";
55
+ }>;
56
+ kind: z.ZodEnum<{
57
+ aborted: "aborted";
58
+ error: "error";
59
+ "non-error": "non-error";
60
+ timeout: "timeout";
61
+ }>;
62
+ }, z.core.$strip>>;
63
+ }, z.core.$strip>>;
64
+ }, z.core.$strip>;
65
+ //#endregion
@@ -0,0 +1,65 @@
1
+ import { z } from "zod";
2
+ //#region src/data/source-map-status.d.ts
3
+ export declare const sourceMapPublicationStatus: z.ZodObject<{
4
+ releaseSlug: z.core.$ZodBranded<z.ZodTemplateLiteral<`rel_${string}`>, "ReleaseSlug", "out">;
5
+ environment: z.ZodNullable<z.ZodString>;
6
+ sessionId: z.ZodNullable<z.ZodUUID>;
7
+ state: z.ZodEnum<{
8
+ absent: "absent";
9
+ accepted: "accepted";
10
+ expired: "expired";
11
+ expiring: "expiring";
12
+ ready: "ready";
13
+ uploading: "uploading";
14
+ }>;
15
+ fileCount: z.ZodNumber;
16
+ publishedFileCount: z.ZodNumber;
17
+ batchDigest: z.ZodNullable<z.ZodString>;
18
+ manifestReady: z.ZodBoolean;
19
+ diagnostics: z.ZodOptional<z.ZodObject<{
20
+ attempt: z.ZodNumber;
21
+ scheduledAtMs: z.ZodNullable<z.ZodNumber>;
22
+ startedAtMs: z.ZodNumber;
23
+ completedAtMs: z.ZodNullable<z.ZodNumber>;
24
+ phase: z.ZodEnum<{
25
+ complete: "complete";
26
+ completion: "completion";
27
+ continuation: "continuation";
28
+ files: "files";
29
+ manifest: "manifest";
30
+ release: "release";
31
+ }>;
32
+ publishedAtStart: z.ZodNumber;
33
+ progressObservedAtMs: z.ZodNullable<z.ZodNumber>;
34
+ nativeRetryCount: z.ZodNumber;
35
+ interruptedAttempts: z.ZodNumber;
36
+ longestAttempt: z.ZodNullable<z.ZodObject<{
37
+ attempt: z.ZodNumber;
38
+ durationMs: z.ZodNumber;
39
+ }, z.core.$strip>>;
40
+ longestAlarmDelay: z.ZodNullable<z.ZodObject<{
41
+ attempt: z.ZodNumber;
42
+ durationMs: z.ZodNumber;
43
+ }, z.core.$strip>>;
44
+ nextAlarmAtMs: z.ZodNullable<z.ZodNumber>;
45
+ lastFailure: z.ZodNullable<z.ZodObject<{
46
+ attempt: z.ZodNumber;
47
+ atMs: z.ZodNumber;
48
+ phase: z.ZodEnum<{
49
+ complete: "complete";
50
+ completion: "completion";
51
+ continuation: "continuation";
52
+ files: "files";
53
+ manifest: "manifest";
54
+ release: "release";
55
+ }>;
56
+ kind: z.ZodEnum<{
57
+ aborted: "aborted";
58
+ error: "error";
59
+ "non-error": "non-error";
60
+ timeout: "timeout";
61
+ }>;
62
+ }, z.core.$strip>>;
63
+ }, z.core.$strip>>;
64
+ }, z.core.$strip>;
65
+ //#endregion
@@ -0,0 +1 @@
1
+ import{sourceMapPublicationDiagnostics}from"./source-map-diagnostics.mjs";import{releaseSlugSchema}from"../releases/slug.mjs";import{z}from"zod";const sourceMapPublicationStatus=z.object({releaseSlug:releaseSlugSchema,environment:z.string().nullable(),sessionId:z.uuid().nullable(),state:z.enum([`absent`,`uploading`,`accepted`,`ready`,`expiring`,`expired`]),fileCount:z.number().int().nonnegative(),publishedFileCount:z.number().int().nonnegative(),batchDigest:z.string().regex(/^[a-f0-9]{64}$/u).nullable(),manifestReady:z.boolean(),diagnostics:sourceMapPublicationDiagnostics.optional()}).meta({id:`SourceMapPublicationStatus`,title:`Source map publication status`});export{sourceMapPublicationStatus};
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const SOURCE_MAP_BATCH_BYTES=524288,sourceMapBatchCapability=zod.z.strictObject({version:zod.z.literal(1),maxBodyBytes:zod.z.number().int().positive().max(SOURCE_MAP_BATCH_BYTES),maxFiles:zod.z.number().int().positive().max(32)}).meta({id:`SourceMapBatchCapability`}),base64=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u,sourceMapUploadBatch=zod.z.strictObject({chunks:zod.z.array(zod.z.strictObject({path:zod.z.string().min(1),offset:zod.z.number().int().nonnegative(),bytes:zod.z.string().min(1).refine(value=>base64.test(value)&&btoa(atob(value))===value,`Expected canonical base64 bytes`)})).min(1).max(32)}).refine(({chunks})=>new Set(chunks.map(({path})=>path)).size===chunks.length,`Each batch path must be unique`).refine(request=>new TextEncoder().encode(JSON.stringify(request)).byteLength<=SOURCE_MAP_BATCH_BYTES,`Source-map batch exceeds 512 KiB`).meta({id:`SourceMapUploadBatch`}),sourceMapUploadBatchResponse=zod.z.object({ok:zod.z.literal(!0),fileCount:zod.z.number().int().nonnegative()}).meta({id:`SourceMapUploadBatchResponse`});exports.SOURCE_MAP_BATCH_BYTES=SOURCE_MAP_BATCH_BYTES,exports.SOURCE_MAP_BATCH_FILES=32,exports.sourceMapBatchCapability=sourceMapBatchCapability,exports.sourceMapUploadBatch=sourceMapUploadBatch,exports.sourceMapUploadBatchResponse=sourceMapUploadBatchResponse;
@@ -0,0 +1,22 @@
1
+ import { z } from "zod";
2
+ //#region src/data/source-map-upload-batch.d.ts
3
+ export declare const SOURCE_MAP_BATCH_BYTES: number;
4
+ export declare const SOURCE_MAP_BATCH_FILES = 32;
5
+ export declare const sourceMapBatchCapability: z.ZodObject<{
6
+ version: z.ZodLiteral<1>;
7
+ maxBodyBytes: z.ZodNumber;
8
+ maxFiles: z.ZodNumber;
9
+ }, z.core.$strict>;
10
+ export declare const sourceMapUploadBatch: z.ZodObject<{
11
+ chunks: z.ZodArray<z.ZodObject<{
12
+ path: z.ZodString;
13
+ offset: z.ZodNumber;
14
+ bytes: z.ZodString;
15
+ }, z.core.$strict>>;
16
+ }, z.core.$strict>;
17
+ export type SourceMapUploadBatch = z.infer<typeof sourceMapUploadBatch>;
18
+ export declare const sourceMapUploadBatchResponse: z.ZodObject<{
19
+ ok: z.ZodLiteral<true>;
20
+ fileCount: z.ZodNumber;
21
+ }, z.core.$strip>;
22
+ //#endregion
@@ -0,0 +1,22 @@
1
+ import { z } from "zod";
2
+ //#region src/data/source-map-upload-batch.d.ts
3
+ export declare const SOURCE_MAP_BATCH_BYTES: number;
4
+ export declare const SOURCE_MAP_BATCH_FILES = 32;
5
+ export declare const sourceMapBatchCapability: z.ZodObject<{
6
+ version: z.ZodLiteral<1>;
7
+ maxBodyBytes: z.ZodNumber;
8
+ maxFiles: z.ZodNumber;
9
+ }, z.core.$strict>;
10
+ export declare const sourceMapUploadBatch: z.ZodObject<{
11
+ chunks: z.ZodArray<z.ZodObject<{
12
+ path: z.ZodString;
13
+ offset: z.ZodNumber;
14
+ bytes: z.ZodString;
15
+ }, z.core.$strict>>;
16
+ }, z.core.$strict>;
17
+ export type SourceMapUploadBatch = z.infer<typeof sourceMapUploadBatch>;
18
+ export declare const sourceMapUploadBatchResponse: z.ZodObject<{
19
+ ok: z.ZodLiteral<true>;
20
+ fileCount: z.ZodNumber;
21
+ }, z.core.$strip>;
22
+ //#endregion
@@ -0,0 +1 @@
1
+ import{z}from"zod";const SOURCE_MAP_BATCH_BYTES=524288,SOURCE_MAP_BATCH_FILES=32,sourceMapBatchCapability=z.strictObject({version:z.literal(1),maxBodyBytes:z.number().int().positive().max(SOURCE_MAP_BATCH_BYTES),maxFiles:z.number().int().positive().max(32)}).meta({id:`SourceMapBatchCapability`}),base64=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u,sourceMapUploadBatch=z.strictObject({chunks:z.array(z.strictObject({path:z.string().min(1),offset:z.number().int().nonnegative(),bytes:z.string().min(1).refine(value=>base64.test(value)&&btoa(atob(value))===value,`Expected canonical base64 bytes`)})).min(1).max(32)}).refine(({chunks})=>new Set(chunks.map(({path})=>path)).size===chunks.length,`Each batch path must be unique`).refine(request=>new TextEncoder().encode(JSON.stringify(request)).byteLength<=SOURCE_MAP_BATCH_BYTES,`Source-map batch exceeds 512 KiB`).meta({id:`SourceMapUploadBatch`}),sourceMapUploadBatchResponse=z.object({ok:z.literal(!0),fileCount:z.number().int().nonnegative()}).meta({id:`SourceMapUploadBatchResponse`});export{SOURCE_MAP_BATCH_BYTES,SOURCE_MAP_BATCH_FILES,sourceMapBatchCapability,sourceMapUploadBatch,sourceMapUploadBatchResponse};
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const manifestBundlerSchema=zod.z.enum([`webpack`,`turbopack`,`rollup`,`tsc`]).meta({id:`ManifestBundler`,title:`ManifestBundler`}),sourceMapManifestEntrySchema=zod.z.object({chunkUrl:zod.z.string(),debugId:zod.z.string(),objectKey:zod.z.string(),mapHash:zod.z.string()}),sourceMapManifestSchema=zod.z.object({releaseSlug:zod.z.string(),surfaceId:zod.z.string(),organizationId:zod.z.string(),bundler:manifestBundlerSchema,createdAt:zod.z.number(),files:zod.z.array(sourceMapManifestEntrySchema)}),uploadSourceMapEntry=zod.z.object({path:zod.z.string().min(1),hash:zod.z.string(),debugId:zod.z.string(),chunkUrl:zod.z.string()}).meta({id:`UploadSourceMapEntry`,title:`UploadSourceMapEntry`}),uploadSourceMapsMetadata=zod.z.object({entries:zod.z.array(uploadSourceMapEntry),sourceFileCount:zod.z.number().int().nonnegative().optional(),bundler:manifestBundlerSchema}).meta({id:`UploadSourceMapsMetadata`,title:`UploadSourceMapsMetadata`,description:`Metadata attached alongside uploaded source map files.`}),uploadSourceMapsResponse=zod.z.object({ok:zod.z.boolean(),processed:zod.z.number().int().nonnegative(),message:zod.z.string(),fileCount:zod.z.number().int().nonnegative()}).meta({id:`UploadSourceMapsResponse`,title:`UploadSourceMapsResponse`}),signSourceMapFile=zod.z.object({path:zod.z.string().min(1),sizeBytes:zod.z.number().int().nonnegative(),hasSourcesContent:zod.z.boolean(),hasNames:zod.z.boolean(),hasFile:zod.z.boolean(),mappingsPresent:zod.z.boolean()}).meta({id:`SignSourceMapFile`,title:`SignSourceMapFile`}),signSourceMapsRequest=zod.z.object({files:zod.z.array(signSourceMapFile)}).meta({id:`SignSourceMapsRequest`,title:`SignSourceMapsRequest`,description:"Per-file metadata the SDK uses to obtain presigned PUT URLs. The server validates per-file size and total file count, then issues short-lived URLs scoped to the release's R2 prefix. The SDK uploads to R2 directly and follows up with a `complete` call to materialize the manifest."}),signSourceMapUpload=zod.z.object({path:zod.z.string(),objectKey:zod.z.string(),presignedUrl:zod.z.string()}).meta({id:`SignSourceMapUpload`,title:`SignSourceMapUpload`}),signSourceMapsResponse=zod.z.object({uploads:zod.z.array(signSourceMapUpload),expiresAt:zod.z.number().int()}).meta({id:`SignSourceMapsResponse`,title:`SignSourceMapsResponse`}),completeSourceMapFile=zod.z.object({path:zod.z.string().min(1),hash:zod.z.string(),debugId:zod.z.string(),chunkUrl:zod.z.string()}).meta({id:`CompleteSourceMapFile`,title:`CompleteSourceMapFile`}),completeSourceMapsRequest=zod.z.object({files:zod.z.array(completeSourceMapFile),sourceFileCount:zod.z.number().int().nonnegative().optional(),bundler:manifestBundlerSchema}).meta({id:`CompleteSourceMapsRequest`,title:`CompleteSourceMapsRequest`,description:"Finalizes a presigned-URL upload batch. Writes the source-map manifest and updates the release's `sourceMapCount` / `sourceFileCount`. Idempotent — safe to retry."}),completeSourceMapsResponse=zod.z.object({ok:zod.z.boolean(),fileCount:zod.z.number().int().nonnegative()}).meta({id:`CompleteSourceMapsResponse`,title:`CompleteSourceMapsResponse`}),DEBUG_ID_RE=/^[a-fA-F0-9-]+$/u;function debugIdRuntimeSnippet(debugId){if(!DEBUG_ID_RE.test(debugId))throw Error(`debugId must be hex and dashes only, got: ${debugId}`);return`;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._debugIds=e._debugIds||{},e._debugIds[n]="${debugId}")}catch(e){}}();`}const SOURCEMAPPING_RE=/\/\/[#@]\s*sourceMappingURL=\S+\s*$/u,SPEC_LAST_DEBUG_ID_RE=/\/\/# debugId=(?<id>[a-fA-F0-9-]+)(?![\s\S]*\/\/# debugId=)/mu,RUNTIME_DEBUG_ID_RE=/(?<prefix>_debugIds\[[^\]]*\]=")[a-fA-F0-9-]+(?<suffix>")/gu;function readDebugIdFromJs(content){return SPEC_LAST_DEBUG_ID_RE.exec(content)?.[1]??null}function injectDebugIdIntoJs(content,debugId){let snippet=debugIdRuntimeSnippet(debugId),debugIdComment=`//# debugId=${debugId}`;if(SPEC_LAST_DEBUG_ID_RE.test(content))return content.replace(SPEC_LAST_DEBUG_ID_RE,debugIdComment).replace(RUNTIME_DEBUG_ID_RE,`$1${debugId}$2`);let match=SOURCEMAPPING_RE.exec(content);return match?`${content.slice(0,match.index).trimEnd()}\n${snippet}\n${debugIdComment}\n${match[0]}`:`${content}\n${snippet}\n${debugIdComment}`}exports.completeSourceMapFile=completeSourceMapFile,exports.completeSourceMapsRequest=completeSourceMapsRequest,exports.completeSourceMapsResponse=completeSourceMapsResponse,exports.debugIdRuntimeSnippet=debugIdRuntimeSnippet,exports.injectDebugIdIntoJs=injectDebugIdIntoJs,exports.manifestBundlerSchema=manifestBundlerSchema,exports.readDebugIdFromJs=readDebugIdFromJs,exports.signSourceMapFile=signSourceMapFile,exports.signSourceMapUpload=signSourceMapUpload,exports.signSourceMapsRequest=signSourceMapsRequest,exports.signSourceMapsResponse=signSourceMapsResponse,exports.sourceMapManifestSchema=sourceMapManifestSchema,exports.uploadSourceMapEntry=uploadSourceMapEntry,exports.uploadSourceMapsMetadata=uploadSourceMapsMetadata,exports.uploadSourceMapsResponse=uploadSourceMapsResponse;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const require_data_source_map_upload_batch=require("./source-map-upload-batch.cjs");let zod=require("zod");const manifestBundlerSchema=zod.z.enum([`webpack`,`turbopack`,`rollup`,`tsc`]).meta({id:`ManifestBundler`,title:`ManifestBundler`}),sourceMapManifestEntrySchema=zod.z.object({chunkUrl:zod.z.string(),debugId:zod.z.string(),mapHash:zod.z.string(),objectKey:zod.z.string()}),sourceMapManifestSchema=zod.z.object({bundler:manifestBundlerSchema,createdAt:zod.z.number(),files:zod.z.array(sourceMapManifestEntrySchema),organizationId:zod.z.string(),releaseSlug:zod.z.string(),surfaceId:zod.z.string()}),uploadSourceMapEntry=zod.z.object({chunkUrl:zod.z.string(),debugId:zod.z.string(),hash:zod.z.string(),path:zod.z.string().min(1)}).meta({id:`UploadSourceMapEntry`,title:`UploadSourceMapEntry`}),uploadSourceMapsMetadata=zod.z.object({bundler:manifestBundlerSchema,entries:zod.z.array(uploadSourceMapEntry),sourceFileCount:zod.z.number().int().nonnegative().optional()}).meta({description:`Metadata attached alongside uploaded source map files.`,id:`UploadSourceMapsMetadata`,title:`UploadSourceMapsMetadata`}),uploadSourceMapsResponse=zod.z.object({fileCount:zod.z.number().int().nonnegative(),message:zod.z.string(),ok:zod.z.boolean(),processed:zod.z.number().int().nonnegative()}).meta({id:`UploadSourceMapsResponse`,title:`UploadSourceMapsResponse`}),signSourceMapFile=zod.z.object({hasFile:zod.z.boolean(),hasNames:zod.z.boolean(),hasSourcesContent:zod.z.boolean(),mappingsPresent:zod.z.boolean(),path:zod.z.string().min(1),sizeBytes:zod.z.number().int().nonnegative()}).meta({id:`SignSourceMapFile`,title:`SignSourceMapFile`}),signSourceMapsRequest=zod.z.object({files:zod.z.array(signSourceMapFile)}).meta({description:`Initializes an upload session with the file inventory and declared sizes. Upload each file through the source-map endpoint using ordered byte offsets, then finalize the complete batch before the session expires.`,id:`SignSourceMapsRequest`,title:`SignSourceMapsRequest`}),signSourceMapUpload=zod.z.object({objectKey:zod.z.string(),path:zod.z.string(),presignedUrl:zod.z.string()}).meta({id:`SignSourceMapUpload`,title:`SignSourceMapUpload`}),signSourceMapsResponse=zod.z.object({expiresAt:zod.z.number().int(),uploads:zod.z.array(signSourceMapUpload)}).meta({id:`SignSourceMapsResponse`,title:`SignSourceMapsResponse`}),sourceMapUploadSessionResponse=zod.z.object({batchUpload:require_data_source_map_upload_batch.sourceMapBatchCapability.optional(),expiresAt:zod.z.number().int(),uploads:zod.z.array(zod.z.object({path:zod.z.string()}))}).meta({id:`SourceMapUploadSessionResponse`}),completeSourceMapFile=zod.z.object({chunkUrl:zod.z.string(),debugId:zod.z.string(),hash:zod.z.string(),path:zod.z.string().min(1)}).meta({id:`CompleteSourceMapFile`,title:`CompleteSourceMapFile`}),completeSourceMapsRequest=zod.z.object({bundler:manifestBundlerSchema,files:zod.z.array(completeSourceMapFile),sourceFileCount:zod.z.number().int().nonnegative().optional()}).meta({description:`Finalizes an upload session after all file chunks are durably accepted. Verifies the complete file inventory and schedules publication of the source-map manifest. Safe to retry.`,id:`CompleteSourceMapsRequest`,title:`CompleteSourceMapsRequest`}),completeSourceMapsResponse=zod.z.object({fileCount:zod.z.number().int().nonnegative(),ok:zod.z.boolean()}).meta({id:`CompleteSourceMapsResponse`,title:`CompleteSourceMapsResponse`}),DEBUG_ID_RE=/^[a-fA-F0-9-]+$/u;function debugIdRuntimeSnippet(debugId){if(!DEBUG_ID_RE.test(debugId))throw Error(`debugId must be hex and dashes only, got: ${debugId}`);return`;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._debugIds=e._debugIds||{},e._debugIds[n]="${debugId}")}catch(e){}}();`}const SOURCEMAPPING_RE=/\/\/[#@]\s*sourceMappingURL=\S+\s*$/u,SPEC_LAST_DEBUG_ID_RE=/\/\/# debugId=(?<id>[a-fA-F0-9-]+)(?![\s\S]*\/\/# debugId=)/mu,RUNTIME_DEBUG_ID_RE=/(?<prefix>_debugIds\[[^\]]*\]=")[a-fA-F0-9-]+(?<suffix>")/gu;function readDebugIdFromJs(content){return SPEC_LAST_DEBUG_ID_RE.exec(content)?.[1]??null}function injectDebugIdIntoJs(content,debugId){let snippet=debugIdRuntimeSnippet(debugId),debugIdComment=`//# debugId=${debugId}`;if(SPEC_LAST_DEBUG_ID_RE.test(content))return content.replace(SPEC_LAST_DEBUG_ID_RE,debugIdComment).replace(RUNTIME_DEBUG_ID_RE,`$1${debugId}$2`);let match=SOURCEMAPPING_RE.exec(content);return match?`${content.slice(0,match.index).trimEnd()}\n${snippet}\n${debugIdComment}\n${match[0]}`:`${content}\n${snippet}\n${debugIdComment}`}exports.completeSourceMapFile=completeSourceMapFile,exports.completeSourceMapsRequest=completeSourceMapsRequest,exports.completeSourceMapsResponse=completeSourceMapsResponse,exports.debugIdRuntimeSnippet=debugIdRuntimeSnippet,exports.injectDebugIdIntoJs=injectDebugIdIntoJs,exports.manifestBundlerSchema=manifestBundlerSchema,exports.readDebugIdFromJs=readDebugIdFromJs,exports.signSourceMapFile=signSourceMapFile,exports.signSourceMapUpload=signSourceMapUpload,exports.signSourceMapsRequest=signSourceMapsRequest,exports.signSourceMapsResponse=signSourceMapsResponse,exports.sourceMapManifestSchema=sourceMapManifestSchema,exports.sourceMapUploadSessionResponse=sourceMapUploadSessionResponse,exports.uploadSourceMapEntry=uploadSourceMapEntry,exports.uploadSourceMapsMetadata=uploadSourceMapsMetadata,exports.uploadSourceMapsResponse=uploadSourceMapsResponse;