@interfere/types 10.1.2 → 10.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/dist/data/frame.cjs +1 -1
  2. package/dist/data/frame.d.cts +6 -7
  3. package/dist/data/frame.d.mts +6 -7
  4. package/dist/data/frame.mjs +1 -1
  5. package/dist/data/session.cjs +1 -1
  6. package/dist/data/session.d.cts +3 -4
  7. package/dist/data/session.d.mts +3 -4
  8. package/dist/data/session.mjs +1 -1
  9. package/dist/data/source-map-batch.cjs +1 -0
  10. package/dist/data/source-map-batch.d.cts +4 -0
  11. package/dist/data/source-map-batch.d.mts +4 -0
  12. package/dist/data/source-map-batch.mjs +1 -0
  13. package/dist/data/source-map-diagnostics.cjs +1 -0
  14. package/dist/data/source-map-diagnostics.d.cts +49 -0
  15. package/dist/data/source-map-diagnostics.d.mts +49 -0
  16. package/dist/data/source-map-diagnostics.mjs +1 -0
  17. package/dist/data/source-map-status.cjs +1 -0
  18. package/dist/data/source-map-status.d.cts +65 -0
  19. package/dist/data/source-map-status.d.mts +65 -0
  20. package/dist/data/source-map-status.mjs +1 -0
  21. package/dist/data/source-map-upload-batch.cjs +1 -0
  22. package/dist/data/source-map-upload-batch.d.cts +22 -0
  23. package/dist/data/source-map-upload-batch.d.mts +22 -0
  24. package/dist/data/source-map-upload-batch.mjs +1 -0
  25. package/dist/data/source-maps.cjs +1 -1
  26. package/dist/data/source-maps.d.cts +73 -63
  27. package/dist/data/source-maps.d.mts +73 -63
  28. package/dist/data/source-maps.mjs +1 -1
  29. package/dist/events/error.cjs +1 -1
  30. package/dist/events/error.d.cts +118 -111
  31. package/dist/events/error.d.mts +118 -111
  32. package/dist/events/error.mjs +1 -1
  33. package/dist/events/pageleave.cjs +1 -1
  34. package/dist/events/pageleave.d.cts +5 -6
  35. package/dist/events/pageleave.d.mts +5 -6
  36. package/dist/events/pageleave.mjs +1 -1
  37. package/dist/events/pageview.cjs +1 -1
  38. package/dist/events/pageview.d.cts +6 -7
  39. package/dist/events/pageview.d.mts +6 -7
  40. package/dist/events/pageview.mjs +1 -1
  41. package/dist/integrations/index.cjs +1 -1
  42. package/dist/integrations/index.d.cts +62 -63
  43. package/dist/integrations/index.d.mts +62 -63
  44. package/dist/integrations/index.mjs +1 -1
  45. package/dist/integrations/platforms/cli.cjs +1 -1
  46. package/dist/integrations/platforms/cli.d.cts +3 -4
  47. package/dist/integrations/platforms/cli.d.mts +3 -4
  48. package/dist/integrations/platforms/cli.mjs +1 -1
  49. package/dist/integrations/platforms/cloudflare.cjs +1 -1
  50. package/dist/integrations/platforms/cloudflare.d.cts +12 -13
  51. package/dist/integrations/platforms/cloudflare.d.mts +12 -13
  52. package/dist/integrations/platforms/cloudflare.mjs +1 -1
  53. package/dist/integrations/platforms/github.cjs +1 -1
  54. package/dist/integrations/platforms/github.d.cts +30 -31
  55. package/dist/integrations/platforms/github.d.mts +30 -31
  56. package/dist/integrations/platforms/github.mjs +1 -1
  57. package/dist/integrations/platforms/slack.cjs +1 -1
  58. package/dist/integrations/platforms/slack.d.cts +7 -8
  59. package/dist/integrations/platforms/slack.d.mts +7 -8
  60. package/dist/integrations/platforms/slack.mjs +1 -1
  61. package/dist/integrations/platforms/vercel.cjs +1 -1
  62. package/dist/integrations/platforms/vercel.d.cts +12 -13
  63. package/dist/integrations/platforms/vercel.d.mts +12 -13
  64. package/dist/integrations/platforms/vercel.mjs +1 -1
  65. package/dist/releases/build-telemetry.d.cts +8 -9
  66. package/dist/releases/build-telemetry.d.mts +8 -9
  67. package/dist/releases/definition.cjs +1 -1
  68. package/dist/releases/definition.d.cts +48 -49
  69. package/dist/releases/definition.d.mts +48 -49
  70. package/dist/releases/definition.mjs +1 -1
  71. package/dist/releases/slug.d.cts +5 -6
  72. package/dist/releases/slug.d.mts +5 -6
  73. package/dist/sdk/build-config.cjs +1 -0
  74. package/dist/sdk/build-config.d.cts +22 -0
  75. package/dist/sdk/build-config.d.mts +22 -0
  76. package/dist/sdk/build-config.mjs +1 -0
  77. package/dist/sdk/build-diagnostics.cjs +1 -1
  78. package/dist/sdk/build-diagnostics.d.cts +11 -12
  79. package/dist/sdk/build-diagnostics.d.mts +11 -12
  80. package/dist/sdk/build-diagnostics.mjs +1 -1
  81. package/dist/sdk/cli-destination.cjs +1 -1
  82. package/dist/sdk/cli-destination.d.cts +7 -4
  83. package/dist/sdk/cli-destination.d.mts +7 -4
  84. package/dist/sdk/cli-destination.mjs +1 -1
  85. package/dist/sdk/deploy-environment.cjs +1 -1
  86. package/dist/sdk/deploy-environment.d.cts +28 -6
  87. package/dist/sdk/deploy-environment.d.mts +28 -6
  88. package/dist/sdk/deploy-environment.mjs +1 -1
  89. package/dist/sdk/env.d.cts +3 -4
  90. package/dist/sdk/env.d.mts +3 -4
  91. package/dist/sdk/envelope.cjs +1 -1
  92. package/dist/sdk/envelope.d.cts +129 -130
  93. package/dist/sdk/envelope.d.mts +129 -130
  94. package/dist/sdk/envelope.mjs +1 -1
  95. package/dist/sdk/errors.cjs +2 -2
  96. package/dist/sdk/errors.d.cts +70 -28
  97. package/dist/sdk/errors.d.mts +70 -28
  98. package/dist/sdk/errors.mjs +2 -2
  99. package/dist/sdk/geo.cjs +1 -1
  100. package/dist/sdk/geo.d.cts +4 -5
  101. package/dist/sdk/geo.d.mts +4 -5
  102. package/dist/sdk/geo.mjs +1 -1
  103. package/dist/sdk/github-source.cjs +1 -1
  104. package/dist/sdk/github-source.d.cts +9 -9
  105. package/dist/sdk/github-source.d.mts +9 -9
  106. package/dist/sdk/github-source.mjs +1 -1
  107. package/dist/sdk/identify.cjs +1 -1
  108. package/dist/sdk/identify.d.cts +13 -14
  109. package/dist/sdk/identify.d.mts +13 -14
  110. package/dist/sdk/identify.mjs +1 -1
  111. package/dist/sdk/injected-globals.d.cts +9 -10
  112. package/dist/sdk/injected-globals.d.mts +9 -10
  113. package/dist/sdk/log-sourcing.cjs +1 -1
  114. package/dist/sdk/log-sourcing.d.cts +9 -10
  115. package/dist/sdk/log-sourcing.d.mts +9 -10
  116. package/dist/sdk/log-sourcing.mjs +1 -1
  117. package/dist/sdk/plugins/context/browser.cjs +1 -1
  118. package/dist/sdk/plugins/context/browser.d.cts +17 -18
  119. package/dist/sdk/plugins/context/browser.d.mts +17 -18
  120. package/dist/sdk/plugins/context/browser.mjs +1 -1
  121. package/dist/sdk/plugins/context/edge.cjs +1 -1
  122. package/dist/sdk/plugins/context/edge.d.cts +3 -4
  123. package/dist/sdk/plugins/context/edge.d.mts +3 -4
  124. package/dist/sdk/plugins/context/edge.mjs +1 -1
  125. package/dist/sdk/plugins/context/next.cjs +1 -1
  126. package/dist/sdk/plugins/context/next.d.cts +8 -9
  127. package/dist/sdk/plugins/context/next.d.mts +8 -9
  128. package/dist/sdk/plugins/context/next.mjs +1 -1
  129. package/dist/sdk/plugins/context/node.cjs +1 -1
  130. package/dist/sdk/plugins/context/node.d.cts +3 -4
  131. package/dist/sdk/plugins/context/node.d.mts +3 -4
  132. package/dist/sdk/plugins/context/node.mjs +1 -1
  133. package/dist/sdk/plugins/manifest.d.cts +10 -9
  134. package/dist/sdk/plugins/manifest.d.mts +10 -9
  135. package/dist/sdk/plugins/payload/errors.cjs +1 -1
  136. package/dist/sdk/plugins/payload/errors.d.cts +23 -24
  137. package/dist/sdk/plugins/payload/errors.d.mts +23 -24
  138. package/dist/sdk/plugins/payload/errors.mjs +1 -1
  139. package/dist/sdk/plugins/payload/page-events.cjs +1 -1
  140. package/dist/sdk/plugins/payload/page-events.d.cts +9 -10
  141. package/dist/sdk/plugins/payload/page-events.d.mts +9 -10
  142. package/dist/sdk/plugins/payload/page-events.mjs +1 -1
  143. package/dist/sdk/plugins/payload/rage-click.cjs +1 -1
  144. package/dist/sdk/plugins/payload/rage-click.d.cts +5 -6
  145. package/dist/sdk/plugins/payload/rage-click.d.mts +5 -6
  146. package/dist/sdk/plugins/payload/rage-click.mjs +1 -1
  147. package/dist/sdk/plugins/payload/replay.cjs +1 -1
  148. package/dist/sdk/plugins/payload/replay.d.cts +4 -5
  149. package/dist/sdk/plugins/payload/replay.d.mts +4 -5
  150. package/dist/sdk/plugins/payload/replay.mjs +1 -1
  151. package/dist/sdk/remote-config.cjs +1 -1
  152. package/dist/sdk/remote-config.d.cts +43 -20
  153. package/dist/sdk/remote-config.d.mts +43 -20
  154. package/dist/sdk/remote-config.mjs +1 -1
  155. package/dist/sdk/runtime.cjs +1 -1
  156. package/dist/sdk/runtime.d.cts +11 -12
  157. package/dist/sdk/runtime.d.mts +11 -12
  158. package/dist/sdk/runtime.mjs +1 -1
  159. package/dist/sdk/server-tracing.cjs +1 -1
  160. package/dist/sdk/server-tracing.d.cts +9 -10
  161. package/dist/sdk/server-tracing.d.mts +9 -10
  162. package/dist/sdk/server-tracing.mjs +1 -1
  163. package/dist/sdk/source-map-richness.cjs +1 -0
  164. package/dist/sdk/source-map-richness.d.cts +9 -0
  165. package/dist/sdk/source-map-richness.d.mts +9 -0
  166. package/dist/sdk/source-map-richness.mjs +1 -0
  167. package/dist/sdk/trace-freshness.cjs +1 -0
  168. package/dist/sdk/trace-freshness.d.cts +6 -0
  169. package/dist/sdk/trace-freshness.d.mts +6 -0
  170. package/dist/sdk/trace-freshness.mjs +1 -0
  171. package/package.json +13 -13
