@interfere/types 10.0.1 → 10.0.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.
@@ -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()).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),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;
@@ -5,7 +5,7 @@ declare const vercelTeamMetadata: z.ZodObject<{
5
5
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6
6
  name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
7
7
  installationUrl: z.ZodNullable<z.ZodString>;
8
- projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
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;
@@ -14,7 +14,7 @@ declare const vercelUserMetadata: z.ZodObject<{
14
14
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
15
15
  name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16
16
  installationUrl: z.ZodNullable<z.ZodString>;
17
- projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
17
+ projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
18
18
  accountType: z.ZodLiteral<"user">;
19
19
  id: z.ZodString;
20
20
  username: z.ZodString;
@@ -26,7 +26,7 @@ declare const vercelIntegration: z.ZodObject<{
26
26
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
27
27
  name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
28
28
  installationUrl: z.ZodNullable<z.ZodString>;
29
- projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
29
+ projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
30
30
  accountType: z.ZodLiteral<"team">;
31
31
  id: z.ZodString;
32
32
  slug: z.ZodString;
@@ -34,7 +34,7 @@ declare const vercelIntegration: z.ZodObject<{
34
34
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
35
35
  name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
36
36
  installationUrl: z.ZodNullable<z.ZodString>;
37
- projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
37
+ projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
38
38
  accountType: z.ZodLiteral<"user">;
39
39
  id: z.ZodString;
40
40
  username: z.ZodString;
@@ -5,7 +5,7 @@ declare const vercelTeamMetadata: z.ZodObject<{
5
5
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6
6
  name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
7
7
  installationUrl: z.ZodNullable<z.ZodString>;
8
- projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
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;
@@ -14,7 +14,7 @@ declare const vercelUserMetadata: z.ZodObject<{
14
14
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
15
15
  name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16
16
  installationUrl: z.ZodNullable<z.ZodString>;
17
- projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
17
+ projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
18
18
  accountType: z.ZodLiteral<"user">;
19
19
  id: z.ZodString;
20
20
  username: z.ZodString;
@@ -26,7 +26,7 @@ declare const vercelIntegration: z.ZodObject<{
26
26
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
27
27
  name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
28
28
  installationUrl: z.ZodNullable<z.ZodString>;
29
- projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
29
+ projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
30
30
  accountType: z.ZodLiteral<"team">;
31
31
  id: z.ZodString;
32
32
  slug: z.ZodString;
@@ -34,7 +34,7 @@ declare const vercelIntegration: z.ZodObject<{
34
34
  avatar: z.ZodDefault<z.ZodNullable<z.ZodString>>;
35
35
  name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
36
36
  installationUrl: z.ZodNullable<z.ZodString>;
37
- projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
37
+ projects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
38
38
  accountType: z.ZodLiteral<"user">;
39
39
  id: z.ZodString;
40
40
  username: z.ZodString;
@@ -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()).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),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 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const API_KEY_PREFIXES=[`interfere_secret_us_`,`interfere_secret_eu_`,`interfere_ak_`],DASHBOARD_KEYS_URL=`https://interfere.com/settings/api-keys`,API_KEY_PREFIX_HINT=API_KEY_PREFIXES.map(prefix=>`\`${prefix}\``).join(` or `);function formatApiKeyPreview(apiKey){let preview=apiKey.slice(0,12);return apiKey.length>12?`${preview}...`:preview}function isInterfereApiKey(apiKey){return API_KEY_PREFIXES.some(prefix=>apiKey.startsWith(prefix))}const CATALOG={API_KEY_WRONG_PREFIX:(ctx,input)=>({code:`API_KEY_WRONG_PREFIX`,severity:`fatal`,title:`INTERFERE_API_KEY has wrong prefix`,details:[`Expected a key starting with ${API_KEY_PREFIX_HINT} but got \`${formatApiKeyPreview(input.apiKey??``)}\`.`,`If you set a publishable key (\`interfere_pub_us_*\`, \`interfere_pub_eu_*\`, or legacy \`interfere_pk_*\`), put it in \`${ctx.publicKeyEnvVar}\` instead.`,`Generate a new API key at ${DASHBOARD_KEYS_URL}.`]}),API_KEY_UNREADABLE:ctx=>({code:`API_KEY_UNREADABLE`,severity:`fatal`,title:`API key could not be read`,details:[`INTERFERE_API_KEY was sent but the server could not read it.`,`Expected a key starting with ${API_KEY_PREFIX_HINT}.`,`If you set a publishable key (\`interfere_pub_us_*\`, \`interfere_pub_eu_*\`, or legacy \`interfere_pk_*\`), put it in \`${ctx.publicKeyEnvVar}\` instead.`,`Generate a new API key at ${DASHBOARD_KEYS_URL}.`]}),API_KEY_REJECTED:()=>({code:`API_KEY_REJECTED`,severity:`fatal`,title:`API key rejected by server`,details:[`INTERFERE_API_KEY was sent but the server did not recognize it.`,`Verify it matches an active key at ${DASHBOARD_KEYS_URL}.`,`If you recently rotated keys, restart your build with the new value.`]}),API_KEY_SCOPE_MISMATCH:()=>({code:`API_KEY_SCOPE_MISMATCH`,severity:`fatal`,title:`API key missing release scope`,details:[`INTERFERE_API_KEY was recognized but cannot publish release metadata.`,`Create or update the key with \`release:write\` scope at ${DASHBOARD_KEYS_URL}.`,`If you recently changed key scopes, restart your build with the new value.`]}),RELEASE_PIPELINE_FAILED:(_ctx,input)=>({code:`RELEASE_PIPELINE_FAILED`,severity:`warn`,title:`Skipping release pipeline`,details:[`Interfere failed to process this release.`,`Events from this release will be ingested, but ignored as finding when generating insights.`,`Please check https://status.interfere.com for any outages, or contact support@interfere.com if the problem persists.`,`Error: ${input.errorMessage??`<unknown>`}`]})};function diagnoseRelease(code,ctx,input={}){return CATALOG[code](ctx,input)}const COLLECTOR_CODE_TO_DIAGNOSTIC={COLLECTOR_AUTH_MISSING:`API_KEY_UNREADABLE`,COLLECTOR_AUTH_AK_INVALID:`API_KEY_REJECTED`,COLLECTOR_AUTH_AK_SCOPE_MISMATCH:`API_KEY_SCOPE_MISMATCH`};function classifyReleasePipelineError(error){if(typeof error!=`object`||!error)return`RELEASE_PIPELINE_FAILED`;let{code}=error;return typeof code==`string`?COLLECTOR_CODE_TO_DIAGNOSTIC[code]??`RELEASE_PIPELINE_FAILED`:`RELEASE_PIPELINE_FAILED`}exports.API_KEY_PREFIXES=API_KEY_PREFIXES,exports.classifyReleasePipelineError=classifyReleasePipelineError,exports.diagnoseRelease=diagnoseRelease,exports.formatApiKeyPreview=formatApiKeyPreview,exports.isInterfereApiKey=isInterfereApiKey;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const API_KEY_PREFIXES=[`interfere_secret_us_`,`interfere_secret_eu_`,`interfere_ak_`],DASHBOARD_KEYS_URL=`https://interfere.com/settings/api-keys`,API_KEY_PREFIX_HINT=API_KEY_PREFIXES.map(prefix=>`\`${prefix}\``).join(` or `);function formatApiKeyPreview(apiKey){let preview=apiKey.slice(0,12);return apiKey.length>12?`${preview}...`:preview}function isInterfereApiKey(apiKey){return API_KEY_PREFIXES.some(prefix=>apiKey.startsWith(prefix))}const CATALOG={API_KEY_WRONG_PREFIX:(ctx,input)=>({code:`API_KEY_WRONG_PREFIX`,severity:`fatal`,title:`INTERFERE_API_KEY has wrong prefix`,details:[`Expected a key starting with ${API_KEY_PREFIX_HINT} but got \`${formatApiKeyPreview(input.apiKey??``)}\`.`,`If you set a public key (\`interfere_public_us_*\`, \`interfere_public_eu_*\`, or legacy \`interfere_pub_*\`/\`interfere_pk_*\`), put it in \`${ctx.publicKeyEnvVar}\` instead.`,`Generate a new secret key at ${DASHBOARD_KEYS_URL}.`]}),API_KEY_UNREADABLE:ctx=>({code:`API_KEY_UNREADABLE`,severity:`fatal`,title:`Secret key could not be read`,details:[`INTERFERE_API_KEY was sent but the server could not read it.`,`Expected a key starting with ${API_KEY_PREFIX_HINT}.`,`If you set a public key (\`interfere_public_us_*\`, \`interfere_public_eu_*\`, or legacy \`interfere_pub_*\`/\`interfere_pk_*\`), put it in \`${ctx.publicKeyEnvVar}\` instead.`,`Generate a new secret key at ${DASHBOARD_KEYS_URL}.`]}),API_KEY_REJECTED:()=>({code:`API_KEY_REJECTED`,severity:`fatal`,title:`Secret key rejected by server`,details:[`INTERFERE_API_KEY was sent but the server did not recognize it.`,`Verify it matches an active key at ${DASHBOARD_KEYS_URL}.`,`If you recently rotated keys, restart your build with the new value.`]}),API_KEY_SCOPE_MISMATCH:()=>({code:`API_KEY_SCOPE_MISMATCH`,severity:`fatal`,title:`Secret key missing release scope`,details:[`INTERFERE_API_KEY was recognized but cannot publish release metadata.`,`Create or update the key with \`release:write\` scope at ${DASHBOARD_KEYS_URL}.`,`If you recently changed key scopes, restart your build with the new value.`]}),RELEASE_PIPELINE_FAILED:(_ctx,input)=>({code:`RELEASE_PIPELINE_FAILED`,severity:`warn`,title:`Skipping release pipeline`,details:[`Interfere failed to process this release.`,`Events from this release will be ingested, but ignored as finding when generating insights.`,`Please check https://status.interfere.com for any outages, or contact support@interfere.com if the problem persists.`,`Error: ${input.errorMessage??`<unknown>`}`]})};function diagnoseRelease(code,ctx,input={}){return CATALOG[code](ctx,input)}const COLLECTOR_CODE_TO_DIAGNOSTIC={COLLECTOR_AUTH_MISSING:`API_KEY_UNREADABLE`,COLLECTOR_AUTH_AK_INVALID:`API_KEY_REJECTED`,COLLECTOR_AUTH_AK_SCOPE_MISMATCH:`API_KEY_SCOPE_MISMATCH`};function classifyReleasePipelineError(error){if(typeof error!=`object`||!error)return`RELEASE_PIPELINE_FAILED`;let{code}=error;return typeof code==`string`?COLLECTOR_CODE_TO_DIAGNOSTIC[code]??`RELEASE_PIPELINE_FAILED`:`RELEASE_PIPELINE_FAILED`}exports.API_KEY_PREFIXES=API_KEY_PREFIXES,exports.classifyReleasePipelineError=classifyReleasePipelineError,exports.diagnoseRelease=diagnoseRelease,exports.formatApiKeyPreview=formatApiKeyPreview,exports.isInterfereApiKey=isInterfereApiKey;
@@ -1 +1 @@
1
- const API_KEY_PREFIXES=[`interfere_secret_us_`,`interfere_secret_eu_`,`interfere_ak_`],DASHBOARD_KEYS_URL=`https://interfere.com/settings/api-keys`,API_KEY_PREFIX_HINT=API_KEY_PREFIXES.map(prefix=>`\`${prefix}\``).join(` or `);function formatApiKeyPreview(apiKey){let preview=apiKey.slice(0,12);return apiKey.length>12?`${preview}...`:preview}function isInterfereApiKey(apiKey){return API_KEY_PREFIXES.some(prefix=>apiKey.startsWith(prefix))}const CATALOG={API_KEY_WRONG_PREFIX:(ctx,input)=>({code:`API_KEY_WRONG_PREFIX`,severity:`fatal`,title:`INTERFERE_API_KEY has wrong prefix`,details:[`Expected a key starting with ${API_KEY_PREFIX_HINT} but got \`${formatApiKeyPreview(input.apiKey??``)}\`.`,`If you set a publishable key (\`interfere_pub_us_*\`, \`interfere_pub_eu_*\`, or legacy \`interfere_pk_*\`), put it in \`${ctx.publicKeyEnvVar}\` instead.`,`Generate a new API key at ${DASHBOARD_KEYS_URL}.`]}),API_KEY_UNREADABLE:ctx=>({code:`API_KEY_UNREADABLE`,severity:`fatal`,title:`API key could not be read`,details:[`INTERFERE_API_KEY was sent but the server could not read it.`,`Expected a key starting with ${API_KEY_PREFIX_HINT}.`,`If you set a publishable key (\`interfere_pub_us_*\`, \`interfere_pub_eu_*\`, or legacy \`interfere_pk_*\`), put it in \`${ctx.publicKeyEnvVar}\` instead.`,`Generate a new API key at ${DASHBOARD_KEYS_URL}.`]}),API_KEY_REJECTED:()=>({code:`API_KEY_REJECTED`,severity:`fatal`,title:`API key rejected by server`,details:[`INTERFERE_API_KEY was sent but the server did not recognize it.`,`Verify it matches an active key at ${DASHBOARD_KEYS_URL}.`,`If you recently rotated keys, restart your build with the new value.`]}),API_KEY_SCOPE_MISMATCH:()=>({code:`API_KEY_SCOPE_MISMATCH`,severity:`fatal`,title:`API key missing release scope`,details:[`INTERFERE_API_KEY was recognized but cannot publish release metadata.`,`Create or update the key with \`release:write\` scope at ${DASHBOARD_KEYS_URL}.`,`If you recently changed key scopes, restart your build with the new value.`]}),RELEASE_PIPELINE_FAILED:(_ctx,input)=>({code:`RELEASE_PIPELINE_FAILED`,severity:`warn`,title:`Skipping release pipeline`,details:[`Interfere failed to process this release.`,`Events from this release will be ingested, but ignored as finding when generating insights.`,`Please check https://status.interfere.com for any outages, or contact support@interfere.com if the problem persists.`,`Error: ${input.errorMessage??`<unknown>`}`]})};function diagnoseRelease(code,ctx,input={}){return CATALOG[code](ctx,input)}const COLLECTOR_CODE_TO_DIAGNOSTIC={COLLECTOR_AUTH_MISSING:`API_KEY_UNREADABLE`,COLLECTOR_AUTH_AK_INVALID:`API_KEY_REJECTED`,COLLECTOR_AUTH_AK_SCOPE_MISMATCH:`API_KEY_SCOPE_MISMATCH`};function classifyReleasePipelineError(error){if(typeof error!=`object`||!error)return`RELEASE_PIPELINE_FAILED`;let{code}=error;return typeof code==`string`?COLLECTOR_CODE_TO_DIAGNOSTIC[code]??`RELEASE_PIPELINE_FAILED`:`RELEASE_PIPELINE_FAILED`}export{API_KEY_PREFIXES,classifyReleasePipelineError,diagnoseRelease,formatApiKeyPreview,isInterfereApiKey};
1
+ const API_KEY_PREFIXES=[`interfere_secret_us_`,`interfere_secret_eu_`,`interfere_ak_`],DASHBOARD_KEYS_URL=`https://interfere.com/settings/api-keys`,API_KEY_PREFIX_HINT=API_KEY_PREFIXES.map(prefix=>`\`${prefix}\``).join(` or `);function formatApiKeyPreview(apiKey){let preview=apiKey.slice(0,12);return apiKey.length>12?`${preview}...`:preview}function isInterfereApiKey(apiKey){return API_KEY_PREFIXES.some(prefix=>apiKey.startsWith(prefix))}const CATALOG={API_KEY_WRONG_PREFIX:(ctx,input)=>({code:`API_KEY_WRONG_PREFIX`,severity:`fatal`,title:`INTERFERE_API_KEY has wrong prefix`,details:[`Expected a key starting with ${API_KEY_PREFIX_HINT} but got \`${formatApiKeyPreview(input.apiKey??``)}\`.`,`If you set a public key (\`interfere_public_us_*\`, \`interfere_public_eu_*\`, or legacy \`interfere_pub_*\`/\`interfere_pk_*\`), put it in \`${ctx.publicKeyEnvVar}\` instead.`,`Generate a new secret key at ${DASHBOARD_KEYS_URL}.`]}),API_KEY_UNREADABLE:ctx=>({code:`API_KEY_UNREADABLE`,severity:`fatal`,title:`Secret key could not be read`,details:[`INTERFERE_API_KEY was sent but the server could not read it.`,`Expected a key starting with ${API_KEY_PREFIX_HINT}.`,`If you set a public key (\`interfere_public_us_*\`, \`interfere_public_eu_*\`, or legacy \`interfere_pub_*\`/\`interfere_pk_*\`), put it in \`${ctx.publicKeyEnvVar}\` instead.`,`Generate a new secret key at ${DASHBOARD_KEYS_URL}.`]}),API_KEY_REJECTED:()=>({code:`API_KEY_REJECTED`,severity:`fatal`,title:`Secret key rejected by server`,details:[`INTERFERE_API_KEY was sent but the server did not recognize it.`,`Verify it matches an active key at ${DASHBOARD_KEYS_URL}.`,`If you recently rotated keys, restart your build with the new value.`]}),API_KEY_SCOPE_MISMATCH:()=>({code:`API_KEY_SCOPE_MISMATCH`,severity:`fatal`,title:`Secret key missing release scope`,details:[`INTERFERE_API_KEY was recognized but cannot publish release metadata.`,`Create or update the key with \`release:write\` scope at ${DASHBOARD_KEYS_URL}.`,`If you recently changed key scopes, restart your build with the new value.`]}),RELEASE_PIPELINE_FAILED:(_ctx,input)=>({code:`RELEASE_PIPELINE_FAILED`,severity:`warn`,title:`Skipping release pipeline`,details:[`Interfere failed to process this release.`,`Events from this release will be ingested, but ignored as finding when generating insights.`,`Please check https://status.interfere.com for any outages, or contact support@interfere.com if the problem persists.`,`Error: ${input.errorMessage??`<unknown>`}`]})};function diagnoseRelease(code,ctx,input={}){return CATALOG[code](ctx,input)}const COLLECTOR_CODE_TO_DIAGNOSTIC={COLLECTOR_AUTH_MISSING:`API_KEY_UNREADABLE`,COLLECTOR_AUTH_AK_INVALID:`API_KEY_REJECTED`,COLLECTOR_AUTH_AK_SCOPE_MISMATCH:`API_KEY_SCOPE_MISMATCH`};function classifyReleasePipelineError(error){if(typeof error!=`object`||!error)return`RELEASE_PIPELINE_FAILED`;let{code}=error;return typeof code==`string`?COLLECTOR_CODE_TO_DIAGNOSTIC[code]??`RELEASE_PIPELINE_FAILED`:`RELEASE_PIPELINE_FAILED`}export{API_KEY_PREFIXES,classifyReleasePipelineError,diagnoseRelease,formatApiKeyPreview,isInterfereApiKey};
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),exports.API_URL_GLOBAL=`__INTERFERE_API_URL__`,exports.ENVIRONMENT_GLOBAL=`__INTERFERE_ENVIRONMENT__`,exports.FORCE_ENABLE_GLOBAL=`__INTERFERE_FORCE_ENABLE__`,exports.INGEST_URL_GLOBAL=`__INTERFERE_INGEST_URL__`,exports.PUBLIC_KEY_GLOBAL=`__INTERFERE_PUBLIC_KEY__`,exports.RELEASE_SLUG_GLOBAL=`__INTERFERE_RELEASE_SLUG__`,exports.SDK_STACK_GLOBAL=`__INTERFERE_SDK_STACK__`;
@@ -0,0 +1,10 @@
1
+ //#region src/sdk/injected-globals.d.ts
2
+ declare const API_URL_GLOBAL = "__INTERFERE_API_URL__";
3
+ declare const ENVIRONMENT_GLOBAL = "__INTERFERE_ENVIRONMENT__";
4
+ declare const FORCE_ENABLE_GLOBAL = "__INTERFERE_FORCE_ENABLE__";
5
+ declare const INGEST_URL_GLOBAL = "__INTERFERE_INGEST_URL__";
6
+ declare const PUBLIC_KEY_GLOBAL = "__INTERFERE_PUBLIC_KEY__";
7
+ declare const RELEASE_SLUG_GLOBAL = "__INTERFERE_RELEASE_SLUG__";
8
+ declare const SDK_STACK_GLOBAL = "__INTERFERE_SDK_STACK__";
9
+ //#endregion
10
+ export { API_URL_GLOBAL, ENVIRONMENT_GLOBAL, FORCE_ENABLE_GLOBAL, INGEST_URL_GLOBAL, PUBLIC_KEY_GLOBAL, RELEASE_SLUG_GLOBAL, SDK_STACK_GLOBAL };
@@ -0,0 +1,10 @@
1
+ //#region src/sdk/injected-globals.d.ts
2
+ declare const API_URL_GLOBAL = "__INTERFERE_API_URL__";
3
+ declare const ENVIRONMENT_GLOBAL = "__INTERFERE_ENVIRONMENT__";
4
+ declare const FORCE_ENABLE_GLOBAL = "__INTERFERE_FORCE_ENABLE__";
5
+ declare const INGEST_URL_GLOBAL = "__INTERFERE_INGEST_URL__";
6
+ declare const PUBLIC_KEY_GLOBAL = "__INTERFERE_PUBLIC_KEY__";
7
+ declare const RELEASE_SLUG_GLOBAL = "__INTERFERE_RELEASE_SLUG__";
8
+ declare const SDK_STACK_GLOBAL = "__INTERFERE_SDK_STACK__";
9
+ //#endregion
10
+ export { API_URL_GLOBAL, ENVIRONMENT_GLOBAL, FORCE_ENABLE_GLOBAL, INGEST_URL_GLOBAL, PUBLIC_KEY_GLOBAL, RELEASE_SLUG_GLOBAL, SDK_STACK_GLOBAL };
@@ -0,0 +1 @@
1
+ const API_URL_GLOBAL=`__INTERFERE_API_URL__`,ENVIRONMENT_GLOBAL=`__INTERFERE_ENVIRONMENT__`,FORCE_ENABLE_GLOBAL=`__INTERFERE_FORCE_ENABLE__`,INGEST_URL_GLOBAL=`__INTERFERE_INGEST_URL__`,PUBLIC_KEY_GLOBAL=`__INTERFERE_PUBLIC_KEY__`,RELEASE_SLUG_GLOBAL=`__INTERFERE_RELEASE_SLUG__`,SDK_STACK_GLOBAL=`__INTERFERE_SDK_STACK__`;export{API_URL_GLOBAL,ENVIRONMENT_GLOBAL,FORCE_ENABLE_GLOBAL,INGEST_URL_GLOBAL,PUBLIC_KEY_GLOBAL,RELEASE_SLUG_GLOBAL,SDK_STACK_GLOBAL};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interfere/types",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "license": "MIT",
5
5
  "description": "TypeScript & Zod types for Interfere",
6
6
  "keywords": [