@interfere/types 9.0.3-canary.1 → 9.0.3-canary.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data/frame.d.cts +1 -2
- package/dist/data/frame.d.mts +1 -2
- package/dist/data/frame.mjs +1 -2
- package/dist/data/session.d.cts +1 -2
- package/dist/data/session.d.mts +1 -2
- package/dist/data/session.mjs +1 -2
- package/dist/data/source-maps.d.cts +1 -2
- package/dist/data/source-maps.d.mts +1 -2
- package/dist/data/source-maps.mjs +1 -2
- package/dist/events/error.d.cts +1 -2
- package/dist/events/error.d.mts +1 -2
- package/dist/events/error.mjs +1 -2
- package/dist/events/pageleave.d.cts +1 -2
- package/dist/events/pageleave.d.mts +1 -2
- package/dist/events/pageleave.mjs +1 -2
- package/dist/events/pageview.d.cts +1 -2
- package/dist/events/pageview.d.mts +1 -2
- package/dist/events/pageview.mjs +1 -2
- package/dist/integrations/index.cjs +1 -1
- package/dist/integrations/index.d.cts +56 -3
- package/dist/integrations/index.d.mts +56 -3
- package/dist/integrations/index.mjs +1 -2
- package/dist/integrations/platforms/cli.d.cts +1 -2
- package/dist/integrations/platforms/cli.d.mts +1 -2
- package/dist/integrations/platforms/cli.mjs +1 -2
- package/dist/integrations/platforms/cloudflare.cjs +1 -0
- package/dist/integrations/platforms/cloudflare.d.cts +29 -0
- package/dist/integrations/platforms/cloudflare.d.mts +29 -0
- package/dist/integrations/platforms/cloudflare.mjs +1 -0
- package/dist/integrations/platforms/github.d.cts +1 -2
- package/dist/integrations/platforms/github.d.mts +1 -2
- package/dist/integrations/platforms/github.mjs +1 -2
- package/dist/integrations/platforms/slack.d.cts +1 -2
- package/dist/integrations/platforms/slack.d.mts +1 -2
- package/dist/integrations/platforms/slack.mjs +1 -2
- package/dist/integrations/platforms/vercel.d.cts +1 -2
- package/dist/integrations/platforms/vercel.d.mts +1 -2
- package/dist/integrations/platforms/vercel.mjs +1 -2
- package/dist/releases/definition.d.cts +16 -2
- package/dist/releases/definition.d.mts +16 -2
- package/dist/releases/definition.mjs +1 -2
- package/dist/releases/slug.d.cts +1 -2
- package/dist/releases/slug.d.mts +1 -2
- package/dist/releases/slug.mjs +1 -2
- package/dist/sdk/cli-destination.cjs +1 -0
- package/dist/sdk/cli-destination.d.cts +7 -0
- package/dist/sdk/cli-destination.d.mts +7 -0
- package/dist/sdk/cli-destination.mjs +1 -0
- package/dist/sdk/deploy-environment.cjs +2 -0
- package/dist/sdk/deploy-environment.d.cts +5 -0
- package/dist/sdk/deploy-environment.d.mts +5 -0
- package/dist/sdk/deploy-environment.mjs +2 -0
- package/dist/sdk/env.d.cts +1 -2
- package/dist/sdk/env.d.mts +1 -2
- package/dist/sdk/env.mjs +1 -2
- package/dist/sdk/envelope.d.cts +1 -2
- package/dist/sdk/envelope.d.mts +1 -2
- package/dist/sdk/envelope.mjs +1 -2
- package/dist/sdk/errors.cjs +1 -1
- package/dist/sdk/errors.d.cts +7 -2
- package/dist/sdk/errors.d.mts +7 -2
- package/dist/sdk/errors.mjs +2 -3
- package/dist/sdk/geo.d.cts +1 -2
- package/dist/sdk/geo.d.mts +1 -2
- package/dist/sdk/geo.mjs +1 -2
- package/dist/sdk/identify.d.cts +1 -2
- package/dist/sdk/identify.d.mts +1 -2
- package/dist/sdk/identify.mjs +1 -2
- package/dist/sdk/plugins/context/browser.d.cts +1 -2
- package/dist/sdk/plugins/context/browser.d.mts +1 -2
- package/dist/sdk/plugins/context/browser.mjs +1 -2
- package/dist/sdk/plugins/context/edge.d.cts +1 -2
- package/dist/sdk/plugins/context/edge.d.mts +1 -2
- package/dist/sdk/plugins/context/edge.mjs +1 -2
- package/dist/sdk/plugins/context/next.d.cts +1 -2
- package/dist/sdk/plugins/context/next.d.mts +1 -2
- package/dist/sdk/plugins/context/next.mjs +1 -2
- package/dist/sdk/plugins/context/node.d.cts +1 -2
- package/dist/sdk/plugins/context/node.d.mts +1 -2
- package/dist/sdk/plugins/context/node.mjs +1 -2
- package/dist/sdk/plugins/manifest.d.cts +1 -2
- package/dist/sdk/plugins/manifest.d.mts +1 -2
- package/dist/sdk/plugins/manifest.mjs +1 -2
- package/dist/sdk/plugins/payload/errors.d.cts +1 -2
- package/dist/sdk/plugins/payload/errors.d.mts +1 -2
- package/dist/sdk/plugins/payload/errors.mjs +1 -2
- package/dist/sdk/plugins/payload/page-events.d.cts +1 -2
- package/dist/sdk/plugins/payload/page-events.d.mts +1 -2
- package/dist/sdk/plugins/payload/page-events.mjs +1 -2
- package/dist/sdk/plugins/payload/rage-click.d.cts +1 -2
- package/dist/sdk/plugins/payload/rage-click.d.mts +1 -2
- package/dist/sdk/plugins/payload/rage-click.mjs +1 -2
- package/dist/sdk/plugins/payload/replay.d.cts +1 -2
- package/dist/sdk/plugins/payload/replay.d.mts +1 -2
- package/dist/sdk/plugins/payload/replay.mjs +1 -2
- package/dist/sdk/remote-config.d.cts +1 -2
- package/dist/sdk/remote-config.d.mts +1 -2
- package/dist/sdk/remote-config.mjs +1 -2
- package/dist/sdk/runtime.d.cts +1 -2
- package/dist/sdk/runtime.d.mts +1 -2
- package/dist/sdk/runtime.mjs +1 -2
- package/package.json +6 -28
package/dist/data/frame.d.cts
CHANGED
package/dist/data/frame.d.mts
CHANGED
package/dist/data/frame.mjs
CHANGED
|
@@ -1,2 +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};
|
|
2
|
-
//# sourceMappingURL=frame.mjs.map
|
|
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};
|
package/dist/data/session.d.cts
CHANGED
|
@@ -4,5 +4,4 @@ import { z } from "zod";
|
|
|
4
4
|
declare const sessionIdSchema: z.core.$ZodBranded<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>, "SessionId", "out">;
|
|
5
5
|
type SessionId = z.infer<typeof sessionIdSchema>;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { SessionId, sessionIdSchema };
|
|
8
|
-
//# sourceMappingURL=session.d.cts.map
|
|
7
|
+
export { SessionId, sessionIdSchema };
|
package/dist/data/session.d.mts
CHANGED
|
@@ -4,5 +4,4 @@ import { z } from "zod";
|
|
|
4
4
|
declare const sessionIdSchema: z.core.$ZodBranded<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>, "SessionId", "out">;
|
|
5
5
|
type SessionId = z.infer<typeof sessionIdSchema>;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { SessionId, sessionIdSchema };
|
|
8
|
-
//# sourceMappingURL=session.d.mts.map
|
|
7
|
+
export { SessionId, sessionIdSchema };
|
package/dist/data/session.mjs
CHANGED
|
@@ -1,2 +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};
|
|
2
|
-
//# sourceMappingURL=session.mjs.map
|
|
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};
|
|
@@ -147,5 +147,4 @@ declare const completeSourceMapsResponse: z.ZodObject<{
|
|
|
147
147
|
}, z.core.$strip>;
|
|
148
148
|
type CompleteSourceMapsResponse = z.infer<typeof completeSourceMapsResponse>;
|
|
149
149
|
//#endregion
|
|
150
|
-
export { CompleteSourceMapsRequest, CompleteSourceMapsResponse, ManifestBundler, SignSourceMapsRequest, SignSourceMapsResponse, SourceMapManifest, UploadSourceMapEntry, UploadSourceMapsMetadata, UploadSourceMapsResponse, completeSourceMapFile, completeSourceMapsRequest, completeSourceMapsResponse, manifestBundlerSchema, signSourceMapFile, signSourceMapUpload, signSourceMapsRequest, signSourceMapsResponse, sourceMapManifestSchema, uploadSourceMapEntry, uploadSourceMapsMetadata, uploadSourceMapsResponse };
|
|
151
|
-
//# sourceMappingURL=source-maps.d.cts.map
|
|
150
|
+
export { CompleteSourceMapsRequest, CompleteSourceMapsResponse, ManifestBundler, SignSourceMapsRequest, SignSourceMapsResponse, SourceMapManifest, UploadSourceMapEntry, UploadSourceMapsMetadata, UploadSourceMapsResponse, completeSourceMapFile, completeSourceMapsRequest, completeSourceMapsResponse, manifestBundlerSchema, signSourceMapFile, signSourceMapUpload, signSourceMapsRequest, signSourceMapsResponse, sourceMapManifestSchema, uploadSourceMapEntry, uploadSourceMapsMetadata, uploadSourceMapsResponse };
|
|
@@ -147,5 +147,4 @@ declare const completeSourceMapsResponse: z.ZodObject<{
|
|
|
147
147
|
}, z.core.$strip>;
|
|
148
148
|
type CompleteSourceMapsResponse = z.infer<typeof completeSourceMapsResponse>;
|
|
149
149
|
//#endregion
|
|
150
|
-
export { CompleteSourceMapsRequest, CompleteSourceMapsResponse, ManifestBundler, SignSourceMapsRequest, SignSourceMapsResponse, SourceMapManifest, UploadSourceMapEntry, UploadSourceMapsMetadata, UploadSourceMapsResponse, completeSourceMapFile, completeSourceMapsRequest, completeSourceMapsResponse, manifestBundlerSchema, signSourceMapFile, signSourceMapUpload, signSourceMapsRequest, signSourceMapsResponse, sourceMapManifestSchema, uploadSourceMapEntry, uploadSourceMapsMetadata, uploadSourceMapsResponse };
|
|
151
|
-
//# sourceMappingURL=source-maps.d.mts.map
|
|
150
|
+
export { CompleteSourceMapsRequest, CompleteSourceMapsResponse, ManifestBundler, SignSourceMapsRequest, SignSourceMapsResponse, SourceMapManifest, UploadSourceMapEntry, UploadSourceMapsMetadata, UploadSourceMapsResponse, completeSourceMapFile, completeSourceMapsRequest, completeSourceMapsResponse, manifestBundlerSchema, signSourceMapFile, signSourceMapUpload, signSourceMapsRequest, signSourceMapsResponse, sourceMapManifestSchema, uploadSourceMapEntry, uploadSourceMapsMetadata, uploadSourceMapsResponse };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{z}from"zod";const manifestBundlerSchema=z.enum([`webpack`,`turbopack`,`rollup`,`tsc`]).meta({id:`ManifestBundler`,title:`ManifestBundler`}),sourceMapManifestEntrySchema=z.object({chunkUrl:z.string(),debugId:z.string(),objectKey:z.string(),mapHash:z.string()}),sourceMapManifestSchema=z.object({releaseSlug:z.string(),surfaceId:z.string(),organizationId:z.string(),bundler:manifestBundlerSchema,createdAt:z.number(),files:z.array(sourceMapManifestEntrySchema)}),uploadSourceMapEntry=z.object({path:z.string().min(1),hash:z.string(),debugId:z.string(),chunkUrl:z.string()}).meta({id:`UploadSourceMapEntry`,title:`UploadSourceMapEntry`}),uploadSourceMapsMetadata=z.object({entries:z.array(uploadSourceMapEntry),sourceFileCount:z.number().int().nonnegative().optional(),bundler:manifestBundlerSchema}).meta({id:`UploadSourceMapsMetadata`,title:`UploadSourceMapsMetadata`,description:`Metadata attached alongside uploaded source map files.`}),uploadSourceMapsResponse=z.object({ok:z.boolean(),processed:z.number().int().nonnegative(),message:z.string(),fileCount:z.number().int().nonnegative()}).meta({id:`UploadSourceMapsResponse`,title:`UploadSourceMapsResponse`}),signSourceMapFile=z.object({path:z.string().min(1),sizeBytes:z.number().int().nonnegative(),hasSourcesContent:z.boolean(),hasNames:z.boolean(),hasFile:z.boolean(),mappingsPresent:z.boolean()}).meta({id:`SignSourceMapFile`,title:`SignSourceMapFile`}),signSourceMapsRequest=z.object({files: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=z.object({path:z.string(),objectKey:z.string(),presignedUrl:z.string()}).meta({id:`SignSourceMapUpload`,title:`SignSourceMapUpload`}),signSourceMapsResponse=z.object({uploads:z.array(signSourceMapUpload),expiresAt:z.number().int()}).meta({id:`SignSourceMapsResponse`,title:`SignSourceMapsResponse`}),completeSourceMapFile=z.object({path:z.string().min(1),hash:z.string(),debugId:z.string(),chunkUrl:z.string()}).meta({id:`CompleteSourceMapFile`,title:`CompleteSourceMapFile`}),completeSourceMapsRequest=z.object({files:z.array(completeSourceMapFile),sourceFileCount: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=z.object({ok:z.boolean(),fileCount:z.number().int().nonnegative()}).meta({id:`CompleteSourceMapsResponse`,title:`CompleteSourceMapsResponse`});export{completeSourceMapFile,completeSourceMapsRequest,completeSourceMapsResponse,manifestBundlerSchema,signSourceMapFile,signSourceMapUpload,signSourceMapsRequest,signSourceMapsResponse,sourceMapManifestSchema,uploadSourceMapEntry,uploadSourceMapsMetadata,uploadSourceMapsResponse};
|
|
2
|
-
//# sourceMappingURL=source-maps.mjs.map
|
|
1
|
+
import{z}from"zod";const manifestBundlerSchema=z.enum([`webpack`,`turbopack`,`rollup`,`tsc`]).meta({id:`ManifestBundler`,title:`ManifestBundler`}),sourceMapManifestEntrySchema=z.object({chunkUrl:z.string(),debugId:z.string(),objectKey:z.string(),mapHash:z.string()}),sourceMapManifestSchema=z.object({releaseSlug:z.string(),surfaceId:z.string(),organizationId:z.string(),bundler:manifestBundlerSchema,createdAt:z.number(),files:z.array(sourceMapManifestEntrySchema)}),uploadSourceMapEntry=z.object({path:z.string().min(1),hash:z.string(),debugId:z.string(),chunkUrl:z.string()}).meta({id:`UploadSourceMapEntry`,title:`UploadSourceMapEntry`}),uploadSourceMapsMetadata=z.object({entries:z.array(uploadSourceMapEntry),sourceFileCount:z.number().int().nonnegative().optional(),bundler:manifestBundlerSchema}).meta({id:`UploadSourceMapsMetadata`,title:`UploadSourceMapsMetadata`,description:`Metadata attached alongside uploaded source map files.`}),uploadSourceMapsResponse=z.object({ok:z.boolean(),processed:z.number().int().nonnegative(),message:z.string(),fileCount:z.number().int().nonnegative()}).meta({id:`UploadSourceMapsResponse`,title:`UploadSourceMapsResponse`}),signSourceMapFile=z.object({path:z.string().min(1),sizeBytes:z.number().int().nonnegative(),hasSourcesContent:z.boolean(),hasNames:z.boolean(),hasFile:z.boolean(),mappingsPresent:z.boolean()}).meta({id:`SignSourceMapFile`,title:`SignSourceMapFile`}),signSourceMapsRequest=z.object({files: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=z.object({path:z.string(),objectKey:z.string(),presignedUrl:z.string()}).meta({id:`SignSourceMapUpload`,title:`SignSourceMapUpload`}),signSourceMapsResponse=z.object({uploads:z.array(signSourceMapUpload),expiresAt:z.number().int()}).meta({id:`SignSourceMapsResponse`,title:`SignSourceMapsResponse`}),completeSourceMapFile=z.object({path:z.string().min(1),hash:z.string(),debugId:z.string(),chunkUrl:z.string()}).meta({id:`CompleteSourceMapFile`,title:`CompleteSourceMapFile`}),completeSourceMapsRequest=z.object({files:z.array(completeSourceMapFile),sourceFileCount: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=z.object({ok:z.boolean(),fileCount:z.number().int().nonnegative()}).meta({id:`CompleteSourceMapsResponse`,title:`CompleteSourceMapsResponse`});export{completeSourceMapFile,completeSourceMapsRequest,completeSourceMapsResponse,manifestBundlerSchema,signSourceMapFile,signSourceMapUpload,signSourceMapsRequest,signSourceMapsResponse,sourceMapManifestSchema,uploadSourceMapEntry,uploadSourceMapsMetadata,uploadSourceMapsResponse};
|
package/dist/events/error.d.cts
CHANGED
|
@@ -192,5 +192,4 @@ declare const errorPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
192
192
|
}, z.core.$strip>], "capture">;
|
|
193
193
|
type ErrorPayload = z.infer<typeof errorPayloadSchema>;
|
|
194
194
|
//#endregion
|
|
195
|
-
export { EnrichedFrame, ErrorMechanism, ErrorPayload, ResolvedFrame, UnresolvedFrame, enrichedFrameSchema, errorContextSchema, errorMechanismSchema, errorPayloadSchema };
|
|
196
|
-
//# sourceMappingURL=error.d.cts.map
|
|
195
|
+
export { EnrichedFrame, ErrorMechanism, ErrorPayload, ResolvedFrame, UnresolvedFrame, enrichedFrameSchema, errorContextSchema, errorMechanismSchema, errorPayloadSchema };
|
package/dist/events/error.d.mts
CHANGED
|
@@ -192,5 +192,4 @@ declare const errorPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
192
192
|
}, z.core.$strip>], "capture">;
|
|
193
193
|
type ErrorPayload = z.infer<typeof errorPayloadSchema>;
|
|
194
194
|
//#endregion
|
|
195
|
-
export { EnrichedFrame, ErrorMechanism, ErrorPayload, ResolvedFrame, UnresolvedFrame, enrichedFrameSchema, errorContextSchema, errorMechanismSchema, errorPayloadSchema };
|
|
196
|
-
//# sourceMappingURL=error.d.mts.map
|
|
195
|
+
export { EnrichedFrame, ErrorMechanism, ErrorPayload, ResolvedFrame, UnresolvedFrame, enrichedFrameSchema, errorContextSchema, errorMechanismSchema, errorPayloadSchema };
|
package/dist/events/error.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{z}from"zod";import{ingestedFrame}from"#data/frame";const baseEnrichedFrameSchema=z.object({ingestedId:z.string(),inApp:z.boolean(),file:z.string().nullable(),line:z.number().nullable(),column:z.number().nullable(),fn:z.string().nullable()}),resolvedFrameSchema=baseEnrichedFrameSchema.extend({resolved:z.literal(!0),originalFile:z.string().nullable(),originalLine:z.number().nullable(),originalColumn:z.number().nullable(),originalName:z.string().nullable()}),unresolvedFrameSchema=baseEnrichedFrameSchema.extend({resolved:z.literal(!1)}),enrichedFrameSchema=z.discriminatedUnion(`resolved`,[resolvedFrameSchema,unresolvedFrameSchema]),errorMechanismSchema=z.object({type:z.string(),handled:z.boolean(),synthetic:z.boolean().optional()}),errorContextSchema=z.object({framework:z.string().optional(),routerKind:z.enum([`Pages Router`,`App Router`]).optional(),routePath:z.string().optional(),routeType:z.enum([`render`,`route`,`action`,`middleware`,`proxy`]).optional(),renderSource:z.enum([`react-server-components`,`react-server-components-payload`,`server-rendering`]).optional(),revalidateReason:z.enum([`on-demand`,`stale`]).optional(),renderType:z.enum([`dynamic`,`dynamic-resume`]).optional(),requestPath:z.string().optional(),requestMethod:z.string().optional(),errorDigest:z.string().optional()}),errorPayloadCommonSchema=z.object({message:z.string().nullable(),name:z.string().nullable(),stack:z.string().nullable(),context:errorContextSchema.optional(),mechanism:errorMechanismSchema.optional(),captureSource:z.string().optional(),runtime:z.string().optional(),frames:z.array(ingestedFrame)}),errorPayloadFromErrorSchema=errorPayloadCommonSchema.extend({capture:z.literal(`error`)}),errorPayloadFromNonErrorSchema=errorPayloadCommonSchema.extend({capture:z.literal(`non-error`),serialized:z.json()}),errorPayloadSchema=z.discriminatedUnion(`capture`,[errorPayloadFromErrorSchema,errorPayloadFromNonErrorSchema]);export{enrichedFrameSchema,errorContextSchema,errorMechanismSchema,errorPayloadSchema};
|
|
2
|
-
//# sourceMappingURL=error.mjs.map
|
|
1
|
+
import{z}from"zod";import{ingestedFrame}from"#data/frame";const baseEnrichedFrameSchema=z.object({ingestedId:z.string(),inApp:z.boolean(),file:z.string().nullable(),line:z.number().nullable(),column:z.number().nullable(),fn:z.string().nullable()}),resolvedFrameSchema=baseEnrichedFrameSchema.extend({resolved:z.literal(!0),originalFile:z.string().nullable(),originalLine:z.number().nullable(),originalColumn:z.number().nullable(),originalName:z.string().nullable()}),unresolvedFrameSchema=baseEnrichedFrameSchema.extend({resolved:z.literal(!1)}),enrichedFrameSchema=z.discriminatedUnion(`resolved`,[resolvedFrameSchema,unresolvedFrameSchema]),errorMechanismSchema=z.object({type:z.string(),handled:z.boolean(),synthetic:z.boolean().optional()}),errorContextSchema=z.object({framework:z.string().optional(),routerKind:z.enum([`Pages Router`,`App Router`]).optional(),routePath:z.string().optional(),routeType:z.enum([`render`,`route`,`action`,`middleware`,`proxy`]).optional(),renderSource:z.enum([`react-server-components`,`react-server-components-payload`,`server-rendering`]).optional(),revalidateReason:z.enum([`on-demand`,`stale`]).optional(),renderType:z.enum([`dynamic`,`dynamic-resume`]).optional(),requestPath:z.string().optional(),requestMethod:z.string().optional(),errorDigest:z.string().optional()}),errorPayloadCommonSchema=z.object({message:z.string().nullable(),name:z.string().nullable(),stack:z.string().nullable(),context:errorContextSchema.optional(),mechanism:errorMechanismSchema.optional(),captureSource:z.string().optional(),runtime:z.string().optional(),frames:z.array(ingestedFrame)}),errorPayloadFromErrorSchema=errorPayloadCommonSchema.extend({capture:z.literal(`error`)}),errorPayloadFromNonErrorSchema=errorPayloadCommonSchema.extend({capture:z.literal(`non-error`),serialized:z.json()}),errorPayloadSchema=z.discriminatedUnion(`capture`,[errorPayloadFromErrorSchema,errorPayloadFromNonErrorSchema]);export{enrichedFrameSchema,errorContextSchema,errorMechanismSchema,errorPayloadSchema};
|
|
@@ -9,5 +9,4 @@ declare const pageleaveFactsPayloadSchema: z.ZodObject<{
|
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
type PageleaveFactsPayload = z.infer<typeof pageleaveFactsPayloadSchema>;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { PageleaveFactsPayload, pageleaveFactsPayloadSchema };
|
|
13
|
-
//# sourceMappingURL=pageleave.d.cts.map
|
|
12
|
+
export { PageleaveFactsPayload, pageleaveFactsPayloadSchema };
|
|
@@ -9,5 +9,4 @@ declare const pageleaveFactsPayloadSchema: z.ZodObject<{
|
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
type PageleaveFactsPayload = z.infer<typeof pageleaveFactsPayloadSchema>;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { PageleaveFactsPayload, pageleaveFactsPayloadSchema };
|
|
13
|
-
//# sourceMappingURL=pageleave.d.mts.map
|
|
12
|
+
export { PageleaveFactsPayload, pageleaveFactsPayloadSchema };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{z}from"zod";const pageleaveFactsPayloadSchema=z.object({url:z.url(),durationMs:z.number().optional(),runtime:z.string().optional(),releaseId:z.string().nullable().optional()});export{pageleaveFactsPayloadSchema};
|
|
2
|
-
//# sourceMappingURL=pageleave.mjs.map
|
|
1
|
+
import{z}from"zod";const pageleaveFactsPayloadSchema=z.object({url:z.url(),durationMs:z.number().optional(),runtime:z.string().optional(),releaseId:z.string().nullable().optional()});export{pageleaveFactsPayloadSchema};
|
|
@@ -10,5 +10,4 @@ declare const pageviewFactsPayloadSchema: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
type PageviewFactsPayload = z.infer<typeof pageviewFactsPayloadSchema>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { PageviewFactsPayload, pageviewFactsPayloadSchema };
|
|
14
|
-
//# sourceMappingURL=pageview.d.cts.map
|
|
13
|
+
export { PageviewFactsPayload, pageviewFactsPayloadSchema };
|
|
@@ -10,5 +10,4 @@ declare const pageviewFactsPayloadSchema: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
type PageviewFactsPayload = z.infer<typeof pageviewFactsPayloadSchema>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { PageviewFactsPayload, pageviewFactsPayloadSchema };
|
|
14
|
-
//# sourceMappingURL=pageview.d.mts.map
|
|
13
|
+
export { PageviewFactsPayload, pageviewFactsPayloadSchema };
|
package/dist/events/pageview.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{z}from"zod";const pageviewFactsPayloadSchema=z.object({url:z.url(),title:z.string().optional(),referrer:z.string().optional(),runtime:z.string().optional(),releaseId:z.string().nullable().optional()});export{pageviewFactsPayloadSchema};
|
|
2
|
-
//# sourceMappingURL=pageview.mjs.map
|
|
1
|
+
import{z}from"zod";const pageviewFactsPayloadSchema=z.object({url:z.url(),title:z.string().optional(),referrer:z.string().optional(),runtime:z.string().optional(),releaseId:z.string().nullable().optional()});export{pageviewFactsPayloadSchema};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const require_integrations_platforms_github=require("./platforms/github.cjs"),require_integrations_platforms_vercel=require("./platforms/vercel.cjs");let zod=require("zod");const githubReleaseSourceSchema=zod.z.object({provider:zod.z.literal(`github`),commitMessage:zod.z.string(),branch:zod.z.string(),commitSha:zod.z.string().nullable(),runnerName:zod.z.string().nullable().optional(),runId:zod.z.string().nullable().optional(),runUrl:zod.z.string().nullable().optional()}).meta({id:`GithubReleaseSource`,title:`GithubReleaseSource`,description:`Release source metadata coming from GitHub.`}),cliReleaseSourceSchema=zod.z.object({provider:zod.z.literal(`cli`),commitSha:zod.z.string().nullable(),commitRef:zod.z.string().nullable(),commitMessage:zod.z.string().nullable(),commitUrl:zod.z.string().nullable(),runnerName:zod.z.string().nullable(),runId:zod.z.string().nullable(),runUrl:zod.z.string().nullable(),environment:zod.z.string().nullable().optional(),deploymentUrl:zod.z.string().nullable().optional()}).meta({id:`CliReleaseSource`,title:`CliReleaseSource`,description:`Release source metadata from the Interfere CLI.`}),releaseSourceMetadataSchema=zod.z.discriminatedUnion(`provider`,[githubReleaseSourceSchema,cliReleaseSourceSchema]).meta({id:`ReleaseSource`,title:`ReleaseSource`}),vercelReleaseDestinationSchema=zod.z.object({provider:zod.z.literal(`vercel`),destinationReleaseId:zod.z.string().nullable(),environment:zod.z.string().nullable(),deploymentId:zod.z.string().nullable(),deploymentUrl:zod.z.string().nullable(),environmentName:zod.z.string().nullable(),environmentTarget:zod.z.string().nullable()}).meta({id:`VercelReleaseDestination`,title:`VercelReleaseDestination`,description:`Release destination metadata for a Vercel deployment.`}),releaseDestinationMetadataSchema=zod.z.discriminatedUnion(`provider`,[vercelReleaseDestinationSchema]).meta({id:`ReleaseDestination`,title:`ReleaseDestination`}),
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const require_integrations_platforms_cloudflare=require("./platforms/cloudflare.cjs"),require_integrations_platforms_github=require("./platforms/github.cjs"),require_integrations_platforms_vercel=require("./platforms/vercel.cjs");let zod=require("zod");const githubReleaseSourceSchema=zod.z.object({provider:zod.z.literal(`github`),commitMessage:zod.z.string(),branch:zod.z.string(),commitSha:zod.z.string().nullable(),runnerName:zod.z.string().nullable().optional(),runId:zod.z.string().nullable().optional(),runUrl:zod.z.string().nullable().optional()}).meta({id:`GithubReleaseSource`,title:`GithubReleaseSource`,description:`Release source metadata coming from GitHub.`}),cliReleaseSourceSchema=zod.z.object({provider:zod.z.literal(`cli`),commitSha:zod.z.string().nullable(),commitRef:zod.z.string().nullable(),commitMessage:zod.z.string().nullable(),commitUrl:zod.z.string().nullable(),runnerName:zod.z.string().nullable(),runId:zod.z.string().nullable(),runUrl:zod.z.string().nullable(),environment:zod.z.string().nullable().optional(),deploymentUrl:zod.z.string().nullable().optional()}).meta({id:`CliReleaseSource`,title:`CliReleaseSource`,description:`Release source metadata from the Interfere CLI.`}),releaseSourceMetadataSchema=zod.z.discriminatedUnion(`provider`,[githubReleaseSourceSchema,cliReleaseSourceSchema]).meta({id:`ReleaseSource`,title:`ReleaseSource`}),releaseSourceProviderSchema=zod.z.enum([`github`,`cli`]).meta({id:`ReleaseSourceProvider`,title:`ReleaseSourceProvider`}),vercelReleaseDestinationSchema=zod.z.object({provider:zod.z.literal(`vercel`),destinationReleaseId:zod.z.string().nullable(),environment:zod.z.string().nullable(),deploymentId:zod.z.string().nullable(),deploymentUrl:zod.z.string().nullable(),environmentName:zod.z.string().nullable(),environmentTarget:zod.z.string().nullable()}).meta({id:`VercelReleaseDestination`,title:`VercelReleaseDestination`,description:`Release destination metadata for a Vercel deployment.`}),cloudflareReleaseDestinationSchema=zod.z.object({provider:zod.z.literal(`cloudflare`),destinationReleaseId:zod.z.string().nullable(),environment:zod.z.string().nullable(),versionId:zod.z.string().nullable(),scriptName:zod.z.string().nullable(),accountId:zod.z.string().nullable(),deploymentUrl:zod.z.string().nullable(),environmentName:zod.z.string().nullable(),environmentTarget:zod.z.string().nullable()}).meta({id:`CloudflareReleaseDestination`,title:`CloudflareReleaseDestination`,description:`Release destination metadata for a Cloudflare Workers deployment.`}),cliReleaseDestinationSchema=zod.z.object({provider:zod.z.literal(`cli`),destinationReleaseId:zod.z.string().nullable(),environment:zod.z.string().nullable(),deploymentUrl:zod.z.string().nullable()}).meta({id:`CliReleaseDestination`,title:`CliReleaseDestination`,description:`Release destination metadata from the Interfere CLI.`}),releaseDestinationMetadataSchema=zod.z.discriminatedUnion(`provider`,[vercelReleaseDestinationSchema,cloudflareReleaseDestinationSchema,cliReleaseDestinationSchema]).meta({id:`ReleaseDestination`,title:`ReleaseDestination`}),releaseDestinationProviderSchema=zod.z.enum([`vercel`,`cloudflare`,`cli`]).meta({id:`ReleaseDestinationProvider`,title:`ReleaseDestinationProvider`}),configuredSourceProviderSchema=zod.z.enum([`github`]).meta({id:`ConfiguredSourceProvider`,title:`ConfiguredSourceProvider`}),configuredDestinationProviderSchema=zod.z.enum([`vercel`,`cloudflare`,`cli`]).meta({id:`ConfiguredDestinationProvider`,title:`ConfiguredDestinationProvider`}),sourceProviderSchema=configuredSourceProviderSchema.meta({id:`SourceProvider`,title:`SourceProvider`}),destinationProviderSchema=zod.z.enum([`vercel`,`cloudflare`]).meta({id:`DestinationProvider`,title:`DestinationProvider`}),releaseSourceIdEnvKeys=zod.z.enum([`NEXT_PUBLIC_INTERFERE_BUILD_ID`,`INTERFERE_SOURCE_ID`,`NEXT_BUILD_ID`,...require_integrations_platforms_github.githubSourceIdEnvKeys]).options,releaseDestinationIdEnvKeys=zod.z.enum([`NEXT_PUBLIC_INTERFERE_RELEASE_ID`,`INTERFERE_DESTINATION_ID`,...require_integrations_platforms_vercel.vercelDestinationIdEnvKeys,...require_integrations_platforms_cloudflare.cloudflareDestinationIdEnvKeys,...require_integrations_platforms_github.githubSourceIdEnvKeys]).options;exports.cliReleaseDestinationSchema=cliReleaseDestinationSchema,exports.cliReleaseSourceSchema=cliReleaseSourceSchema,exports.cloudflareReleaseDestinationSchema=cloudflareReleaseDestinationSchema,exports.configuredDestinationProviderSchema=configuredDestinationProviderSchema,exports.configuredSourceProviderSchema=configuredSourceProviderSchema,exports.destinationProviderSchema=destinationProviderSchema,exports.githubReleaseSourceSchema=githubReleaseSourceSchema,exports.releaseDestinationIdEnvKeys=releaseDestinationIdEnvKeys,exports.releaseDestinationMetadataSchema=releaseDestinationMetadataSchema,exports.releaseDestinationProviderSchema=releaseDestinationProviderSchema,exports.releaseSourceIdEnvKeys=releaseSourceIdEnvKeys,exports.releaseSourceMetadataSchema=releaseSourceMetadataSchema,exports.releaseSourceProviderSchema=releaseSourceProviderSchema,exports.sourceProviderSchema=sourceProviderSchema,exports.vercelReleaseDestinationSchema=vercelReleaseDestinationSchema;
|
|
@@ -43,6 +43,11 @@ declare const releaseSourceMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
43
43
|
deploymentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
44
|
}, z.core.$strip>], "provider">;
|
|
45
45
|
type ReleaseSourceMetadata = z.infer<typeof releaseSourceMetadataSchema>;
|
|
46
|
+
declare const releaseSourceProviderSchema: z.ZodEnum<{
|
|
47
|
+
cli: "cli";
|
|
48
|
+
github: "github";
|
|
49
|
+
}>;
|
|
50
|
+
type ReleaseSourceProvider = z.infer<typeof releaseSourceProviderSchema>;
|
|
46
51
|
declare const vercelReleaseDestinationSchema: z.ZodObject<{
|
|
47
52
|
provider: z.ZodLiteral<"vercel">;
|
|
48
53
|
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
@@ -52,6 +57,23 @@ declare const vercelReleaseDestinationSchema: z.ZodObject<{
|
|
|
52
57
|
environmentName: z.ZodNullable<z.ZodString>;
|
|
53
58
|
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
54
59
|
}, z.core.$strip>;
|
|
60
|
+
declare const cloudflareReleaseDestinationSchema: z.ZodObject<{
|
|
61
|
+
provider: z.ZodLiteral<"cloudflare">;
|
|
62
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
63
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
64
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
65
|
+
scriptName: z.ZodNullable<z.ZodString>;
|
|
66
|
+
accountId: z.ZodNullable<z.ZodString>;
|
|
67
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
68
|
+
environmentName: z.ZodNullable<z.ZodString>;
|
|
69
|
+
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
declare const cliReleaseDestinationSchema: z.ZodObject<{
|
|
72
|
+
provider: z.ZodLiteral<"cli">;
|
|
73
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
74
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
75
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>;
|
|
55
77
|
declare const releaseDestinationMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
56
78
|
provider: z.ZodLiteral<"vercel">;
|
|
57
79
|
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
@@ -60,18 +82,49 @@ declare const releaseDestinationMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
60
82
|
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
61
83
|
environmentName: z.ZodNullable<z.ZodString>;
|
|
62
84
|
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
provider: z.ZodLiteral<"cloudflare">;
|
|
87
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
88
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
89
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
90
|
+
scriptName: z.ZodNullable<z.ZodString>;
|
|
91
|
+
accountId: z.ZodNullable<z.ZodString>;
|
|
92
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
93
|
+
environmentName: z.ZodNullable<z.ZodString>;
|
|
94
|
+
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
+
provider: z.ZodLiteral<"cli">;
|
|
97
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
98
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
99
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
63
100
|
}, z.core.$strip>], "provider">;
|
|
64
101
|
type ReleaseDestinationMetadata = z.infer<typeof releaseDestinationMetadataSchema>;
|
|
102
|
+
declare const releaseDestinationProviderSchema: z.ZodEnum<{
|
|
103
|
+
cli: "cli";
|
|
104
|
+
cloudflare: "cloudflare";
|
|
105
|
+
vercel: "vercel";
|
|
106
|
+
}>;
|
|
107
|
+
type ReleaseDestinationProvider = z.infer<typeof releaseDestinationProviderSchema>;
|
|
108
|
+
declare const configuredSourceProviderSchema: z.ZodEnum<{
|
|
109
|
+
github: "github";
|
|
110
|
+
}>;
|
|
111
|
+
type ConfiguredSourceProvider = z.infer<typeof configuredSourceProviderSchema>;
|
|
112
|
+
declare const configuredDestinationProviderSchema: z.ZodEnum<{
|
|
113
|
+
cli: "cli";
|
|
114
|
+
cloudflare: "cloudflare";
|
|
115
|
+
vercel: "vercel";
|
|
116
|
+
}>;
|
|
117
|
+
type ConfiguredDestinationProvider = z.infer<typeof configuredDestinationProviderSchema>;
|
|
65
118
|
declare const sourceProviderSchema: z.ZodEnum<{
|
|
66
119
|
github: "github";
|
|
67
120
|
}>;
|
|
68
121
|
type SourceProvider = z.infer<typeof sourceProviderSchema>;
|
|
69
122
|
declare const destinationProviderSchema: z.ZodEnum<{
|
|
123
|
+
cloudflare: "cloudflare";
|
|
70
124
|
vercel: "vercel";
|
|
71
125
|
}>;
|
|
72
126
|
type DestinationProvider = z.infer<typeof destinationProviderSchema>;
|
|
73
127
|
declare const releaseSourceIdEnvKeys: ("GITHUB_SHA" | "INTERFERE_SOURCE_ID" | "NEXT_BUILD_ID" | "NEXT_PUBLIC_INTERFERE_BUILD_ID" | "VERCEL_GIT_COMMIT_SHA")[];
|
|
74
|
-
declare const releaseDestinationIdEnvKeys: ("GITHUB_SHA" | "INTERFERE_DESTINATION_ID" | "NEXT_PUBLIC_INTERFERE_RELEASE_ID" | "VERCEL_DEPLOYMENT_ID" | "VERCEL_GIT_COMMIT_SHA")[];
|
|
128
|
+
declare const releaseDestinationIdEnvKeys: ("CF_VERSION_ID" | "GITHUB_SHA" | "INTERFERE_DESTINATION_ID" | "NEXT_PUBLIC_INTERFERE_RELEASE_ID" | "VERCEL_DEPLOYMENT_ID" | "VERCEL_GIT_COMMIT_SHA" | "WORKERS_CI_BUILD_UUID")[];
|
|
75
129
|
//#endregion
|
|
76
|
-
export { DestinationProvider, ReleaseDestinationMetadata, ReleaseSourceMetadata, SourceProvider, cliReleaseSourceSchema, destinationProviderSchema, githubReleaseSourceSchema, releaseDestinationIdEnvKeys, releaseDestinationMetadataSchema, releaseSourceIdEnvKeys, releaseSourceMetadataSchema, sourceProviderSchema, vercelReleaseDestinationSchema };
|
|
77
|
-
//# sourceMappingURL=index.d.cts.map
|
|
130
|
+
export { ConfiguredDestinationProvider, ConfiguredSourceProvider, DestinationProvider, ReleaseDestinationMetadata, ReleaseDestinationProvider, ReleaseSourceMetadata, ReleaseSourceProvider, SourceProvider, cliReleaseDestinationSchema, cliReleaseSourceSchema, cloudflareReleaseDestinationSchema, configuredDestinationProviderSchema, configuredSourceProviderSchema, destinationProviderSchema, githubReleaseSourceSchema, releaseDestinationIdEnvKeys, releaseDestinationMetadataSchema, releaseDestinationProviderSchema, releaseSourceIdEnvKeys, releaseSourceMetadataSchema, releaseSourceProviderSchema, sourceProviderSchema, vercelReleaseDestinationSchema };
|
|
@@ -43,6 +43,11 @@ declare const releaseSourceMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
43
43
|
deploymentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
44
|
}, z.core.$strip>], "provider">;
|
|
45
45
|
type ReleaseSourceMetadata = z.infer<typeof releaseSourceMetadataSchema>;
|
|
46
|
+
declare const releaseSourceProviderSchema: z.ZodEnum<{
|
|
47
|
+
cli: "cli";
|
|
48
|
+
github: "github";
|
|
49
|
+
}>;
|
|
50
|
+
type ReleaseSourceProvider = z.infer<typeof releaseSourceProviderSchema>;
|
|
46
51
|
declare const vercelReleaseDestinationSchema: z.ZodObject<{
|
|
47
52
|
provider: z.ZodLiteral<"vercel">;
|
|
48
53
|
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
@@ -52,6 +57,23 @@ declare const vercelReleaseDestinationSchema: z.ZodObject<{
|
|
|
52
57
|
environmentName: z.ZodNullable<z.ZodString>;
|
|
53
58
|
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
54
59
|
}, z.core.$strip>;
|
|
60
|
+
declare const cloudflareReleaseDestinationSchema: z.ZodObject<{
|
|
61
|
+
provider: z.ZodLiteral<"cloudflare">;
|
|
62
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
63
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
64
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
65
|
+
scriptName: z.ZodNullable<z.ZodString>;
|
|
66
|
+
accountId: z.ZodNullable<z.ZodString>;
|
|
67
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
68
|
+
environmentName: z.ZodNullable<z.ZodString>;
|
|
69
|
+
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
declare const cliReleaseDestinationSchema: z.ZodObject<{
|
|
72
|
+
provider: z.ZodLiteral<"cli">;
|
|
73
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
74
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
75
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>;
|
|
55
77
|
declare const releaseDestinationMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
56
78
|
provider: z.ZodLiteral<"vercel">;
|
|
57
79
|
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
@@ -60,18 +82,49 @@ declare const releaseDestinationMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
60
82
|
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
61
83
|
environmentName: z.ZodNullable<z.ZodString>;
|
|
62
84
|
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
provider: z.ZodLiteral<"cloudflare">;
|
|
87
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
88
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
89
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
90
|
+
scriptName: z.ZodNullable<z.ZodString>;
|
|
91
|
+
accountId: z.ZodNullable<z.ZodString>;
|
|
92
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
93
|
+
environmentName: z.ZodNullable<z.ZodString>;
|
|
94
|
+
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
+
provider: z.ZodLiteral<"cli">;
|
|
97
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
98
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
99
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
63
100
|
}, z.core.$strip>], "provider">;
|
|
64
101
|
type ReleaseDestinationMetadata = z.infer<typeof releaseDestinationMetadataSchema>;
|
|
102
|
+
declare const releaseDestinationProviderSchema: z.ZodEnum<{
|
|
103
|
+
cli: "cli";
|
|
104
|
+
cloudflare: "cloudflare";
|
|
105
|
+
vercel: "vercel";
|
|
106
|
+
}>;
|
|
107
|
+
type ReleaseDestinationProvider = z.infer<typeof releaseDestinationProviderSchema>;
|
|
108
|
+
declare const configuredSourceProviderSchema: z.ZodEnum<{
|
|
109
|
+
github: "github";
|
|
110
|
+
}>;
|
|
111
|
+
type ConfiguredSourceProvider = z.infer<typeof configuredSourceProviderSchema>;
|
|
112
|
+
declare const configuredDestinationProviderSchema: z.ZodEnum<{
|
|
113
|
+
cli: "cli";
|
|
114
|
+
cloudflare: "cloudflare";
|
|
115
|
+
vercel: "vercel";
|
|
116
|
+
}>;
|
|
117
|
+
type ConfiguredDestinationProvider = z.infer<typeof configuredDestinationProviderSchema>;
|
|
65
118
|
declare const sourceProviderSchema: z.ZodEnum<{
|
|
66
119
|
github: "github";
|
|
67
120
|
}>;
|
|
68
121
|
type SourceProvider = z.infer<typeof sourceProviderSchema>;
|
|
69
122
|
declare const destinationProviderSchema: z.ZodEnum<{
|
|
123
|
+
cloudflare: "cloudflare";
|
|
70
124
|
vercel: "vercel";
|
|
71
125
|
}>;
|
|
72
126
|
type DestinationProvider = z.infer<typeof destinationProviderSchema>;
|
|
73
127
|
declare const releaseSourceIdEnvKeys: ("GITHUB_SHA" | "INTERFERE_SOURCE_ID" | "NEXT_BUILD_ID" | "NEXT_PUBLIC_INTERFERE_BUILD_ID" | "VERCEL_GIT_COMMIT_SHA")[];
|
|
74
|
-
declare const releaseDestinationIdEnvKeys: ("GITHUB_SHA" | "INTERFERE_DESTINATION_ID" | "NEXT_PUBLIC_INTERFERE_RELEASE_ID" | "VERCEL_DEPLOYMENT_ID" | "VERCEL_GIT_COMMIT_SHA")[];
|
|
128
|
+
declare const releaseDestinationIdEnvKeys: ("CF_VERSION_ID" | "GITHUB_SHA" | "INTERFERE_DESTINATION_ID" | "NEXT_PUBLIC_INTERFERE_RELEASE_ID" | "VERCEL_DEPLOYMENT_ID" | "VERCEL_GIT_COMMIT_SHA" | "WORKERS_CI_BUILD_UUID")[];
|
|
75
129
|
//#endregion
|
|
76
|
-
export { DestinationProvider, ReleaseDestinationMetadata, ReleaseSourceMetadata, SourceProvider, cliReleaseSourceSchema, destinationProviderSchema, githubReleaseSourceSchema, releaseDestinationIdEnvKeys, releaseDestinationMetadataSchema, releaseSourceIdEnvKeys, releaseSourceMetadataSchema, sourceProviderSchema, vercelReleaseDestinationSchema };
|
|
77
|
-
//# sourceMappingURL=index.d.mts.map
|
|
130
|
+
export { ConfiguredDestinationProvider, ConfiguredSourceProvider, DestinationProvider, ReleaseDestinationMetadata, ReleaseDestinationProvider, ReleaseSourceMetadata, ReleaseSourceProvider, SourceProvider, cliReleaseDestinationSchema, cliReleaseSourceSchema, cloudflareReleaseDestinationSchema, configuredDestinationProviderSchema, configuredSourceProviderSchema, destinationProviderSchema, githubReleaseSourceSchema, releaseDestinationIdEnvKeys, releaseDestinationMetadataSchema, releaseDestinationProviderSchema, releaseSourceIdEnvKeys, releaseSourceMetadataSchema, releaseSourceProviderSchema, sourceProviderSchema, vercelReleaseDestinationSchema };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{githubSourceIdEnvKeys}from"./platforms/github.mjs";import{vercelDestinationIdEnvKeys}from"./platforms/vercel.mjs";import{z}from"zod";const githubReleaseSourceSchema=z.object({provider:z.literal(`github`),commitMessage:z.string(),branch:z.string(),commitSha:z.string().nullable(),runnerName:z.string().nullable().optional(),runId:z.string().nullable().optional(),runUrl:z.string().nullable().optional()}).meta({id:`GithubReleaseSource`,title:`GithubReleaseSource`,description:`Release source metadata coming from GitHub.`}),cliReleaseSourceSchema=z.object({provider:z.literal(`cli`),commitSha:z.string().nullable(),commitRef:z.string().nullable(),commitMessage:z.string().nullable(),commitUrl:z.string().nullable(),runnerName:z.string().nullable(),runId:z.string().nullable(),runUrl:z.string().nullable(),environment:z.string().nullable().optional(),deploymentUrl:z.string().nullable().optional()}).meta({id:`CliReleaseSource`,title:`CliReleaseSource`,description:`Release source metadata from the Interfere CLI.`}),releaseSourceMetadataSchema=z.discriminatedUnion(`provider`,[githubReleaseSourceSchema,cliReleaseSourceSchema]).meta({id:`ReleaseSource`,title:`ReleaseSource`}),vercelReleaseDestinationSchema=z.object({provider:z.literal(`vercel`),destinationReleaseId:z.string().nullable(),environment:z.string().nullable(),deploymentId:z.string().nullable(),deploymentUrl:z.string().nullable(),environmentName:z.string().nullable(),environmentTarget:z.string().nullable()}).meta({id:`VercelReleaseDestination`,title:`VercelReleaseDestination`,description:`Release destination metadata for a Vercel deployment.`}),releaseDestinationMetadataSchema=z.discriminatedUnion(`provider`,[vercelReleaseDestinationSchema]).meta({id:`ReleaseDestination`,title:`ReleaseDestination`}),
|
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
import{cloudflareDestinationIdEnvKeys}from"./platforms/cloudflare.mjs";import{githubSourceIdEnvKeys}from"./platforms/github.mjs";import{vercelDestinationIdEnvKeys}from"./platforms/vercel.mjs";import{z}from"zod";const githubReleaseSourceSchema=z.object({provider:z.literal(`github`),commitMessage:z.string(),branch:z.string(),commitSha:z.string().nullable(),runnerName:z.string().nullable().optional(),runId:z.string().nullable().optional(),runUrl:z.string().nullable().optional()}).meta({id:`GithubReleaseSource`,title:`GithubReleaseSource`,description:`Release source metadata coming from GitHub.`}),cliReleaseSourceSchema=z.object({provider:z.literal(`cli`),commitSha:z.string().nullable(),commitRef:z.string().nullable(),commitMessage:z.string().nullable(),commitUrl:z.string().nullable(),runnerName:z.string().nullable(),runId:z.string().nullable(),runUrl:z.string().nullable(),environment:z.string().nullable().optional(),deploymentUrl:z.string().nullable().optional()}).meta({id:`CliReleaseSource`,title:`CliReleaseSource`,description:`Release source metadata from the Interfere CLI.`}),releaseSourceMetadataSchema=z.discriminatedUnion(`provider`,[githubReleaseSourceSchema,cliReleaseSourceSchema]).meta({id:`ReleaseSource`,title:`ReleaseSource`}),releaseSourceProviderSchema=z.enum([`github`,`cli`]).meta({id:`ReleaseSourceProvider`,title:`ReleaseSourceProvider`}),vercelReleaseDestinationSchema=z.object({provider:z.literal(`vercel`),destinationReleaseId:z.string().nullable(),environment:z.string().nullable(),deploymentId:z.string().nullable(),deploymentUrl:z.string().nullable(),environmentName:z.string().nullable(),environmentTarget:z.string().nullable()}).meta({id:`VercelReleaseDestination`,title:`VercelReleaseDestination`,description:`Release destination metadata for a Vercel deployment.`}),cloudflareReleaseDestinationSchema=z.object({provider:z.literal(`cloudflare`),destinationReleaseId:z.string().nullable(),environment:z.string().nullable(),versionId:z.string().nullable(),scriptName:z.string().nullable(),accountId:z.string().nullable(),deploymentUrl:z.string().nullable(),environmentName:z.string().nullable(),environmentTarget:z.string().nullable()}).meta({id:`CloudflareReleaseDestination`,title:`CloudflareReleaseDestination`,description:`Release destination metadata for a Cloudflare Workers deployment.`}),cliReleaseDestinationSchema=z.object({provider:z.literal(`cli`),destinationReleaseId:z.string().nullable(),environment:z.string().nullable(),deploymentUrl:z.string().nullable()}).meta({id:`CliReleaseDestination`,title:`CliReleaseDestination`,description:`Release destination metadata from the Interfere CLI.`}),releaseDestinationMetadataSchema=z.discriminatedUnion(`provider`,[vercelReleaseDestinationSchema,cloudflareReleaseDestinationSchema,cliReleaseDestinationSchema]).meta({id:`ReleaseDestination`,title:`ReleaseDestination`}),releaseDestinationProviderSchema=z.enum([`vercel`,`cloudflare`,`cli`]).meta({id:`ReleaseDestinationProvider`,title:`ReleaseDestinationProvider`}),configuredSourceProviderSchema=z.enum([`github`]).meta({id:`ConfiguredSourceProvider`,title:`ConfiguredSourceProvider`}),configuredDestinationProviderSchema=z.enum([`vercel`,`cloudflare`,`cli`]).meta({id:`ConfiguredDestinationProvider`,title:`ConfiguredDestinationProvider`}),sourceProviderSchema=configuredSourceProviderSchema.meta({id:`SourceProvider`,title:`SourceProvider`}),destinationProviderSchema=z.enum([`vercel`,`cloudflare`]).meta({id:`DestinationProvider`,title:`DestinationProvider`}),releaseSourceIdEnvKeys=z.enum([`NEXT_PUBLIC_INTERFERE_BUILD_ID`,`INTERFERE_SOURCE_ID`,`NEXT_BUILD_ID`,...githubSourceIdEnvKeys]).options,releaseDestinationIdEnvKeys=z.enum([`NEXT_PUBLIC_INTERFERE_RELEASE_ID`,`INTERFERE_DESTINATION_ID`,...vercelDestinationIdEnvKeys,...cloudflareDestinationIdEnvKeys,...githubSourceIdEnvKeys]).options;export{cliReleaseDestinationSchema,cliReleaseSourceSchema,cloudflareReleaseDestinationSchema,configuredDestinationProviderSchema,configuredSourceProviderSchema,destinationProviderSchema,githubReleaseSourceSchema,releaseDestinationIdEnvKeys,releaseDestinationMetadataSchema,releaseDestinationProviderSchema,releaseSourceIdEnvKeys,releaseSourceMetadataSchema,releaseSourceProviderSchema,sourceProviderSchema,vercelReleaseDestinationSchema};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{z}from"zod";const cliIntegration=z.object({name:z.literal(`cli`),metadata:z.object({installationUrl:z.string().nullable().default(null)})});export{cliIntegration};
|
|
2
|
-
//# sourceMappingURL=cli.mjs.map
|
|
1
|
+
import{z}from"zod";const cliIntegration=z.object({name:z.literal(`cli`),metadata:z.object({installationUrl:z.string().nullable().default(null)})});export{cliIntegration};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const cloudflareDestinationIdEnvKeys=zod.z.enum([`CF_VERSION_ID`,`WORKERS_CI_BUILD_UUID`]).options,cloudflareAccountMetadata=zod.z.object({accountType:zod.z.literal(`account`),id:zod.z.string(),name:zod.z.string().nullable().default(null),avatar:zod.z.string().nullable().default(null),installationUrl:zod.z.string().nullable(),workers:zod.z.record(zod.z.string(),zod.z.string()).default({}),refreshToken:zod.z.string().nullable().default(null),versionCutoffs:zod.z.record(zod.z.string(),zod.z.string()).default({})}),cloudflareMetadataSchema=zod.z.discriminatedUnion(`accountType`,[cloudflareAccountMetadata]),cloudflareIntegration=zod.z.object({name:zod.z.literal(`cloudflare`),metadata:cloudflareMetadataSchema});exports.cloudflareAccountMetadata=cloudflareAccountMetadata,exports.cloudflareDestinationIdEnvKeys=cloudflareDestinationIdEnvKeys,exports.cloudflareIntegration=cloudflareIntegration;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/platforms/cloudflare.d.ts
|
|
4
|
+
declare const cloudflareDestinationIdEnvKeys: ("CF_VERSION_ID" | "WORKERS_CI_BUILD_UUID")[];
|
|
5
|
+
declare const cloudflareAccountMetadata: z.ZodObject<{
|
|
6
|
+
accountType: z.ZodLiteral<"account">;
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
installationUrl: z.ZodNullable<z.ZodString>;
|
|
11
|
+
workers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12
|
+
refreshToken: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
versionCutoffs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const cloudflareIntegration: z.ZodObject<{
|
|
16
|
+
name: z.ZodLiteral<"cloudflare">;
|
|
17
|
+
metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18
|
+
accountType: z.ZodLiteral<"account">;
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
installationUrl: z.ZodNullable<z.ZodString>;
|
|
23
|
+
workers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
24
|
+
refreshToken: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
versionCutoffs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
26
|
+
}, z.core.$strip>], "accountType">;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { cloudflareAccountMetadata, cloudflareDestinationIdEnvKeys, cloudflareIntegration };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/platforms/cloudflare.d.ts
|
|
4
|
+
declare const cloudflareDestinationIdEnvKeys: ("CF_VERSION_ID" | "WORKERS_CI_BUILD_UUID")[];
|
|
5
|
+
declare const cloudflareAccountMetadata: z.ZodObject<{
|
|
6
|
+
accountType: z.ZodLiteral<"account">;
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
installationUrl: z.ZodNullable<z.ZodString>;
|
|
11
|
+
workers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12
|
+
refreshToken: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
versionCutoffs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const cloudflareIntegration: z.ZodObject<{
|
|
16
|
+
name: z.ZodLiteral<"cloudflare">;
|
|
17
|
+
metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18
|
+
accountType: z.ZodLiteral<"account">;
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
installationUrl: z.ZodNullable<z.ZodString>;
|
|
23
|
+
workers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
24
|
+
refreshToken: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
versionCutoffs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
26
|
+
}, z.core.$strip>], "accountType">;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { cloudflareAccountMetadata, cloudflareDestinationIdEnvKeys, cloudflareIntegration };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z}from"zod";const cloudflareDestinationIdEnvKeys=z.enum([`CF_VERSION_ID`,`WORKERS_CI_BUILD_UUID`]).options,cloudflareAccountMetadata=z.object({accountType:z.literal(`account`),id:z.string(),name:z.string().nullable().default(null),avatar:z.string().nullable().default(null),installationUrl:z.string().nullable(),workers:z.record(z.string(),z.string()).default({}),refreshToken:z.string().nullable().default(null),versionCutoffs:z.record(z.string(),z.string()).default({})}),cloudflareMetadataSchema=z.discriminatedUnion(`accountType`,[cloudflareAccountMetadata]),cloudflareIntegration=z.object({name:z.literal(`cloudflare`),metadata:cloudflareMetadataSchema});export{cloudflareAccountMetadata,cloudflareDestinationIdEnvKeys,cloudflareIntegration};
|
|
@@ -73,5 +73,4 @@ declare function resolveGithubHostUrls(input: {
|
|
|
73
73
|
flavor?: GithubHostFlavor;
|
|
74
74
|
}): GithubHostUrls;
|
|
75
75
|
//#endregion
|
|
76
|
-
export { GITHUB_COM_API_BASE_URL, GITHUB_COM_HOST, GITHUB_COM_WEB_BASE_URL, GithubFamilyProvider, GithubHostFlavor, GithubHostUrls, PROVIDER_FLAVOR, detectGithubHostFlavor, gheCloudIntegration, gheServerIntegration, githubFamilyProviders, githubHostFlavorSchema, githubIntegration, githubSourceIdEnvKeys, normalizeGithubHost, providerFromHost, resolveGithubHostUrls };
|
|
77
|
-
//# sourceMappingURL=github.d.cts.map
|
|
76
|
+
export { GITHUB_COM_API_BASE_URL, GITHUB_COM_HOST, GITHUB_COM_WEB_BASE_URL, GithubFamilyProvider, GithubHostFlavor, GithubHostUrls, PROVIDER_FLAVOR, detectGithubHostFlavor, gheCloudIntegration, gheServerIntegration, githubFamilyProviders, githubHostFlavorSchema, githubIntegration, githubSourceIdEnvKeys, normalizeGithubHost, providerFromHost, resolveGithubHostUrls };
|
|
@@ -73,5 +73,4 @@ declare function resolveGithubHostUrls(input: {
|
|
|
73
73
|
flavor?: GithubHostFlavor;
|
|
74
74
|
}): GithubHostUrls;
|
|
75
75
|
//#endregion
|
|
76
|
-
export { GITHUB_COM_API_BASE_URL, GITHUB_COM_HOST, GITHUB_COM_WEB_BASE_URL, GithubFamilyProvider, GithubHostFlavor, GithubHostUrls, PROVIDER_FLAVOR, detectGithubHostFlavor, gheCloudIntegration, gheServerIntegration, githubFamilyProviders, githubHostFlavorSchema, githubIntegration, githubSourceIdEnvKeys, normalizeGithubHost, providerFromHost, resolveGithubHostUrls };
|
|
77
|
-
//# sourceMappingURL=github.d.mts.map
|
|
76
|
+
export { GITHUB_COM_API_BASE_URL, GITHUB_COM_HOST, GITHUB_COM_WEB_BASE_URL, GithubFamilyProvider, GithubHostFlavor, GithubHostUrls, PROVIDER_FLAVOR, detectGithubHostFlavor, gheCloudIntegration, gheServerIntegration, githubFamilyProviders, githubHostFlavorSchema, githubIntegration, githubSourceIdEnvKeys, normalizeGithubHost, providerFromHost, resolveGithubHostUrls };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{z}from"zod";const HOST_REGEX=/^https?:\/\//,PATH_REGEX=/\/.*$/,githubSourceIdEnvKeys=z.enum([`VERCEL_GIT_COMMIT_SHA`,`GITHUB_SHA`]).options,githubHostFlavorSchema=z.enum([`github_com`,`ghe_cloud`,`ghe_server`]),GITHUB_COM_HOST=`github.com`,GITHUB_COM_API_BASE_URL=`https://api.github.com`,GITHUB_COM_WEB_BASE_URL=`https://github.com`,githubMetadata=z.object({accountType:z.string(),avatarUrl:z.string().nullable().default(null),repositories:z.record(z.string(),z.string()),installationUrl:z.string().nullable(),host:z.string().default(GITHUB_COM_HOST),flavor:githubHostFlavorSchema.default(`github_com`)}),githubIntegration=z.object({name:z.literal(`github`),metadata:githubMetadata}),gheCloudIntegration=z.object({name:z.literal(`ghe_cloud`),metadata:githubMetadata}),gheServerIntegration=z.object({name:z.literal(`ghe_server`),metadata:githubMetadata}),githubFamilyProviders=[githubIntegration.shape.name.value,gheCloudIntegration.shape.name.value,gheServerIntegration.shape.name.value],PROVIDER_FLAVOR={github:`github_com`,ghe_cloud:`ghe_cloud`,ghe_server:`ghe_server`};function normalizeGithubHost(host){return host.trim().toLowerCase().replace(HOST_REGEX,``).replace(PATH_REGEX,``)}function detectGithubHostFlavor(host){let normalized=normalizeGithubHost(host);return normalized===`github.com`?`github_com`:normalized.endsWith(`.ghe.com`)?`ghe_cloud`:`ghe_server`}function providerFromHost(host){let flavor=detectGithubHostFlavor(normalizeGithubHost(host));return flavor===`github_com`?`github`:flavor}const HOST_URL_RESOLVERS={github_com:()=>({host:GITHUB_COM_HOST,flavor:`github_com`,apiBaseUrl:GITHUB_COM_API_BASE_URL,webBaseUrl:GITHUB_COM_WEB_BASE_URL}),ghe_cloud:host=>({host,flavor:`ghe_cloud`,apiBaseUrl:`https://api.${host}`,webBaseUrl:`https://${host}`}),ghe_server:host=>({host,flavor:`ghe_server`,apiBaseUrl:`https://${host}/api/v3`,webBaseUrl:`https://${host}`})};function resolveGithubHostUrls(input){let host=normalizeGithubHost(input.host);return HOST_URL_RESOLVERS[input.flavor??detectGithubHostFlavor(host)](host)}export{GITHUB_COM_API_BASE_URL,GITHUB_COM_HOST,GITHUB_COM_WEB_BASE_URL,PROVIDER_FLAVOR,detectGithubHostFlavor,gheCloudIntegration,gheServerIntegration,githubFamilyProviders,githubHostFlavorSchema,githubIntegration,githubSourceIdEnvKeys,normalizeGithubHost,providerFromHost,resolveGithubHostUrls};
|
|
2
|
-
//# sourceMappingURL=github.mjs.map
|
|
1
|
+
import{z}from"zod";const HOST_REGEX=/^https?:\/\//,PATH_REGEX=/\/.*$/,githubSourceIdEnvKeys=z.enum([`VERCEL_GIT_COMMIT_SHA`,`GITHUB_SHA`]).options,githubHostFlavorSchema=z.enum([`github_com`,`ghe_cloud`,`ghe_server`]),GITHUB_COM_HOST=`github.com`,GITHUB_COM_API_BASE_URL=`https://api.github.com`,GITHUB_COM_WEB_BASE_URL=`https://github.com`,githubMetadata=z.object({accountType:z.string(),avatarUrl:z.string().nullable().default(null),repositories:z.record(z.string(),z.string()),installationUrl:z.string().nullable(),host:z.string().default(GITHUB_COM_HOST),flavor:githubHostFlavorSchema.default(`github_com`)}),githubIntegration=z.object({name:z.literal(`github`),metadata:githubMetadata}),gheCloudIntegration=z.object({name:z.literal(`ghe_cloud`),metadata:githubMetadata}),gheServerIntegration=z.object({name:z.literal(`ghe_server`),metadata:githubMetadata}),githubFamilyProviders=[githubIntegration.shape.name.value,gheCloudIntegration.shape.name.value,gheServerIntegration.shape.name.value],PROVIDER_FLAVOR={github:`github_com`,ghe_cloud:`ghe_cloud`,ghe_server:`ghe_server`};function normalizeGithubHost(host){return host.trim().toLowerCase().replace(HOST_REGEX,``).replace(PATH_REGEX,``)}function detectGithubHostFlavor(host){let normalized=normalizeGithubHost(host);return normalized===`github.com`?`github_com`:normalized.endsWith(`.ghe.com`)?`ghe_cloud`:`ghe_server`}function providerFromHost(host){let flavor=detectGithubHostFlavor(normalizeGithubHost(host));return flavor===`github_com`?`github`:flavor}const HOST_URL_RESOLVERS={github_com:()=>({host:GITHUB_COM_HOST,flavor:`github_com`,apiBaseUrl:GITHUB_COM_API_BASE_URL,webBaseUrl:GITHUB_COM_WEB_BASE_URL}),ghe_cloud:host=>({host,flavor:`ghe_cloud`,apiBaseUrl:`https://api.${host}`,webBaseUrl:`https://${host}`}),ghe_server:host=>({host,flavor:`ghe_server`,apiBaseUrl:`https://${host}/api/v3`,webBaseUrl:`https://${host}`})};function resolveGithubHostUrls(input){let host=normalizeGithubHost(input.host);return HOST_URL_RESOLVERS[input.flavor??detectGithubHostFlavor(host)](host)}export{GITHUB_COM_API_BASE_URL,GITHUB_COM_HOST,GITHUB_COM_WEB_BASE_URL,PROVIDER_FLAVOR,detectGithubHostFlavor,gheCloudIntegration,gheServerIntegration,githubFamilyProviders,githubHostFlavorSchema,githubIntegration,githubSourceIdEnvKeys,normalizeGithubHost,providerFromHost,resolveGithubHostUrls};
|
|
@@ -29,5 +29,4 @@ declare const slackIntegration: z.ZodObject<{
|
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
}, z.core.$strip>;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { RoutableCategory, SlackChatRoutingEntry, routableCategorySchema, slackChatRoutingEntrySchema, slackIntegration };
|
|
33
|
-
//# sourceMappingURL=slack.d.cts.map
|
|
32
|
+
export { RoutableCategory, SlackChatRoutingEntry, routableCategorySchema, slackChatRoutingEntrySchema, slackIntegration };
|
|
@@ -29,5 +29,4 @@ declare const slackIntegration: z.ZodObject<{
|
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
}, z.core.$strip>;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { RoutableCategory, SlackChatRoutingEntry, routableCategorySchema, slackChatRoutingEntrySchema, slackIntegration };
|
|
33
|
-
//# sourceMappingURL=slack.d.mts.map
|
|
32
|
+
export { RoutableCategory, SlackChatRoutingEntry, routableCategorySchema, slackChatRoutingEntrySchema, slackIntegration };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{z}from"zod";const routableCategorySchema=z.enum([`problems`,`team`,`collaboration`]),slackChatRoutingEntrySchema=z.object({channelId:z.string(),channelName:z.string()}),slackIntegration=z.object({name:z.literal(`slack`),metadata:z.object({teamId:z.string(),teamName:z.string(),installationUrl:z.string().nullable(),chatRouting:z.partialRecord(routableCategorySchema,slackChatRoutingEntrySchema).default({})})});export{routableCategorySchema,slackChatRoutingEntrySchema,slackIntegration};
|
|
2
|
-
//# sourceMappingURL=slack.mjs.map
|
|
1
|
+
import{z}from"zod";const routableCategorySchema=z.enum([`problems`,`team`,`collaboration`]),slackChatRoutingEntrySchema=z.object({channelId:z.string(),channelName:z.string()}),slackIntegration=z.object({name:z.literal(`slack`),metadata:z.object({teamId:z.string(),teamName:z.string(),installationUrl:z.string().nullable(),chatRouting:z.partialRecord(routableCategorySchema,slackChatRoutingEntrySchema).default({})})});export{routableCategorySchema,slackChatRoutingEntrySchema,slackIntegration};
|
|
@@ -43,5 +43,4 @@ declare const vercelIntegration: z.ZodObject<{
|
|
|
43
43
|
}, z.core.$strip>], "accountType">;
|
|
44
44
|
}, z.core.$strip>;
|
|
45
45
|
//#endregion
|
|
46
|
-
export { vercelDestinationIdEnvKeys, vercelIntegration, vercelTeamMetadata, vercelUserMetadata };
|
|
47
|
-
//# sourceMappingURL=vercel.d.cts.map
|
|
46
|
+
export { vercelDestinationIdEnvKeys, vercelIntegration, vercelTeamMetadata, vercelUserMetadata };
|
|
@@ -43,5 +43,4 @@ declare const vercelIntegration: z.ZodObject<{
|
|
|
43
43
|
}, z.core.$strip>], "accountType">;
|
|
44
44
|
}, z.core.$strip>;
|
|
45
45
|
//#endregion
|
|
46
|
-
export { vercelDestinationIdEnvKeys, vercelIntegration, vercelTeamMetadata, vercelUserMetadata };
|
|
47
|
-
//# sourceMappingURL=vercel.d.mts.map
|
|
46
|
+
export { vercelDestinationIdEnvKeys, vercelIntegration, vercelTeamMetadata, vercelUserMetadata };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{z}from"zod";const vercelDestinationIdEnvKeys=z.enum([`VERCEL_DEPLOYMENT_ID`]).options,vercelMetadataBase=z.object({avatar:z.string().nullable().default(null),name:z.string().nullable().default(null),installationUrl:z.string().nullable(),projects:z.record(z.string(),z.string()).default({})}),vercelTeamMetadata=vercelMetadataBase.extend({accountType:z.literal(`team`),id:z.string(),slug:z.string()}),vercelUserMetadata=vercelMetadataBase.extend({accountType:z.literal(`user`),id:z.string(),username:z.string(),email:z.string()}),vercelMetadataSchema=z.discriminatedUnion(`accountType`,[vercelTeamMetadata,vercelUserMetadata]),vercelIntegration=z.object({name:z.literal(`vercel`),metadata:vercelMetadataSchema});export{vercelDestinationIdEnvKeys,vercelIntegration,vercelTeamMetadata,vercelUserMetadata};
|
|
2
|
-
//# sourceMappingURL=vercel.mjs.map
|
|
1
|
+
import{z}from"zod";const vercelDestinationIdEnvKeys=z.enum([`VERCEL_DEPLOYMENT_ID`]).options,vercelMetadataBase=z.object({avatar:z.string().nullable().default(null),name:z.string().nullable().default(null),installationUrl:z.string().nullable(),projects:z.record(z.string(),z.string()).default({})}),vercelTeamMetadata=vercelMetadataBase.extend({accountType:z.literal(`team`),id:z.string(),slug:z.string()}),vercelUserMetadata=vercelMetadataBase.extend({accountType:z.literal(`user`),id:z.string(),username:z.string(),email:z.string()}),vercelMetadataSchema=z.discriminatedUnion(`accountType`,[vercelTeamMetadata,vercelUserMetadata]),vercelIntegration=z.object({name:z.literal(`vercel`),metadata:vercelMetadataSchema});export{vercelDestinationIdEnvKeys,vercelIntegration,vercelTeamMetadata,vercelUserMetadata};
|
|
@@ -38,6 +38,21 @@ declare const createReleaseRequest: z.ZodObject<{
|
|
|
38
38
|
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
39
39
|
environmentName: z.ZodNullable<z.ZodString>;
|
|
40
40
|
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
provider: z.ZodLiteral<"cloudflare">;
|
|
43
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
44
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
45
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
46
|
+
scriptName: z.ZodNullable<z.ZodString>;
|
|
47
|
+
accountId: z.ZodNullable<z.ZodString>;
|
|
48
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
49
|
+
environmentName: z.ZodNullable<z.ZodString>;
|
|
50
|
+
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
+
provider: z.ZodLiteral<"cli">;
|
|
53
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
54
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
55
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
41
56
|
}, z.core.$strip>], "provider">>;
|
|
42
57
|
buildId: z.ZodString;
|
|
43
58
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -67,5 +82,4 @@ declare const createReleaseResponse: z.ZodObject<{
|
|
|
67
82
|
}, z.core.$strip>;
|
|
68
83
|
type CreateReleaseResponse = z.infer<typeof createReleaseResponse>;
|
|
69
84
|
//#endregion
|
|
70
|
-
export { CreateReleaseRequest, CreateReleaseResponse, ReleaseStatus, createReleaseRequest, createReleaseResponse, releaseStatusSchema };
|
|
71
|
-
//# sourceMappingURL=definition.d.cts.map
|
|
85
|
+
export { CreateReleaseRequest, CreateReleaseResponse, ReleaseStatus, createReleaseRequest, createReleaseResponse, releaseStatusSchema };
|
|
@@ -38,6 +38,21 @@ declare const createReleaseRequest: z.ZodObject<{
|
|
|
38
38
|
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
39
39
|
environmentName: z.ZodNullable<z.ZodString>;
|
|
40
40
|
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
provider: z.ZodLiteral<"cloudflare">;
|
|
43
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
44
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
45
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
46
|
+
scriptName: z.ZodNullable<z.ZodString>;
|
|
47
|
+
accountId: z.ZodNullable<z.ZodString>;
|
|
48
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
49
|
+
environmentName: z.ZodNullable<z.ZodString>;
|
|
50
|
+
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
+
provider: z.ZodLiteral<"cli">;
|
|
53
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
54
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
55
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
41
56
|
}, z.core.$strip>], "provider">>;
|
|
42
57
|
buildId: z.ZodString;
|
|
43
58
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -67,5 +82,4 @@ declare const createReleaseResponse: z.ZodObject<{
|
|
|
67
82
|
}, z.core.$strip>;
|
|
68
83
|
type CreateReleaseResponse = z.infer<typeof createReleaseResponse>;
|
|
69
84
|
//#endregion
|
|
70
|
-
export { CreateReleaseRequest, CreateReleaseResponse, ReleaseStatus, createReleaseRequest, createReleaseResponse, releaseStatusSchema };
|
|
71
|
-
//# sourceMappingURL=definition.d.mts.map
|
|
85
|
+
export { CreateReleaseRequest, CreateReleaseResponse, ReleaseStatus, createReleaseRequest, createReleaseResponse, releaseStatusSchema };
|