@@ -1,29 +1,28 @@
1
1
  import { z } from "zod";
2
2
  //#region src/integrations/platforms/cloudflare.d.ts
3
- declare const cloudflareDestinationIdEnvKeys: ("CF_VERSION_ID" | "WORKERS_CI_BUILD_UUID")[];
4
- declare const cloudflareSourceIdEnvKeys: "WORKERS_CI_COMMIT_SHA"[];
5
- declare const cloudflareAccountMetadata: z.ZodObject<{
3
+ export declare const cloudflareDestinationIdEnvKeys: ("CF_VERSION_ID" | "WORKERS_CI_BUILD_UUID")[];
4
+ export declare const cloudflareSourceIdEnvKeys: "WORKERS_CI_COMMIT_SHA"[];
5
+ export declare const cloudflareAccountMetadata: z.ZodObject<{
6
6
  accountType: z.ZodLiteral<"account">;
7
- id: z.ZodString;
8
- name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9
7
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8
+ id: z.ZodString;
10
9
  installationUrl: z.ZodNullable<z.ZodString>;
11
- workers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
10
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
12
11
  refreshToken: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13
12
  versionCutoffs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
13
+ workers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
14
14
  }, z.core.$strip>;
15
- declare const cloudflareIntegration: z.ZodObject<{
16
- name: z.ZodLiteral<"cloudflare">;
15
+ export declare const cloudflareIntegration: z.ZodObject<{
17
16
  metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
18
17
  accountType: z.ZodLiteral<"account">;
19
- id: z.ZodString;
20
- name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21
18
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19
+ id: z.ZodString;
22
20
  installationUrl: z.ZodNullable<z.ZodString>;
23
- workers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
21
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24
22
  refreshToken: z.ZodDefault<z.ZodNullable<z.ZodString>>;
25
23
  versionCutoffs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
24
+ workers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
26
25
  }, z.core.$strip>], "accountType">;
26
+ name: z.ZodLiteral<"cloudflare">;
27
27
  }, z.core.$strip>;
