@interfere/types 10.1.2 → 10.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data/frame.cjs +1 -1
- package/dist/data/frame.d.cts +6 -7
- package/dist/data/frame.d.mts +6 -7
- package/dist/data/frame.mjs +1 -1
- package/dist/data/session.cjs +1 -1
- package/dist/data/session.d.cts +3 -4
- package/dist/data/session.d.mts +3 -4
- package/dist/data/session.mjs +1 -1
- package/dist/data/source-map-batch.cjs +1 -0
- package/dist/data/source-map-batch.d.cts +4 -0
- package/dist/data/source-map-batch.d.mts +4 -0
- package/dist/data/source-map-batch.mjs +1 -0
- package/dist/data/source-map-diagnostics.cjs +1 -0
- package/dist/data/source-map-diagnostics.d.cts +49 -0
- package/dist/data/source-map-diagnostics.d.mts +49 -0
- package/dist/data/source-map-diagnostics.mjs +1 -0
- package/dist/data/source-map-status.cjs +1 -0
- package/dist/data/source-map-status.d.cts +65 -0
- package/dist/data/source-map-status.d.mts +65 -0
- package/dist/data/source-map-status.mjs +1 -0
- package/dist/data/source-map-upload-batch.cjs +1 -0
- package/dist/data/source-map-upload-batch.d.cts +22 -0
- package/dist/data/source-map-upload-batch.d.mts +22 -0
- package/dist/data/source-map-upload-batch.mjs +1 -0
- package/dist/data/source-maps.cjs +1 -1
- package/dist/data/source-maps.d.cts +73 -63
- package/dist/data/source-maps.d.mts +73 -63
- package/dist/data/source-maps.mjs +1 -1
- package/dist/events/error.cjs +1 -1
- package/dist/events/error.d.cts +118 -111
- package/dist/events/error.d.mts +118 -111
- package/dist/events/error.mjs +1 -1
- package/dist/events/pageleave.cjs +1 -1
- package/dist/events/pageleave.d.cts +5 -6
- package/dist/events/pageleave.d.mts +5 -6
- package/dist/events/pageleave.mjs +1 -1
- package/dist/events/pageview.cjs +1 -1
- package/dist/events/pageview.d.cts +6 -7
- package/dist/events/pageview.d.mts +6 -7
- package/dist/events/pageview.mjs +1 -1
- package/dist/integrations/index.cjs +1 -1
- package/dist/integrations/index.d.cts +62 -63
- package/dist/integrations/index.d.mts +62 -63
- package/dist/integrations/index.mjs +1 -1
- package/dist/integrations/platforms/cli.cjs +1 -1
- package/dist/integrations/platforms/cli.d.cts +3 -4
- package/dist/integrations/platforms/cli.d.mts +3 -4
- package/dist/integrations/platforms/cli.mjs +1 -1
- package/dist/integrations/platforms/cloudflare.cjs +1 -1
- package/dist/integrations/platforms/cloudflare.d.cts +12 -13
- package/dist/integrations/platforms/cloudflare.d.mts +12 -13
- package/dist/integrations/platforms/cloudflare.mjs +1 -1
- package/dist/integrations/platforms/github.cjs +1 -1
- package/dist/integrations/platforms/github.d.cts +30 -31
- package/dist/integrations/platforms/github.d.mts +30 -31
- package/dist/integrations/platforms/github.mjs +1 -1
- package/dist/integrations/platforms/slack.cjs +1 -1
- package/dist/integrations/platforms/slack.d.cts +7 -8
- package/dist/integrations/platforms/slack.d.mts +7 -8
- package/dist/integrations/platforms/slack.mjs +1 -1
- package/dist/integrations/platforms/vercel.cjs +1 -1
- package/dist/integrations/platforms/vercel.d.cts +12 -13
- package/dist/integrations/platforms/vercel.d.mts +12 -13
- package/dist/integrations/platforms/vercel.mjs +1 -1
- package/dist/releases/build-telemetry.d.cts +8 -9
- package/dist/releases/build-telemetry.d.mts +8 -9
- package/dist/releases/definition.cjs +1 -1
- package/dist/releases/definition.d.cts +48 -49
- package/dist/releases/definition.d.mts +48 -49
- package/dist/releases/definition.mjs +1 -1
- package/dist/releases/slug.d.cts +5 -6
- package/dist/releases/slug.d.mts +5 -6
- package/dist/sdk/build-config.cjs +1 -0
- package/dist/sdk/build-config.d.cts +22 -0
- package/dist/sdk/build-config.d.mts +22 -0
- package/dist/sdk/build-config.mjs +1 -0
- package/dist/sdk/build-diagnostics.cjs +1 -1
- package/dist/sdk/build-diagnostics.d.cts +11 -12
- package/dist/sdk/build-diagnostics.d.mts +11 -12
- package/dist/sdk/build-diagnostics.mjs +1 -1
- package/dist/sdk/cli-destination.cjs +1 -1
- package/dist/sdk/cli-destination.d.cts +7 -4
- package/dist/sdk/cli-destination.d.mts +7 -4
- package/dist/sdk/cli-destination.mjs +1 -1
- package/dist/sdk/deploy-environment.cjs +1 -1
- package/dist/sdk/deploy-environment.d.cts +28 -6
- package/dist/sdk/deploy-environment.d.mts +28 -6
- package/dist/sdk/deploy-environment.mjs +1 -1
- package/dist/sdk/env.d.cts +3 -4
- package/dist/sdk/env.d.mts +3 -4
- package/dist/sdk/envelope.cjs +1 -1
- package/dist/sdk/envelope.d.cts +129 -130
- package/dist/sdk/envelope.d.mts +129 -130
- package/dist/sdk/envelope.mjs +1 -1
- package/dist/sdk/errors.cjs +2 -2
- package/dist/sdk/errors.d.cts +70 -28
- package/dist/sdk/errors.d.mts +70 -28
- package/dist/sdk/errors.mjs +2 -2
- package/dist/sdk/geo.cjs +1 -1
- package/dist/sdk/geo.d.cts +4 -5
- package/dist/sdk/geo.d.mts +4 -5
- package/dist/sdk/geo.mjs +1 -1
- package/dist/sdk/github-source.cjs +1 -1
- package/dist/sdk/github-source.d.cts +9 -9
- package/dist/sdk/github-source.d.mts +9 -9
- package/dist/sdk/github-source.mjs +1 -1
- package/dist/sdk/identify.cjs +1 -1
- package/dist/sdk/identify.d.cts +13 -14
- package/dist/sdk/identify.d.mts +13 -14
- package/dist/sdk/identify.mjs +1 -1
- package/dist/sdk/injected-globals.d.cts +9 -10
- package/dist/sdk/injected-globals.d.mts +9 -10
- package/dist/sdk/log-sourcing.cjs +1 -1
- package/dist/sdk/log-sourcing.d.cts +9 -10
- package/dist/sdk/log-sourcing.d.mts +9 -10
- package/dist/sdk/log-sourcing.mjs +1 -1
- package/dist/sdk/plugins/context/browser.cjs +1 -1
- package/dist/sdk/plugins/context/browser.d.cts +17 -18
- package/dist/sdk/plugins/context/browser.d.mts +17 -18
- package/dist/sdk/plugins/context/browser.mjs +1 -1
- package/dist/sdk/plugins/context/edge.cjs +1 -1
- package/dist/sdk/plugins/context/edge.d.cts +3 -4
- package/dist/sdk/plugins/context/edge.d.mts +3 -4
- package/dist/sdk/plugins/context/edge.mjs +1 -1
- package/dist/sdk/plugins/context/next.cjs +1 -1
- package/dist/sdk/plugins/context/next.d.cts +8 -9
- package/dist/sdk/plugins/context/next.d.mts +8 -9
- package/dist/sdk/plugins/context/next.mjs +1 -1
- package/dist/sdk/plugins/context/node.cjs +1 -1
- package/dist/sdk/plugins/context/node.d.cts +3 -4
- package/dist/sdk/plugins/context/node.d.mts +3 -4
- package/dist/sdk/plugins/context/node.mjs +1 -1
- package/dist/sdk/plugins/manifest.d.cts +10 -9
- package/dist/sdk/plugins/manifest.d.mts +10 -9
- package/dist/sdk/plugins/payload/errors.cjs +1 -1
- package/dist/sdk/plugins/payload/errors.d.cts +23 -24
- package/dist/sdk/plugins/payload/errors.d.mts +23 -24
- package/dist/sdk/plugins/payload/errors.mjs +1 -1
- package/dist/sdk/plugins/payload/page-events.cjs +1 -1
- package/dist/sdk/plugins/payload/page-events.d.cts +9 -10
- package/dist/sdk/plugins/payload/page-events.d.mts +9 -10
- package/dist/sdk/plugins/payload/page-events.mjs +1 -1
- package/dist/sdk/plugins/payload/rage-click.cjs +1 -1
- package/dist/sdk/plugins/payload/rage-click.d.cts +5 -6
- package/dist/sdk/plugins/payload/rage-click.d.mts +5 -6
- package/dist/sdk/plugins/payload/rage-click.mjs +1 -1
- package/dist/sdk/plugins/payload/replay.cjs +1 -1
- package/dist/sdk/plugins/payload/replay.d.cts +4 -5
- package/dist/sdk/plugins/payload/replay.d.mts +4 -5
- package/dist/sdk/plugins/payload/replay.mjs +1 -1
- package/dist/sdk/remote-config.cjs +1 -1
- package/dist/sdk/remote-config.d.cts +43 -20
- package/dist/sdk/remote-config.d.mts +43 -20
- package/dist/sdk/remote-config.mjs +1 -1
- package/dist/sdk/runtime.cjs +1 -1
- package/dist/sdk/runtime.d.cts +11 -12
- package/dist/sdk/runtime.d.mts +11 -12
- package/dist/sdk/runtime.mjs +1 -1
- package/dist/sdk/server-tracing.cjs +1 -1
- package/dist/sdk/server-tracing.d.cts +9 -10
- package/dist/sdk/server-tracing.d.mts +9 -10
- package/dist/sdk/server-tracing.mjs +1 -1
- package/dist/sdk/source-map-richness.cjs +1 -0
- package/dist/sdk/source-map-richness.d.cts +9 -0
- package/dist/sdk/source-map-richness.d.mts +9 -0
- package/dist/sdk/source-map-richness.mjs +1 -0
- package/dist/sdk/trace-freshness.cjs +1 -0
- package/dist/sdk/trace-freshness.d.cts +6 -0
- package/dist/sdk/trace-freshness.d.mts +6 -0
- package/dist/sdk/trace-freshness.mjs +1 -0
- package/package.json +13 -13
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/events/pageleave.d.ts
|
|
3
|
-
declare const pageleaveFactsPayloadSchema: z.ZodObject<{
|
|
4
|
-
url: z.ZodURL;
|
|
3
|
+
export declare const pageleaveFactsPayloadSchema: z.ZodObject<{
|
|
5
4
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
6
|
-
runtime: z.ZodOptional<z.ZodString>;
|
|
7
5
|
releaseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
7
|
+
url: z.ZodURL;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
|
-
type PageleaveFactsPayload = z.infer<typeof pageleaveFactsPayloadSchema>;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { PageleaveFactsPayload, pageleaveFactsPayloadSchema };
|
|
9
|
+
export type PageleaveFactsPayload = z.infer<typeof pageleaveFactsPayloadSchema>;
|
|
10
|
+
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from"zod";const pageleaveFactsPayloadSchema=z.object({
|
|
1
|
+
import{z}from"zod";const pageleaveFactsPayloadSchema=z.object({durationMs:z.number().optional(),releaseId:z.string().nullable().optional(),runtime:z.string().optional(),url:z.url()});export{pageleaveFactsPayloadSchema};
|
package/dist/events/pageview.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const pageviewFactsPayloadSchema=zod.z.object({
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const pageviewFactsPayloadSchema=zod.z.object({referrer:zod.z.string().optional(),releaseId:zod.z.string().nullable().optional(),runtime:zod.z.string().optional(),title:zod.z.string().optional(),url:zod.z.url()});exports.pageviewFactsPayloadSchema=pageviewFactsPayloadSchema;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/events/pageview.d.ts
|
|
3
|
-
declare const pageviewFactsPayloadSchema: z.ZodObject<{
|
|
4
|
-
url: z.ZodURL;
|
|
5
|
-
title: z.ZodOptional<z.ZodString>;
|
|
3
|
+
export declare const pageviewFactsPayloadSchema: z.ZodObject<{
|
|
6
4
|
referrer: z.ZodOptional<z.ZodString>;
|
|
7
|
-
runtime: z.ZodOptional<z.ZodString>;
|
|
8
5
|
releaseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
7
|
+
title: z.ZodOptional<z.ZodString>;
|
|
8
|
+
url: z.ZodURL;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
|
-
type PageviewFactsPayload = z.infer<typeof pageviewFactsPayloadSchema>;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { PageviewFactsPayload, pageviewFactsPayloadSchema };
|
|
10
|
+
export type PageviewFactsPayload = z.infer<typeof pageviewFactsPayloadSchema>;
|
|
11
|
+
//#endregion
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/events/pageview.d.ts
|
|
3
|
-
declare const pageviewFactsPayloadSchema: z.ZodObject<{
|
|
4
|
-
url: z.ZodURL;
|
|
5
|
-
title: z.ZodOptional<z.ZodString>;
|
|
3
|
+
export declare const pageviewFactsPayloadSchema: z.ZodObject<{
|
|
6
4
|
referrer: z.ZodOptional<z.ZodString>;
|
|
7
|
-
runtime: z.ZodOptional<z.ZodString>;
|
|
8
5
|
releaseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
7
|
+
title: z.ZodOptional<z.ZodString>;
|
|
8
|
+
url: z.ZodURL;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
|
-
type PageviewFactsPayload = z.infer<typeof pageviewFactsPayloadSchema>;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { PageviewFactsPayload, pageviewFactsPayloadSchema };
|
|
10
|
+
export type PageviewFactsPayload = z.infer<typeof pageviewFactsPayloadSchema>;
|
|
11
|
+
//#endregion
|
package/dist/events/pageview.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from"zod";const pageviewFactsPayloadSchema=z.object({
|
|
1
|
+
import{z}from"zod";const pageviewFactsPayloadSchema=z.object({referrer:z.string().optional(),releaseId:z.string().nullable().optional(),runtime:z.string().optional(),title:z.string().optional(),url:z.url()});export{pageviewFactsPayloadSchema};
|
|
@@ -1 +1 @@
|
|
|
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({
|
|
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({branch:zod.z.string(),commitMessage:zod.z.string(),commitSha:zod.z.string().nullable(),provider:zod.z.literal(`github`),runId:zod.z.string().nullable().optional(),runUrl:zod.z.string().nullable().optional(),runnerName:zod.z.string().nullable().optional()}).meta({description:`Release source metadata coming from GitHub.`,id:`GithubReleaseSource`,title:`GithubReleaseSource`}),cliReleaseSourceSchema=zod.z.object({commitMessage:zod.z.string().nullable(),commitRef:zod.z.string().nullable(),commitSha:zod.z.string().nullable(),commitUrl:zod.z.string().nullable(),deploymentUrl:zod.z.string().nullable().optional(),environment:zod.z.string().nullable().optional(),provider:zod.z.literal(`cli`),runId:zod.z.string().nullable(),runUrl:zod.z.string().nullable(),runnerName:zod.z.string().nullable()}).meta({description:`Release source metadata from the Interfere CLI.`,id:`CliReleaseSource`,title:`CliReleaseSource`}),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({deploymentId:zod.z.string().nullable(),deploymentUrl:zod.z.string().nullable(),destinationReleaseId:zod.z.string().nullable(),environment:zod.z.string().nullable(),environmentName:zod.z.string().nullable(),environmentTarget:zod.z.string().nullable(),provider:zod.z.literal(`vercel`)}).meta({description:`Release destination metadata for a Vercel deployment.`,id:`VercelReleaseDestination`,title:`VercelReleaseDestination`}),cloudflareReleaseDestinationSchema=zod.z.object({accountId:zod.z.string().nullable(),deploymentUrl:zod.z.string().nullable(),destinationReleaseId:zod.z.string().nullable(),environment:zod.z.string().nullable(),environmentName:zod.z.string().nullable(),environmentTarget:zod.z.string().nullable(),provider:zod.z.literal(`cloudflare`),scriptName:zod.z.string().nullable(),versionId:zod.z.string().nullable()}).meta({description:`Release destination metadata for a Cloudflare Workers deployment.`,id:`CloudflareReleaseDestination`,title:`CloudflareReleaseDestination`}),cliReleaseDestinationSchema=zod.z.object({deploymentUrl:zod.z.string().nullable(),destinationReleaseId:zod.z.string().nullable(),environment:zod.z.string().nullable(),provider:zod.z.literal(`cli`)}).meta({description:`Release destination metadata from the Interfere CLI.`,id:`CliReleaseDestination`,title:`CliReleaseDestination`}),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`,`ghe_cloud`,`ghe_server`]).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,...require_integrations_platforms_cloudflare.cloudflareSourceIdEnvKeys]).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;
|
|
@@ -1,133 +1,132 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/integrations/index.d.ts
|
|
3
|
-
declare const githubReleaseSourceSchema: z.ZodObject<{
|
|
4
|
-
provider: z.ZodLiteral<"github">;
|
|
5
|
-
commitMessage: z.ZodString;
|
|
3
|
+
export declare const githubReleaseSourceSchema: z.ZodObject<{
|
|
6
4
|
branch: z.ZodString;
|
|
5
|
+
commitMessage: z.ZodString;
|
|
7
6
|
commitSha: z.ZodNullable<z.ZodString>;
|
|
8
|
-
|
|
7
|
+
provider: z.ZodLiteral<"github">;
|
|
9
8
|
runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
9
|
runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
runnerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
|
-
declare const cliReleaseSourceSchema: z.ZodObject<{
|
|
13
|
-
provider: z.ZodLiteral<"cli">;
|
|
14
|
-
commitSha: z.ZodNullable<z.ZodString>;
|
|
15
|
-
commitRef: z.ZodNullable<z.ZodString>;
|
|
12
|
+
export declare const cliReleaseSourceSchema: z.ZodObject<{
|
|
16
13
|
commitMessage: z.ZodNullable<z.ZodString>;
|
|
14
|
+
commitRef: z.ZodNullable<z.ZodString>;
|
|
15
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
17
16
|
commitUrl: z.ZodNullable<z.ZodString>;
|
|
18
|
-
|
|
17
|
+
deploymentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
provider: z.ZodLiteral<"cli">;
|
|
19
20
|
runId: z.ZodNullable<z.ZodString>;
|
|
20
21
|
runUrl: z.ZodNullable<z.ZodString>;
|
|
21
|
-
|
|
22
|
-
deploymentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
runnerName: z.ZodNullable<z.ZodString>;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
|
-
declare const releaseSourceMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
25
|
-
provider: z.ZodLiteral<"github">;
|
|
26
|
-
commitMessage: z.ZodString;
|
|
24
|
+
export declare const releaseSourceMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27
25
|
branch: z.ZodString;
|
|
26
|
+
commitMessage: z.ZodString;
|
|
28
27
|
commitSha: z.ZodNullable<z.ZodString>;
|
|
29
|
-
|
|
28
|
+
provider: z.ZodLiteral<"github">;
|
|
30
29
|
runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
30
|
runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
runnerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
provider: z.ZodLiteral<"cli">;
|
|
34
|
-
commitSha: z.ZodNullable<z.ZodString>;
|
|
35
|
-
commitRef: z.ZodNullable<z.ZodString>;
|
|
36
33
|
commitMessage: z.ZodNullable<z.ZodString>;
|
|
34
|
+
commitRef: z.ZodNullable<z.ZodString>;
|
|
35
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
37
36
|
commitUrl: z.ZodNullable<z.ZodString>;
|
|
38
|
-
|
|
37
|
+
deploymentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
provider: z.ZodLiteral<"cli">;
|
|
39
40
|
runId: z.ZodNullable<z.ZodString>;
|
|
40
41
|
runUrl: z.ZodNullable<z.ZodString>;
|
|
41
|
-
|
|
42
|
-
deploymentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
runnerName: z.ZodNullable<z.ZodString>;
|
|
43
43
|
}, z.core.$strip>], "provider">;
|
|
44
|
-
type ReleaseSourceMetadata = z.infer<typeof releaseSourceMetadataSchema>;
|
|
45
|
-
declare const releaseSourceProviderSchema: z.ZodEnum<{
|
|
44
|
+
export type ReleaseSourceMetadata = z.infer<typeof releaseSourceMetadataSchema>;
|
|
45
|
+
export declare const releaseSourceProviderSchema: z.ZodEnum<{
|
|
46
46
|
cli: "cli";
|
|
47
47
|
github: "github";
|
|
48
48
|
}>;
|
|
49
|
-
type ReleaseSourceProvider = z.infer<typeof releaseSourceProviderSchema>;
|
|
50
|
-
declare const vercelReleaseDestinationSchema: z.ZodObject<{
|
|
51
|
-
provider: z.ZodLiteral<"vercel">;
|
|
52
|
-
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
53
|
-
environment: z.ZodNullable<z.ZodString>;
|
|
49
|
+
export type ReleaseSourceProvider = z.infer<typeof releaseSourceProviderSchema>;
|
|
50
|
+
export declare const vercelReleaseDestinationSchema: z.ZodObject<{
|
|
54
51
|
deploymentId: z.ZodNullable<z.ZodString>;
|
|
55
52
|
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
53
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
54
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
56
55
|
environmentName: z.ZodNullable<z.ZodString>;
|
|
57
56
|
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
57
|
+
provider: z.ZodLiteral<"vercel">;
|
|
58
58
|
}, z.core.$strip>;
|
|
59
|
-
declare const cloudflareReleaseDestinationSchema: z.ZodObject<{
|
|
60
|
-
provider: z.ZodLiteral<"cloudflare">;
|
|
61
|
-
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
62
|
-
environment: z.ZodNullable<z.ZodString>;
|
|
63
|
-
versionId: z.ZodNullable<z.ZodString>;
|
|
64
|
-
scriptName: z.ZodNullable<z.ZodString>;
|
|
59
|
+
export declare const cloudflareReleaseDestinationSchema: z.ZodObject<{
|
|
65
60
|
accountId: z.ZodNullable<z.ZodString>;
|
|
66
61
|
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
62
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
63
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
67
64
|
environmentName: z.ZodNullable<z.ZodString>;
|
|
68
65
|
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
66
|
+
provider: z.ZodLiteral<"cloudflare">;
|
|
67
|
+
scriptName: z.ZodNullable<z.ZodString>;
|
|
68
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
69
69
|
}, z.core.$strip>;
|
|
70
|
-
declare const cliReleaseDestinationSchema: z.ZodObject<{
|
|
71
|
-
provider: z.ZodLiteral<"cli">;
|
|
72
|
-
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
73
|
-
environment: z.ZodNullable<z.ZodString>;
|
|
70
|
+
export declare const cliReleaseDestinationSchema: z.ZodObject<{
|
|
74
71
|
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
75
|
-
}, z.core.$strip>;
|
|
76
|
-
declare const releaseDestinationMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
77
|
-
provider: z.ZodLiteral<"vercel">;
|
|
78
72
|
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
79
73
|
environment: z.ZodNullable<z.ZodString>;
|
|
74
|
+
provider: z.ZodLiteral<"cli">;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export declare const releaseDestinationMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
80
77
|
deploymentId: z.ZodNullable<z.ZodString>;
|
|
81
78
|
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
79
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
80
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
82
81
|
environmentName: z.ZodNullable<z.ZodString>;
|
|
83
82
|
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
83
|
+
provider: z.ZodLiteral<"vercel">;
|
|
84
84
|
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
-
provider: z.ZodLiteral<"cloudflare">;
|
|
86
|
-
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
87
|
-
environment: z.ZodNullable<z.ZodString>;
|
|
88
|
-
versionId: z.ZodNullable<z.ZodString>;
|
|
89
|
-
scriptName: z.ZodNullable<z.ZodString>;
|
|
90
85
|
accountId: z.ZodNullable<z.ZodString>;
|
|
91
86
|
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
87
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
88
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
92
89
|
environmentName: z.ZodNullable<z.ZodString>;
|
|
93
90
|
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
91
|
+
provider: z.ZodLiteral<"cloudflare">;
|
|
92
|
+
scriptName: z.ZodNullable<z.ZodString>;
|
|
93
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
94
94
|
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
-
|
|
95
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
96
96
|
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
97
97
|
environment: z.ZodNullable<z.ZodString>;
|
|
98
|
-
|
|
98
|
+
provider: z.ZodLiteral<"cli">;
|
|
99
99
|
}, z.core.$strip>], "provider">;
|
|
100
|
-
type ReleaseDestinationMetadata = z.infer<typeof releaseDestinationMetadataSchema>;
|
|
101
|
-
declare const releaseDestinationProviderSchema: z.ZodEnum<{
|
|
100
|
+
export type ReleaseDestinationMetadata = z.infer<typeof releaseDestinationMetadataSchema>;
|
|
101
|
+
export declare const releaseDestinationProviderSchema: z.ZodEnum<{
|
|
102
102
|
cli: "cli";
|
|
103
103
|
cloudflare: "cloudflare";
|
|
104
104
|
vercel: "vercel";
|
|
105
105
|
}>;
|
|
106
|
-
type ReleaseDestinationProvider = z.infer<typeof releaseDestinationProviderSchema>;
|
|
107
|
-
declare const configuredSourceProviderSchema: z.ZodEnum<{
|
|
106
|
+
export type ReleaseDestinationProvider = z.infer<typeof releaseDestinationProviderSchema>;
|
|
107
|
+
export declare const configuredSourceProviderSchema: z.ZodEnum<{
|
|
108
108
|
ghe_cloud: "ghe_cloud";
|
|
109
109
|
ghe_server: "ghe_server";
|
|
110
110
|
github: "github";
|
|
111
111
|
}>;
|
|
112
|
-
type ConfiguredSourceProvider = z.infer<typeof configuredSourceProviderSchema>;
|
|
113
|
-
declare const configuredDestinationProviderSchema: z.ZodEnum<{
|
|
112
|
+
export type ConfiguredSourceProvider = z.infer<typeof configuredSourceProviderSchema>;
|
|
113
|
+
export declare const configuredDestinationProviderSchema: z.ZodEnum<{
|
|
114
114
|
cli: "cli";
|
|
115
115
|
cloudflare: "cloudflare";
|
|
116
116
|
vercel: "vercel";
|
|
117
117
|
}>;
|
|
118
|
-
type ConfiguredDestinationProvider = z.infer<typeof configuredDestinationProviderSchema>;
|
|
119
|
-
declare const sourceProviderSchema: z.ZodEnum<{
|
|
118
|
+
export type ConfiguredDestinationProvider = z.infer<typeof configuredDestinationProviderSchema>;
|
|
119
|
+
export declare const sourceProviderSchema: z.ZodEnum<{
|
|
120
120
|
ghe_cloud: "ghe_cloud";
|
|
121
121
|
ghe_server: "ghe_server";
|
|
122
122
|
github: "github";
|
|
123
123
|
}>;
|
|
124
|
-
type SourceProvider = z.infer<typeof sourceProviderSchema>;
|
|
125
|
-
declare const destinationProviderSchema: z.ZodEnum<{
|
|
124
|
+
export type SourceProvider = z.infer<typeof sourceProviderSchema>;
|
|
125
|
+
export declare const destinationProviderSchema: z.ZodEnum<{
|
|
126
126
|
cloudflare: "cloudflare";
|
|
127
127
|
vercel: "vercel";
|
|
128
128
|
}>;
|
|
129
|
-
type DestinationProvider = z.infer<typeof destinationProviderSchema>;
|
|
130
|
-
declare const releaseSourceIdEnvKeys: ("GITHUB_SHA" | "INTERFERE_SOURCE_ID" | "NEXT_BUILD_ID" | "NEXT_PUBLIC_INTERFERE_BUILD_ID" | "VERCEL_GIT_COMMIT_SHA" | "WORKERS_CI_COMMIT_SHA")[];
|
|
131
|
-
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")[];
|
|
132
|
-
//#endregion
|
|
133
|
-
export { ConfiguredDestinationProvider, ConfiguredSourceProvider, DestinationProvider, ReleaseDestinationMetadata, ReleaseDestinationProvider, ReleaseSourceMetadata, ReleaseSourceProvider, SourceProvider, cliReleaseDestinationSchema, cliReleaseSourceSchema, cloudflareReleaseDestinationSchema, configuredDestinationProviderSchema, configuredSourceProviderSchema, destinationProviderSchema, githubReleaseSourceSchema, releaseDestinationIdEnvKeys, releaseDestinationMetadataSchema, releaseDestinationProviderSchema, releaseSourceIdEnvKeys, releaseSourceMetadataSchema, releaseSourceProviderSchema, sourceProviderSchema, vercelReleaseDestinationSchema };
|
|
129
|
+
export type DestinationProvider = z.infer<typeof destinationProviderSchema>;
|
|
130
|
+
export declare const releaseSourceIdEnvKeys: ("GITHUB_SHA" | "INTERFERE_SOURCE_ID" | "NEXT_BUILD_ID" | "NEXT_PUBLIC_INTERFERE_BUILD_ID" | "VERCEL_GIT_COMMIT_SHA" | "WORKERS_CI_COMMIT_SHA")[];
|
|
131
|
+
export 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")[];
|
|
132
|
+
//#endregion
|
|
@@ -1,133 +1,132 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/integrations/index.d.ts
|
|
3
|
-
declare const githubReleaseSourceSchema: z.ZodObject<{
|
|
4
|
-
provider: z.ZodLiteral<"github">;
|
|
5
|
-
commitMessage: z.ZodString;
|
|
3
|
+
export declare const githubReleaseSourceSchema: z.ZodObject<{
|
|
6
4
|
branch: z.ZodString;
|
|
5
|
+
commitMessage: z.ZodString;
|
|
7
6
|
commitSha: z.ZodNullable<z.ZodString>;
|
|
8
|
-
|
|
7
|
+
provider: z.ZodLiteral<"github">;
|
|
9
8
|
runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
9
|
runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
runnerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
|
-
declare const cliReleaseSourceSchema: z.ZodObject<{
|
|
13
|
-
provider: z.ZodLiteral<"cli">;
|
|
14
|
-
commitSha: z.ZodNullable<z.ZodString>;
|
|
15
|
-
commitRef: z.ZodNullable<z.ZodString>;
|
|
12
|
+
export declare const cliReleaseSourceSchema: z.ZodObject<{
|
|
16
13
|
commitMessage: z.ZodNullable<z.ZodString>;
|
|
14
|
+
commitRef: z.ZodNullable<z.ZodString>;
|
|
15
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
17
16
|
commitUrl: z.ZodNullable<z.ZodString>;
|
|
18
|
-
|
|
17
|
+
deploymentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
provider: z.ZodLiteral<"cli">;
|
|
19
20
|
runId: z.ZodNullable<z.ZodString>;
|
|
20
21
|
runUrl: z.ZodNullable<z.ZodString>;
|
|
21
|
-
|
|
22
|
-
deploymentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
runnerName: z.ZodNullable<z.ZodString>;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
|
-
declare const releaseSourceMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
25
|
-
provider: z.ZodLiteral<"github">;
|
|
26
|
-
commitMessage: z.ZodString;
|
|
24
|
+
export declare const releaseSourceMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27
25
|
branch: z.ZodString;
|
|
26
|
+
commitMessage: z.ZodString;
|
|
28
27
|
commitSha: z.ZodNullable<z.ZodString>;
|
|
29
|
-
|
|
28
|
+
provider: z.ZodLiteral<"github">;
|
|
30
29
|
runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
30
|
runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
runnerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
provider: z.ZodLiteral<"cli">;
|
|
34
|
-
commitSha: z.ZodNullable<z.ZodString>;
|
|
35
|
-
commitRef: z.ZodNullable<z.ZodString>;
|
|
36
33
|
commitMessage: z.ZodNullable<z.ZodString>;
|
|
34
|
+
commitRef: z.ZodNullable<z.ZodString>;
|
|
35
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
37
36
|
commitUrl: z.ZodNullable<z.ZodString>;
|
|
38
|
-
|
|
37
|
+
deploymentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
provider: z.ZodLiteral<"cli">;
|
|
39
40
|
runId: z.ZodNullable<z.ZodString>;
|
|
40
41
|
runUrl: z.ZodNullable<z.ZodString>;
|
|
41
|
-
|
|
42
|
-
deploymentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
runnerName: z.ZodNullable<z.ZodString>;
|
|
43
43
|
}, z.core.$strip>], "provider">;
|
|
44
|
-
type ReleaseSourceMetadata = z.infer<typeof releaseSourceMetadataSchema>;
|
|
45
|
-
declare const releaseSourceProviderSchema: z.ZodEnum<{
|
|
44
|
+
export type ReleaseSourceMetadata = z.infer<typeof releaseSourceMetadataSchema>;
|
|
45
|
+
export declare const releaseSourceProviderSchema: z.ZodEnum<{
|
|
46
46
|
cli: "cli";
|
|
47
47
|
github: "github";
|
|
48
48
|
}>;
|
|
49
|
-
type ReleaseSourceProvider = z.infer<typeof releaseSourceProviderSchema>;
|
|
50
|
-
declare const vercelReleaseDestinationSchema: z.ZodObject<{
|
|
51
|
-
provider: z.ZodLiteral<"vercel">;
|
|
52
|
-
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
53
|
-
environment: z.ZodNullable<z.ZodString>;
|
|
49
|
+
export type ReleaseSourceProvider = z.infer<typeof releaseSourceProviderSchema>;
|
|
50
|
+
export declare const vercelReleaseDestinationSchema: z.ZodObject<{
|
|
54
51
|
deploymentId: z.ZodNullable<z.ZodString>;
|
|
55
52
|
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
53
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
54
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
56
55
|
environmentName: z.ZodNullable<z.ZodString>;
|
|
57
56
|
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
57
|
+
provider: z.ZodLiteral<"vercel">;
|
|
58
58
|
}, z.core.$strip>;
|
|
59
|
-
declare const cloudflareReleaseDestinationSchema: z.ZodObject<{
|
|
60
|
-
provider: z.ZodLiteral<"cloudflare">;
|
|
61
|
-
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
62
|
-
environment: z.ZodNullable<z.ZodString>;
|
|
63
|
-
versionId: z.ZodNullable<z.ZodString>;
|
|
64
|
-
scriptName: z.ZodNullable<z.ZodString>;
|
|
59
|
+
export declare const cloudflareReleaseDestinationSchema: z.ZodObject<{
|
|
65
60
|
accountId: z.ZodNullable<z.ZodString>;
|
|
66
61
|
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
62
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
63
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
67
64
|
environmentName: z.ZodNullable<z.ZodString>;
|
|
68
65
|
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
66
|
+
provider: z.ZodLiteral<"cloudflare">;
|
|
67
|
+
scriptName: z.ZodNullable<z.ZodString>;
|
|
68
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
69
69
|
}, z.core.$strip>;
|
|
70
|
-
declare const cliReleaseDestinationSchema: z.ZodObject<{
|
|
71
|
-
provider: z.ZodLiteral<"cli">;
|
|
72
|
-
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
73
|
-
environment: z.ZodNullable<z.ZodString>;
|
|
70
|
+
export declare const cliReleaseDestinationSchema: z.ZodObject<{
|
|
74
71
|
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
75
|
-
}, z.core.$strip>;
|
|
76
|
-
declare const releaseDestinationMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
77
|
-
provider: z.ZodLiteral<"vercel">;
|
|
78
72
|
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
79
73
|
environment: z.ZodNullable<z.ZodString>;
|
|
74
|
+
provider: z.ZodLiteral<"cli">;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export declare const releaseDestinationMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
80
77
|
deploymentId: z.ZodNullable<z.ZodString>;
|
|
81
78
|
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
79
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
80
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
82
81
|
environmentName: z.ZodNullable<z.ZodString>;
|
|
83
82
|
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
83
|
+
provider: z.ZodLiteral<"vercel">;
|
|
84
84
|
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
-
provider: z.ZodLiteral<"cloudflare">;
|
|
86
|
-
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
87
|
-
environment: z.ZodNullable<z.ZodString>;
|
|
88
|
-
versionId: z.ZodNullable<z.ZodString>;
|
|
89
|
-
scriptName: z.ZodNullable<z.ZodString>;
|
|
90
85
|
accountId: z.ZodNullable<z.ZodString>;
|
|
91
86
|
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
87
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
88
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
92
89
|
environmentName: z.ZodNullable<z.ZodString>;
|
|
93
90
|
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
91
|
+
provider: z.ZodLiteral<"cloudflare">;
|
|
92
|
+
scriptName: z.ZodNullable<z.ZodString>;
|
|
93
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
94
94
|
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
-
|
|
95
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
96
96
|
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
97
97
|
environment: z.ZodNullable<z.ZodString>;
|
|
98
|
-
|
|
98
|
+
provider: z.ZodLiteral<"cli">;
|
|
99
99
|
}, z.core.$strip>], "provider">;
|
|
100
|
-
type ReleaseDestinationMetadata = z.infer<typeof releaseDestinationMetadataSchema>;
|
|
101
|
-
declare const releaseDestinationProviderSchema: z.ZodEnum<{
|
|
100
|
+
export type ReleaseDestinationMetadata = z.infer<typeof releaseDestinationMetadataSchema>;
|
|
101
|
+
export declare const releaseDestinationProviderSchema: z.ZodEnum<{
|
|
102
102
|
cli: "cli";
|
|
103
103
|
cloudflare: "cloudflare";
|
|
104
104
|
vercel: "vercel";
|
|
105
105
|
}>;
|
|
106
|
-
type ReleaseDestinationProvider = z.infer<typeof releaseDestinationProviderSchema>;
|
|
107
|
-
declare const configuredSourceProviderSchema: z.ZodEnum<{
|
|
106
|
+
export type ReleaseDestinationProvider = z.infer<typeof releaseDestinationProviderSchema>;
|
|
107
|
+
export declare const configuredSourceProviderSchema: z.ZodEnum<{
|
|
108
108
|
ghe_cloud: "ghe_cloud";
|
|
109
109
|
ghe_server: "ghe_server";
|
|
110
110
|
github: "github";
|
|
111
111
|
}>;
|
|
112
|
-
type ConfiguredSourceProvider = z.infer<typeof configuredSourceProviderSchema>;
|
|
113
|
-
declare const configuredDestinationProviderSchema: z.ZodEnum<{
|
|
112
|
+
export type ConfiguredSourceProvider = z.infer<typeof configuredSourceProviderSchema>;
|
|
113
|
+
export declare const configuredDestinationProviderSchema: z.ZodEnum<{
|
|
114
114
|
cli: "cli";
|
|
115
115
|
cloudflare: "cloudflare";
|
|
116
116
|
vercel: "vercel";
|
|
117
117
|
}>;
|
|
118
|
-
type ConfiguredDestinationProvider = z.infer<typeof configuredDestinationProviderSchema>;
|
|
119
|
-
declare const sourceProviderSchema: z.ZodEnum<{
|
|
118
|
+
export type ConfiguredDestinationProvider = z.infer<typeof configuredDestinationProviderSchema>;
|
|
119
|
+
export declare const sourceProviderSchema: z.ZodEnum<{
|
|
120
120
|
ghe_cloud: "ghe_cloud";
|
|
121
121
|
ghe_server: "ghe_server";
|
|
122
122
|
github: "github";
|
|
123
123
|
}>;
|
|
124
|
-
type SourceProvider = z.infer<typeof sourceProviderSchema>;
|
|
125
|
-
declare const destinationProviderSchema: z.ZodEnum<{
|
|
124
|
+
export type SourceProvider = z.infer<typeof sourceProviderSchema>;
|
|
125
|
+
export declare const destinationProviderSchema: z.ZodEnum<{
|
|
126
126
|
cloudflare: "cloudflare";
|
|
127
127
|
vercel: "vercel";
|
|
128
128
|
}>;
|
|
129
|
-
type DestinationProvider = z.infer<typeof destinationProviderSchema>;
|
|
130
|
-
declare const releaseSourceIdEnvKeys: ("GITHUB_SHA" | "INTERFERE_SOURCE_ID" | "NEXT_BUILD_ID" | "NEXT_PUBLIC_INTERFERE_BUILD_ID" | "VERCEL_GIT_COMMIT_SHA" | "WORKERS_CI_COMMIT_SHA")[];
|
|
131
|
-
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")[];
|
|
132
|
-
//#endregion
|
|
133
|
-
export { ConfiguredDestinationProvider, ConfiguredSourceProvider, DestinationProvider, ReleaseDestinationMetadata, ReleaseDestinationProvider, ReleaseSourceMetadata, ReleaseSourceProvider, SourceProvider, cliReleaseDestinationSchema, cliReleaseSourceSchema, cloudflareReleaseDestinationSchema, configuredDestinationProviderSchema, configuredSourceProviderSchema, destinationProviderSchema, githubReleaseSourceSchema, releaseDestinationIdEnvKeys, releaseDestinationMetadataSchema, releaseDestinationProviderSchema, releaseSourceIdEnvKeys, releaseSourceMetadataSchema, releaseSourceProviderSchema, sourceProviderSchema, vercelReleaseDestinationSchema };
|
|
129
|
+
export type DestinationProvider = z.infer<typeof destinationProviderSchema>;
|
|
130
|
+
export declare const releaseSourceIdEnvKeys: ("GITHUB_SHA" | "INTERFERE_SOURCE_ID" | "NEXT_BUILD_ID" | "NEXT_PUBLIC_INTERFERE_BUILD_ID" | "VERCEL_GIT_COMMIT_SHA" | "WORKERS_CI_COMMIT_SHA")[];
|
|
131
|
+
export 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")[];
|
|
132
|
+
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cloudflareDestinationIdEnvKeys,cloudflareSourceIdEnvKeys}from"./platforms/cloudflare.mjs";import{githubSourceIdEnvKeys}from"./platforms/github.mjs";import{vercelDestinationIdEnvKeys}from"./platforms/vercel.mjs";import{z}from"zod";const githubReleaseSourceSchema=z.object({
|
|
1
|
+
import{cloudflareDestinationIdEnvKeys,cloudflareSourceIdEnvKeys}from"./platforms/cloudflare.mjs";import{githubSourceIdEnvKeys}from"./platforms/github.mjs";import{vercelDestinationIdEnvKeys}from"./platforms/vercel.mjs";import{z}from"zod";const githubReleaseSourceSchema=z.object({branch:z.string(),commitMessage:z.string(),commitSha:z.string().nullable(),provider:z.literal(`github`),runId:z.string().nullable().optional(),runUrl:z.string().nullable().optional(),runnerName:z.string().nullable().optional()}).meta({description:`Release source metadata coming from GitHub.`,id:`GithubReleaseSource`,title:`GithubReleaseSource`}),cliReleaseSourceSchema=z.object({commitMessage:z.string().nullable(),commitRef:z.string().nullable(),commitSha:z.string().nullable(),commitUrl:z.string().nullable(),deploymentUrl:z.string().nullable().optional(),environment:z.string().nullable().optional(),provider:z.literal(`cli`),runId:z.string().nullable(),runUrl:z.string().nullable(),runnerName:z.string().nullable()}).meta({description:`Release source metadata from the Interfere CLI.`,id:`CliReleaseSource`,title:`CliReleaseSource`}),releaseSourceMetadataSchema=z.discriminatedUnion(`provider`,[githubReleaseSourceSchema,cliReleaseSourceSchema]).meta({id:`ReleaseSource`,title:`ReleaseSource`}),releaseSourceProviderSchema=z.enum([`github`,`cli`]).meta({id:`ReleaseSourceProvider`,title:`ReleaseSourceProvider`}),vercelReleaseDestinationSchema=z.object({deploymentId:z.string().nullable(),deploymentUrl:z.string().nullable(),destinationReleaseId:z.string().nullable(),environment:z.string().nullable(),environmentName:z.string().nullable(),environmentTarget:z.string().nullable(),provider:z.literal(`vercel`)}).meta({description:`Release destination metadata for a Vercel deployment.`,id:`VercelReleaseDestination`,title:`VercelReleaseDestination`}),cloudflareReleaseDestinationSchema=z.object({accountId:z.string().nullable(),deploymentUrl:z.string().nullable(),destinationReleaseId:z.string().nullable(),environment:z.string().nullable(),environmentName:z.string().nullable(),environmentTarget:z.string().nullable(),provider:z.literal(`cloudflare`),scriptName:z.string().nullable(),versionId:z.string().nullable()}).meta({description:`Release destination metadata for a Cloudflare Workers deployment.`,id:`CloudflareReleaseDestination`,title:`CloudflareReleaseDestination`}),cliReleaseDestinationSchema=z.object({deploymentUrl:z.string().nullable(),destinationReleaseId:z.string().nullable(),environment:z.string().nullable(),provider:z.literal(`cli`)}).meta({description:`Release destination metadata from the Interfere CLI.`,id:`CliReleaseDestination`,title:`CliReleaseDestination`}),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`,`ghe_cloud`,`ghe_server`]).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,...cloudflareSourceIdEnvKeys]).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 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const cliIntegration=zod.z.object({
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const cliIntegration=zod.z.object({metadata:zod.z.object({installationUrl:zod.z.string().nullable().default(null)}),name:zod.z.literal(`cli`)});exports.cliIntegration=cliIntegration;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/integrations/platforms/cli.d.ts
|
|
3
|
-
declare const cliIntegration: z.ZodObject<{
|
|
4
|
-
name: z.ZodLiteral<"cli">;
|
|
3
|
+
export declare const cliIntegration: z.ZodObject<{
|
|
5
4
|
metadata: z.ZodObject<{
|
|
6
5
|
installationUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
7
6
|
}, z.core.$strip>;
|
|
7
|
+
name: z.ZodLiteral<"cli">;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { cliIntegration };
|
|
9
|
+
//#endregion
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/integrations/platforms/cli.d.ts
|
|
3
|
-
declare const cliIntegration: z.ZodObject<{
|
|
4
|
-
name: z.ZodLiteral<"cli">;
|
|
3
|
+
export declare const cliIntegration: z.ZodObject<{
|
|
5
4
|
metadata: z.ZodObject<{
|
|
6
5
|
installationUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
7
6
|
}, z.core.$strip>;
|
|
7
|
+
name: z.ZodLiteral<"cli">;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { cliIntegration };
|
|
9
|
+
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from"zod";const cliIntegration=z.object({
|
|
1
|
+
import{z}from"zod";const cliIntegration=z.object({metadata:z.object({installationUrl:z.string().nullable().default(null)}),name:z.literal(`cli`)});export{cliIntegration};
|
|
@@ -1 +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,cloudflareSourceIdEnvKeys=zod.z.enum([`WORKERS_CI_COMMIT_SHA`]).options,cloudflareAccountMetadata=zod.z.object({accountType:zod.z.literal(`account`),
|
|
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,cloudflareSourceIdEnvKeys=zod.z.enum([`WORKERS_CI_COMMIT_SHA`]).options,cloudflareAccountMetadata=zod.z.object({accountType:zod.z.literal(`account`),avatar:zod.z.string().nullable().default(null),id:zod.z.string(),installationUrl:zod.z.string().nullable(),name:zod.z.string().nullable().default(null),refreshToken:zod.z.string().nullable().default(null),versionCutoffs:zod.z.record(zod.z.string(),zod.z.string()).default({}),workers:zod.z.record(zod.z.string(),zod.z.string()).default({})}),cloudflareMetadataSchema=zod.z.discriminatedUnion(`accountType`,[cloudflareAccountMetadata]),cloudflareIntegration=zod.z.object({metadata:cloudflareMetadataSchema,name:zod.z.literal(`cloudflare`)});exports.cloudflareAccountMetadata=cloudflareAccountMetadata,exports.cloudflareDestinationIdEnvKeys=cloudflareDestinationIdEnvKeys,exports.cloudflareIntegration=cloudflareIntegration,exports.cloudflareSourceIdEnvKeys=cloudflareSourceIdEnvKeys;
|
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/integrations/platforms/cloudflare.d.ts
|
|
3
|
-
declare const cloudflareDestinationIdEnvKeys: ("CF_VERSION_ID" | "WORKERS_CI_BUILD_UUID")[];
|
|
4
|
-
declare const cloudflareSourceIdEnvKeys: "WORKERS_CI_COMMIT_SHA"[];
|
|
5
|
-
declare const cloudflareAccountMetadata: z.ZodObject<{
|
|
3
|
+
export declare const cloudflareDestinationIdEnvKeys: ("CF_VERSION_ID" | "WORKERS_CI_BUILD_UUID")[];
|
|
4
|
+
export declare const cloudflareSourceIdEnvKeys: "WORKERS_CI_COMMIT_SHA"[];
|
|
5
|
+
export declare const cloudflareAccountMetadata: z.ZodObject<{
|
|
6
6
|
accountType: z.ZodLiteral<"account">;
|
|
7
|
-
id: z.ZodString;
|
|
8
|
-
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
9
7
|
avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
id: z.ZodString;
|
|
10
9
|
installationUrl: z.ZodNullable<z.ZodString>;
|
|
11
|
-
|
|
10
|
+
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
12
11
|
refreshToken: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
13
12
|
versionCutoffs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13
|
+
workers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
|
-
declare const cloudflareIntegration: z.ZodObject<{
|
|
16
|
-
name: z.ZodLiteral<"cloudflare">;
|
|
15
|
+
export declare const cloudflareIntegration: z.ZodObject<{
|
|
17
16
|
metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18
17
|
accountType: z.ZodLiteral<"account">;
|
|
19
|
-
id: z.ZodString;
|
|
20
|
-
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
21
18
|
avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
id: z.ZodString;
|
|
22
20
|
installationUrl: z.ZodNullable<z.ZodString>;
|
|
23
|
-
|
|
21
|
+
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
24
22
|
refreshToken: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
25
23
|
versionCutoffs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
24
|
+
workers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
26
25
|
}, z.core.$strip>], "accountType">;
|
|
26
|
+
name: z.ZodLiteral<"cloudflare">;
|
|
27
27
|
}, z.core.$strip>;
|
|
28
|
-
//#endregion
|
|
29
|
-
export { cloudflareAccountMetadata, cloudflareDestinationIdEnvKeys, cloudflareIntegration, cloudflareSourceIdEnvKeys };
|
|
28
|
+
//#endregion
|