UNPKG

50.2 kBSource Map (JSON)View Raw
1{"version":3,"file":"types.js","names":["ProgramStatus","HTTP_STATUS_CODE","CONTINUE_100","SWITCHING_PROTOCOLS_101","PROCESSING_102","OK_200","CREATED_201","ACCEPTED_202","NON_AUTHORITATIVE_INFORMATION_203","NO_CONTENT_204","RESET_CONTENT_205","PARTIAL_CONTENT_206","MULTI_STATUS_207","ALREADY_REPORTED_208","IM_USED_226","MULTIPLE_CHOICES_300","MOVED_PERMANENTLY_301","FOUND_302","SEE_OTHER_303","NOT_MODIFIED_304","USE_PROXY_305","SWITCH_PROXY_306","TEMPORARY_REDIRECT_307","PERMANENT_REDIRECT_308","BAD_REQUEST_400","UNAUTHORIZED_401","PAYMENT_REQUIRED_402","FORBIDDEN_403","NOT_FOUND_404","METHOD_NOT_ALLOWED_405","NOT_ACCEPTABLE_406","PROXY_AUTHENTICATION_REQUIRED_407","REQUEST_TIMEOUT_408","CONFLICT_409","GONE_410","LENGTH_REQUIRED_411","PRECONDITION_FAILED_412","PAYLOAD_TOO_LARGE_413","URI_TOO_LONG_414","UNSUPPORTED_MEDIA_TYPE_415","RANGE_NOT_SATISFIABLE_416","EXPECTATION_FAILED_417","I_AM_A_TEAPOT_418","MISDIRECTED_REQUEST_421","UNPROCESSABLE_ENTITY_422","LOCKED_423","FAILED_DEPENDENCY_424","UPGRADE_REQUIRED_426","PRECONDITION_REQUIRED_428","TOO_MANY_REQUESTS_429","REQUEST_HEADER_FIELDS_TOO_LARGE_431","UNAVAILABLE_FOR_LEGAL_REASONS_451","INTERNAL_SERVER_ERROR_500","NOT_IMPLEMENTED_501","BAD_GATEWAY_502","SERVICE_UNAVAILABLE_503","GATEWAY_TIMEOUT_504","HTTP_VERSION_NOT_SUPPORTED_505","VARIANT_ALSO_NEGOTIATES_506","INSUFFICIENT_STORAGE_507","LOOP_DETECTED_508","NOT_EXTENDED_510","NETWORK_AUTHENTICATION_REQUIRED_511"],"sources":["../../src/redux/types.ts"],"sourcesContent":["import type { TrailingSlash } from \"gatsby-page-utils\"\nimport type { Express } from \"express\"\nimport { IProgram, Stage } from \"../commands/types\"\nimport { GraphQLFieldExtensionDefinition } from \"../schema/extensions\"\nimport {\n DocumentNode,\n GraphQLSchema,\n DefinitionNode,\n SourceLocation,\n} from \"graphql\"\nimport { SchemaComposer } from \"graphql-compose\"\nimport { IGatsbyCLIState } from \"gatsby-cli/src/reporter/redux/types\"\nimport { ThunkAction } from \"redux-thunk\"\nimport { InternalJob, JobResultInterface } from \"../utils/jobs/manager\"\nimport { ITypeMetadata } from \"../schema/infer/inference-metadata\"\nimport { Span } from \"opentracing\"\nimport { ICollectedSlices } from \"../utils/babel/find-slices\"\nimport type {\n IAdapter,\n IAdapterFinalConfig,\n IAdapterManager,\n} from \"../utils/adapter/types\"\n\ntype SystemPath = string\ntype Identifier = string\n\nexport interface IRedirect {\n fromPath: string\n toPath: string\n isPermanent?: boolean\n redirectInBrowser?: boolean\n ignoreCase: boolean\n statusCode?: HttpStatusCode\n // Users can add anything to this createRedirect API\n [key: string]: any\n}\n\nexport enum ProgramStatus {\n BOOTSTRAP_FINISHED = `BOOTSTRAP_FINISHED`,\n BOOTSTRAP_QUERY_RUNNING_FINISHED = `BOOTSTRAP_QUERY_RUNNING_FINISHED`,\n}\n\nexport type PageMode = \"SSG\" | \"DSG\" | \"SSR\"\n\nexport interface IGatsbyPage {\n internalComponentName: string\n path: string\n matchPath: undefined | string\n component: SystemPath\n componentChunkName: string\n isCreatedByStatefulCreatePages: boolean\n context: Record<string, unknown>\n updatedAt: number\n // eslint-disable-next-line @typescript-eslint/naming-convention\n pluginCreator___NODE: Identifier\n pluginCreatorId: Identifier\n componentPath: SystemPath\n ownerNodeId: Identifier\n manifestId?: string\n defer?: boolean\n /**\n * INTERNAL. Do not use `page.mode`, it can be removed at any time\n * `page.mode` is currently reliable only in engines and `onPostBuild` hook\n * (in develop it is dynamic and can change at any time)\n * TODO: remove, see comments in utils/page-mode:materializePageMode\n *\n * @internal\n */\n mode: PageMode\n slices: Record<string, string>\n}\n\nexport interface IGatsbySlice {\n componentPath: string\n componentChunkName: string\n context: Record<string, unknown>\n name: string\n updatedAt: number\n}\n\nexport interface IGatsbyFunction {\n /** The route in the browser to access the function **/\n functionRoute: string\n /** The absolute path to the original function **/\n originalAbsoluteFilePath: string\n /** The relative path to the original function **/\n originalRelativeFilePath: string\n /** The relative path to the compiled function (always ends with .js) **/\n relativeCompiledFilePath: string\n /** The absolute path to the compiled function (doesn't transfer across machines) **/\n absoluteCompiledFilePath: string\n /** The matchPath regex created by path-to-regexp. Only created if the function is dynamic. **/\n matchPath: string | undefined\n /** The plugin that owns this function route **/\n pluginName: string\n /** Function identifier used to match functions usage in routes manifest */\n functionId: string\n}\n\nexport interface IGraphQLTypegenOptions {\n typesOutputPath: string\n documentSearchPaths: Array<string>\n generateOnBuild: boolean\n}\n\nexport interface IHeader {\n source: string\n headers: Array<{\n key: string\n value: string\n }>\n}\n\n// TODO: The keys of IGatsbyConfig are all optional so that in reducers like reducers/config.ts the default state for the config can be an empty object. This isn't ideal because some of those options are actually always defined because Joi validation sets defaults. Somehow fix this :D\nexport interface IGatsbyConfig {\n plugins?: Array<{\n // This is the name of the plugin like `gatsby-plugin-manifest`\n resolve: string\n options: {\n [key: string]: unknown\n }\n }>\n siteMetadata?: {\n title?: string\n author?: string\n description?: string\n siteUrl?: string\n // siteMetadata is free form\n [key: string]: unknown\n }\n // @deprecated\n polyfill?: boolean\n developMiddleware?: (app: Express) => void\n proxy?: any\n partytownProxiedURLs?: Array<string>\n pathPrefix?: string\n assetPrefix?: string\n mapping?: Record<string, string>\n jsxRuntime?: \"classic\" | \"automatic\"\n jsxImportSource?: string\n trailingSlash?: TrailingSlash\n graphqlTypegen?: IGraphQLTypegenOptions\n headers?: Array<IHeader>\n adapter?: IAdapter\n}\n\nexport interface IGatsbyNode {\n id: Identifier\n parent: Identifier\n children: Array<Identifier>\n internal: {\n type: string\n counter: number\n owner: string\n contentDigest: string\n mediaType?: string\n content?: string\n description?: string\n }\n [key: string]: unknown\n fields: Array<string>\n}\n\nexport interface IGatsbyPlugin {\n id: Identifier\n name: string\n version: string\n [key: string]: any\n}\n\nexport interface IGatsbyPluginContext {\n [key: string]: (...args: Array<any>) => any\n}\n\nexport interface IGatsbyStaticQueryComponents {\n name: string\n componentPath: SystemPath\n id: Identifier\n query: string\n hash: string\n}\n\nexport interface IGatsbyPageComponent {\n componentPath: SystemPath\n componentChunkName: string\n query: string\n pages: Set<string>\n isInBootstrap: boolean\n serverData: boolean\n config: boolean\n isSlice: boolean\n Head: boolean\n}\n\nexport interface IDefinitionMeta {\n name: string\n def: DefinitionNode\n filePath: string\n text: string\n templateLoc: SourceLocation\n printedAst: string | null\n isHook: boolean\n isStaticQuery: boolean\n isFragment: boolean\n isConfigQuery: boolean\n hash: number\n}\n\ntype GatsbyNodes = Map<string, IGatsbyNode>\n\nexport interface IGatsbyIncompleteJobV2 {\n job: InternalJob\n}\n\nexport interface IGatsbyIncompleteJob {\n job: InternalJob\n plugin: IGatsbyPlugin\n}\n\nexport interface IGatsbyCompleteJobV2 {\n result: JobResultInterface\n inputPaths: InternalJob[\"inputPaths\"]\n}\n\nexport interface IPlugin {\n name: string\n options: Record<string, unknown>\n}\n\nexport interface IBabelStage {\n plugins: Array<IPlugin>\n presets: Array<IPlugin>\n options?: {\n cacheDirectory: boolean\n sourceType: string\n sourceMaps?: string\n }\n}\n\nexport interface IStateProgram extends IProgram {\n extensions: Array<string>\n browserslist: Array<string>\n}\n\nexport interface IQueryState {\n dirty: number\n running: number\n}\n\nexport interface IComponentState {\n componentPath: string\n query: string\n pages: Set<Identifier>\n errors: number\n}\n\nexport interface IHtmlFileState {\n dirty: number\n isDeleted: boolean\n pageDataHash: string\n}\n\nexport interface IStaticQueryResultState {\n dirty: number\n staticQueryResultHash: string\n}\n\nexport type GatsbyNodeAPI =\n | \"onPreBootstrap\"\n | \"onPostBootstrap\"\n | \"onCreateWebpackConfig\"\n | \"onCreatePage\"\n | \"onCreateNode\"\n | \"sourceNodes\"\n | \"createPagesStatefully\"\n | \"createPages\"\n | \"onPostBuild\"\n\nexport interface IGatsbyState {\n program: IStateProgram\n nodes: GatsbyNodes\n nodesByType: Map<string, GatsbyNodes>\n resolvedNodesCache: Map<string, any> // TODO\n nodesTouched: Set<string>\n typeOwners: {\n pluginsToTypes: Map<\n IGatsbyPlugin[`name`],\n Set<IGatsbyNode[`internal`][`type`]>\n >\n typesToPlugins: Map<IGatsbyNode[`internal`][`type`], IGatsbyPlugin[`name`]>\n }\n nodeManifests: Array<INodeManifest>\n requestHeaders: Map<string, { [header: string]: string }>\n statefulSourcePlugins: Set<string>\n telemetry: ITelemetry\n lastAction: ActionsUnion\n flattenedPlugins: Array<{\n resolve: SystemPath\n id: Identifier\n name: string\n version: string\n pluginOptions: {\n plugins: []\n [key: string]: unknown\n }\n nodeAPIs: Array<GatsbyNodeAPI>\n browserAPIs: Array<\n | \"onRouteUpdate\"\n | \"registerServiceWorker\"\n | \"onServiceWorkerActive\"\n | \"onPostPrefetchPathname\"\n >\n ssrAPIs: Array<\"onRenderBody\" | \"onPreRenderHTML\">\n pluginFilepath: SystemPath\n subPluginPaths?: Array<string>\n modulePath?: string\n }>\n config: IGatsbyConfig\n functions: Array<IGatsbyFunction>\n pages: Map<string, IGatsbyPage>\n schema: GraphQLSchema\n definitions: Map<string, IDefinitionMeta>\n status: {\n plugins: Record<string, IGatsbyPlugin>\n PLUGINS_HASH: Identifier\n LAST_NODE_COUNTER: number\n cdnObfuscatedPrefix: string\n }\n queries: {\n byNode: Map<Identifier, Set<Identifier>>\n byConnection: Map<string, Set<Identifier>>\n queryNodes: Map<Identifier, Set<Identifier>>\n trackedQueries: Map<Identifier, IQueryState>\n trackedComponents: Map<string, IComponentState>\n deletedQueries: Set<Identifier>\n dirtyQueriesListToEmitViaWebsocket: Array<string>\n }\n components: Map<IGatsbyPageComponent[\"componentPath\"], IGatsbyPageComponent>\n staticQueryComponents: Map<\n IGatsbyStaticQueryComponents[\"id\"],\n IGatsbyStaticQueryComponents\n >\n staticQueriesByTemplate: Map<SystemPath, Array<Identifier>>\n pendingPageDataWrites: {\n pagePaths: Set<string>\n sliceNames: Set<string>\n }\n // @deprecated\n jobs: {\n active: Array<any> // TODO\n done: Array<any> // TODO\n }\n jobsV2: {\n incomplete: Map<Identifier, IGatsbyIncompleteJobV2>\n complete: Map<Identifier, IGatsbyCompleteJobV2>\n jobsByRequest: Map<string, Set<Identifier>>\n }\n webpack: any // TODO This should be the output from ./utils/webpack.config.js\n webpackCompilationHash: string\n redirects: Array<IRedirect>\n babelrc: {\n stages: {\n [key in Stage]: IBabelStage\n }\n }\n schemaCustomization: {\n composer: null | SchemaComposer<any>\n context: Record<string, any>\n fieldExtensions: GraphQLFieldExtensionDefinition\n printConfig: {\n path?: string\n include?: { types?: Array<string>; plugins?: Array<string> }\n exclude?: { types?: Array<string>; plugins?: Array<string> }\n withFieldTypes?: boolean\n } | null\n thirdPartySchemas: Array<GraphQLSchema>\n types: Array<\n string | { typeOrTypeDef: DocumentNode; plugin: IGatsbyPlugin }\n >\n }\n logs: IGatsbyCLIState\n inferenceMetadata: {\n step: string // TODO make enum or union\n typeMap: {\n [key: string]: ITypeMetadata\n }\n }\n pageDataStats: Map<SystemPath, number>\n visitedPages: Map<string, Set<string>>\n html: {\n trackedHtmlFiles: Map<Identifier, IHtmlFileState>\n browserCompilationHash: string\n ssrCompilationHash: string\n trackedStaticQueryResults: Map<string, IStaticQueryResultState>\n unsafeBuiltinWasUsedInSSR: boolean\n templateCompilationHashes: Record<string, string>\n slicesProps: {\n bySliceId: Map<\n string,\n {\n pages: Set<string>\n props: Record<string, unknown>\n sliceName: string\n hasChildren: boolean\n dirty: number\n }\n >\n byPagePath: Map<string, Set<string>>\n bySliceName: Map<\n string,\n {\n sliceDataHash: string\n dirty: number\n props: Set<string>\n }\n >\n }\n pagesThatNeedToStitchSlices: Set<string>\n }\n slices: Map<string, IGatsbySlice>\n componentsUsingSlices: Map<string, ICollectedSlices>\n slicesByTemplate: Map<SystemPath, ICollectedSlices>\n adapter: {\n instance?: IAdapter\n manager: IAdapterManager\n config: IAdapterFinalConfig\n }\n remoteFileAllowedUrls: Set<string>\n}\n\nexport type GatsbyStateKeys = keyof IGatsbyState\n\nexport interface ICachedReduxState {\n nodes?: IGatsbyState[\"nodes\"]\n typeOwners?: IGatsbyState[\"typeOwners\"]\n statefulSourcePlugins?: IGatsbyState[\"statefulSourcePlugins\"]\n status: IGatsbyState[\"status\"]\n components: IGatsbyState[\"components\"]\n jobsV2: IGatsbyState[\"jobsV2\"]\n staticQueryComponents: IGatsbyState[\"staticQueryComponents\"]\n webpackCompilationHash: IGatsbyState[\"webpackCompilationHash\"]\n pageDataStats: IGatsbyState[\"pageDataStats\"]\n pages?: IGatsbyState[\"pages\"]\n staticQueriesByTemplate: IGatsbyState[\"staticQueriesByTemplate\"]\n pendingPageDataWrites: IGatsbyState[\"pendingPageDataWrites\"]\n queries: IGatsbyState[\"queries\"]\n html: IGatsbyState[\"html\"]\n slices: IGatsbyState[\"slices\"]\n slicesByTemplate: IGatsbyState[\"slicesByTemplate\"]\n}\n\nexport type ActionsUnion =\n | IInitAction\n | IAddChildNodeToParentNodeAction\n | IAddFieldToNodeAction\n | IAddThirdPartySchema\n | IApiFinishedAction\n | ICreateFieldExtension\n | ICreateNodeAction\n | ICreatePageAction\n | ICreatePageDependencyAction\n | ICreateTypes\n | IDeleteCacheAction\n | IDeleteNodeAction\n | IDeletePageAction\n | IPageQueryRunAction\n | IPrintTypeDefinitions\n | IQueryClearDirtyQueriesListToEmitViaWebsocket\n | IQueryExtractedAction\n | IQueryExtractedBabelSuccessAction\n | IQueryExtractionBabelErrorAction\n | IQueryExtractionGraphQLErrorAction\n | IQueryStartAction\n | IRemoveStaticQuery\n | IReplaceComponentQueryAction\n | IReplaceStaticQueryAction\n | IReplaceWebpackConfigAction\n | ISetPluginStatusAction\n | ISetProgramStatusAction\n | ISetResolvedNodesAction\n | ISetSchemaAction\n | ISetGraphQLDefinitionsAction\n | ISetSiteFlattenedPluginsAction\n | ISetWebpackCompilationHashAction\n | ISetSSRGlobalSharedWebpackCompilationHashAction\n | ISetWebpackConfigAction\n | ITouchNodeAction\n | IUpdatePluginsHashAction\n | ICreateJobV2Action\n | IEndJobV2Action\n | IRemoveStaleJobV2Action\n | IAddPageDataStatsAction\n | IAddSliceDataStatsAction\n | IRemoveTemplateComponentAction\n | ISetBabelPluginAction\n | ISetBabelPresetAction\n | ISetBabelOptionsAction\n | ICreateJobAction\n | ISetJobAction\n | IEndJobAction\n | ISetStaticQueriesByTemplateAction\n | IAddPendingPageDataWriteAction\n | IAddPendingTemplateDataWriteAction\n | IAddPendingSliceDataWriteAction\n | IAddPendingSliceTemplateDataWriteAction\n | IClearPendingPageDataWriteAction\n | IClearPendingSliceDataWriteAction\n | ICreateResolverContext\n | IClearSchemaCustomizationAction\n | ISetSchemaComposerAction\n | IStartIncrementalInferenceAction\n | IBuildTypeMetadataAction\n | IDisableTypeInferenceAction\n | ISetProgramAction\n | ISetProgramExtensions\n | IRemovedHtml\n | ITrackedHtmlCleanup\n | IGeneratedHtml\n | IMarkHtmlDirty\n | ISSRUsedUnsafeBuiltin\n | ISetSiteConfig\n | IMergeWorkerQueryState\n | ISetComponentFeatures\n | IMaterializePageMode\n | ISetJobV2Context\n | IClearJobV2Context\n | ISetDomainRequestHeaders\n | IEnableStatefulSourcePluginAction\n | ICreateSliceAction\n | IDeleteSliceAction\n | ISetSSRTemplateWebpackCompilationHashAction\n | ISetComponentsUsingSlicesAction\n | ISetSlicesByTemplateAction\n | ISetSlicesProps\n | ISlicesPropsRemoveStale\n | ISlicesPropsRendered\n | ISlicesStitched\n | ISlicesScriptsRegenerated\n | IProcessGatsbyImageSourceUrlAction\n | IClearGatsbyImageSourceUrlAction\n | ISetAdapterAction\n | IDisablePluginsByNameAction\n | IAddImageCdnAllowedUrl\n\nexport interface IInitAction {\n type: `INIT`\n}\n\nexport interface ISetComponentFeatures {\n type: `SET_COMPONENT_FEATURES`\n payload: {\n componentPath: string\n serverData: boolean\n config: boolean\n Head: boolean\n }\n}\n\nexport interface IApiFinishedAction {\n type: `API_FINISHED`\n payload: {\n apiName: GatsbyNodeAPI\n }\n}\n\ninterface ISetBabelPluginAction {\n type: `SET_BABEL_PLUGIN`\n payload: {\n stage: Stage\n name: IPlugin[\"name\"]\n options: IPlugin[\"options\"]\n }\n}\n\ninterface ISetBabelPresetAction {\n type: `SET_BABEL_PRESET`\n payload: {\n stage: Stage\n name: IPlugin[\"name\"]\n options: IPlugin[\"options\"]\n }\n}\n\ninterface ISetBabelOptionsAction {\n type: `SET_BABEL_OPTIONS`\n payload: {\n stage: Stage\n name: IPlugin[\"name\"]\n options: IPlugin[\"options\"]\n }\n}\n\nexport interface ICreateJobV2Action {\n type: `CREATE_JOB_V2`\n payload: {\n job: IGatsbyIncompleteJobV2[\"job\"]\n }\n plugin: { name: string }\n}\n\nexport interface IEndJobV2Action {\n type: `END_JOB_V2`\n payload: {\n jobContentDigest: string\n result: JobResultInterface\n }\n plugin: { name: string }\n}\n\nexport interface IRemoveStaleJobV2Action {\n type: `REMOVE_STALE_JOB_V2`\n payload: {\n contentDigest: string\n }\n}\n\nexport type ICreateJobV2FromInternalAction = ThunkAction<\n Promise<Record<string, unknown>>,\n IGatsbyState,\n void,\n ActionsUnion\n>\n\ninterface ICreateJobAction {\n type: `CREATE_JOB`\n payload: {\n id: string\n job: IGatsbyIncompleteJob[\"job\"]\n }\n plugin: IGatsbyIncompleteJob[\"plugin\"]\n}\n\ninterface ISetJobAction {\n type: `SET_JOB`\n payload: {\n id: string\n job: IGatsbyIncompleteJob[\"job\"]\n }\n plugin: IGatsbyIncompleteJob[\"plugin\"]\n}\n\ninterface IEndJobAction {\n type: `END_JOB`\n payload: {\n id: string\n job: IGatsbyIncompleteJob[\"job\"]\n }\n plugin: IGatsbyIncompleteJob[\"plugin\"]\n}\n\nexport interface ICreatePageDependencyActionPayloadType {\n path: string\n nodeId?: string\n connection?: string\n}\n\nexport interface ICreatePageDependencyAction {\n type: `CREATE_COMPONENT_DEPENDENCY`\n plugin?: string\n payload: Array<ICreatePageDependencyActionPayloadType>\n}\n\nexport interface IDeleteComponentDependenciesAction {\n type: \"DELETE_COMPONENTS_DEPENDENCIES\"\n payload: {\n paths: Array<string>\n }\n}\n\nexport interface IReplaceComponentQueryAction {\n type: \"REPLACE_COMPONENT_QUERY\"\n payload: {\n query: string\n componentPath: string\n }\n}\n\nexport interface IReplaceStaticQueryAction {\n type: `REPLACE_STATIC_QUERY`\n plugin: IGatsbyPlugin | null | undefined\n payload: {\n name: string\n componentPath: string\n id: string\n query: string\n hash: string\n }\n}\n\nexport interface IQueryClearDirtyQueriesListToEmitViaWebsocket {\n type: `QUERY_CLEAR_DIRTY_QUERIES_LIST_TO_EMIT_VIA_WEBSOCKET`\n}\n\nexport interface IQueryExtractedAction {\n type: `QUERY_EXTRACTED`\n plugin: IGatsbyPlugin\n traceId: string | undefined\n payload: { componentPath: string; query: string }\n}\n\nexport interface IQueryExtractionGraphQLErrorAction {\n type: `QUERY_EXTRACTION_GRAPHQL_ERROR`\n plugin: IGatsbyPlugin\n traceId: string | undefined\n payload: { componentPath: string; error: string }\n}\n\nexport interface IQueryExtractedBabelSuccessAction {\n type: `QUERY_EXTRACTION_BABEL_SUCCESS`\n plugin: IGatsbyPlugin\n traceId: string | undefined\n payload: { componentPath: string }\n}\n\nexport interface IQueryExtractionBabelErrorAction {\n type: `QUERY_EXTRACTION_BABEL_ERROR`\n plugin: IGatsbyPlugin\n traceId: string | undefined\n payload: {\n componentPath: string\n error: Error\n }\n}\n\nexport interface ISetProgramStatusAction {\n type: `SET_PROGRAM_STATUS`\n plugin: IGatsbyPlugin\n traceId: string | undefined\n payload: ProgramStatus\n}\n\nexport interface IPageQueryRunAction {\n type: `PAGE_QUERY_RUN`\n plugin: IGatsbyPlugin\n traceId: string | undefined\n payload: {\n path: string\n componentPath: string\n queryType: \"page\" | \"static\" | \"slice\"\n resultHash: string\n queryHash: string\n }\n}\n\nexport interface IQueryStartAction {\n type: `QUERY_START`\n plugin: IGatsbyPlugin\n traceId: string | undefined\n payload: { path: string; componentPath: string; isPage: boolean }\n}\n\nexport interface IRemoveStaleJobAction {\n type: `REMOVE_STALE_JOB_V2`\n plugin: IGatsbyPlugin | undefined\n traceId?: string\n payload: { contentDigest: string }\n}\n\nexport interface IAddThirdPartySchema {\n type: `ADD_THIRD_PARTY_SCHEMA`\n plugin: IGatsbyPlugin\n traceId?: string\n payload: GraphQLSchema\n}\n\nexport interface ICreateTypes {\n type: `CREATE_TYPES`\n plugin: IGatsbyPlugin\n traceId?: string\n payload: DocumentNode | Array<DocumentNode>\n}\n\nexport interface ICreateFieldExtension {\n type: `CREATE_FIELD_EXTENSION`\n plugin: IGatsbyPlugin\n traceId?: string\n payload: {\n name: string\n extension: GraphQLFieldExtensionDefinition\n }\n}\n\nexport interface IPrintTypeDefinitions {\n type: `PRINT_SCHEMA_REQUESTED`\n plugin: IGatsbyPlugin\n traceId?: string\n payload: {\n path?: string\n include?: { types?: Array<string>; plugins?: Array<string> }\n exclude?: { types?: Array<string>; plugins?: Array<string> }\n withFieldTypes?: boolean\n }\n}\n\nexport interface ICreateResolverContext {\n type: `CREATE_RESOLVER_CONTEXT`\n plugin: IGatsbyPlugin\n traceId?: string\n payload:\n | IGatsbyPluginContext\n | { [camelCasedPluginNameWithoutPrefix: string]: IGatsbyPluginContext }\n}\n\ninterface IClearSchemaCustomizationAction {\n type: `CLEAR_SCHEMA_CUSTOMIZATION`\n}\n\ninterface ISetSchemaComposerAction {\n type: `SET_SCHEMA_COMPOSER`\n payload: SchemaComposer<any>\n}\n\nexport interface ICreateServerVisitedPage {\n type: `CREATE_SERVER_VISITED_PAGE`\n payload: IGatsbyPage\n plugin?: IGatsbyPlugin\n}\n\nexport interface ICreatePageAction {\n type: `CREATE_PAGE`\n payload: IGatsbyPage\n plugin?: IGatsbyPlugin\n contextModified?: boolean\n componentModified?: boolean\n slicesModified?: boolean\n}\n\nexport interface ICreateSliceAction {\n type: `CREATE_SLICE`\n payload: IGatsbySlice\n plugin?: IGatsbyPlugin\n traceId: string | undefined\n componentModified?: boolean\n contextModified?: boolean\n}\n\nexport interface IDeleteSliceAction {\n type: `DELETE_SLICE`\n payload: {\n name: string\n componentPath: string\n }\n}\n\nexport interface ISetComponentsUsingSlicesAction {\n type: `SET_COMPONENTS_USING_PAGE_SLICES`\n payload: Map<string, ICollectedSlices>\n}\n\nexport interface ISetSlicesByTemplateAction {\n type: `SET_SLICES_BY_TEMPLATE`\n payload: {\n componentPath: string\n slices: ICollectedSlices\n }\n}\n\nexport interface ISetSlicesProps {\n type: `SET_SLICES_PROPS`\n payload: Record<\n string,\n Record<\n string,\n {\n props: Record<string, unknown>\n sliceName: string\n hasChildren: boolean\n }\n >\n >\n}\n\nexport interface ISlicesPropsRemoveStale {\n type: `SLICES_PROPS_REMOVE_STALE`\n}\n\nexport interface ISlicesPropsRendered {\n type: `SLICES_PROPS_RENDERED`\n payload: Array<{ sliceId: string }>\n}\n\nexport interface ISlicesStitched {\n type: `SLICES_STITCHED`\n}\n\nexport interface ISlicesScriptsRegenerated {\n type: `SLICES_SCRIPTS_REGENERATED`\n}\n\nexport interface ICreateRedirectAction {\n type: `CREATE_REDIRECT`\n payload: IRedirect\n}\n\nexport interface IDeleteCacheAction {\n type: `DELETE_CACHE`\n cacheIsCorrupt?: boolean\n}\n\nexport interface IRemoveTemplateComponentAction {\n type: `REMOVE_STATIC_QUERIES_BY_TEMPLATE`\n payload: {\n componentPath: string\n }\n}\n\nexport interface ISetStaticQueriesByTemplateAction {\n type: `SET_STATIC_QUERIES_BY_TEMPLATE`\n payload: {\n componentPath: string\n staticQueryHashes: Array<Identifier>\n }\n}\n\nexport interface IAddPendingPageDataWriteAction {\n type: `ADD_PENDING_PAGE_DATA_WRITE`\n payload: {\n path: string\n }\n}\n\nexport interface IAddPendingTemplateDataWriteAction {\n type: `ADD_PENDING_TEMPLATE_DATA_WRITE`\n payload: {\n componentPath: SystemPath\n pages: Array<string>\n }\n}\n\nexport interface IAddPendingSliceDataWriteAction {\n type: `ADD_PENDING_SLICE_DATA_WRITE`\n payload: {\n name: string\n }\n}\n\nexport interface IAddPendingSliceTemplateDataWriteAction {\n type: `ADD_PENDING_SLICE_TEMPLATE_DATA_WRITE`\n payload: {\n componentPath: SystemPath\n sliceNames: Array<string>\n }\n}\n\nexport interface IClearPendingPageDataWriteAction {\n type: `CLEAR_PENDING_PAGE_DATA_WRITE`\n payload: {\n page: string\n }\n}\n\nexport interface IClearPendingSliceDataWriteAction {\n type: `CLEAR_PENDING_SLICE_DATA_WRITE`\n payload: {\n name: string\n }\n}\n\nexport interface IDeletePageAction {\n type: `DELETE_PAGE`\n payload: IGatsbyPage\n}\n\nexport interface IRemoveStaticQuery {\n type: `REMOVE_STATIC_QUERY`\n payload: IGatsbyStaticQueryComponents[\"id\"]\n}\n\nexport interface ISetWebpackCompilationHashAction {\n type: `SET_WEBPACK_COMPILATION_HASH`\n payload: IGatsbyState[\"webpackCompilationHash\"]\n}\n\nexport interface ISetSSRGlobalSharedWebpackCompilationHashAction {\n type: `SET_SSR_WEBPACK_COMPILATION_HASH`\n payload: string\n}\n\nexport interface ISetSSRTemplateWebpackCompilationHashAction {\n type: `SET_SSR_TEMPLATE_WEBPACK_COMPILATION_HASH`\n payload: {\n templateHash: string\n templatePath: string\n isSlice: boolean\n pages: Array<string>\n }\n}\n\nexport interface IUpdatePluginsHashAction {\n type: `UPDATE_PLUGINS_HASH`\n payload: Identifier\n}\n\nexport interface ISetPluginStatusAction {\n type: `SET_PLUGIN_STATUS`\n plugin: IGatsbyPlugin\n payload: {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any\n }\n}\n\nexport interface IReplaceWebpackConfigAction {\n type: `REPLACE_WEBPACK_CONFIG`\n payload: IGatsbyState[\"webpack\"]\n}\n\nexport interface ISetWebpackConfigAction {\n type: `SET_WEBPACK_CONFIG`\n payload: Partial<IGatsbyState[\"webpack\"]>\n}\n\nexport interface ISetSchemaAction {\n type: `SET_SCHEMA`\n payload: IGatsbyState[\"schema\"]\n}\n\nexport interface ISetGraphQLDefinitionsAction {\n type: `SET_GRAPHQL_DEFINITIONS`\n payload: IGatsbyState[\"definitions\"]\n}\n\nexport interface ISetSiteConfig {\n type: `SET_SITE_CONFIG`\n payload: IGatsbyState[\"config\"]\n}\n\nexport interface ISetSiteFunctions {\n type: `SET_SITE_FUNCTIONS`\n payload: IGatsbyState[\"functions\"]\n}\n\nexport interface ICreateNodeAction {\n type: `CREATE_NODE`\n payload: IGatsbyNode\n oldNode?: IGatsbyNode\n traceId: string\n parentSpan: Span\n followsSpan: Span\n plugin: IGatsbyPlugin\n}\n\nexport interface IAddFieldToNodeAction {\n type: `ADD_FIELD_TO_NODE`\n payload: IGatsbyNode\n addedField: string\n}\n\nexport interface IAddChildNodeToParentNodeAction {\n type: `ADD_CHILD_NODE_TO_PARENT_NODE`\n payload: IGatsbyNode\n}\n\nexport interface IDeleteNodeAction {\n type: `DELETE_NODE`\n // FIXME: figure out why payload can be undefined here\n payload: IGatsbyNode | void\n plugin: IGatsbyPlugin\n isRecursiveChildrenDelete?: boolean\n}\n\nexport interface ISetSiteFlattenedPluginsAction {\n type: `SET_SITE_FLATTENED_PLUGINS`\n payload: IGatsbyState[\"flattenedPlugins\"]\n}\n\nexport interface ISetResolvedNodesAction {\n type: `SET_RESOLVED_NODES`\n payload: {\n key: string\n nodes: IGatsbyState[\"resolvedNodesCache\"]\n }\n}\n\nexport interface IAddPageDataStatsAction {\n type: `ADD_PAGE_DATA_STATS`\n payload: {\n pagePath: string\n filePath: SystemPath\n size: number\n pageDataHash: string\n }\n}\n\nexport interface IAddSliceDataStatsAction {\n type: `ADD_SLICE_DATA_STATS`\n payload: {\n sliceName: string\n filePath: SystemPath\n size: number\n sliceDataHash: string\n }\n}\n\nexport interface ITouchNodeAction {\n type: `TOUCH_NODE`\n payload: Identifier\n typeName: IGatsbyNode[\"internal\"][\"type\"]\n plugin: IGatsbyPlugin\n}\n\ninterface IStartIncrementalInferenceAction {\n type: `START_INCREMENTAL_INFERENCE`\n}\n\ninterface IBuildTypeMetadataAction {\n type: `BUILD_TYPE_METADATA`\n payload: {\n nodes: Array<IGatsbyNode>\n clearExistingMetadata: boolean\n typeName: string\n }\n}\n\ninterface IDisableTypeInferenceAction {\n type: `DISABLE_TYPE_INFERENCE`\n payload: Array<string>\n}\n\ninterface ISetProgramAction {\n type: `SET_PROGRAM`\n payload: IStateProgram\n}\n\ninterface ISetProgramExtensions {\n type: `SET_PROGRAM_EXTENSIONS`\n payload: Array<string>\n}\n\ninterface IRemovedHtml {\n type: `HTML_REMOVED`\n payload: string\n}\n\ninterface ITrackedHtmlCleanup {\n type: `HTML_TRACKED_PAGES_CLEANUP`\n payload: Set<string>\n}\n\ninterface IGeneratedHtml {\n type: `HTML_GENERATED`\n payload: Array<string>\n}\n\ninterface IMarkHtmlDirty {\n type: `HTML_MARK_DIRTY_BECAUSE_STATIC_QUERY_RESULT_CHANGED`\n payload: {\n pages: Set<string>\n slices: Set<string>\n staticQueryHashes: Set<string>\n }\n}\n\ninterface ISSRUsedUnsafeBuiltin {\n type: `SSR_USED_UNSAFE_BUILTIN`\n}\n\nexport interface ICreateNodeManifest {\n type: `CREATE_NODE_MANIFEST`\n payload: {\n manifestId: string\n node: IGatsbyNode\n pluginName: string\n updatedAtUTC?: string | number\n }\n}\n\nexport interface IDeleteNodeManifests {\n type: `DELETE_NODE_MANIFESTS`\n}\n\nexport interface INodeManifest {\n manifestId: string\n pluginName: string\n node: {\n id: string\n }\n}\n\nexport interface ISetDomainRequestHeaders {\n type: `SET_REQUEST_HEADERS`\n payload: {\n domain: string\n headers: {\n [header: string]: string\n }\n }\n}\n\nexport interface IEnableStatefulSourcePluginAction {\n type: `ENABLE_STATEFUL_SOURCE_PLUGIN`\n plugin: IGatsbyPlugin\n}\n\nexport interface IProcessGatsbyImageSourceUrlAction {\n type: `PROCESS_GATSBY_IMAGE_SOURCE_URL`\n payload: {\n sourceUrl: string\n }\n}\n\nexport interface IClearGatsbyImageSourceUrlAction {\n type: `CLEAR_GATSBY_IMAGE_SOURCE_URL`\n}\n\nexport interface ISetAdapterAction {\n type: `SET_ADAPTER`\n payload: {\n instance?: IAdapter\n manager: IAdapterManager\n config: IAdapterFinalConfig\n }\n}\n\nexport interface IDisablePluginsByNameAction {\n type: `DISABLE_PLUGINS_BY_NAME`\n payload: {\n pluginsToDisable: Array<string>\n reason: string\n }\n}\n\nexport interface IAddImageCdnAllowedUrl {\n type: `ADD_REMOTE_FILE_ALLOWED_URL`\n payload: {\n urls: Array<string>\n }\n plugin: IGatsbyPlugin\n traceId?: string\n}\n\nexport interface ITelemetry {\n gatsbyImageSourceUrls: Set<string>\n}\n\nexport interface IMergeWorkerQueryState {\n type: `MERGE_WORKER_QUERY_STATE`\n payload: {\n workerId: number\n queryStateChunk: IGatsbyState[\"queries\"]\n queryStateTelemetryChunk: IGatsbyState[\"telemetry\"]\n }\n}\n\nexport interface IMaterializePageMode {\n type: `MATERIALIZE_PAGE_MODE`\n payload: {\n path: string\n pageMode: PageMode\n }\n}\n\nexport interface ISetJobV2Context {\n type: `SET_JOB_V2_CONTEXT`\n payload: {\n job: IGatsbyIncompleteJobV2[\"job\"]\n requestId: string\n }\n}\n\nexport interface IClearJobV2Context {\n type: `CLEAR_JOB_V2_CONTEXT`\n payload: {\n requestId: string\n }\n}\n\nexport const HTTP_STATUS_CODE = {\n /**\n * The server has received the request headers and the client should proceed to send the request body\n * (in the case of a request for which a body needs to be sent; for example, a POST request).\n * Sending a large request body to a server after a request has been rejected for inappropriate headers would be inefficient.\n * To have a server check the request's headers, a client must send Expect: 100-continue as a header in its initial request\n * and receive a 100 Continue status code in response before sending the body. The response 417 Expectation Failed indicates the request should not be continued.\n */\n CONTINUE_100: 100,\n\n /**\n * The requester has asked the server to switch protocols and the server has agreed to do so.\n */\n SWITCHING_PROTOCOLS_101: 101,\n\n /**\n * A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request.\n * This code indicates that the server has received and is processing the request, but no response is available yet.\n * This prevents the client from timing out and assuming the request was lost.\n */\n PROCESSING_102: 102,\n\n /**\n * Standard response for successful HTTP requests.\n * The actual response will depend on the request method used.\n * In a GET request, the response will contain an entity corresponding to the requested resource.\n * In a POST request, the response will contain an entity describing or containing the result of the action.\n */\n OK_200: 200,\n\n /**\n * The request has been fulfilled, resulting in the creation of a new resource.\n */\n CREATED_201: 201,\n\n /**\n * The request has been accepted for processing, but the processing has not been completed.\n * The request might or might not be eventually acted upon, and may be disallowed when processing occurs.\n */\n ACCEPTED_202: 202,\n\n /**\n * SINCE HTTP/1.1\n * The server is a transforming proxy that received a 200 OK from its origin,\n * but is returning a modified version of the origin's response.\n */\n NON_AUTHORITATIVE_INFORMATION_203: 203,\n\n /**\n * The server successfully processed the request and is not returning any content.\n */\n NO_CONTENT_204: 204,\n\n /**\n * The server successfully processed the request, but is not returning any content.\n * Unlike a 204 response, this response requires that the requester reset the document view.\n */\n RESET_CONTENT_205: 205,\n\n /**\n * The server is delivering only part of the resource (byte serving) due to a range header sent by the client.\n * The range header is used by HTTP clients to enable resuming of interrupted downloads,\n * or split a download into multiple simultaneous streams.\n */\n PARTIAL_CONTENT_206: 206,\n\n /**\n * The message body that follows is an XML message and can contain a number of separate response codes,\n * depending on how many sub-requests were made.\n */\n MULTI_STATUS_207: 207,\n\n /**\n * The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response,\n * and are not being included again.\n */\n ALREADY_REPORTED_208: 208,\n\n /**\n * The server has fulfilled a request for the resource,\n * and the response is a representation of the result of one or more instance-manipulations applied to the current instance.\n */\n IM_USED_226: 226,\n\n /**\n * Indicates multiple options for the resource from which the client may choose (via agent-driven content negotiation).\n * For example, this code could be used to present multiple video format options,\n * to list files with different filename extensions, or to suggest word-sense disambiguation.\n */\n MULTIPLE_CHOICES_300: 300,\n\n /**\n * This and all future requests should be directed to the given URI.\n */\n MOVED_PERMANENTLY_301: 301,\n\n /**\n * This is an example of industry practice contradicting the standard.\n * The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect\n * (the original describing phrase was \"Moved Temporarily\"), but popular browsers implemented 302\n * with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307\n * to distinguish between the two behaviours. However, some Web applications and frameworks\n * use the 302 status code as if it were the 303.\n */\n FOUND_302: 302,\n\n /**\n * SINCE HTTP/1.1\n * The response to the request can be found under another URI using a GET method.\n * When received in response to a POST (or PUT/DELETE), the client should presume that\n * the server has received the data and should issue a redirect with a separate GET message.\n */\n SEE_OTHER_303: 303,\n\n /**\n * Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match.\n * In such case, there is no need to retransmit the resource since the client still has a previously-downloaded copy.\n */\n NOT_MODIFIED_304: 304,\n\n /**\n * SINCE HTTP/1.1\n * The requested resource is available only through a proxy, the address for which is provided in the response.\n * Many HTTP clients (such as Mozilla and Internet Explorer) do not correctly handle responses with this status code, primarily for security reasons.\n */\n USE_PROXY_305: 305,\n\n /**\n * No longer used. Originally meant \"Subsequent requests should use the specified proxy.\"\n */\n SWITCH_PROXY_306: 306,\n\n /**\n * SINCE HTTP/1.1\n * In this case, the request should be repeated with another URI; however, future requests should still use the original URI.\n * In contrast to how 302 was historically implemented, the request method is not allowed to be changed when reissuing the original request.\n * For example, a POST request should be repeated using another POST request.\n */\n TEMPORARY_REDIRECT_307: 307,\n\n /**\n * The request and all future requests should be repeated using another URI.\n * 307 and 308 parallel the behaviors of 302 and 301, but do not allow the HTTP method to change.\n * So, for example, submitting a form to a permanently redirected resource may continue smoothly.\n */\n PERMANENT_REDIRECT_308: 308,\n\n /**\n * The server cannot or will not process the request due to an apparent client error\n * (e.g., malformed request syntax, too large size, invalid request message framing, or deceptive request routing).\n */\n BAD_REQUEST_400: 400,\n\n /**\n * Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet\n * been provided. The response must include a WWW-Authenticate header field containing a challenge applicable to the\n * requested resource. See Basic access authentication and Digest access authentication. 401 semantically means\n * \"unauthenticated\",i.e. the user does not have the necessary credentials.\n */\n UNAUTHORIZED_401: 401,\n\n /**\n * Reserved for future use. The original intention was that this code might be used as part of some form of digital\n * cash or micro payment scheme, but that has not happened, and this code is not usually used.\n * Google Developers API uses this status if a particular developer has exceeded the daily limit on requests.\n */\n PAYMENT_REQUIRED_402: 402,\n\n /**\n * The request was valid, but the server is refusing action.\n * The user might not have the necessary permissions for a resource.\n */\n FORBIDDEN_403: 403,\n\n /**\n * The requested resource could not be found but may be available in the future.\n * Subsequent requests by the client are permissible.\n */\n NOT_FOUND_404: 404,\n\n /**\n * A request method is not supported for the requested resource;\n * for example, a GET request on a form that requires data to be presented via POST, or a PUT request on a read-only resource.\n */\n METHOD_NOT_ALLOWED_405: 405,\n\n /**\n * The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.\n */\n NOT_ACCEPTABLE_406: 406,\n\n /**\n * The client must first authenticate itself with the proxy.\n */\n PROXY_AUTHENTICATION_REQUIRED_407: 407,\n\n /**\n * The server timed out waiting for the request.\n * According to HTTP specifications:\n * \"The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time.\"\n */\n REQUEST_TIMEOUT_408: 408,\n\n /**\n * Indicates that the request could not be processed because of conflict in the request,\n * such as an edit conflict between multiple simultaneous updates.\n */\n CONFLICT_409: 409,\n\n /**\n * Indicates that the resource requested is no longer available and will not be available again.\n * This should be used when a resource has been intentionally removed and the resource should be purged.\n * Upon receiving a 410 status code, the client should not request the resource in the future.\n * Clients such as search engines should remove the resource from their indices.\n * Most use cases do not require clients and search engines to purge the resource, and a \"404 Not Found\" may be used instead.\n */\n GONE_410: 410,\n\n /**\n * The request did not specify the length of its content, which is required by the requested resource.\n */\n LENGTH_REQUIRED_411: 411,\n\n /**\n * The server does not meet one of the preconditions that the requester put on the request.\n */\n PRECONDITION_FAILED_412: 412,\n\n /**\n * The request is larger than the server is willing or able to process. Previously called \"Request Entity Too Large\".\n */\n PAYLOAD_TOO_LARGE_413: 413,\n\n /**\n * The URI provided was too long for the server to process. Often the result of too much data being encoded as a query-string of a GET request,\n * in which case it should be converted to a POST request.\n * Called \"Request-URI Too Long\" previously.\n */\n URI_TOO_LONG_414: 414,\n\n /**\n * The request entity has a media type which the server or resource does not support.\n * For example, the client uploads an image as image/svg+xml, but the server requires that images use a different format.\n */\n UNSUPPORTED_MEDIA_TYPE_415: 415,\n\n /**\n * The client has asked for a portion of the file (byte serving), but the server cannot supply that portion.\n * For example, if the client asked for a part of the file that lies beyond the end of the file.\n * Called \"Requested Range Not Satisfiable\" previously.\n */\n RANGE_NOT_SATISFIABLE_416: 416,\n\n /**\n * The server cannot meet the requirements of the Expect request-header field.\n */\n EXPECTATION_FAILED_417: 417,\n\n /**\n * This code was defined in 1998 as one of the traditional IETF April Fools' jokes, in RFC 2324, Hyper Text Coffee Pot Control Protocol,\n * and is not expected to be implemented by actual HTTP servers. The RFC specifies this code should be returned by\n * teapots requested to brew coffee. This HTTP status is used as an Easter egg in some websites, including Google.com.\n */\n I_AM_A_TEAPOT_418: 418,\n\n /**\n * The request was directed at a server that is not able to produce a response (for example because a connection reuse).\n */\n MISDIRECTED_REQUEST_421: 421,\n\n /**\n * The request was well-formed but was unable to be followed due to semantic errors.\n */\n UNPROCESSABLE_ENTITY_422: 422,\n\n /**\n * The resource that is being accessed is locked.\n */\n LOCKED_423: 423,\n\n /**\n * The request failed due to failure of a previous request (e.g., a PROPPATCH).\n */\n FAILED_DEPENDENCY_424: 424,\n\n /**\n * The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.\n */\n UPGRADE_REQUIRED_426: 426,\n\n /**\n * The origin server requires the request to be conditional.\n * Intended to prevent \"the 'lost update' problem, where a client\n * GETs a resource's state, modifies it, and PUTs it back to the server,\n * when meanwhile a third party has modified the state on the server, leading to a conflict.\"\n */\n PRECONDITION_REQUIRED_428: 428,\n\n /**\n * The user has sent too many requests in a given amount of time. Intended for use with rate-limiting schemes.\n */\n TOO_MANY_REQUESTS_429: 429,\n\n /**\n * The server is unwilling to process the request because either an individual header field,\n * or all the header fields collectively, are too large.\n */\n REQUEST_HEADER_FIELDS_TOO_LARGE_431: 431,\n\n /**\n * A server operator has received a legal demand to deny access to a resource or to a set of resources\n * that includes the requested resource. The code 451 was chosen as a reference to the novel Fahrenheit 451.\n */\n UNAVAILABLE_FOR_LEGAL_REASONS_451: 451,\n\n /**\n * A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.\n */\n INTERNAL_SERVER_ERROR_500: 500,\n\n /**\n * The server either does not recognize the request method, or it lacks the ability to fulfill the request.\n * Usually this implies future availability (e.g., a new feature of a web-service API).\n */\n NOT_IMPLEMENTED_501: 501,\n\n /**\n * The server was acting as a gateway or proxy and received an invalid response from the upstream server.\n */\n BAD_GATEWAY_502: 502,\n\n /**\n * The server is currently unavailable (because it is overloaded or down for maintenance).\n * Generally, this is a temporary state.\n */\n SERVICE_UNAVAILABLE_503: 503,\n\n /**\n * The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.\n */\n GATEWAY_TIMEOUT_504: 504,\n\n /**\n * The server does not support the HTTP protocol version used in the request\n */\n HTTP_VERSION_NOT_SUPPORTED_505: 505,\n\n /**\n * Transparent content negotiation for the request results in a circular reference.\n */\n VARIANT_ALSO_NEGOTIATES_506: 506,\n\n /**\n * The server is unable to store the representation needed to complete the request.\n */\n INSUFFICIENT_STORAGE_507: 507,\n\n /**\n * The server detected an infinite loop while processing the request.\n */\n LOOP_DETECTED_508: 508,\n\n /**\n * Further extensions to the request are required for the server to fulfill it.\n */\n NOT_EXTENDED_510: 510,\n\n /**\n * The client needs to authenticate to gain network access.\n * Intended for use by intercepting proxies used to control access to the network (e.g., \"captive portals\" used\n * to require agreement to Terms of Service before granting full Internet access via a Wi-Fi hotspot).\n */\n NETWORK_AUTHENTICATION_REQUIRED_511: 511,\n} as const\n\nexport type HttpStatusCode =\n (typeof HTTP_STATUS_CODE)[keyof typeof HTTP_STATUS_CODE]\n"],"mappings":";;;;IAqCYA,aAAa;AAAA;AAAA,WAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;AAAA,GAAbA,aAAa,6BAAbA,aAAa;AA8sClB,MAAMC,gBAAgB,GAAG;EAC9B;AACF;AACA;AACA;AACA;AACA;AACA;EACEC,YAAY,EAAE,GAAG;EAEjB;AACF;AACA;EACEC,uBAAuB,EAAE,GAAG;EAE5B;AACF;AACA;AACA;AACA;EACEC,cAAc,EAAE,GAAG;EAEnB;AACF;AACA;AACA;AACA;AACA;EACEC,MAAM,EAAE,GAAG;EAEX;AACF;AACA;EACEC,WAAW,EAAE,GAAG;EAEhB;AACF;AACA;AACA;EACEC,YAAY,EAAE,GAAG;EAEjB;AACF;AACA;AACA;AACA;EACEC,iCAAiC,EAAE,GAAG;EAEtC;AACF;AACA;EACEC,cAAc,EAAE,GAAG;EAEnB;AACF;AACA;AACA;EACEC,iBAAiB,EAAE,GAAG;EAEtB;AACF;AACA;AACA;AACA;EACEC,mBAAmB,EAAE,GAAG;EAExB;AACF;AACA;AACA;EACEC,gBAAgB,EAAE,GAAG;EAErB;AACF;AACA;AACA;EACEC,oBAAoB,EAAE,GAAG;EAEzB;AACF;AACA;AACA;EACEC,WAAW,EAAE,GAAG;EAEhB;AACF;AACA;AACA;AACA;EACEC,oBAAoB,EAAE,GAAG;EAEzB;AACF;AACA;EACEC,qBAAqB,EAAE,GAAG;EAE1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,SAAS,EAAE,GAAG;EAEd;AACF;AACA;AACA;AACA;AACA;EACEC,aAAa,EAAE,GAAG;EAElB;AACF;AACA;AACA;EACEC,gBAAgB,EAAE,GAAG;EAErB;AACF;AACA;AACA;AACA;EACEC,aAAa,EAAE,GAAG;EAElB;AACF;AACA;EACEC,gBAAgB,EAAE,GAAG;EAErB;AACF;AACA;AACA;AACA;AACA;EACEC,sBAAsB,EAAE,GAAG;EAE3B;AACF;AACA;AACA;AACA;EACEC,sBAAsB,EAAE,GAAG;EAE3B;AACF;AACA;AACA;EACEC,eAAe,EAAE,GAAG;EAEpB;AACF;AACA;AACA;AACA;AACA;EACEC,gBAAgB,EAAE,GAAG;EAErB;AACF;AACA;AACA;AACA;EACEC,oBAAoB,EAAE,GAAG;EAEzB;AACF;AACA;AACA;EACEC,aAAa,EAAE,GAAG;EAElB;AACF;AACA;AACA;EACEC,aAAa,EAAE,GAAG;EAElB;AACF;AACA;AACA;EACEC,sBAAsB,EAAE,GAAG;EAE3B;AACF;AACA;EACEC,kBAAkB,EAAE,GAAG;EAEvB;AACF;AACA;EACEC,iCAAiC,EAAE,GAAG;EAEtC;AACF;AACA;AACA;AACA;EACEC,mBAAmB,EAAE,GAAG;EAExB;AACF;AACA;AACA;EACEC,YAAY,EAAE,GAAG;EAEjB;AACF;AACA;AACA;AACA;AACA;AACA;EACEC,QAAQ,EAAE,GAAG;EAEb;AACF;AACA;EACEC,mBAAmB,EAAE,GAAG;EAExB;AACF;AACA;EACEC,uBAAuB,EAAE,GAAG;EAE5B;AACF;AACA;EACEC,qBAAqB,EAAE,GAAG;EAE1B;AACF;AACA;AACA;AACA;EACEC,gBAAgB,EAAE,GAAG;EAErB;AACF;AACA;AACA;EACEC,0BAA0B,EAAE,GAAG;EAE/B;AACF;AACA;AACA;AACA;EACEC,yBAAyB,EAAE,GAAG;EAE9B;AACF;AACA;EACEC,sBAAsB,EAAE,GAAG;EAE3B;AACF;AACA;AACA;AACA;EACEC,iBAAiB,EAAE,GAAG;EAEtB;AACF;AACA;EACEC,uBAAuB,EAAE,GAAG;EAE5B;AACF;AACA;EACEC,wBAAwB,EAAE,GAAG;EAE7B;AACF;AACA;EACEC,UAAU,EAAE,GAAG;EAEf;AACF;AACA;EACEC,qBAAqB,EAAE,GAAG;EAE1B;AACF;AACA;EACEC,oBAAoB,EAAE,GAAG;EAEzB;AACF;AACA;AACA;AACA;AACA;EACEC,yBAAyB,EAAE,GAAG;EAE9B;AACF;AACA;EACEC,qBAAqB,EAAE,GAAG;EAE1B;AACF;AACA;AACA;EACEC,mCAAmC,EAAE,GAAG;EAExC;AACF;AACA;AACA;EACEC,iCAAiC,EAAE,GAAG;EAEtC;AACF;AACA;EACEC,yBAAyB,EAAE,GAAG;EAE9B;AACF;AACA;AACA;EACEC,mBAAmB,EAAE,GAAG;EAExB;AACF;AACA;EACEC,eAAe,EAAE,GAAG;EAEpB;AACF;AACA;AACA;EACEC,uBAAuB,EAAE,GAAG;EAE5B;AACF;AACA;EACEC,mBAAmB,EAAE,GAAG;EAExB;AACF;AACA;EACEC,8BAA8B,EAAE,GAAG;EAEnC;AACF;AACA;EACEC,2BAA2B,EAAE,GAAG;EAEhC;AACF;AACA;EACEC,wBAAwB,EAAE,GAAG;EAE7B;AACF;AACA;EACEC,iBAAiB,EAAE,GAAG;EAEtB;AACF;AACA;EACEC,gBAAgB,EAAE,GAAG;EAErB;AACF;AACA;AACA;AACA;EACEC,mCAAmC,EAAE;AACvC,CAAU;AAAA"}
\No newline at end of file