@interfere/types 9.0.3-canary.0 → 9.0.3-canary.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/data/frame.d.cts +1 -2
- package/dist/data/frame.d.mts +1 -2
- package/dist/data/frame.mjs +1 -2
- package/dist/data/session.d.cts +1 -2
- package/dist/data/session.d.mts +1 -2
- package/dist/data/session.mjs +1 -2
- package/dist/data/source-maps.d.cts +1 -2
- package/dist/data/source-maps.d.mts +1 -2
- package/dist/data/source-maps.mjs +1 -2
- package/dist/events/error.d.cts +1 -2
- package/dist/events/error.d.mts +1 -2
- package/dist/events/error.mjs +1 -2
- package/dist/events/pageleave.d.cts +1 -2
- package/dist/events/pageleave.d.mts +1 -2
- package/dist/events/pageleave.mjs +1 -2
- package/dist/events/pageview.d.cts +1 -2
- package/dist/events/pageview.d.mts +1 -2
- package/dist/events/pageview.mjs +1 -2
- package/dist/integrations/index.cjs +1 -1
- package/dist/integrations/index.d.cts +85 -3
- package/dist/integrations/index.d.mts +85 -3
- package/dist/integrations/index.mjs +1 -2
- package/dist/integrations/platforms/cli.d.cts +1 -2
- package/dist/integrations/platforms/cli.d.mts +1 -2
- package/dist/integrations/platforms/cli.mjs +1 -2
- package/dist/integrations/platforms/cloudflare.cjs +1 -0
- package/dist/integrations/platforms/cloudflare.d.cts +29 -0
- package/dist/integrations/platforms/cloudflare.d.mts +29 -0
- package/dist/integrations/platforms/cloudflare.mjs +1 -0
- package/dist/integrations/platforms/github.cjs +1 -1
- package/dist/integrations/platforms/github.d.cts +62 -2
- package/dist/integrations/platforms/github.d.mts +62 -2
- package/dist/integrations/platforms/github.mjs +1 -2
- package/dist/integrations/platforms/slack.d.cts +1 -2
- package/dist/integrations/platforms/slack.d.mts +1 -2
- package/dist/integrations/platforms/slack.mjs +1 -2
- package/dist/integrations/platforms/vercel.d.cts +1 -2
- package/dist/integrations/platforms/vercel.d.mts +1 -2
- package/dist/integrations/platforms/vercel.mjs +1 -2
- package/dist/releases/definition.d.cts +30 -2
- package/dist/releases/definition.d.mts +30 -2
- package/dist/releases/definition.mjs +1 -2
- package/dist/releases/slug.d.cts +1 -2
- package/dist/releases/slug.d.mts +1 -2
- package/dist/releases/slug.mjs +1 -2
- package/dist/sdk/cli-destination.cjs +1 -0
- package/dist/sdk/cli-destination.d.cts +7 -0
- package/dist/sdk/cli-destination.d.mts +7 -0
- package/dist/sdk/cli-destination.mjs +1 -0
- package/dist/sdk/deploy-environment.cjs +2 -0
- package/dist/sdk/deploy-environment.d.cts +5 -0
- package/dist/sdk/deploy-environment.d.mts +5 -0
- package/dist/sdk/deploy-environment.mjs +2 -0
- package/dist/sdk/env.d.cts +1 -2
- package/dist/sdk/env.d.mts +1 -2
- package/dist/sdk/env.mjs +1 -2
- package/dist/sdk/envelope.d.cts +13 -62
- package/dist/sdk/envelope.d.mts +13 -62
- package/dist/sdk/envelope.mjs +1 -2
- package/dist/sdk/errors.cjs +1 -1
- package/dist/sdk/errors.d.cts +9 -2
- package/dist/sdk/errors.d.mts +9 -2
- package/dist/sdk/errors.mjs +2 -3
- package/dist/sdk/geo.d.cts +1 -2
- package/dist/sdk/geo.d.mts +1 -2
- package/dist/sdk/geo.mjs +1 -2
- package/dist/sdk/identify.d.cts +1 -2
- package/dist/sdk/identify.d.mts +1 -2
- package/dist/sdk/identify.mjs +1 -2
- package/dist/sdk/plugins/context/browser.d.cts +1 -2
- package/dist/sdk/plugins/context/browser.d.mts +1 -2
- package/dist/sdk/plugins/context/browser.mjs +1 -2
- package/dist/sdk/plugins/context/edge.d.cts +1 -2
- package/dist/sdk/plugins/context/edge.d.mts +1 -2
- package/dist/sdk/plugins/context/edge.mjs +1 -2
- package/dist/sdk/plugins/context/next.d.cts +1 -2
- package/dist/sdk/plugins/context/next.d.mts +1 -2
- package/dist/sdk/plugins/context/next.mjs +1 -2
- package/dist/sdk/plugins/context/node.d.cts +1 -2
- package/dist/sdk/plugins/context/node.d.mts +1 -2
- package/dist/sdk/plugins/context/node.mjs +1 -2
- package/dist/sdk/plugins/manifest.d.cts +1 -2
- package/dist/sdk/plugins/manifest.d.mts +1 -2
- package/dist/sdk/plugins/manifest.mjs +1 -2
- package/dist/sdk/plugins/payload/errors.d.cts +1 -2
- package/dist/sdk/plugins/payload/errors.d.mts +1 -2
- package/dist/sdk/plugins/payload/errors.mjs +1 -2
- package/dist/sdk/plugins/payload/page-events.d.cts +1 -2
- package/dist/sdk/plugins/payload/page-events.d.mts +1 -2
- package/dist/sdk/plugins/payload/page-events.mjs +1 -2
- package/dist/sdk/plugins/payload/rage-click.d.cts +1 -2
- package/dist/sdk/plugins/payload/rage-click.d.mts +1 -2
- package/dist/sdk/plugins/payload/rage-click.mjs +1 -2
- package/dist/sdk/plugins/payload/replay.d.cts +1 -2
- package/dist/sdk/plugins/payload/replay.d.mts +1 -2
- package/dist/sdk/plugins/payload/replay.mjs +1 -2
- package/dist/sdk/remote-config.d.cts +1 -2
- package/dist/sdk/remote-config.d.mts +1 -2
- package/dist/sdk/remote-config.mjs +1 -2
- package/dist/sdk/runtime.cjs +1 -1
- package/dist/sdk/runtime.d.cts +26 -8
- package/dist/sdk/runtime.d.mts +26 -8
- package/dist/sdk/runtime.mjs +1 -2
- package/package.json +8 -30
|
@@ -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,8 +18,59 @@ 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 };
|
|
16
|
-
//# sourceMappingURL=github.d.cts.map
|
|
76
|
+
export { GITHUB_COM_API_BASE_URL, GITHUB_COM_HOST, GITHUB_COM_WEB_BASE_URL, GithubFamilyProvider, GithubHostFlavor, GithubHostUrls, PROVIDER_FLAVOR, detectGithubHostFlavor, gheCloudIntegration, gheServerIntegration, githubFamilyProviders, githubHostFlavorSchema, githubIntegration, githubSourceIdEnvKeys, normalizeGithubHost, providerFromHost, resolveGithubHostUrls };
|
|
@@ -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,8 +18,59 @@ 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 };
|
|
16
|
-
//# sourceMappingURL=github.d.mts.map
|
|
76
|
+
export { GITHUB_COM_API_BASE_URL, GITHUB_COM_HOST, GITHUB_COM_WEB_BASE_URL, GithubFamilyProvider, GithubHostFlavor, GithubHostUrls, PROVIDER_FLAVOR, detectGithubHostFlavor, gheCloudIntegration, gheServerIntegration, githubFamilyProviders, githubHostFlavorSchema, githubIntegration, githubSourceIdEnvKeys, normalizeGithubHost, providerFromHost, resolveGithubHostUrls };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{z}from"zod";const githubSourceIdEnvKeys=z.enum([`VERCEL_GIT_COMMIT_SHA`,`GITHUB_SHA`]).options,
|
|
2
|
-
//# sourceMappingURL=github.mjs.map
|
|
1
|
+
import{z}from"zod";const HOST_REGEX=/^https?:\/\//,PATH_REGEX=/\/.*$/,githubSourceIdEnvKeys=z.enum([`VERCEL_GIT_COMMIT_SHA`,`GITHUB_SHA`]).options,githubHostFlavorSchema=z.enum([`github_com`,`ghe_cloud`,`ghe_server`]),GITHUB_COM_HOST=`github.com`,GITHUB_COM_API_BASE_URL=`https://api.github.com`,GITHUB_COM_WEB_BASE_URL=`https://github.com`,githubMetadata=z.object({accountType:z.string(),avatarUrl:z.string().nullable().default(null),repositories:z.record(z.string(),z.string()),installationUrl:z.string().nullable(),host:z.string().default(GITHUB_COM_HOST),flavor:githubHostFlavorSchema.default(`github_com`)}),githubIntegration=z.object({name:z.literal(`github`),metadata:githubMetadata}),gheCloudIntegration=z.object({name:z.literal(`ghe_cloud`),metadata:githubMetadata}),gheServerIntegration=z.object({name:z.literal(`ghe_server`),metadata:githubMetadata}),githubFamilyProviders=[githubIntegration.shape.name.value,gheCloudIntegration.shape.name.value,gheServerIntegration.shape.name.value],PROVIDER_FLAVOR={github:`github_com`,ghe_cloud:`ghe_cloud`,ghe_server:`ghe_server`};function normalizeGithubHost(host){return host.trim().toLowerCase().replace(HOST_REGEX,``).replace(PATH_REGEX,``)}function detectGithubHostFlavor(host){let normalized=normalizeGithubHost(host);return normalized===`github.com`?`github_com`:normalized.endsWith(`.ghe.com`)?`ghe_cloud`:`ghe_server`}function providerFromHost(host){let flavor=detectGithubHostFlavor(normalizeGithubHost(host));return flavor===`github_com`?`github`:flavor}const HOST_URL_RESOLVERS={github_com:()=>({host:GITHUB_COM_HOST,flavor:`github_com`,apiBaseUrl:GITHUB_COM_API_BASE_URL,webBaseUrl:GITHUB_COM_WEB_BASE_URL}),ghe_cloud:host=>({host,flavor:`ghe_cloud`,apiBaseUrl:`https://api.${host}`,webBaseUrl:`https://${host}`}),ghe_server:host=>({host,flavor:`ghe_server`,apiBaseUrl:`https://${host}/api/v3`,webBaseUrl:`https://${host}`})};function resolveGithubHostUrls(input){let host=normalizeGithubHost(input.host);return HOST_URL_RESOLVERS[input.flavor??detectGithubHostFlavor(host)](host)}export{GITHUB_COM_API_BASE_URL,GITHUB_COM_HOST,GITHUB_COM_WEB_BASE_URL,PROVIDER_FLAVOR,detectGithubHostFlavor,gheCloudIntegration,gheServerIntegration,githubFamilyProviders,githubHostFlavorSchema,githubIntegration,githubSourceIdEnvKeys,normalizeGithubHost,providerFromHost,resolveGithubHostUrls};
|
|
@@ -29,5 +29,4 @@ declare const slackIntegration: z.ZodObject<{
|
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
}, z.core.$strip>;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { RoutableCategory, SlackChatRoutingEntry, routableCategorySchema, slackChatRoutingEntrySchema, slackIntegration };
|
|
33
|
-
//# sourceMappingURL=slack.d.cts.map
|
|
32
|
+
export { RoutableCategory, SlackChatRoutingEntry, routableCategorySchema, slackChatRoutingEntrySchema, slackIntegration };
|
|
@@ -29,5 +29,4 @@ declare const slackIntegration: z.ZodObject<{
|
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
}, z.core.$strip>;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { RoutableCategory, SlackChatRoutingEntry, routableCategorySchema, slackChatRoutingEntrySchema, slackIntegration };
|
|
33
|
-
//# sourceMappingURL=slack.d.mts.map
|
|
32
|
+
export { RoutableCategory, SlackChatRoutingEntry, routableCategorySchema, slackChatRoutingEntrySchema, slackIntegration };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{z}from"zod";const routableCategorySchema=z.enum([`problems`,`team`,`collaboration`]),slackChatRoutingEntrySchema=z.object({channelId:z.string(),channelName:z.string()}),slackIntegration=z.object({name:z.literal(`slack`),metadata:z.object({teamId:z.string(),teamName:z.string(),installationUrl:z.string().nullable(),chatRouting:z.partialRecord(routableCategorySchema,slackChatRoutingEntrySchema).default({})})});export{routableCategorySchema,slackChatRoutingEntrySchema,slackIntegration};
|
|
2
|
-
//# sourceMappingURL=slack.mjs.map
|
|
1
|
+
import{z}from"zod";const routableCategorySchema=z.enum([`problems`,`team`,`collaboration`]),slackChatRoutingEntrySchema=z.object({channelId:z.string(),channelName:z.string()}),slackIntegration=z.object({name:z.literal(`slack`),metadata:z.object({teamId:z.string(),teamName:z.string(),installationUrl:z.string().nullable(),chatRouting:z.partialRecord(routableCategorySchema,slackChatRoutingEntrySchema).default({})})});export{routableCategorySchema,slackChatRoutingEntrySchema,slackIntegration};
|
|
@@ -43,5 +43,4 @@ declare const vercelIntegration: z.ZodObject<{
|
|
|
43
43
|
}, z.core.$strip>], "accountType">;
|
|
44
44
|
}, z.core.$strip>;
|
|
45
45
|
//#endregion
|
|
46
|
-
export { vercelDestinationIdEnvKeys, vercelIntegration, vercelTeamMetadata, vercelUserMetadata };
|
|
47
|
-
//# sourceMappingURL=vercel.d.cts.map
|
|
46
|
+
export { vercelDestinationIdEnvKeys, vercelIntegration, vercelTeamMetadata, vercelUserMetadata };
|
|
@@ -43,5 +43,4 @@ declare const vercelIntegration: z.ZodObject<{
|
|
|
43
43
|
}, z.core.$strip>], "accountType">;
|
|
44
44
|
}, z.core.$strip>;
|
|
45
45
|
//#endregion
|
|
46
|
-
export { vercelDestinationIdEnvKeys, vercelIntegration, vercelTeamMetadata, vercelUserMetadata };
|
|
47
|
-
//# sourceMappingURL=vercel.d.mts.map
|
|
46
|
+
export { vercelDestinationIdEnvKeys, vercelIntegration, vercelTeamMetadata, vercelUserMetadata };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{z}from"zod";const vercelDestinationIdEnvKeys=z.enum([`VERCEL_DEPLOYMENT_ID`]).options,vercelMetadataBase=z.object({avatar:z.string().nullable().default(null),name:z.string().nullable().default(null),installationUrl:z.string().nullable(),projects:z.record(z.string(),z.string()).default({})}),vercelTeamMetadata=vercelMetadataBase.extend({accountType:z.literal(`team`),id:z.string(),slug:z.string()}),vercelUserMetadata=vercelMetadataBase.extend({accountType:z.literal(`user`),id:z.string(),username:z.string(),email:z.string()}),vercelMetadataSchema=z.discriminatedUnion(`accountType`,[vercelTeamMetadata,vercelUserMetadata]),vercelIntegration=z.object({name:z.literal(`vercel`),metadata:vercelMetadataSchema});export{vercelDestinationIdEnvKeys,vercelIntegration,vercelTeamMetadata,vercelUserMetadata};
|
|
2
|
-
//# sourceMappingURL=vercel.mjs.map
|
|
1
|
+
import{z}from"zod";const vercelDestinationIdEnvKeys=z.enum([`VERCEL_DEPLOYMENT_ID`]).options,vercelMetadataBase=z.object({avatar:z.string().nullable().default(null),name:z.string().nullable().default(null),installationUrl:z.string().nullable(),projects:z.record(z.string(),z.string()).default({})}),vercelTeamMetadata=vercelMetadataBase.extend({accountType:z.literal(`team`),id:z.string(),slug:z.string()}),vercelUserMetadata=vercelMetadataBase.extend({accountType:z.literal(`user`),id:z.string(),username:z.string(),email:z.string()}),vercelMetadataSchema=z.discriminatedUnion(`accountType`,[vercelTeamMetadata,vercelUserMetadata]),vercelIntegration=z.object({name:z.literal(`vercel`),metadata:vercelMetadataSchema});export{vercelDestinationIdEnvKeys,vercelIntegration,vercelTeamMetadata,vercelUserMetadata};
|
|
@@ -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">;
|
|
@@ -24,6 +38,21 @@ declare const createReleaseRequest: z.ZodObject<{
|
|
|
24
38
|
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
25
39
|
environmentName: z.ZodNullable<z.ZodString>;
|
|
26
40
|
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
provider: z.ZodLiteral<"cloudflare">;
|
|
43
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
44
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
45
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
46
|
+
scriptName: z.ZodNullable<z.ZodString>;
|
|
47
|
+
accountId: z.ZodNullable<z.ZodString>;
|
|
48
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
49
|
+
environmentName: z.ZodNullable<z.ZodString>;
|
|
50
|
+
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
+
provider: z.ZodLiteral<"cli">;
|
|
53
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
54
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
55
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
27
56
|
}, z.core.$strip>], "provider">>;
|
|
28
57
|
buildId: z.ZodString;
|
|
29
58
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -53,5 +82,4 @@ declare const createReleaseResponse: z.ZodObject<{
|
|
|
53
82
|
}, z.core.$strip>;
|
|
54
83
|
type CreateReleaseResponse = z.infer<typeof createReleaseResponse>;
|
|
55
84
|
//#endregion
|
|
56
|
-
export { CreateReleaseRequest, CreateReleaseResponse, ReleaseStatus, createReleaseRequest, createReleaseResponse, releaseStatusSchema };
|
|
57
|
-
//# sourceMappingURL=definition.d.cts.map
|
|
85
|
+
export { CreateReleaseRequest, CreateReleaseResponse, ReleaseStatus, createReleaseRequest, createReleaseResponse, releaseStatusSchema };
|
|
@@ -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">;
|
|
@@ -24,6 +38,21 @@ declare const createReleaseRequest: z.ZodObject<{
|
|
|
24
38
|
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
25
39
|
environmentName: z.ZodNullable<z.ZodString>;
|
|
26
40
|
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
provider: z.ZodLiteral<"cloudflare">;
|
|
43
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
44
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
45
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
46
|
+
scriptName: z.ZodNullable<z.ZodString>;
|
|
47
|
+
accountId: z.ZodNullable<z.ZodString>;
|
|
48
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
49
|
+
environmentName: z.ZodNullable<z.ZodString>;
|
|
50
|
+
environmentTarget: z.ZodNullable<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
+
provider: z.ZodLiteral<"cli">;
|
|
53
|
+
destinationReleaseId: z.ZodNullable<z.ZodString>;
|
|
54
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
55
|
+
deploymentUrl: z.ZodNullable<z.ZodString>;
|
|
27
56
|
}, z.core.$strip>], "provider">>;
|
|
28
57
|
buildId: z.ZodString;
|
|
29
58
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -53,5 +82,4 @@ declare const createReleaseResponse: z.ZodObject<{
|
|
|
53
82
|
}, z.core.$strip>;
|
|
54
83
|
type CreateReleaseResponse = z.infer<typeof createReleaseResponse>;
|
|
55
84
|
//#endregion
|
|
56
|
-
export { CreateReleaseRequest, CreateReleaseResponse, ReleaseStatus, createReleaseRequest, createReleaseResponse, releaseStatusSchema };
|
|
57
|
-
//# sourceMappingURL=definition.d.mts.map
|
|
85
|
+
export { CreateReleaseRequest, CreateReleaseResponse, ReleaseStatus, createReleaseRequest, createReleaseResponse, releaseStatusSchema };
|
|
@@ -1,2 +1 @@
|
|
|
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
|
|
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};
|
package/dist/releases/slug.d.cts
CHANGED
|
@@ -20,5 +20,4 @@ declare const LOCAL_DEV_RELEASE_SLUG: `rel_${string}` & z.core.$brand<"ReleaseSl
|
|
|
20
20
|
*/
|
|
21
21
|
declare function deriveReleaseSlug(commitSha: string): ReleaseSlug;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { LOCAL_DEV_RELEASE_SLUG, ReleaseSlug, deriveReleaseSlug, releaseSlugSchema };
|
|
24
|
-
//# sourceMappingURL=slug.d.cts.map
|
|
23
|
+
export { LOCAL_DEV_RELEASE_SLUG, ReleaseSlug, deriveReleaseSlug, releaseSlugSchema };
|
package/dist/releases/slug.d.mts
CHANGED
|
@@ -20,5 +20,4 @@ declare const LOCAL_DEV_RELEASE_SLUG: `rel_${string}` & z.core.$brand<"ReleaseSl
|
|
|
20
20
|
*/
|
|
21
21
|
declare function deriveReleaseSlug(commitSha: string): ReleaseSlug;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { LOCAL_DEV_RELEASE_SLUG, ReleaseSlug, deriveReleaseSlug, releaseSlugSchema };
|
|
24
|
-
//# sourceMappingURL=slug.d.mts.map
|
|
23
|
+
export { LOCAL_DEV_RELEASE_SLUG, ReleaseSlug, deriveReleaseSlug, releaseSlugSchema };
|
package/dist/releases/slug.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{z}from"zod";const SLUG_PREFIX=`rel_`,releaseSlugSchema=z.templateLiteral([SLUG_PREFIX,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)}`)}export{LOCAL_DEV_RELEASE_SLUG,deriveReleaseSlug,releaseSlugSchema};
|
|
2
|
-
//# sourceMappingURL=slug.mjs.map
|
|
1
|
+
import{z}from"zod";const SLUG_PREFIX=`rel_`,releaseSlugSchema=z.templateLiteral([SLUG_PREFIX,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)}`)}export{LOCAL_DEV_RELEASE_SLUG,deriveReleaseSlug,releaseSlugSchema};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const require_sdk_env=require("./env.cjs");function resolveCliReleaseDestination(env,releaseSlug){return{provider:`cli`,destinationReleaseId:releaseSlug,environment:require_sdk_env.parseEnvValue(env.INTERFERE_ENVIRONMENT),deploymentUrl:require_sdk_env.parseEnvValue(env.INTERFERE_DEPLOYMENT_URL)}}exports.resolveCliReleaseDestination=resolveCliReleaseDestination;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReleaseDestinationMetadata } from "../integrations/index.cjs";
|
|
2
|
+
import { ReleaseSlug } from "../releases/slug.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/sdk/cli-destination.d.ts
|
|
5
|
+
declare function resolveCliReleaseDestination(env: Record<string, string | undefined>, releaseSlug: ReleaseSlug): ReleaseDestinationMetadata;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { resolveCliReleaseDestination };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReleaseDestinationMetadata } from "../integrations/index.mjs";
|
|
2
|
+
import { ReleaseSlug } from "../releases/slug.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/sdk/cli-destination.d.ts
|
|
5
|
+
declare function resolveCliReleaseDestination(env: Record<string, string | undefined>, releaseSlug: ReleaseSlug): ReleaseDestinationMetadata;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { resolveCliReleaseDestination };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{parseEnvValue}from"./env.mjs";function resolveCliReleaseDestination(env,releaseSlug){return{provider:`cli`,destinationReleaseId:releaseSlug,environment:parseEnvValue(env.INTERFERE_ENVIRONMENT),deploymentUrl:parseEnvValue(env.INTERFERE_DEPLOYMENT_URL)}}export{resolveCliReleaseDestination};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const require_sdk_runtime=require("./runtime.cjs");function fromEnv(...names){return env=>{for(let name of names){let value=require_sdk_runtime.normalizeEnv(env[name]);if(value)return value}return null}}const PROVIDER_RESOLVERS={vercel:[fromEnv(`VERCEL_TARGET_ENV`,`VERCEL_ENV`)],cloudflare:[fromEnv(`CLOUDFLARE_ENV`)]},UNRESOLVED_ENVIRONMENT_MESSAGE=[`Could not determine the deploy environment for this build.`,`Set INTERFERE_ENVIRONMENT (e.g. production or preview), or deploy on a platform that sets VERCEL_ENV / CLOUDFLARE_ENV.`].join(`
|
|
2
|
+
`);var DeployEnvironmentError=class extends Error{};function resolveDeployEnvironment(env){let explicit=require_sdk_runtime.normalizeEnv(env.INTERFERE_ENVIRONMENT);if(explicit)return explicit;for(let resolvers of Object.values(PROVIDER_RESOLVERS))for(let resolve of resolvers){let value=resolve(env);if(value)return value}throw new DeployEnvironmentError(UNRESOLVED_ENVIRONMENT_MESSAGE)}exports.DeployEnvironmentError=DeployEnvironmentError,exports.resolveDeployEnvironment=resolveDeployEnvironment;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{normalizeEnv}from"./runtime.mjs";function fromEnv(...names){return env=>{for(let name of names){let value=normalizeEnv(env[name]);if(value)return value}return null}}const PROVIDER_RESOLVERS={vercel:[fromEnv(`VERCEL_TARGET_ENV`,`VERCEL_ENV`)],cloudflare:[fromEnv(`CLOUDFLARE_ENV`)]},UNRESOLVED_ENVIRONMENT_MESSAGE=[`Could not determine the deploy environment for this build.`,`Set INTERFERE_ENVIRONMENT (e.g. production or preview), or deploy on a platform that sets VERCEL_ENV / CLOUDFLARE_ENV.`].join(`
|
|
2
|
+
`);var DeployEnvironmentError=class extends Error{};function resolveDeployEnvironment(env){let explicit=normalizeEnv(env.INTERFERE_ENVIRONMENT);if(explicit)return explicit;for(let resolvers of Object.values(PROVIDER_RESOLVERS))for(let resolve of resolvers){let value=resolve(env);if(value)return value}throw new DeployEnvironmentError(UNRESOLVED_ENVIRONMENT_MESSAGE)}export{DeployEnvironmentError,resolveDeployEnvironment};
|
package/dist/sdk/env.d.cts
CHANGED
|
@@ -2,5 +2,4 @@
|
|
|
2
2
|
declare function parseEnvValue(value: unknown): string | null;
|
|
3
3
|
declare function readFirstEnvValue(env: Record<string, string | undefined>, keys: readonly string[]): string | null;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { parseEnvValue, readFirstEnvValue };
|
|
6
|
-
//# sourceMappingURL=env.d.cts.map
|
|
5
|
+
export { parseEnvValue, readFirstEnvValue };
|
package/dist/sdk/env.d.mts
CHANGED
|
@@ -2,5 +2,4 @@
|
|
|
2
2
|
declare function parseEnvValue(value: unknown): string | null;
|
|
3
3
|
declare function readFirstEnvValue(env: Record<string, string | undefined>, keys: readonly string[]): string | null;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { parseEnvValue, readFirstEnvValue };
|
|
6
|
-
//# sourceMappingURL=env.d.mts.map
|
|
5
|
+
export { parseEnvValue, readFirstEnvValue };
|
package/dist/sdk/env.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{z}from"zod";const interfereEnvValueSchema=z.string().trim().min(1);function parseEnvValue(value){let parsed=interfereEnvValueSchema.safeParse(value);return parsed.success?parsed.data:null}function readFirstEnvValue(env,keys){for(let key of keys){let value=parseEnvValue(env[key]);if(value!==null)return value}return null}export{parseEnvValue,readFirstEnvValue};
|
|
2
|
-
//# sourceMappingURL=env.mjs.map
|
|
1
|
+
import{z}from"zod";const interfereEnvValueSchema=z.string().trim().min(1);function parseEnvValue(value){let parsed=interfereEnvValueSchema.safeParse(value);return parsed.success?parsed.data:null}function readFirstEnvValue(env,keys){for(let key of keys){let value=parseEnvValue(env[key]);if(value!==null)return value}return null}export{parseEnvValue,readFirstEnvValue};
|
package/dist/sdk/envelope.d.cts
CHANGED
|
@@ -180,11 +180,7 @@ declare const errorEnvelopeSchema: z.ZodObject<{
|
|
|
180
180
|
requestPath: z.ZodOptional<z.ZodString>;
|
|
181
181
|
runtime: z.ZodLiteral<"node">;
|
|
182
182
|
}, z.core.$strip>], "runtime">>;
|
|
183
|
-
environment: z.ZodNullable<z.
|
|
184
|
-
development: "development";
|
|
185
|
-
preview: "preview";
|
|
186
|
-
production: "production";
|
|
187
|
-
}>>;
|
|
183
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
188
184
|
producerVersion: z.ZodOptional<z.ZodString>;
|
|
189
185
|
releaseId: z.ZodNullable<z.ZodString>;
|
|
190
186
|
runtime: z.ZodNullable<z.ZodEnum<{
|
|
@@ -311,11 +307,7 @@ declare const pageviewEnvelopeSchema: z.ZodObject<{
|
|
|
311
307
|
requestPath: z.ZodOptional<z.ZodString>;
|
|
312
308
|
runtime: z.ZodLiteral<"node">;
|
|
313
309
|
}, z.core.$strip>], "runtime">>;
|
|
314
|
-
environment: z.ZodNullable<z.
|
|
315
|
-
development: "development";
|
|
316
|
-
preview: "preview";
|
|
317
|
-
production: "production";
|
|
318
|
-
}>>;
|
|
310
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
319
311
|
producerVersion: z.ZodOptional<z.ZodString>;
|
|
320
312
|
releaseId: z.ZodNullable<z.ZodString>;
|
|
321
313
|
runtime: z.ZodNullable<z.ZodEnum<{
|
|
@@ -422,11 +414,7 @@ declare const pageleaveEnvelopeSchema: z.ZodObject<{
|
|
|
422
414
|
requestPath: z.ZodOptional<z.ZodString>;
|
|
423
415
|
runtime: z.ZodLiteral<"node">;
|
|
424
416
|
}, z.core.$strip>], "runtime">>;
|
|
425
|
-
environment: z.ZodNullable<z.
|
|
426
|
-
development: "development";
|
|
427
|
-
preview: "preview";
|
|
428
|
-
production: "production";
|
|
429
|
-
}>>;
|
|
417
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
430
418
|
producerVersion: z.ZodOptional<z.ZodString>;
|
|
431
419
|
releaseId: z.ZodNullable<z.ZodString>;
|
|
432
420
|
runtime: z.ZodNullable<z.ZodEnum<{
|
|
@@ -533,11 +521,7 @@ declare const uiEventEnvelopeSchema: z.ZodObject<{
|
|
|
533
521
|
requestPath: z.ZodOptional<z.ZodString>;
|
|
534
522
|
runtime: z.ZodLiteral<"node">;
|
|
535
523
|
}, z.core.$strip>], "runtime">>;
|
|
536
|
-
environment: z.ZodNullable<z.
|
|
537
|
-
development: "development";
|
|
538
|
-
preview: "preview";
|
|
539
|
-
production: "production";
|
|
540
|
-
}>>;
|
|
524
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
541
525
|
producerVersion: z.ZodOptional<z.ZodString>;
|
|
542
526
|
releaseId: z.ZodNullable<z.ZodString>;
|
|
543
527
|
runtime: z.ZodNullable<z.ZodEnum<{
|
|
@@ -643,11 +627,7 @@ declare const replayChunkEnvelopeSchema: z.ZodObject<{
|
|
|
643
627
|
requestPath: z.ZodOptional<z.ZodString>;
|
|
644
628
|
runtime: z.ZodLiteral<"node">;
|
|
645
629
|
}, z.core.$strip>], "runtime">>;
|
|
646
|
-
environment: z.ZodNullable<z.
|
|
647
|
-
development: "development";
|
|
648
|
-
preview: "preview";
|
|
649
|
-
production: "production";
|
|
650
|
-
}>>;
|
|
630
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
651
631
|
producerVersion: z.ZodOptional<z.ZodString>;
|
|
652
632
|
releaseId: z.ZodNullable<z.ZodString>;
|
|
653
633
|
runtime: z.ZodNullable<z.ZodEnum<{
|
|
@@ -757,11 +737,7 @@ declare const rageClickEnvelopeSchema: z.ZodObject<{
|
|
|
757
737
|
requestPath: z.ZodOptional<z.ZodString>;
|
|
758
738
|
runtime: z.ZodLiteral<"node">;
|
|
759
739
|
}, z.core.$strip>], "runtime">>;
|
|
760
|
-
environment: z.ZodNullable<z.
|
|
761
|
-
development: "development";
|
|
762
|
-
preview: "preview";
|
|
763
|
-
production: "production";
|
|
764
|
-
}>>;
|
|
740
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
765
741
|
producerVersion: z.ZodOptional<z.ZodString>;
|
|
766
742
|
releaseId: z.ZodNullable<z.ZodString>;
|
|
767
743
|
runtime: z.ZodNullable<z.ZodEnum<{
|
|
@@ -873,11 +849,7 @@ declare const envelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
873
849
|
requestPath: z.ZodOptional<z.ZodString>;
|
|
874
850
|
runtime: z.ZodLiteral<"node">;
|
|
875
851
|
}, z.core.$strip>], "runtime">>;
|
|
876
|
-
environment: z.ZodNullable<z.
|
|
877
|
-
development: "development";
|
|
878
|
-
preview: "preview";
|
|
879
|
-
production: "production";
|
|
880
|
-
}>>;
|
|
852
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
881
853
|
producerVersion: z.ZodOptional<z.ZodString>;
|
|
882
854
|
releaseId: z.ZodNullable<z.ZodString>;
|
|
883
855
|
runtime: z.ZodNullable<z.ZodEnum<{
|
|
@@ -1003,11 +975,7 @@ declare const envelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1003
975
|
requestPath: z.ZodOptional<z.ZodString>;
|
|
1004
976
|
runtime: z.ZodLiteral<"node">;
|
|
1005
977
|
}, z.core.$strip>], "runtime">>;
|
|
1006
|
-
environment: z.ZodNullable<z.
|
|
1007
|
-
development: "development";
|
|
1008
|
-
preview: "preview";
|
|
1009
|
-
production: "production";
|
|
1010
|
-
}>>;
|
|
978
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
1011
979
|
producerVersion: z.ZodOptional<z.ZodString>;
|
|
1012
980
|
releaseId: z.ZodNullable<z.ZodString>;
|
|
1013
981
|
runtime: z.ZodNullable<z.ZodEnum<{
|
|
@@ -1113,11 +1081,7 @@ declare const envelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1113
1081
|
requestPath: z.ZodOptional<z.ZodString>;
|
|
1114
1082
|
runtime: z.ZodLiteral<"node">;
|
|
1115
1083
|
}, z.core.$strip>], "runtime">>;
|
|
1116
|
-
environment: z.ZodNullable<z.
|
|
1117
|
-
development: "development";
|
|
1118
|
-
preview: "preview";
|
|
1119
|
-
production: "production";
|
|
1120
|
-
}>>;
|
|
1084
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
1121
1085
|
producerVersion: z.ZodOptional<z.ZodString>;
|
|
1122
1086
|
releaseId: z.ZodNullable<z.ZodString>;
|
|
1123
1087
|
runtime: z.ZodNullable<z.ZodEnum<{
|
|
@@ -1223,11 +1187,7 @@ declare const envelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1223
1187
|
requestPath: z.ZodOptional<z.ZodString>;
|
|
1224
1188
|
runtime: z.ZodLiteral<"node">;
|
|
1225
1189
|
}, z.core.$strip>], "runtime">>;
|
|
1226
|
-
environment: z.ZodNullable<z.
|
|
1227
|
-
development: "development";
|
|
1228
|
-
preview: "preview";
|
|
1229
|
-
production: "production";
|
|
1230
|
-
}>>;
|
|
1190
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
1231
1191
|
producerVersion: z.ZodOptional<z.ZodString>;
|
|
1232
1192
|
releaseId: z.ZodNullable<z.ZodString>;
|
|
1233
1193
|
runtime: z.ZodNullable<z.ZodEnum<{
|
|
@@ -1332,11 +1292,7 @@ declare const envelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1332
1292
|
requestPath: z.ZodOptional<z.ZodString>;
|
|
1333
1293
|
runtime: z.ZodLiteral<"node">;
|
|
1334
1294
|
}, z.core.$strip>], "runtime">>;
|
|
1335
|
-
environment: z.ZodNullable<z.
|
|
1336
|
-
development: "development";
|
|
1337
|
-
preview: "preview";
|
|
1338
|
-
production: "production";
|
|
1339
|
-
}>>;
|
|
1295
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
1340
1296
|
producerVersion: z.ZodOptional<z.ZodString>;
|
|
1341
1297
|
releaseId: z.ZodNullable<z.ZodString>;
|
|
1342
1298
|
runtime: z.ZodNullable<z.ZodEnum<{
|
|
@@ -1445,11 +1401,7 @@ declare const envelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1445
1401
|
requestPath: z.ZodOptional<z.ZodString>;
|
|
1446
1402
|
runtime: z.ZodLiteral<"node">;
|
|
1447
1403
|
}, z.core.$strip>], "runtime">>;
|
|
1448
|
-
environment: z.ZodNullable<z.
|
|
1449
|
-
development: "development";
|
|
1450
|
-
preview: "preview";
|
|
1451
|
-
production: "production";
|
|
1452
|
-
}>>;
|
|
1404
|
+
environment: z.ZodNullable<z.ZodString>;
|
|
1453
1405
|
producerVersion: z.ZodOptional<z.ZodString>;
|
|
1454
1406
|
releaseId: z.ZodNullable<z.ZodString>;
|
|
1455
1407
|
runtime: z.ZodNullable<z.ZodEnum<{
|
|
@@ -1485,5 +1437,4 @@ type Envelope<T extends EventType | undefined = undefined> = T extends EventType
|
|
|
1485
1437
|
}> : EnvelopeBase;
|
|
1486
1438
|
type EnvelopePayload<T extends EventType> = Envelope<T>["payload"];
|
|
1487
1439
|
//#endregion
|
|
1488
|
-
export { Envelope, EnvelopeContext, EnvelopePayload, EventType, SessionSource, envelopeContextSchema, envelopeSchema, errorEnvelopeSchema, pageleaveEnvelopeSchema, pageviewEnvelopeSchema, rageClickEnvelopeSchema, replayChunkEnvelopeSchema, sessionSourceSchema, uiEventEnvelopeSchema };
|
|
1489
|
-
//# sourceMappingURL=envelope.d.cts.map
|
|
1440
|
+
export { Envelope, EnvelopeContext, EnvelopePayload, EventType, SessionSource, envelopeContextSchema, envelopeSchema, errorEnvelopeSchema, pageleaveEnvelopeSchema, pageviewEnvelopeSchema, rageClickEnvelopeSchema, replayChunkEnvelopeSchema, sessionSourceSchema, uiEventEnvelopeSchema };
|