@interfere/types 9.0.2 → 9.0.3-canary.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/README.md +1 -1
- package/dist/data/frame.cjs +1 -0
- package/dist/data/frame.d.cts +27 -0
- package/dist/data/frame.d.mts +2 -1
- package/dist/data/frame.mjs +2 -1
- package/dist/data/session.cjs +1 -0
- package/dist/data/session.d.cts +8 -0
- package/dist/data/session.d.mts +2 -1
- package/dist/data/session.mjs +2 -1
- package/dist/data/source-maps.cjs +1 -0
- package/dist/data/source-maps.d.cts +151 -0
- package/dist/data/source-maps.d.mts +7 -2
- package/dist/data/source-maps.mjs +2 -1
- package/dist/events/error.cjs +1 -0
- package/dist/events/error.d.cts +196 -0
- package/dist/events/error.d.mts +2 -1
- package/dist/events/error.mjs +2 -1
- package/dist/events/pageleave.cjs +1 -0
- package/dist/events/pageleave.d.cts +13 -0
- package/dist/events/pageleave.d.mts +2 -1
- package/dist/events/pageleave.mjs +2 -1
- package/dist/events/pageview.cjs +1 -0
- package/dist/events/pageview.d.cts +14 -0
- package/dist/events/pageview.d.mts +2 -1
- package/dist/events/pageview.mjs +2 -1
- package/dist/integrations/index.cjs +1 -0
- package/dist/integrations/index.d.cts +77 -0
- package/dist/integrations/index.d.mts +31 -1
- package/dist/integrations/index.mjs +2 -1
- package/dist/integrations/platforms/cli.cjs +1 -0
- package/dist/integrations/platforms/cli.d.cts +12 -0
- package/dist/integrations/platforms/cli.d.mts +12 -0
- package/dist/integrations/platforms/cli.mjs +2 -0
- package/dist/integrations/platforms/github.cjs +1 -0
- package/dist/integrations/platforms/github.d.cts +77 -0
- package/dist/integrations/platforms/github.d.mts +63 -1
- package/dist/integrations/platforms/github.mjs +2 -1
- package/dist/integrations/platforms/slack.cjs +1 -0
- package/dist/integrations/platforms/slack.d.cts +33 -0
- package/dist/integrations/platforms/slack.d.mts +2 -1
- package/dist/integrations/platforms/slack.mjs +2 -1
- package/dist/integrations/platforms/vercel.cjs +1 -0
- package/dist/integrations/platforms/vercel.d.cts +47 -0
- package/dist/integrations/platforms/vercel.d.mts +2 -1
- package/dist/integrations/platforms/vercel.mjs +2 -1
- package/dist/releases/definition.cjs +1 -0
- package/dist/releases/definition.d.cts +71 -0
- package/dist/releases/definition.d.mts +16 -1
- package/dist/releases/definition.mjs +2 -1
- package/dist/releases/slug.cjs +1 -0
- package/dist/releases/slug.d.cts +24 -0
- package/dist/releases/slug.d.mts +3 -1
- package/dist/releases/slug.mjs +2 -1
- package/dist/sdk/env.cjs +1 -0
- package/dist/sdk/env.d.cts +6 -0
- package/dist/sdk/env.d.mts +2 -1
- package/dist/sdk/env.mjs +2 -1
- package/dist/sdk/envelope.cjs +1 -0
- package/dist/sdk/envelope.d.cts +1441 -0
- package/dist/sdk/envelope.d.mts +14 -61
- package/dist/sdk/envelope.mjs +2 -1
- package/dist/sdk/errors.cjs +2 -0
- package/dist/sdk/errors.d.cts +156 -0
- package/dist/sdk/errors.d.mts +4 -1
- package/dist/sdk/errors.mjs +3 -2
- package/dist/sdk/geo.cjs +1 -0
- package/dist/sdk/geo.d.cts +11 -0
- package/dist/sdk/geo.d.mts +2 -1
- package/dist/sdk/geo.mjs +2 -1
- package/dist/sdk/identify.cjs +1 -0
- package/dist/sdk/identify.d.cts +35 -0
- package/dist/sdk/identify.d.mts +2 -1
- package/dist/sdk/identify.mjs +2 -1
- package/dist/sdk/plugins/context/browser.cjs +1 -0
- package/dist/sdk/plugins/context/browser.d.cts +92 -0
- package/dist/sdk/plugins/context/browser.d.mts +2 -1
- package/dist/sdk/plugins/context/browser.mjs +2 -1
- package/dist/sdk/plugins/context/edge.cjs +1 -0
- package/dist/sdk/plugins/context/edge.d.cts +10 -0
- package/dist/sdk/plugins/context/edge.d.mts +2 -1
- package/dist/sdk/plugins/context/edge.mjs +2 -1
- package/dist/sdk/plugins/context/next.cjs +1 -0
- package/dist/sdk/plugins/context/next.d.cts +62 -0
- package/dist/sdk/plugins/context/next.d.mts +2 -1
- package/dist/sdk/plugins/context/next.mjs +2 -1
- package/dist/sdk/plugins/context/node.cjs +1 -0
- package/dist/sdk/plugins/context/node.d.cts +13 -0
- package/dist/sdk/plugins/context/node.d.mts +2 -1
- package/dist/sdk/plugins/context/node.mjs +2 -1
- package/dist/sdk/plugins/manifest.cjs +1 -0
- package/dist/sdk/plugins/manifest.d.cts +60 -0
- package/dist/sdk/plugins/manifest.d.mts +2 -1
- package/dist/sdk/plugins/manifest.mjs +2 -1
- package/dist/sdk/plugins/payload/errors.cjs +1 -0
- package/dist/sdk/plugins/payload/errors.d.cts +65 -0
- package/dist/sdk/plugins/payload/errors.d.mts +2 -1
- package/dist/sdk/plugins/payload/errors.mjs +2 -1
- package/dist/sdk/plugins/payload/page-events.cjs +1 -0
- package/dist/sdk/plugins/payload/page-events.d.cts +20 -0
- package/dist/sdk/plugins/payload/page-events.d.mts +2 -1
- package/dist/sdk/plugins/payload/page-events.mjs +2 -1
- package/dist/sdk/plugins/payload/rage-click.cjs +1 -0
- package/dist/sdk/plugins/payload/rage-click.d.cts +16 -0
- package/dist/sdk/plugins/payload/rage-click.d.mts +2 -1
- package/dist/sdk/plugins/payload/rage-click.mjs +2 -1
- package/dist/sdk/plugins/payload/replay.cjs +1 -0
- package/dist/sdk/plugins/payload/replay.d.cts +14 -0
- package/dist/sdk/plugins/payload/replay.d.mts +2 -1
- package/dist/sdk/plugins/payload/replay.mjs +2 -1
- package/dist/sdk/remote-config.cjs +1 -0
- package/dist/sdk/remote-config.d.cts +39 -0
- package/dist/sdk/remote-config.d.mts +2 -1
- package/dist/sdk/remote-config.mjs +2 -1
- package/dist/sdk/runtime.cjs +1 -0
- package/dist/sdk/runtime.d.cts +41 -0
- package/dist/sdk/runtime.d.mts +27 -7
- package/dist/sdk/runtime.mjs +2 -1
- package/package.json +120 -45
- package/dist/data/frame.d.mts.map +0 -1
- package/dist/data/frame.mjs.map +0 -1
- package/dist/data/session.d.mts.map +0 -1
- package/dist/data/session.mjs.map +0 -1
- package/dist/data/source-maps.d.mts.map +0 -1
- package/dist/data/source-maps.mjs.map +0 -1
- package/dist/events/error.d.mts.map +0 -1
- package/dist/events/error.mjs.map +0 -1
- package/dist/events/pageleave.d.mts.map +0 -1
- package/dist/events/pageleave.mjs.map +0 -1
- package/dist/events/pageview.d.mts.map +0 -1
- package/dist/events/pageview.mjs.map +0 -1
- package/dist/integrations/index.d.mts.map +0 -1
- package/dist/integrations/index.mjs.map +0 -1
- package/dist/integrations/platforms/github.d.mts.map +0 -1
- package/dist/integrations/platforms/github.mjs.map +0 -1
- package/dist/integrations/platforms/slack.d.mts.map +0 -1
- package/dist/integrations/platforms/slack.mjs.map +0 -1
- package/dist/integrations/platforms/vercel.d.mts.map +0 -1
- package/dist/integrations/platforms/vercel.mjs.map +0 -1
- package/dist/releases/definition.d.mts.map +0 -1
- package/dist/releases/definition.mjs.map +0 -1
- package/dist/releases/slug.d.mts.map +0 -1
- package/dist/releases/slug.mjs.map +0 -1
- package/dist/sdk/env.d.mts.map +0 -1
- package/dist/sdk/env.mjs.map +0 -1
- package/dist/sdk/envelope.d.mts.map +0 -1
- package/dist/sdk/envelope.mjs.map +0 -1
- package/dist/sdk/errors.d.mts.map +0 -1
- package/dist/sdk/errors.mjs.map +0 -1
- package/dist/sdk/geo.d.mts.map +0 -1
- package/dist/sdk/geo.mjs.map +0 -1
- package/dist/sdk/identify.d.mts.map +0 -1
- package/dist/sdk/identify.mjs.map +0 -1
- package/dist/sdk/plugins/context/browser.d.mts.map +0 -1
- package/dist/sdk/plugins/context/browser.mjs.map +0 -1
- package/dist/sdk/plugins/context/edge.d.mts.map +0 -1
- package/dist/sdk/plugins/context/edge.mjs.map +0 -1
- package/dist/sdk/plugins/context/next.d.mts.map +0 -1
- package/dist/sdk/plugins/context/next.mjs.map +0 -1
- package/dist/sdk/plugins/context/node.d.mts.map +0 -1
- package/dist/sdk/plugins/context/node.mjs.map +0 -1
- package/dist/sdk/plugins/manifest.d.mts.map +0 -1
- package/dist/sdk/plugins/manifest.mjs.map +0 -1
- package/dist/sdk/plugins/payload/errors.d.mts.map +0 -1
- package/dist/sdk/plugins/payload/errors.mjs.map +0 -1
- package/dist/sdk/plugins/payload/page-events.d.mts.map +0 -1
- package/dist/sdk/plugins/payload/page-events.mjs.map +0 -1
- package/dist/sdk/plugins/payload/rage-click.d.mts.map +0 -1
- package/dist/sdk/plugins/payload/rage-click.mjs.map +0 -1
- package/dist/sdk/plugins/payload/replay.d.mts.map +0 -1
- package/dist/sdk/plugins/payload/replay.mjs.map +0 -1
- package/dist/sdk/remote-config.d.mts.map +0 -1
- package/dist/sdk/remote-config.mjs.map +0 -1
- package/dist/sdk/runtime.d.mts.map +0 -1
- package/dist/sdk/runtime.mjs.map +0 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/index.d.ts
|
|
4
|
+
declare const githubReleaseSourceSchema: z.ZodObject<{
|
|
5
|
+
provider: z.ZodLiteral<"github">;
|
|
6
|
+
commitMessage: z.ZodString;
|
|
7
|
+
branch: z.ZodString;
|
|
8
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
9
|
+
runnerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const cliReleaseSourceSchema: z.ZodObject<{
|
|
14
|
+
provider: z.ZodLiteral<"cli">;
|
|
15
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
16
|
+
commitRef: z.ZodNullable<z.ZodString>;
|
|
17
|
+
commitMessage: z.ZodNullable<z.ZodString>;
|
|
18
|
+
commitUrl: z.ZodNullable<z.ZodString>;
|
|
19
|
+
runnerName: z.ZodNullable<z.ZodString>;
|
|
20
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
21
|
+
runUrl: z.ZodNullable<z.ZodString>;
|
|
22
|
+
environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
deploymentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const releaseSourceMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
26
|
+
provider: z.ZodLiteral<"github">;
|
|
27
|
+
commitMessage: z.ZodString;
|
|
28
|
+
branch: z.ZodString;
|
|
29
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
30
|
+
runnerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
provider: z.ZodLiteral<"cli">;
|
|
35
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
36
|
+
commitRef: z.ZodNullable<z.ZodString>;
|
|
37
|
+
commitMessage: z.ZodNullable<z.ZodString>;
|
|
38
|
+
commitUrl: z.ZodNullable<z.ZodString>;
|
|
39
|
+
runnerName: z.ZodNullable<z.ZodString>;
|
|
40
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
41
|
+
runUrl: z.ZodNullable<z.ZodString>;
|
|
42
|
+
environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
deploymentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
}, z.core.$strip>], "provider">;
|
|
45
|
+
type ReleaseSourceMetadata = z.infer<typeof releaseSourceMetadataSchema>;
|
|
46
|
+
declare const vercelReleaseDestinationSchema: z.ZodObject<{
|
|
47
|
+
provider: z.ZodLiteral<"vercel">;
|
|
48
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
49
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
50
|
+
deploymentId: z.ZodNullable<z.ZodString>;
|
|
51
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
52
|
+
environmentName: z.ZodNullable<z.ZodString>;
|
|
53
|
+
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
declare const releaseDestinationMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
56
|
+
provider: z.ZodLiteral<"vercel">;
|
|
57
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
58
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
59
|
+
deploymentId: z.ZodNullable<z.ZodString>;
|
|
60
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
61
|
+
environmentName: z.ZodNullable<z.ZodString>;
|
|
62
|
+
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
63
|
+
}, z.core.$strip>], "provider">;
|
|
64
|
+
type ReleaseDestinationMetadata = z.infer<typeof releaseDestinationMetadataSchema>;
|
|
65
|
+
declare const sourceProviderSchema: z.ZodEnum<{
|
|
66
|
+
github: "github";
|
|
67
|
+
}>;
|
|
68
|
+
type SourceProvider = z.infer<typeof sourceProviderSchema>;
|
|
69
|
+
declare const destinationProviderSchema: z.ZodEnum<{
|
|
70
|
+
vercel: "vercel";
|
|
71
|
+
}>;
|
|
72
|
+
type DestinationProvider = z.infer<typeof destinationProviderSchema>;
|
|
73
|
+
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")[];
|
|
75
|
+
//#endregion
|
|
76
|
+
export { DestinationProvider, ReleaseDestinationMetadata, ReleaseSourceMetadata, SourceProvider, cliReleaseSourceSchema, destinationProviderSchema, githubReleaseSourceSchema, releaseDestinationIdEnvKeys, releaseDestinationMetadataSchema, releaseSourceIdEnvKeys, releaseSourceMetadataSchema, sourceProviderSchema, vercelReleaseDestinationSchema };
|
|
77
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -6,12 +6,41 @@ declare const githubReleaseSourceSchema: z.ZodObject<{
|
|
|
6
6
|
commitMessage: z.ZodString;
|
|
7
7
|
branch: z.ZodString;
|
|
8
8
|
commitSha: z.ZodNullable<z.ZodString>;
|
|
9
|
+
runnerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const cliReleaseSourceSchema: z.ZodObject<{
|
|
14
|
+
provider: z.ZodLiteral<"cli">;
|
|
15
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
16
|
+
commitRef: z.ZodNullable<z.ZodString>;
|
|
17
|
+
commitMessage: z.ZodNullable<z.ZodString>;
|
|
18
|
+
commitUrl: z.ZodNullable<z.ZodString>;
|
|
19
|
+
runnerName: z.ZodNullable<z.ZodString>;
|
|
20
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
21
|
+
runUrl: z.ZodNullable<z.ZodString>;
|
|
22
|
+
environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
deploymentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
24
|
}, z.core.$strip>;
|
|
10
25
|
declare const releaseSourceMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11
26
|
provider: z.ZodLiteral<"github">;
|
|
12
27
|
commitMessage: z.ZodString;
|
|
13
28
|
branch: z.ZodString;
|
|
14
29
|
commitSha: z.ZodNullable<z.ZodString>;
|
|
30
|
+
runnerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
provider: z.ZodLiteral<"cli">;
|
|
35
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
36
|
+
commitRef: z.ZodNullable<z.ZodString>;
|
|
37
|
+
commitMessage: z.ZodNullable<z.ZodString>;
|
|
38
|
+
commitUrl: z.ZodNullable<z.ZodString>;
|
|
39
|
+
runnerName: z.ZodNullable<z.ZodString>;
|
|
40
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
41
|
+
runUrl: z.ZodNullable<z.ZodString>;
|
|
42
|
+
environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
deploymentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
44
|
}, z.core.$strip>], "provider">;
|
|
16
45
|
type ReleaseSourceMetadata = z.infer<typeof releaseSourceMetadataSchema>;
|
|
17
46
|
declare const vercelReleaseDestinationSchema: z.ZodObject<{
|
|
@@ -44,4 +73,5 @@ type DestinationProvider = z.infer<typeof destinationProviderSchema>;
|
|
|
44
73
|
declare const releaseSourceIdEnvKeys: ("GITHUB_SHA" | "INTERFERE_SOURCE_ID" | "NEXT_BUILD_ID" | "NEXT_PUBLIC_INTERFERE_BUILD_ID" | "VERCEL_GIT_COMMIT_SHA")[];
|
|
45
74
|
declare const releaseDestinationIdEnvKeys: ("GITHUB_SHA" | "INTERFERE_DESTINATION_ID" | "NEXT_PUBLIC_INTERFERE_RELEASE_ID" | "VERCEL_DEPLOYMENT_ID" | "VERCEL_GIT_COMMIT_SHA")[];
|
|
46
75
|
//#endregion
|
|
47
|
-
export { DestinationProvider, ReleaseDestinationMetadata, ReleaseSourceMetadata, SourceProvider, destinationProviderSchema, githubReleaseSourceSchema, releaseDestinationIdEnvKeys, releaseDestinationMetadataSchema, releaseSourceIdEnvKeys, releaseSourceMetadataSchema, sourceProviderSchema, vercelReleaseDestinationSchema };
|
|
76
|
+
export { DestinationProvider, ReleaseDestinationMetadata, ReleaseSourceMetadata, SourceProvider, cliReleaseSourceSchema, destinationProviderSchema, githubReleaseSourceSchema, releaseDestinationIdEnvKeys, releaseDestinationMetadataSchema, releaseSourceIdEnvKeys, releaseSourceMetadataSchema, sourceProviderSchema, vercelReleaseDestinationSchema };
|
|
77
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{githubSourceIdEnvKeys
|
|
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`}),sourceProviderSchema=z.enum([`github`]).meta({id:`SourceProvider`,title:`SourceProvider`}),destinationProviderSchema=z.enum([`vercel`]).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,...githubSourceIdEnvKeys]).options;export{cliReleaseSourceSchema,destinationProviderSchema,githubReleaseSourceSchema,releaseDestinationIdEnvKeys,releaseDestinationMetadataSchema,releaseSourceIdEnvKeys,releaseSourceMetadataSchema,sourceProviderSchema,vercelReleaseDestinationSchema};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const cliIntegration=zod.z.object({name:zod.z.literal(`cli`),metadata:zod.z.object({installationUrl:zod.z.string().nullable().default(null)})});exports.cliIntegration=cliIntegration;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/platforms/cli.d.ts
|
|
4
|
+
declare const cliIntegration: z.ZodObject<{
|
|
5
|
+
name: z.ZodLiteral<"cli">;
|
|
6
|
+
metadata: z.ZodObject<{
|
|
7
|
+
installationUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { cliIntegration };
|
|
12
|
+
//# sourceMappingURL=cli.d.cts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/platforms/cli.d.ts
|
|
4
|
+
declare const cliIntegration: z.ZodObject<{
|
|
5
|
+
name: z.ZodLiteral<"cli">;
|
|
6
|
+
metadata: z.ZodObject<{
|
|
7
|
+
installationUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { cliIntegration };
|
|
12
|
+
//# sourceMappingURL=cli.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const HOST_REGEX=/^https?:\/\//,PATH_REGEX=/\/.*$/,githubSourceIdEnvKeys=zod.z.enum([`VERCEL_GIT_COMMIT_SHA`,`GITHUB_SHA`]).options,githubHostFlavorSchema=zod.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=zod.z.object({accountType:zod.z.string(),avatarUrl:zod.z.string().nullable().default(null),repositories:zod.z.record(zod.z.string(),zod.z.string()),installationUrl:zod.z.string().nullable(),host:zod.z.string().default(GITHUB_COM_HOST),flavor:githubHostFlavorSchema.default(`github_com`)}),githubIntegration=zod.z.object({name:zod.z.literal(`github`),metadata:githubMetadata}),gheCloudIntegration=zod.z.object({name:zod.z.literal(`ghe_cloud`),metadata:githubMetadata}),gheServerIntegration=zod.z.object({name:zod.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)}exports.GITHUB_COM_API_BASE_URL=GITHUB_COM_API_BASE_URL,exports.GITHUB_COM_HOST=GITHUB_COM_HOST,exports.GITHUB_COM_WEB_BASE_URL=GITHUB_COM_WEB_BASE_URL,exports.PROVIDER_FLAVOR=PROVIDER_FLAVOR,exports.detectGithubHostFlavor=detectGithubHostFlavor,exports.gheCloudIntegration=gheCloudIntegration,exports.gheServerIntegration=gheServerIntegration,exports.githubFamilyProviders=githubFamilyProviders,exports.githubHostFlavorSchema=githubHostFlavorSchema,exports.githubIntegration=githubIntegration,exports.githubSourceIdEnvKeys=githubSourceIdEnvKeys,exports.normalizeGithubHost=normalizeGithubHost,exports.providerFromHost=providerFromHost,exports.resolveGithubHostUrls=resolveGithubHostUrls;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/platforms/github.d.ts
|
|
4
|
+
declare const githubSourceIdEnvKeys: ("GITHUB_SHA" | "VERCEL_GIT_COMMIT_SHA")[];
|
|
5
|
+
declare const githubHostFlavorSchema: z.ZodEnum<{
|
|
6
|
+
ghe_cloud: "ghe_cloud";
|
|
7
|
+
ghe_server: "ghe_server";
|
|
8
|
+
github_com: "github_com";
|
|
9
|
+
}>;
|
|
10
|
+
type GithubHostFlavor = z.infer<typeof githubHostFlavorSchema>;
|
|
11
|
+
declare const GITHUB_COM_HOST = "github.com";
|
|
12
|
+
declare const GITHUB_COM_API_BASE_URL = "https://api.github.com";
|
|
13
|
+
declare const GITHUB_COM_WEB_BASE_URL = "https://github.com";
|
|
14
|
+
declare const githubIntegration: z.ZodObject<{
|
|
15
|
+
name: z.ZodLiteral<"github">;
|
|
16
|
+
metadata: z.ZodObject<{
|
|
17
|
+
accountType: z.ZodString;
|
|
18
|
+
avatarUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
repositories: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
20
|
+
installationUrl: z.ZodNullable<z.ZodString>;
|
|
21
|
+
host: z.ZodDefault<z.ZodString>;
|
|
22
|
+
flavor: z.ZodDefault<z.ZodEnum<{
|
|
23
|
+
ghe_cloud: "ghe_cloud";
|
|
24
|
+
ghe_server: "ghe_server";
|
|
25
|
+
github_com: "github_com";
|
|
26
|
+
}>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const gheCloudIntegration: z.ZodObject<{
|
|
30
|
+
name: z.ZodLiteral<"ghe_cloud">;
|
|
31
|
+
metadata: z.ZodObject<{
|
|
32
|
+
accountType: z.ZodString;
|
|
33
|
+
avatarUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
repositories: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
35
|
+
installationUrl: z.ZodNullable<z.ZodString>;
|
|
36
|
+
host: z.ZodDefault<z.ZodString>;
|
|
37
|
+
flavor: z.ZodDefault<z.ZodEnum<{
|
|
38
|
+
ghe_cloud: "ghe_cloud";
|
|
39
|
+
ghe_server: "ghe_server";
|
|
40
|
+
github_com: "github_com";
|
|
41
|
+
}>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
declare const gheServerIntegration: z.ZodObject<{
|
|
45
|
+
name: z.ZodLiteral<"ghe_server">;
|
|
46
|
+
metadata: z.ZodObject<{
|
|
47
|
+
accountType: z.ZodString;
|
|
48
|
+
avatarUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
repositories: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
50
|
+
installationUrl: z.ZodNullable<z.ZodString>;
|
|
51
|
+
host: z.ZodDefault<z.ZodString>;
|
|
52
|
+
flavor: z.ZodDefault<z.ZodEnum<{
|
|
53
|
+
ghe_cloud: "ghe_cloud";
|
|
54
|
+
ghe_server: "ghe_server";
|
|
55
|
+
github_com: "github_com";
|
|
56
|
+
}>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
declare const githubFamilyProviders: readonly ["github", "ghe_cloud", "ghe_server"];
|
|
60
|
+
type GithubFamilyProvider = (typeof githubFamilyProviders)[number];
|
|
61
|
+
declare const PROVIDER_FLAVOR: Record<GithubFamilyProvider, GithubHostFlavor>;
|
|
62
|
+
interface GithubHostUrls {
|
|
63
|
+
apiBaseUrl: string;
|
|
64
|
+
flavor: GithubHostFlavor;
|
|
65
|
+
host: string;
|
|
66
|
+
webBaseUrl: string;
|
|
67
|
+
}
|
|
68
|
+
declare function normalizeGithubHost(host: string): string;
|
|
69
|
+
declare function detectGithubHostFlavor(host: string): GithubHostFlavor;
|
|
70
|
+
declare function providerFromHost(host: string): GithubFamilyProvider;
|
|
71
|
+
declare function resolveGithubHostUrls(input: {
|
|
72
|
+
host: string;
|
|
73
|
+
flavor?: GithubHostFlavor;
|
|
74
|
+
}): GithubHostUrls;
|
|
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
|
|
@@ -2,6 +2,15 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/integrations/platforms/github.d.ts
|
|
4
4
|
declare const githubSourceIdEnvKeys: ("GITHUB_SHA" | "VERCEL_GIT_COMMIT_SHA")[];
|
|
5
|
+
declare const githubHostFlavorSchema: z.ZodEnum<{
|
|
6
|
+
ghe_cloud: "ghe_cloud";
|
|
7
|
+
ghe_server: "ghe_server";
|
|
8
|
+
github_com: "github_com";
|
|
9
|
+
}>;
|
|
10
|
+
type GithubHostFlavor = z.infer<typeof githubHostFlavorSchema>;
|
|
11
|
+
declare const GITHUB_COM_HOST = "github.com";
|
|
12
|
+
declare const GITHUB_COM_API_BASE_URL = "https://api.github.com";
|
|
13
|
+
declare const GITHUB_COM_WEB_BASE_URL = "https://github.com";
|
|
5
14
|
declare const githubIntegration: z.ZodObject<{
|
|
6
15
|
name: z.ZodLiteral<"github">;
|
|
7
16
|
metadata: z.ZodObject<{
|
|
@@ -9,7 +18,60 @@ declare const githubIntegration: z.ZodObject<{
|
|
|
9
18
|
avatarUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
10
19
|
repositories: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
11
20
|
installationUrl: z.ZodNullable<z.ZodString>;
|
|
21
|
+
host: z.ZodDefault<z.ZodString>;
|
|
22
|
+
flavor: z.ZodDefault<z.ZodEnum<{
|
|
23
|
+
ghe_cloud: "ghe_cloud";
|
|
24
|
+
ghe_server: "ghe_server";
|
|
25
|
+
github_com: "github_com";
|
|
26
|
+
}>>;
|
|
12
27
|
}, z.core.$strip>;
|
|
13
28
|
}, z.core.$strip>;
|
|
29
|
+
declare const gheCloudIntegration: z.ZodObject<{
|
|
30
|
+
name: z.ZodLiteral<"ghe_cloud">;
|
|
31
|
+
metadata: z.ZodObject<{
|
|
32
|
+
accountType: z.ZodString;
|
|
33
|
+
avatarUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
repositories: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
35
|
+
installationUrl: z.ZodNullable<z.ZodString>;
|
|
36
|
+
host: z.ZodDefault<z.ZodString>;
|
|
37
|
+
flavor: z.ZodDefault<z.ZodEnum<{
|
|
38
|
+
ghe_cloud: "ghe_cloud";
|
|
39
|
+
ghe_server: "ghe_server";
|
|
40
|
+
github_com: "github_com";
|
|
41
|
+
}>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
declare const gheServerIntegration: z.ZodObject<{
|
|
45
|
+
name: z.ZodLiteral<"ghe_server">;
|
|
46
|
+
metadata: z.ZodObject<{
|
|
47
|
+
accountType: z.ZodString;
|
|
48
|
+
avatarUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
repositories: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
50
|
+
installationUrl: z.ZodNullable<z.ZodString>;
|
|
51
|
+
host: z.ZodDefault<z.ZodString>;
|
|
52
|
+
flavor: z.ZodDefault<z.ZodEnum<{
|
|
53
|
+
ghe_cloud: "ghe_cloud";
|
|
54
|
+
ghe_server: "ghe_server";
|
|
55
|
+
github_com: "github_com";
|
|
56
|
+
}>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
declare const githubFamilyProviders: readonly ["github", "ghe_cloud", "ghe_server"];
|
|
60
|
+
type GithubFamilyProvider = (typeof githubFamilyProviders)[number];
|
|
61
|
+
declare const PROVIDER_FLAVOR: Record<GithubFamilyProvider, GithubHostFlavor>;
|
|
62
|
+
interface GithubHostUrls {
|
|
63
|
+
apiBaseUrl: string;
|
|
64
|
+
flavor: GithubHostFlavor;
|
|
65
|
+
host: string;
|
|
66
|
+
webBaseUrl: string;
|
|
67
|
+
}
|
|
68
|
+
declare function normalizeGithubHost(host: string): string;
|
|
69
|
+
declare function detectGithubHostFlavor(host: string): GithubHostFlavor;
|
|
70
|
+
declare function providerFromHost(host: string): GithubFamilyProvider;
|
|
71
|
+
declare function resolveGithubHostUrls(input: {
|
|
72
|
+
host: string;
|
|
73
|
+
flavor?: GithubHostFlavor;
|
|
74
|
+
}): GithubHostUrls;
|
|
14
75
|
//#endregion
|
|
15
|
-
export { githubIntegration, githubSourceIdEnvKeys };
|
|
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
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{z
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const routableCategorySchema=zod.z.enum([`problems`,`team`,`collaboration`]),slackChatRoutingEntrySchema=zod.z.object({channelId:zod.z.string(),channelName:zod.z.string()}),slackIntegration=zod.z.object({name:zod.z.literal(`slack`),metadata:zod.z.object({teamId:zod.z.string(),teamName:zod.z.string(),installationUrl:zod.z.string().nullable(),chatRouting:zod.z.partialRecord(routableCategorySchema,slackChatRoutingEntrySchema).default({})})});exports.routableCategorySchema=routableCategorySchema,exports.slackChatRoutingEntrySchema=slackChatRoutingEntrySchema,exports.slackIntegration=slackIntegration;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/platforms/slack.d.ts
|
|
4
|
+
declare const routableCategorySchema: z.ZodEnum<{
|
|
5
|
+
collaboration: "collaboration";
|
|
6
|
+
problems: "problems";
|
|
7
|
+
team: "team";
|
|
8
|
+
}>;
|
|
9
|
+
type RoutableCategory = z.infer<typeof routableCategorySchema>;
|
|
10
|
+
declare const slackChatRoutingEntrySchema: z.ZodObject<{
|
|
11
|
+
channelId: z.ZodString;
|
|
12
|
+
channelName: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
type SlackChatRoutingEntry = z.infer<typeof slackChatRoutingEntrySchema>;
|
|
15
|
+
declare const slackIntegration: z.ZodObject<{
|
|
16
|
+
name: z.ZodLiteral<"slack">;
|
|
17
|
+
metadata: z.ZodObject<{
|
|
18
|
+
teamId: z.ZodString;
|
|
19
|
+
teamName: z.ZodString;
|
|
20
|
+
installationUrl: z.ZodNullable<z.ZodString>;
|
|
21
|
+
chatRouting: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
|
|
22
|
+
collaboration: "collaboration";
|
|
23
|
+
problems: "problems";
|
|
24
|
+
team: "team";
|
|
25
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
26
|
+
channelId: z.ZodString;
|
|
27
|
+
channelName: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { RoutableCategory, SlackChatRoutingEntry, routableCategorySchema, slackChatRoutingEntrySchema, slackIntegration };
|
|
33
|
+
//# sourceMappingURL=slack.d.cts.map
|
|
@@ -29,4 +29,5 @@ 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 };
|
|
32
|
+
export { RoutableCategory, SlackChatRoutingEntry, routableCategorySchema, slackChatRoutingEntrySchema, slackIntegration };
|
|
33
|
+
//# sourceMappingURL=slack.d.mts.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{z
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const vercelDestinationIdEnvKeys=zod.z.enum([`VERCEL_DEPLOYMENT_ID`]).options,vercelMetadataBase=zod.z.object({avatar:zod.z.string().nullable().default(null),name:zod.z.string().nullable().default(null),installationUrl:zod.z.string().nullable(),projects:zod.z.record(zod.z.string(),zod.z.string()).default({})}),vercelTeamMetadata=vercelMetadataBase.extend({accountType:zod.z.literal(`team`),id:zod.z.string(),slug:zod.z.string()}),vercelUserMetadata=vercelMetadataBase.extend({accountType:zod.z.literal(`user`),id:zod.z.string(),username:zod.z.string(),email:zod.z.string()}),vercelMetadataSchema=zod.z.discriminatedUnion(`accountType`,[vercelTeamMetadata,vercelUserMetadata]),vercelIntegration=zod.z.object({name:zod.z.literal(`vercel`),metadata:vercelMetadataSchema});exports.vercelDestinationIdEnvKeys=vercelDestinationIdEnvKeys,exports.vercelIntegration=vercelIntegration,exports.vercelTeamMetadata=vercelTeamMetadata,exports.vercelUserMetadata=vercelUserMetadata;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/platforms/vercel.d.ts
|
|
4
|
+
declare const vercelDestinationIdEnvKeys: "VERCEL_DEPLOYMENT_ID"[];
|
|
5
|
+
declare const vercelTeamMetadata: z.ZodObject<{
|
|
6
|
+
avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
installationUrl: z.ZodNullable<z.ZodString>;
|
|
9
|
+
projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10
|
+
accountType: z.ZodLiteral<"team">;
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
slug: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const vercelUserMetadata: z.ZodObject<{
|
|
15
|
+
avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
installationUrl: z.ZodNullable<z.ZodString>;
|
|
18
|
+
projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
19
|
+
accountType: z.ZodLiteral<"user">;
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
username: z.ZodString;
|
|
22
|
+
email: z.ZodString;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const vercelIntegration: z.ZodObject<{
|
|
25
|
+
name: z.ZodLiteral<"vercel">;
|
|
26
|
+
metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27
|
+
avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
installationUrl: z.ZodNullable<z.ZodString>;
|
|
30
|
+
projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
31
|
+
accountType: z.ZodLiteral<"team">;
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
slug: z.ZodString;
|
|
34
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
+
avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
installationUrl: z.ZodNullable<z.ZodString>;
|
|
38
|
+
projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
39
|
+
accountType: z.ZodLiteral<"user">;
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
username: z.ZodString;
|
|
42
|
+
email: z.ZodString;
|
|
43
|
+
}, z.core.$strip>], "accountType">;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
//#endregion
|
|
46
|
+
export { vercelDestinationIdEnvKeys, vercelIntegration, vercelTeamMetadata, vercelUserMetadata };
|
|
47
|
+
//# sourceMappingURL=vercel.d.cts.map
|
|
@@ -43,4 +43,5 @@ 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 };
|
|
46
|
+
export { vercelDestinationIdEnvKeys, vercelIntegration, vercelTeamMetadata, vercelUserMetadata };
|
|
47
|
+
//# sourceMappingURL=vercel.d.mts.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{z
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const require_integrations_index=require("../integrations/index.cjs"),require_releases_slug=require("./slug.cjs");let zod=require("zod");const releaseStatusSchema=zod.z.enum([`pending`,`building`,`ready`,`errored`,`canceled`]).meta({id:`ReleaseStatus`,title:`ReleaseStatus`}),orgRefSchema=zod.z.object({id:zod.z.string(),slug:zod.z.string()}).meta({id:`OrgRef`,title:`OrgRef`}),surfaceRefSchema=zod.z.object({id:zod.z.string(),slug:zod.z.string()}).meta({id:`SurfaceRef`,title:`SurfaceRef`}),createReleaseRequest=zod.z.object({source:require_integrations_index.releaseSourceMetadataSchema,destination:require_integrations_index.releaseDestinationMetadataSchema.nullable(),buildId:zod.z.string(),slug:zod.z.string().optional(),producerVersion:zod.z.string().optional()}).meta({id:`CreateReleaseRequest`,title:`CreateReleaseRequest`,description:`Request body for creating a release.`}),createReleaseResponse=zod.z.object({org:orgRefSchema,surface:surfaceRefSchema,source:zod.z.object({id:zod.z.string()}).meta({id:`ReleaseSourceRef`,title:`ReleaseSourceRef`}),destination:zod.z.object({id:zod.z.string(),slug:require_releases_slug.releaseSlugSchema,environment:zod.z.string().nullable()}).meta({id:`ReleaseDestinationRef`,title:`ReleaseDestinationRef`}),build:zod.z.object({hash:zod.z.string()}).meta({id:`ReleaseBuildRef`,title:`ReleaseBuildRef`})}).meta({id:`CreateReleaseResponse`,title:`CreateReleaseResponse`,description:`Response body returned after creating a release.`});exports.createReleaseRequest=createReleaseRequest,exports.createReleaseResponse=createReleaseResponse,exports.releaseStatusSchema=releaseStatusSchema;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/releases/definition.d.ts
|
|
4
|
+
declare const releaseStatusSchema: z.ZodEnum<{
|
|
5
|
+
building: "building";
|
|
6
|
+
canceled: "canceled";
|
|
7
|
+
errored: "errored";
|
|
8
|
+
pending: "pending";
|
|
9
|
+
ready: "ready";
|
|
10
|
+
}>;
|
|
11
|
+
type ReleaseStatus = z.infer<typeof releaseStatusSchema>;
|
|
12
|
+
declare const createReleaseRequest: z.ZodObject<{
|
|
13
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14
|
+
provider: z.ZodLiteral<"github">;
|
|
15
|
+
commitMessage: z.ZodString;
|
|
16
|
+
branch: z.ZodString;
|
|
17
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
18
|
+
runnerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
provider: z.ZodLiteral<"cli">;
|
|
23
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
24
|
+
commitRef: z.ZodNullable<z.ZodString>;
|
|
25
|
+
commitMessage: z.ZodNullable<z.ZodString>;
|
|
26
|
+
commitUrl: z.ZodNullable<z.ZodString>;
|
|
27
|
+
runnerName: z.ZodNullable<z.ZodString>;
|
|
28
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
29
|
+
runUrl: z.ZodNullable<z.ZodString>;
|
|
30
|
+
environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
deploymentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
}, z.core.$strip>], "provider">;
|
|
33
|
+
destination: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
34
|
+
provider: z.ZodLiteral<"vercel">;
|
|
35
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
36
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
37
|
+
deploymentId: z.ZodNullable<z.ZodString>;
|
|
38
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
39
|
+
environmentName: z.ZodNullable<z.ZodString>;
|
|
40
|
+
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>], "provider">>;
|
|
42
|
+
buildId: z.ZodString;
|
|
43
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
44
|
+
producerVersion: z.ZodOptional<z.ZodString>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
type CreateReleaseRequest = z.infer<typeof createReleaseRequest>;
|
|
47
|
+
declare const createReleaseResponse: z.ZodObject<{
|
|
48
|
+
org: z.ZodObject<{
|
|
49
|
+
id: z.ZodString;
|
|
50
|
+
slug: z.ZodString;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
surface: z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
slug: z.ZodString;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
source: z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
destination: z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
slug: z.core.$ZodBranded<z.ZodTemplateLiteral<`rel_${string}`>, "ReleaseSlug", "out">;
|
|
62
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
build: z.ZodObject<{
|
|
65
|
+
hash: z.ZodString;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
type CreateReleaseResponse = z.infer<typeof createReleaseResponse>;
|
|
69
|
+
//#endregion
|
|
70
|
+
export { CreateReleaseRequest, CreateReleaseResponse, ReleaseStatus, createReleaseRequest, createReleaseResponse, releaseStatusSchema };
|
|
71
|
+
//# sourceMappingURL=definition.d.cts.map
|
|
@@ -15,6 +15,20 @@ declare const createReleaseRequest: z.ZodObject<{
|
|
|
15
15
|
commitMessage: z.ZodString;
|
|
16
16
|
branch: z.ZodString;
|
|
17
17
|
commitSha: z.ZodNullable<z.ZodString>;
|
|
18
|
+
runnerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
provider: z.ZodLiteral<"cli">;
|
|
23
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
24
|
+
commitRef: z.ZodNullable<z.ZodString>;
|
|
25
|
+
commitMessage: z.ZodNullable<z.ZodString>;
|
|
26
|
+
commitUrl: z.ZodNullable<z.ZodString>;
|
|
27
|
+
runnerName: z.ZodNullable<z.ZodString>;
|
|
28
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
29
|
+
runUrl: z.ZodNullable<z.ZodString>;
|
|
30
|
+
environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
deploymentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
32
|
}, z.core.$strip>], "provider">;
|
|
19
33
|
destination: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
20
34
|
provider: z.ZodLiteral<"vercel">;
|
|
@@ -53,4 +67,5 @@ declare const createReleaseResponse: z.ZodObject<{
|
|
|
53
67
|
}, z.core.$strip>;
|
|
54
68
|
type CreateReleaseResponse = z.infer<typeof createReleaseResponse>;
|
|
55
69
|
//#endregion
|
|
56
|
-
export { CreateReleaseRequest, CreateReleaseResponse, ReleaseStatus, createReleaseRequest, createReleaseResponse, releaseStatusSchema };
|
|
70
|
+
export { CreateReleaseRequest, CreateReleaseResponse, ReleaseStatus, createReleaseRequest, createReleaseResponse, releaseStatusSchema };
|
|
71
|
+
//# sourceMappingURL=definition.d.mts.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{releaseDestinationMetadataSchema
|
|
1
|
+
import{releaseDestinationMetadataSchema,releaseSourceMetadataSchema}from"../integrations/index.mjs";import{releaseSlugSchema}from"./slug.mjs";import{z}from"zod";const releaseStatusSchema=z.enum([`pending`,`building`,`ready`,`errored`,`canceled`]).meta({id:`ReleaseStatus`,title:`ReleaseStatus`}),orgRefSchema=z.object({id:z.string(),slug:z.string()}).meta({id:`OrgRef`,title:`OrgRef`}),surfaceRefSchema=z.object({id:z.string(),slug:z.string()}).meta({id:`SurfaceRef`,title:`SurfaceRef`}),createReleaseRequest=z.object({source:releaseSourceMetadataSchema,destination:releaseDestinationMetadataSchema.nullable(),buildId:z.string(),slug:z.string().optional(),producerVersion:z.string().optional()}).meta({id:`CreateReleaseRequest`,title:`CreateReleaseRequest`,description:`Request body for creating a release.`}),createReleaseResponse=z.object({org:orgRefSchema,surface:surfaceRefSchema,source:z.object({id:z.string()}).meta({id:`ReleaseSourceRef`,title:`ReleaseSourceRef`}),destination:z.object({id:z.string(),slug:releaseSlugSchema,environment:z.string().nullable()}).meta({id:`ReleaseDestinationRef`,title:`ReleaseDestinationRef`}),build:z.object({hash:z.string()}).meta({id:`ReleaseBuildRef`,title:`ReleaseBuildRef`})}).meta({id:`CreateReleaseResponse`,title:`CreateReleaseResponse`,description:`Response body returned after creating a release.`});export{createReleaseRequest,createReleaseResponse,releaseStatusSchema};
|
|
2
|
+
//# sourceMappingURL=definition.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const SLUG_PREFIX=`rel_`,releaseSlugSchema=zod.z.templateLiteral([SLUG_PREFIX,zod.z.string().regex(/^[0-9a-f]{16}$/)]).brand(),LOCAL_DEV_RELEASE_SLUG=releaseSlugSchema.parse(`rel_0000000000000000`);function deriveReleaseSlug(commitSha){return releaseSlugSchema.parse(`${SLUG_PREFIX}${commitSha.toLowerCase().slice(0,16)}`)}exports.LOCAL_DEV_RELEASE_SLUG=LOCAL_DEV_RELEASE_SLUG,exports.deriveReleaseSlug=deriveReleaseSlug,exports.releaseSlugSchema=releaseSlugSchema;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/releases/slug.d.ts
|
|
4
|
+
declare const releaseSlugSchema: z.core.$ZodBranded<z.ZodTemplateLiteral<`rel_${string}`>, "ReleaseSlug", "out">;
|
|
5
|
+
type ReleaseSlug = z.infer<typeof releaseSlugSchema>;
|
|
6
|
+
declare const LOCAL_DEV_RELEASE_SLUG: `rel_${string}` & z.core.$brand<"ReleaseSlug">;
|
|
7
|
+
/**
|
|
8
|
+
* Derives a release slug from a commit SHA. Both ends of the wire — the
|
|
9
|
+
* build step that stamps the slug into the bundle, and any server-side
|
|
10
|
+
* upsert that reaches the same commit — compute the same `rel_<16hex>`
|
|
11
|
+
* shape with no shared secret, so no round-trip negotiation is needed.
|
|
12
|
+
*
|
|
13
|
+
* Git commit SHAs are uniformly distributed hex; the leading 16 chars give
|
|
14
|
+
* 64 bits of entropy, which is the same width the collector regex enforces.
|
|
15
|
+
* Cross-surface collisions on the same commit are intentional (eyeball-
|
|
16
|
+
* correlate slug to commit) — lookups are scoped by `(surfaceId, slug)`.
|
|
17
|
+
*
|
|
18
|
+
* Return type is `ReleaseSlug` (template-literal branded) so consumers
|
|
19
|
+
* can pass the result into branded sites without a re-validate.
|
|
20
|
+
*/
|
|
21
|
+
declare function deriveReleaseSlug(commitSha: string): ReleaseSlug;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { LOCAL_DEV_RELEASE_SLUG, ReleaseSlug, deriveReleaseSlug, releaseSlugSchema };
|
|
24
|
+
//# sourceMappingURL=slug.d.cts.map
|
package/dist/releases/slug.d.mts
CHANGED
|
@@ -3,6 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/releases/slug.d.ts
|
|
4
4
|
declare const releaseSlugSchema: z.core.$ZodBranded<z.ZodTemplateLiteral<`rel_${string}`>, "ReleaseSlug", "out">;
|
|
5
5
|
type ReleaseSlug = z.infer<typeof releaseSlugSchema>;
|
|
6
|
+
declare const LOCAL_DEV_RELEASE_SLUG: `rel_${string}` & z.core.$brand<"ReleaseSlug">;
|
|
6
7
|
/**
|
|
7
8
|
* Derives a release slug from a commit SHA. Both ends of the wire — the
|
|
8
9
|
* build step that stamps the slug into the bundle, and any server-side
|
|
@@ -19,4 +20,5 @@ type ReleaseSlug = z.infer<typeof releaseSlugSchema>;
|
|
|
19
20
|
*/
|
|
20
21
|
declare function deriveReleaseSlug(commitSha: string): ReleaseSlug;
|
|
21
22
|
//#endregion
|
|
22
|
-
export { ReleaseSlug, deriveReleaseSlug, releaseSlugSchema };
|
|
23
|
+
export { LOCAL_DEV_RELEASE_SLUG, ReleaseSlug, deriveReleaseSlug, releaseSlugSchema };
|
|
24
|
+
//# sourceMappingURL=slug.d.mts.map
|