28
- //#endregion
29
- export { cloudflareAccountMetadata, cloudflareDestinationIdEnvKeys, cloudflareIntegration, cloudflareSourceIdEnvKeys };
28
+ //#endregion
@@ -1 +1 @@
1
- import{z}from"zod";const cloudflareDestinationIdEnvKeys=z.enum([`CF_VERSION_ID`,`WORKERS_CI_BUILD_UUID`]).options,cloudflareSourceIdEnvKeys=z.enum([`WORKERS_CI_COMMIT_SHA`]).options,cloudflareAccountMetadata=z.object({accountType:z.literal(`account`),id:z.string(),name:z.string().nullable().default(null),avatar:z.string().nullable().default(null),installationUrl:z.string().nullable(),workers:z.record(z.string(),z.string()).default({}),refreshToken:z.string().nullable().default(null),versionCutoffs:z.record(z.string(),z.string()).default({})}),cloudflareMetadataSchema=z.discriminatedUnion(`accountType`,[cloudflareAccountMetadata]),cloudflareIntegration=z.object({name:z.literal(`cloudflare`),metadata:cloudflareMetadataSchema});export{cloudflareAccountMetadata,cloudflareDestinationIdEnvKeys,cloudflareIntegration,cloudflareSourceIdEnvKeys};
1
+ import{z}from"zod";const cloudflareDestinationIdEnvKeys=z.enum([`CF_VERSION_ID`,`WORKERS_CI_BUILD_UUID`]).options,cloudflareSourceIdEnvKeys=z.enum([`WORKERS_CI_COMMIT_SHA`]).options,cloudflareAccountMetadata=z.object({accountType:z.literal(`account`),avatar:z.string().nullable().default(null),id:z.string(),installationUrl:z.string().nullable(),name:z.string().nullable().default(null),refreshToken:z.string().nullable().default(null),versionCutoffs:z.record(z.string(),z.string()).default({}),workers:z.record(z.string(),z.string()).default({})}),cloudflareMetadataSchema=z.discriminatedUnion(`accountType`,[cloudflareAccountMetadata]),cloudflareIntegration=z.object({metadata:cloudflareMetadataSchema,name:z.literal(`cloudflare`)});export{cloudflareAccountMetadata,cloudflareDestinationIdEnvKeys,cloudflareIntegration,cloudflareSourceIdEnvKeys};
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const HOST_REGEX=/^https?:\/\//u,PATH_REGEX=/\/.*$/u,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),flavor=input.flavor??detectGithubHostFlavor(host);return HOST_URL_RESOLVERS[flavor](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;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let zod=require("zod");const HOST_REGEX=/^https?:\/\//u,PATH_REGEX=/\/.*$/u,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),flavor:githubHostFlavorSchema.default(`github_com`),host:zod.z.string().default(GITHUB_COM_HOST),installationUrl:zod.z.string().nullable(),repositories:zod.z.record(zod.z.string(),zod.z.string())}),githubIntegration=zod.z.object({metadata:githubMetadata,name:zod.z.literal(`github`)}),gheCloudIntegration=zod.z.object({metadata:githubMetadata,name:zod.z.literal(`ghe_cloud`)}),gheServerIntegration=zod.z.object({metadata:githubMetadata,name:zod.z.literal(`ghe_server`)}),githubFamilyProviders=[githubIntegration.shape.name.value,gheCloudIntegration.shape.name.value,gheServerIntegration.shape.name.value],PROVIDER_FLAVOR={ghe_cloud:`ghe_cloud`,ghe_server:`ghe_server`,github:`github_com`};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={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}`}),github_com:()=>({host:GITHUB_COM_HOST,flavor:`github_com`,apiBaseUrl:GITHUB_COM_API_BASE_URL,webBaseUrl:GITHUB_COM_WEB_BASE_URL})};function resolveGithubHostUrls(input){let host=normalizeGithubHost(input.host),flavor=input.flavor??detectGithubHostFlavor(host);return HOST_URL_RESOLVERS[flavor](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;
@@ -1,75 +1,74 @@
1
1
  import { z } from "zod";
2
2
  //#region src/integrations/platforms/github.d.ts
3
- declare const githubSourceIdEnvKeys: ("GITHUB_SHA" | "VERCEL_GIT_COMMIT_SHA")[];
4
- declare const githubHostFlavorSchema: z.ZodEnum<{
3
+ export declare const githubSourceIdEnvKeys: ("GITHUB_SHA" | "VERCEL_GIT_COMMIT_SHA")[];
4
+ export declare const githubHostFlavorSchema: z.ZodEnum<{
5
5
  ghe_cloud: "ghe_cloud";
6
6
  ghe_server: "ghe_server";
7
7
  github_com: "github_com";
8
8
  }>;
9
- type GithubHostFlavor = z.infer<typeof githubHostFlavorSchema>;
10
- declare const GITHUB_COM_HOST = "github.com";
11
- declare const GITHUB_COM_API_BASE_URL = "https://api.github.com";
12
- declare const GITHUB_COM_WEB_BASE_URL = "https://github.com";
13
- declare const githubIntegration: z.ZodObject<{
14
- name: z.ZodLiteral<"github">;
9
+ export type GithubHostFlavor = z.infer<typeof githubHostFlavorSchema>;
10
+ export declare const GITHUB_COM_HOST = "github.com";
11
+ export declare const GITHUB_COM_API_BASE_URL = "https://api.github.com";
12
+ export declare const GITHUB_COM_WEB_BASE_URL = "https://github.com";
13
+ export declare const githubIntegration: z.ZodObject<{
15
14
  metadata: z.ZodObject<{
16
15
  accountType: z.ZodString;
17
16
  avatarUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
18
- repositories: z.ZodRecord<z.ZodString, z.ZodString>;
19
- installationUrl: z.ZodNullable<z.ZodString>;
20
- host: z.ZodDefault<z.ZodString>;
21
17
  flavor: z.ZodDefault<z.ZodEnum<{
22
18
  ghe_cloud: "ghe_cloud";
23
19
  ghe_server: "ghe_server";
24
20
  github_com: "github_com";
25
21
  }>>;
22
+ host: z.ZodDefault<z.ZodString>;
23
+ installationUrl: z.ZodNullable<z.ZodString>;
24
+ repositories: z.ZodRecord<z.ZodString, z.ZodString>;
26
25
  }, z.core.$strip>;
26
+ name: z.ZodLiteral<"github">;
27
27
  }, z.core.$strip>;
28
- declare const gheCloudIntegration: z.ZodObject<{
29
- name: z.ZodLiteral<"ghe_cloud">;
28
+ export declare const gheCloudIntegration: z.ZodObject<{
30
29
  metadata: z.ZodObject<{
31
30
  accountType: z.ZodString;
32
31
  avatarUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
33
- repositories: z.ZodRecord<z.ZodString, z.ZodString>;
34
- installationUrl: z.ZodNullable<z.ZodString>;
35
- host: z.ZodDefault<z.ZodString>;
36
32
  flavor: z.ZodDefault<z.ZodEnum<{
37
33
  ghe_cloud: "ghe_cloud";
38
34
  ghe_server: "ghe_server";
39
35
  github_com: "github_com";
40
36
  }>>;
37
+ host: z.ZodDefault<z.ZodString>;
38
+ installationUrl: z.ZodNullable<z.ZodString>;
39
+ repositories: z.ZodRecord<z.ZodString, z.ZodString>;
41
40
  }, z.core.$strip>;
41
+ name: z.ZodLiteral<"ghe_cloud">;
42
42
  }, z.core.$strip>;
43
- declare const gheServerIntegration: z.ZodObject<{
44
- name: z.ZodLiteral<"ghe_server">;
43
+ export declare const gheServerIntegration: z.ZodObject<{
45
44
  metadata: z.ZodObject<{
46
45
  accountType: z.ZodString;
47
46
  avatarUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
48
- repositories: z.ZodRecord<z.ZodString, z.ZodString>;
49
- installationUrl: z.ZodNullable<z.ZodString>;
50
- host: z.ZodDefault<z.ZodString>;
51
47
  flavor: z.ZodDefault<z.ZodEnum<{
52
48
  ghe_cloud: "ghe_cloud";
53
49
  ghe_server: "ghe_server";
54
50
  github_com: "github_com";
55
51
  }>>;
52
+ host: z.ZodDefault<z.ZodString>;
53
+ installationUrl: z.ZodNullable<z.ZodString>;
54
+ repositories: z.ZodRecord<z.ZodString, z.ZodString>;
56
55
  }, z.core.$strip>;
56
+ name: z.ZodLiteral<"ghe_server">;
57
57
  }, z.core.$strip>;
58
- declare const githubFamilyProviders: readonly ["github", "ghe_cloud", "ghe_server"];
59
- type GithubFamilyProvider = (typeof githubFamilyProviders)[number];
60
- declare const PROVIDER_FLAVOR: Record<GithubFamilyProvider, GithubHostFlavor>;
61
- interface GithubHostUrls {
58
+ export declare const githubFamilyProviders: readonly ["github", "ghe_cloud", "ghe_server"];
59
+ export type GithubFamilyProvider = (typeof githubFamilyProviders)[number];
60
+ export declare const PROVIDER_FLAVOR: Record<GithubFamilyProvider, GithubHostFlavor>;
61
+ export interface GithubHostUrls {
62
62
  apiBaseUrl: string;
63
63
  flavor: GithubHostFlavor;
64
64
  host: string;
65
65
  webBaseUrl: string;
66
66
  }
67
- declare function normalizeGithubHost(host: string): string;
68
- declare function detectGithubHostFlavor(host: string): GithubHostFlavor;
69
- declare function providerFromHost(host: string): GithubFamilyProvider;
70
- declare function resolveGithubHostUrls(input: {
67
+ export declare function normalizeGithubHost(host: string): string;
68
+ export declare function detectGithubHostFlavor(host: string): "ghe_cloud" | "ghe_server" | "github_com";
69
+ export declare function providerFromHost(host: string): "ghe_cloud" | "ghe_server" | "github";
70
+ export declare function resolveGithubHostUrls(input: {
71
71
  host: string;
72
72
  flavor?: GithubHostFlavor;
73
73
  }): GithubHostUrls;
74
- //#endregion
75
- 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 };
74
+ //#endregion
@@ -1,75 +1,74 @@
1
1
  import { z } from "zod";
2
2
  //#region src/integrations/platforms/github.d.ts
3
- declare const githubSourceIdEnvKeys: ("GITHUB_SHA" | "VERCEL_GIT_COMMIT_SHA")[];
4
- declare const githubHostFlavorSchema: z.ZodEnum<{
3
+ export declare const githubSourceIdEnvKeys: ("GITHUB_SHA" | "VERCEL_GIT_COMMIT_SHA")[];
4
+ export declare const githubHostFlavorSchema: z.ZodEnum<{
5
5
  ghe_cloud: "ghe_cloud";
6
6
  ghe_server: "ghe_server";
7
7
  github_com: "github_com";
8
8
  }>;
9
- type GithubHostFlavor = z.infer<typeof githubHostFlavorSchema>;
10
- declare const GITHUB_COM_HOST = "github.com";
11
- declare const GITHUB_COM_API_BASE_URL = "https://api.github.com";
12
- declare const GITHUB_COM_WEB_BASE_URL = "https://github.com";
13
- declare const githubIntegration: z.ZodObject<{
14
- name: z.ZodLiteral<"github">;
9
+ export type GithubHostFlavor = z.infer<typeof githubHostFlavorSchema>;
10
+ export declare const GITHUB_COM_HOST = "github.com";
11
+ export declare const GITHUB_COM_API_BASE_URL = "https://api.github.com";
12
+ export declare const GITHUB_COM_WEB_BASE_URL = "https://github.com";
13
+ export declare const githubIntegration: z.ZodObject<{
15
14
  metadata: z.ZodObject<{
16
15
  accountType: z.ZodString;
17
16
  avatarUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
18
- repositories: z.ZodRecord<z.ZodString, z.ZodString>;
19
- installationUrl: z.ZodNullable<z.ZodString>;
20
- host: z.ZodDefault<z.ZodString>;
21
17
  flavor: z.ZodDefault<z.ZodEnum<{
22
18
  ghe_cloud: "ghe_cloud";
23
19
  ghe_server: "ghe_server";
24
20
  github_com: "github_com";
25
21
  }>>;
22
+ host: z.ZodDefault<z.ZodString>;
23
+ installationUrl: z.ZodNullable<z.ZodString>;
24
+ repositories: z.ZodRecord<z.ZodString, z.ZodString>;
26
25
  }, z.core.$strip>;
26
+ name: z.ZodLiteral<"github">;
27
27
  }, z.core.$strip>;
28
- declare const gheCloudIntegration: z.ZodObject<{
29
- name: z.ZodLiteral<"ghe_cloud">;
28
+ export declare const gheCloudIntegration: z.ZodObject<{
30
29
  metadata: z.ZodObject<{
31
30
  accountType: z.ZodString;
32
31
  avatarUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
33
- repositories: z.ZodRecord<z.ZodString, z.ZodString>;
34
- installationUrl: z.ZodNullable<z.ZodString>;
35
- host: z.ZodDefault<z.ZodString>;
36
32
  flavor: z.ZodDefault<z.ZodEnum<{
37
33
  ghe_cloud: "ghe_cloud";
38
34
  ghe_server: "ghe_server";
39
35
  github_com: "github_com";
40
36
  }>>;
37
+ host: z.ZodDefault<z.ZodString>;
38
+ installationUrl: z.ZodNullable<z.ZodString>;
39
+ repositories: z.ZodRecord<z.ZodString, z.ZodString>;
41
40
  }, z.core.$strip>;
41
+ name: z.ZodLiteral<"ghe_cloud">;
42
42
  }, z.core.$strip>;
43
- declare const gheServerIntegration: z.ZodObject<{
44
- name: z.ZodLiteral<"ghe_server">;
43
+ export declare const gheServerIntegration: z.ZodObject<{
45
44
  metadata: z.ZodObject<{
46
45
  accountType: z.ZodString;
47
46
  avatarUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
48
- repositories: z.ZodRecord<z.ZodString, z.ZodString>;
49
- installationUrl: z.ZodNullable<z.ZodString>;
50
- host: z.ZodDefault<z.ZodString>;
51
47
  flavor: z.ZodDefault<z.ZodEnum<{
52
48
  ghe_cloud: "ghe_cloud";
53
49
  ghe_server: "ghe_server";
54
50
  github_com: "github_com";
55
51
  }>>;
52
+ host: z.ZodDefault<z.ZodString>;
53
+ installationUrl: z.ZodNullable<z.ZodString>;
54
+ repositories: z.ZodRecord<z.ZodString, z.ZodString>;
56
55
  }, z.core.$strip>;
56
+ name: z.ZodLiteral<"ghe_server">;
57
57
  }, z.core.$strip>;
58
- declare const githubFamilyProviders: readonly ["github", "ghe_cloud", "ghe_server"];
59
- type GithubFamilyProvider = (typeof githubFamilyProviders)[number];
60
- declare const PROVIDER_FLAVOR: Record<GithubFamilyProvider, GithubHostFlavor>;
61
- interface GithubHostUrls {
58
+ export declare const githubFamilyProviders: readonly ["github", "ghe_cloud", "ghe_server"];
59
+ export type GithubFamilyProvider = (typeof githubFamilyProviders)[number];
60
+ export declare const PROVIDER_FLAVOR: Record<GithubFamilyProvider, GithubHostFlavor>;
61
+ export interface GithubHostUrls {
62
62
  apiBaseUrl: string;
63
63
  flavor: GithubHostFlavor;
64
64
  host: string;
65
65
  webBaseUrl: string;
66
66
  }
67
- declare function normalizeGithubHost(host: string): string;
68
- declare function detectGithubHostFlavor(host: string): GithubHostFlavor;
69
- declare function providerFromHost(host: string): GithubFamilyProvider;
70
- declare function resolveGithubHostUrls(input: {
67
+ export declare function normalizeGithubHost(host: string): string;
68
+ export declare function detectGithubHostFlavor(host: string): "ghe_cloud" | "ghe_server" | "github_com";
69
+ export declare function providerFromHost(host: string): "ghe_cloud" | "ghe_server" | "github";
70
+ export declare function resolveGithubHostUrls(input: {
71
71
  host: string;
72
72
  flavor?: GithubHostFlavor;
73
73
  }): GithubHostUrls;
74
- //#endregion
75
- 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 };
74
+ //#endregion
@@ -1 +1 @@
1
- import{z}from"zod";const HOST_REGEX=/^https?:\/\//u,PATH_REGEX=/\/.*$/u,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),flavor=input.flavor??detectGithubHostFlavor(host);return HOST_URL_RESOLVERS[flavor](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};
1
+ import{z}from"zod";const HOST_REGEX=/^https?:\/\//u,PATH_REGEX=/\/.*$/u,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),flavor:githubHostFlavorSchema.default(`github_com`),host:z.string().default(GITHUB_COM_HOST),installationUrl:z.string().nullable(),repositories:z.record(z.string(),z.string())}),githubIntegration=z.object({metadata:githubMetadata,name:z.literal(`github`)}),gheCloudIntegration=z.object({metadata:githubMetadata,name:z.literal(`ghe_cloud`)}),gheServerIntegration=z.object({metadata:githubMetadata,name:z.literal(`ghe_server`)}),githubFamilyProviders=[githubIntegration.shape.name.value,gheCloudIntegration.shape.name.value,gheServerIntegration.shape.name.value],PROVIDER_FLAVOR={ghe_cloud:`ghe_cloud`,ghe_server:`ghe_server`,github:`github_com`};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={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}`}),github_com:()=>({host:GITHUB_COM_HOST,flavor:`github_com`,apiBaseUrl:GITHUB_COM_API_BASE_URL,webBaseUrl:GITHUB_COM_WEB_BASE_URL})};function resolveGithubHostUrls(input){let host=normalizeGithubHost(input.host),flavor=input.flavor??detectGithubHostFlavor(host);return HOST_URL_RESOLVERS[flavor](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};
@@ -1 +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;
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({metadata:zod.z.object({teamId:zod.z.string(),teamName:zod.z.string(),installationUrl:zod.z.string().nullable(),chatRouting:zod.z.partialRecord(routableCategorySchema,slackChatRoutingEntrySchema).default({})}),name:zod.z.literal(`slack`)});exports.routableCategorySchema=routableCategorySchema,exports.slackChatRoutingEntrySchema=slackChatRoutingEntrySchema,exports.slackIntegration=slackIntegration;
@@ -1,18 +1,17 @@
1
1
  import { z } from "zod";
2
2
  //#region src/integrations/platforms/slack.d.ts
3
- declare const routableCategorySchema: z.ZodEnum<{
3
+ export declare const routableCategorySchema: z.ZodEnum<{
4
4
  collaboration: "collaboration";
5
5
  problems: "problems";
6
6
  team: "team";
7
7
  }>;
8
- type RoutableCategory = z.infer<typeof routableCategorySchema>;
9
- declare const slackChatRoutingEntrySchema: z.ZodObject<{
8
+ export type RoutableCategory = z.infer<typeof routableCategorySchema>;
9
+ export declare const slackChatRoutingEntrySchema: z.ZodObject<{
10
10
  channelId: z.ZodString;
11
11
  channelName: z.ZodString;
12
12
  }, z.core.$strip>;
13
- type SlackChatRoutingEntry = z.infer<typeof slackChatRoutingEntrySchema>;
14
- declare const slackIntegration: z.ZodObject<{
15
- name: z.ZodLiteral<"slack">;
13
+ export type SlackChatRoutingEntry = z.infer<typeof slackChatRoutingEntrySchema>;
14
+ export declare const slackIntegration: z.ZodObject<{
16
15
  metadata: z.ZodObject<{
17
16
  teamId: z.ZodString;
18
17
  teamName: z.ZodString;
@@ -26,6 +25,6 @@ declare const slackIntegration: z.ZodObject<{
26
25
  channelName: z.ZodString;
27
26
  }, z.core.$strip>>>;
28
27
  }, z.core.$strip>;
28
+ name: z.ZodLiteral<"slack">;
29
29
  }, z.core.$strip>;
30
- //#endregion
31
- export { RoutableCategory, SlackChatRoutingEntry, routableCategorySchema, slackChatRoutingEntrySchema, slackIntegration };
30
+ //#endregion
@@ -1,18 +1,17 @@
1
1
  import { z } from "zod";
2
2
  //#region src/integrations/platforms/slack.d.ts
3
- declare const routableCategorySchema: z.ZodEnum<{
3
+ export declare const routableCategorySchema: z.ZodEnum<{
4
4
  collaboration: "collaboration";
5
5
  problems: "problems";
6
6
  team: "team";
7
7
  }>;
8
- type RoutableCategory = z.infer<typeof routableCategorySchema>;
9
- declare const slackChatRoutingEntrySchema: z.ZodObject<{
8
+ export type RoutableCategory = z.infer<typeof routableCategorySchema>;
9
+ export declare const slackChatRoutingEntrySchema: z.ZodObject<{
10
10
  channelId: z.ZodString;
11
11
  channelName: z.ZodString;
12
12
  }, z.core.$strip>;
13
- type SlackChatRoutingEntry = z.infer<typeof slackChatRoutingEntrySchema>;
14
- declare const slackIntegration: z.ZodObject<{
15
- name: z.ZodLiteral<"slack">;
13
+ export type SlackChatRoutingEntry = z.infer<typeof slackChatRoutingEntrySchema>;
14
+ export declare const slackIntegration: z.ZodObject<{
16
15
  metadata: z.ZodObject<{
17
16
  teamId: z.ZodString;
18
17
  teamName: z.ZodString;
@@ -26,6 +25,6 @@ declare const slackIntegration: z.ZodObject<{
26
25
  channelName: z.ZodString;
27
26
  }, z.core.$strip>>>;
28
27
  }, z.core.$strip>;
28
+ name: z.ZodLiteral<"slack">;
29
29
  }, z.core.$strip>;
30
- //#endregion
31
- export { RoutableCategory, SlackChatRoutingEntry, routableCategorySchema, slackChatRoutingEntrySchema, slackIntegration };
30
+ //#endregion
@@ -1 +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};
1
+ import{z}from"zod";const routableCategorySchema=z.enum([`problems`,`team`,`collaboration`]),slackChatRoutingEntrySchema=z.object({channelId:z.string(),channelName:z.string()}),slackIntegration=z.object({metadata:z.object({teamId:z.string(),teamName:z.string(),installationUrl:z.string().nullable(),chatRouting:z.partialRecord(routableCategorySchema,slackChatRoutingEntrySchema).default({})}),name:z.literal(`slack`)});export{routableCategorySchema,slackChatRoutingEntrySchema,slackIntegration};
@@ -1 +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().nullable()).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;
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),installationUrl:zod.z.string().nullable(),name:zod.z.string().nullable().default(null),projects:zod.z.record(zod.z.string(),zod.z.string().nullable()).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`),email:zod.z.string(),id:zod.z.string(),username:zod.z.string()}),vercelMetadataSchema=zod.z.discriminatedUnion(`accountType`,[vercelTeamMetadata,vercelUserMetadata]),vercelIntegration=zod.z.object({metadata:vercelMetadataSchema,name:zod.z.literal(`vercel`)});exports.vercelDestinationIdEnvKeys=vercelDestinationIdEnvKeys,exports.vercelIntegration=vercelIntegration,exports.vercelTeamMetadata=vercelTeamMetadata,exports.vercelUserMetadata=vercelUserMetadata;
@@ -1,45 +1,44 @@
1
1
  import { z } from "zod";
2
2
  //#region src/integrations/platforms/vercel.d.ts
3
- declare const vercelDestinationIdEnvKeys: "VERCEL_DEPLOYMENT_ID"[];
4
- declare const vercelTeamMetadata: z.ZodObject<{
3
+ export declare const vercelDestinationIdEnvKeys: "VERCEL_DEPLOYMENT_ID"[];
4
+ export declare const vercelTeamMetadata: z.ZodObject<{
5
5
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6
- name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
7
6
  installationUrl: z.ZodNullable<z.ZodString>;
7
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8
8
  projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
9
9
  accountType: z.ZodLiteral<"team">;
10
10
  id: z.ZodString;
11
11
  slug: z.ZodString;
12
12
  }, z.core.$strip>;
13
- declare const vercelUserMetadata: z.ZodObject<{
13
+ export declare const vercelUserMetadata: z.ZodObject<{
14
14
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
15
- name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16
15
  installationUrl: z.ZodNullable<z.ZodString>;
16
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17
17
  projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
18
18
  accountType: z.ZodLiteral<"user">;
19
+ email: z.ZodString;
19
20
  id: z.ZodString;
20
21
  username: z.ZodString;
21
- email: z.ZodString;
22
22
  }, z.core.$strip>;
23
- declare const vercelIntegration: z.ZodObject<{
24
- name: z.ZodLiteral<"vercel">;
23
+ export declare const vercelIntegration: z.ZodObject<{
25
24
  metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
26
25
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
27
- name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
28
26
  installationUrl: z.ZodNullable<z.ZodString>;
27
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
29
28
  projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
30
29
  accountType: z.ZodLiteral<"team">;
31
30
  id: z.ZodString;
32
31
  slug: z.ZodString;
33
32
  }, z.core.$strip>, z.ZodObject<{
34
33
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
35
- name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
36
34
  installationUrl: z.ZodNullable<z.ZodString>;
35
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
37
36
  projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
38
37
  accountType: z.ZodLiteral<"user">;
38
+ email: z.ZodString;
39
39
  id: z.ZodString;
40
40
  username: z.ZodString;
41
- email: z.ZodString;
42
41
  }, z.core.$strip>], "accountType">;
42
+ name: z.ZodLiteral<"vercel">;
43
43
  }, z.core.$strip>;
44
- //#endregion
45
- export { vercelDestinationIdEnvKeys, vercelIntegration, vercelTeamMetadata, vercelUserMetadata };
44
+ //#endregion
@@ -1,45 +1,44 @@
1
1
  import { z } from "zod";
2
2
  //#region src/integrations/platforms/vercel.d.ts
3
- declare const vercelDestinationIdEnvKeys: "VERCEL_DEPLOYMENT_ID"[];
4
- declare const vercelTeamMetadata: z.ZodObject<{
3
+ export declare const vercelDestinationIdEnvKeys: "VERCEL_DEPLOYMENT_ID"[];
4
+ export declare const vercelTeamMetadata: z.ZodObject<{
5
5
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6
- name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
7
6
  installationUrl: z.ZodNullable<z.ZodString>;
7
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8
8
  projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
9
9
  accountType: z.ZodLiteral<"team">;
10
10
  id: z.ZodString;
11
11
  slug: z.ZodString;
12
12
  }, z.core.$strip>;
13
- declare const vercelUserMetadata: z.ZodObject<{
13
+ export declare const vercelUserMetadata: z.ZodObject<{
14
14
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
15
- name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16
15
  installationUrl: z.ZodNullable<z.ZodString>;
16
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17
17
  projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
18
18
  accountType: z.ZodLiteral<"user">;
19
+ email: z.ZodString;
19
20
  id: z.ZodString;
20
21
  username: z.ZodString;
21
- email: z.ZodString;
22
22
  }, z.core.$strip>;
23
- declare const vercelIntegration: z.ZodObject<{
24
- name: z.ZodLiteral<"vercel">;
23
+ export declare const vercelIntegration: z.ZodObject<{
25
24
  metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
26
25
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
27
- name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
28
26
  installationUrl: z.ZodNullable<z.ZodString>;
27
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
29
28
  projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
30
29
  accountType: z.ZodLiteral<"team">;
31
30
  id: z.ZodString;
32
31
  slug: z.ZodString;
33
32
  }, z.core.$strip>, z.ZodObject<{
34
33
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
35
- name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
36
34
  installationUrl: z.ZodNullable<z.ZodString>;
35
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
37
36
  projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
38
37
  accountType: z.ZodLiteral<"user">;
38
+ email: z.ZodString;
39
39
  id: z.ZodString;
40
40
  username: z.ZodString;
41
- email: z.ZodString;
42
41
  }, z.core.$strip>], "accountType">;
42
+ name: z.ZodLiteral<"vercel">;
43
43
  }, z.core.$strip>;
44
- //#endregion
45
- export { vercelDestinationIdEnvKeys, vercelIntegration, vercelTeamMetadata, vercelUserMetadata };
44
+ //#endregion
@@ -1 +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().nullable()).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};
1
+ import{z}from"zod";const vercelDestinationIdEnvKeys=z.enum([`VERCEL_DEPLOYMENT_ID`]).options,vercelMetadataBase=z.object({avatar:z.string().nullable().default(null),installationUrl:z.string().nullable(),name:z.string().nullable().default(null),projects:z.record(z.string(),z.string().nullable()).default({})}),vercelTeamMetadata=vercelMetadataBase.extend({accountType:z.literal(`team`),id:z.string(),slug:z.string()}),vercelUserMetadata=vercelMetadataBase.extend({accountType:z.literal(`user`),email:z.string(),id:z.string(),username:z.string()}),vercelMetadataSchema=z.discriminatedUnion(`accountType`,[vercelTeamMetadata,vercelUserMetadata]),vercelIntegration=z.object({metadata:vercelMetadataSchema,name:z.literal(`vercel`)});export{vercelDestinationIdEnvKeys,vercelIntegration,vercelTeamMetadata,vercelUserMetadata};
@@ -6,7 +6,7 @@ import { z } from "zod";
6
6
  * (lowercased), plus the two outcomes that are not diagnostics: `ok`, and
7
7
  * the early returns for a build that produced no maps.
8
8
  */
9
- declare const releaseBuildResultSchema: z.ZodEnum<{
9
+ export declare const releaseBuildResultSchema: z.ZodEnum<{
10
10
  api_key_rejected: "api_key_rejected";
11
11
  api_key_scope_mismatch: "api_key_scope_mismatch";
12
12
  api_key_unreadable: "api_key_unreadable";
@@ -16,26 +16,26 @@ declare const releaseBuildResultSchema: z.ZodEnum<{
16
16
  ok: "ok";
17
17
  pipeline_failed: "pipeline_failed";
18
18
  }>;
19
- type ReleaseBuildResult = z.infer<typeof releaseBuildResultSchema>;
19
+ export type ReleaseBuildResult = z.infer<typeof releaseBuildResultSchema>;
20
20
  /**
21
21
  * Who has to fix it. Derived server-side from the reported result rather
22
22
  * than sent by the SDK, so an SDK bug can never relabel our own error
23
23
  * budget. `pipeline_failed` is the catch-all and counts as ours until
24
24
  * proven otherwise.
25
25
  */
26
- declare const releaseBuildFaultSchema: z.ZodEnum<{
26
+ export declare const releaseBuildFaultSchema: z.ZodEnum<{
27
27
  customer: "customer";
28
28
  interfere: "interfere";
29
29
  }>;
30
- type ReleaseBuildFault = z.infer<typeof releaseBuildFaultSchema>;
31
- declare function faultForBuildResult(result: ReleaseBuildResult): ReleaseBuildFault;
30
+ export type ReleaseBuildFault = z.infer<typeof releaseBuildFaultSchema>;
31
+ export declare function faultForBuildResult(result: ReleaseBuildResult): "customer" | "interfere";
32
32
  /**
33
33
  * Steps of the build pipeline, in order. `upload` covers `/sign`, the
34
34
  * direct-to-R2 PUTs and `/complete` as one span — the collector never
35
35
  * sees those PUTs, so it cannot break them down further. `total` is the
36
36
  * whole plugin, reported alongside the parts.
37
37
  */
38
- declare const releaseBuildStepSchema: z.ZodEnum<{
38
+ export declare const releaseBuildStepSchema: z.ZodEnum<{
39
39
  cleanup: "cleanup";
40
40
  create: "create";
41
41
  discover: "discover";
@@ -43,6 +43,5 @@ declare const releaseBuildStepSchema: z.ZodEnum<{
43
43
  total: "total";
44
44
  upload: "upload";
45
45
  }>;
46
- type ReleaseBuildStep = z.infer<typeof releaseBuildStepSchema>;
47
- //#endregion
48
- export { ReleaseBuildFault, ReleaseBuildResult, ReleaseBuildStep, faultForBuildResult, releaseBuildFaultSchema, releaseBuildResultSchema, releaseBuildStepSchema };
46
+ export type ReleaseBuildStep = z.infer<typeof releaseBuildStepSchema>;
47
+ //#endregion
@@ -6,7 +6,7 @@ import { z } from "zod";
6
6
  * (lowercased), plus the two outcomes that are not diagnostics: `ok`, and
7
7
  * the early returns for a build that produced no maps.
8
8
  */
9
- declare const releaseBuildResultSchema: z.ZodEnum<{
9
+ export declare const releaseBuildResultSchema: z.ZodEnum<{
10
10
  api_key_rejected: "api_key_rejected";
11
11
  api_key_scope_mismatch: "api_key_scope_mismatch";
12
12
  api_key_unreadable: "api_key_unreadable";
@@ -16,26 +16,26 @@ declare const releaseBuildResultSchema: z.ZodEnum<{
16
16
  ok: "ok";
17
17
  pipeline_failed: "pipeline_failed";
18
18
  }>;
19
- type ReleaseBuildResult = z.infer<typeof releaseBuildResultSchema>;
19
+ export type ReleaseBuildResult = z.infer<typeof releaseBuildResultSchema>;
20
20
  /**
21
21
  * Who has to fix it. Derived server-side from the reported result rather
22
22
  * than sent by the SDK, so an SDK bug can never relabel our own error
23
23
  * budget. `pipeline_failed` is the catch-all and counts as ours until
24
24
  * proven otherwise.
25
25
  */
26
- declare const releaseBuildFaultSchema: z.ZodEnum<{
26
+ export declare const releaseBuildFaultSchema: z.ZodEnum<{
27
27
  customer: "customer";
28
28
  interfere: "interfere";
29
29
  }>;
30
- type ReleaseBuildFault = z.infer<typeof releaseBuildFaultSchema>;
31
- declare function faultForBuildResult(result: ReleaseBuildResult): ReleaseBuildFault;
30
+ export type ReleaseBuildFault = z.infer<typeof releaseBuildFaultSchema>;
31
+ export declare function faultForBuildResult(result: ReleaseBuildResult): "customer" | "interfere";
32
32
  /**
33
33
  * Steps of the build pipeline, in order. `upload` covers `/sign`, the
34
34
  * direct-to-R2 PUTs and `/complete` as one span — the collector never
35
35
  * sees those PUTs, so it cannot break them down further. `total` is the
36
36
  * whole plugin, reported alongside the parts.
37
37
  */
38
- declare const releaseBuildStepSchema: z.ZodEnum<{
38
+ export declare const releaseBuildStepSchema: z.ZodEnum<{
39
39
  cleanup: "cleanup";
40
40
  create: "create";
41
41
  discover: "discover";
@@ -43,6 +43,5 @@ declare const releaseBuildStepSchema: z.ZodEnum<{
43
43
  total: "total";
44
44
  upload: "upload";
45
45
  }>;
46
- type ReleaseBuildStep = z.infer<typeof releaseBuildStepSchema>;
47
- //#endregion
48
- export { ReleaseBuildFault, ReleaseBuildResult, ReleaseBuildStep, faultForBuildResult, releaseBuildFaultSchema, releaseBuildResultSchema, releaseBuildStepSchema };
46
+ export type ReleaseBuildStep = z.infer<typeof releaseBuildStepSchema>;
47
+ //#endregion
@@ -1 +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;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const require_releases_slug=require("./slug.cjs"),require_integrations_index=require("../integrations/index.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({buildId:zod.z.string(),destination:require_integrations_index.releaseDestinationMetadataSchema.nullable(),producerVersion:zod.z.string().optional(),slug:zod.z.string().optional(),source:require_integrations_index.releaseSourceMetadataSchema}).meta({description:`Request body for creating a release.`,id:`CreateReleaseRequest`,title:`CreateReleaseRequest`}),createReleaseResponse=zod.z.object({build:zod.z.object({hash:zod.z.string()}).meta({id:`ReleaseBuildRef`,title:`ReleaseBuildRef`}),destination:zod.z.object({id:zod.z.string(),slug:require_releases_slug.releaseSlugSchema,environment:zod.z.string().nullable()}).meta({id:`ReleaseDestinationRef`,title:`ReleaseDestinationRef`}),org:orgRefSchema,source:zod.z.object({id:zod.z.string()}).meta({id:`ReleaseSourceRef`,title:`ReleaseSourceRef`}),surface:surfaceRefSchema}).meta({description:`Response body returned after creating a release.`,id:`CreateReleaseResponse`,title:`CreateReleaseResponse`});exports.createReleaseRequest=createReleaseRequest,exports.createReleaseResponse=createReleaseResponse,exports.releaseStatusSchema=releaseStatusSchema;