@duplojs/http 0.1.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/getBody.cjs +22 -0
- package/dist/client/getBody.d.ts +1 -0
- package/dist/client/getBody.mjs +20 -0
- package/dist/client/hooks.cjs +79 -0
- package/dist/client/hooks.d.ts +33 -0
- package/dist/client/hooks.mjs +70 -0
- package/dist/client/httpClient.cjs +153 -0
- package/dist/client/httpClient.d.ts +60 -0
- package/dist/client/httpClient.mjs +130 -0
- package/dist/client/index.cjs +33 -0
- package/dist/client/index.d.ts +9 -0
- package/dist/client/index.mjs +9 -0
- package/dist/client/insertParamsInPath.cjs +12 -0
- package/dist/client/insertParamsInPath.d.ts +2 -0
- package/dist/client/insertParamsInPath.mjs +10 -0
- package/dist/client/kind.cjs +9 -0
- package/dist/client/kind.d.ts +6 -0
- package/dist/client/kind.mjs +7 -0
- package/dist/client/promiseRequest.cjs +355 -0
- package/dist/client/promiseRequest.d.ts +98 -0
- package/dist/client/promiseRequest.mjs +332 -0
- package/dist/client/queryToString.cjs +25 -0
- package/dist/client/queryToString.d.ts +2 -0
- package/dist/client/queryToString.mjs +23 -0
- package/dist/client/types/ObjectCanBeEmpty.cjs +2 -0
- package/dist/client/types/ObjectCanBeEmpty.d.ts +4 -0
- package/dist/client/types/ObjectCanBeEmpty.mjs +1 -0
- package/dist/client/types/clientRequestParams.cjs +2 -0
- package/dist/client/types/clientRequestParams.d.ts +51 -0
- package/dist/client/types/clientRequestParams.mjs +1 -0
- package/dist/client/types/clientResponse.cjs +2 -0
- package/dist/client/types/clientResponse.d.ts +34 -0
- package/dist/client/types/clientResponse.mjs +1 -0
- package/dist/client/types/index.cjs +7 -0
- package/dist/client/types/index.d.ts +4 -0
- package/dist/client/types/index.mjs +4 -0
- package/dist/client/types/serverRoute.cjs +2 -0
- package/dist/client/types/serverRoute.d.ts +22 -0
- package/dist/client/types/serverRoute.mjs +1 -0
- package/dist/client/unexpectedResponseError.cjs +44 -0
- package/dist/client/unexpectedResponseError.d.ts +38 -0
- package/dist/client/unexpectedResponseError.mjs +39 -0
- package/dist/core/builders/index.cjs +11 -0
- package/dist/core/builders/index.mjs +4 -0
- package/dist/core/builders/preflight/index.cjs +10 -0
- package/dist/core/builders/preflight/index.mjs +3 -0
- package/dist/core/builders/preflight/process.cjs +2 -8
- package/dist/core/builders/preflight/process.mjs +2 -8
- package/dist/core/builders/preflight/route.cjs +2 -8
- package/dist/core/builders/preflight/route.mjs +2 -8
- package/dist/core/builders/process/checker.cjs +2 -8
- package/dist/core/builders/process/checker.mjs +2 -8
- package/dist/core/builders/process/cut.cjs +2 -8
- package/dist/core/builders/process/cut.mjs +2 -8
- package/dist/core/builders/process/extract.cjs +2 -8
- package/dist/core/builders/process/extract.mjs +2 -8
- package/dist/core/builders/process/index.cjs +14 -0
- package/dist/core/builders/process/index.mjs +7 -0
- package/dist/core/builders/process/presetChecker.cjs +2 -8
- package/dist/core/builders/process/presetChecker.mjs +2 -8
- package/dist/core/builders/process/process.cjs +2 -8
- package/dist/core/builders/process/process.mjs +2 -8
- package/dist/core/builders/route/checker.cjs +2 -8
- package/dist/core/builders/route/checker.mjs +2 -8
- package/dist/core/builders/route/cut.cjs +2 -8
- package/dist/core/builders/route/cut.mjs +2 -8
- package/dist/core/builders/route/extract.cjs +2 -8
- package/dist/core/builders/route/extract.mjs +2 -8
- package/dist/core/builders/route/handler.cjs +2 -8
- package/dist/core/builders/route/handler.mjs +2 -8
- package/dist/core/builders/route/index.cjs +16 -0
- package/dist/core/builders/route/index.mjs +8 -0
- package/dist/core/builders/route/presetChecker.cjs +2 -8
- package/dist/core/builders/route/presetChecker.mjs +2 -8
- package/dist/core/builders/route/process.cjs +2 -8
- package/dist/core/builders/route/process.mjs +2 -8
- package/dist/core/floor.cjs +2 -0
- package/dist/core/floor.mjs +1 -0
- package/dist/core/functionsBuilders/index.cjs +5 -0
- package/dist/core/functionsBuilders/index.mjs +2 -0
- package/dist/core/functionsBuilders/route/build.cjs +5 -14
- package/dist/core/functionsBuilders/route/build.d.ts +3 -1
- package/dist/core/functionsBuilders/route/build.mjs +6 -15
- package/dist/core/functionsBuilders/route/create.d.ts +2 -0
- package/dist/core/functionsBuilders/route/default.cjs +11 -21
- package/dist/core/functionsBuilders/route/default.mjs +5 -15
- package/dist/core/functionsBuilders/route/hook.cjs +22 -22
- package/dist/core/functionsBuilders/route/hook.d.ts +2 -2
- package/dist/core/functionsBuilders/route/hook.mjs +2 -2
- package/dist/core/functionsBuilders/route/index.cjs +18 -0
- package/dist/core/functionsBuilders/route/index.mjs +4 -0
- package/dist/core/functionsBuilders/steps/build.cjs +4 -0
- package/dist/core/functionsBuilders/steps/build.d.ts +2 -0
- package/dist/core/functionsBuilders/steps/build.mjs +5 -1
- package/dist/core/functionsBuilders/steps/create.d.ts +3 -2
- package/dist/core/functionsBuilders/steps/defaults/checkerStep.cjs +5 -9
- package/dist/core/functionsBuilders/steps/defaults/checkerStep.mjs +5 -9
- package/dist/core/functionsBuilders/steps/defaults/cutStep.cjs +6 -11
- package/dist/core/functionsBuilders/steps/defaults/cutStep.mjs +7 -12
- package/dist/core/functionsBuilders/steps/defaults/extractStep.cjs +10 -17
- package/dist/core/functionsBuilders/steps/defaults/extractStep.mjs +9 -16
- package/dist/core/functionsBuilders/steps/defaults/handlerStep.cjs +6 -11
- package/dist/core/functionsBuilders/steps/defaults/handlerStep.mjs +6 -11
- package/dist/core/functionsBuilders/steps/defaults/index.cjs +16 -0
- package/dist/core/functionsBuilders/steps/defaults/index.mjs +5 -0
- package/dist/core/functionsBuilders/steps/defaults/processStep.cjs +7 -12
- package/dist/core/functionsBuilders/steps/defaults/processStep.mjs +6 -11
- package/dist/core/functionsBuilders/steps/index.cjs +10 -0
- package/dist/core/functionsBuilders/steps/index.mjs +3 -0
- package/dist/core/hub/defaultNotfoundHandler.cjs +2 -8
- package/dist/core/hub/defaultNotfoundHandler.d.ts +1 -1
- package/dist/core/hub/defaultNotfoundHandler.mjs +2 -8
- package/dist/core/hub/hooks.d.ts +3 -3
- package/dist/core/hub/index.cjs +3 -9
- package/dist/core/hub/index.mjs +3 -9
- package/dist/core/index.cjs +64 -70
- package/dist/core/index.mjs +23 -30
- package/dist/core/process/index.cjs +1 -0
- package/dist/core/process/index.mjs +1 -0
- package/dist/core/process/types/index.cjs +2 -0
- package/dist/core/process/types/index.mjs +1 -0
- package/dist/core/response/base.cjs +40 -0
- package/dist/core/response/base.d.ts +21 -0
- package/dist/core/response/base.mjs +38 -0
- package/dist/core/response/contract.cjs +13 -13
- package/dist/core/response/contract.d.ts +121 -119
- package/dist/core/response/contract.mjs +14 -14
- package/dist/core/{route/hooks/response.cjs → response/hook.cjs} +5 -4
- package/dist/core/{route/hooks/response.d.ts → response/hook.d.ts} +3 -3
- package/dist/core/{route/hooks/response.mjs → response/hook.mjs} +4 -3
- package/dist/core/response/index.cjs +9 -38
- package/dist/core/response/index.d.ts +3 -20
- package/dist/core/response/index.mjs +3 -38
- package/dist/core/response/predicted.cjs +22 -0
- package/dist/core/response/predicted.d.ts +11 -0
- package/dist/core/response/predicted.mjs +20 -0
- package/dist/core/route/{hooks/index.cjs → hooks.cjs} +2 -3
- package/dist/core/route/{hooks/index.d.ts → hooks.d.ts} +4 -4
- package/dist/core/route/{hooks/index.mjs → hooks.mjs} +2 -2
- package/dist/core/route/index.cjs +5 -4
- package/dist/core/route/index.mjs +2 -1
- package/dist/core/route/types/buildedRoute.cjs +2 -0
- package/dist/core/route/types/buildedRoute.mjs +1 -0
- package/dist/core/route/types/index.cjs +4 -0
- package/dist/core/route/types/index.mjs +1 -0
- package/dist/core/router/buildError.cjs +3 -1
- package/dist/core/router/buildError.d.ts +4 -2
- package/dist/core/router/buildError.mjs +3 -1
- package/dist/core/router/index.cjs +13 -7
- package/dist/core/router/index.mjs +14 -8
- package/dist/core/router/types/buildedRouter.cjs +2 -0
- package/dist/core/router/types/buildedRouter.mjs +1 -0
- package/dist/core/router/types/index.cjs +4 -0
- package/dist/core/router/types/index.mjs +1 -0
- package/dist/core/steps/cut.d.ts +3 -3
- package/dist/core/steps/handler.d.ts +3 -3
- package/dist/core/steps/identifier.d.ts +2 -2
- package/dist/core/steps/index.cjs +29 -0
- package/dist/core/steps/index.mjs +9 -0
- package/dist/core/steps/types/buildedStep.cjs +2 -0
- package/dist/core/steps/types/buildedStep.mjs +1 -0
- package/dist/core/steps/types/index.cjs +6 -0
- package/dist/core/steps/types/index.mjs +3 -0
- package/dist/core/steps/types/stepFunctionParams.cjs +2 -0
- package/dist/core/steps/types/stepFunctionParams.d.ts +2 -2
- package/dist/core/steps/types/stepFunctionParams.mjs +1 -0
- package/dist/core/steps/types/steps.cjs +2 -0
- package/dist/core/steps/types/steps.mjs +1 -0
- package/dist/core/types/environment.cjs +2 -0
- package/dist/core/types/environment.d.ts +1 -1
- package/dist/core/types/environment.mjs +1 -0
- package/dist/core/types/forbiddenBigintDataParser.cjs +2 -0
- package/dist/core/types/forbiddenBigintDataParser.d.ts +6 -0
- package/dist/core/types/forbiddenBigintDataParser.mjs +1 -0
- package/dist/core/types/index.cjs +5 -0
- package/dist/core/types/index.d.ts +1 -0
- package/dist/core/types/index.mjs +2 -0
- package/dist/interfaces/bun/index.cjs +1 -9
- package/dist/interfaces/bun/index.mjs +1 -9
- package/dist/interfaces/bun/types/index.cjs +4 -0
- package/dist/interfaces/bun/types/index.mjs +1 -0
- package/dist/interfaces/bun/types/request.cjs +5 -0
- package/dist/interfaces/bun/types/request.mjs +2 -0
- package/dist/interfaces/deno/index.cjs +1 -0
- package/dist/interfaces/deno/index.mjs +1 -0
- package/dist/interfaces/deno/types/index.cjs +2 -0
- package/dist/interfaces/deno/types/index.mjs +1 -0
- package/dist/interfaces/node/createHttpServer.cjs +11 -3
- package/dist/interfaces/node/createHttpServer.d.ts +2 -1
- package/dist/interfaces/node/createHttpServer.mjs +11 -3
- package/dist/interfaces/node/error/index.cjs +11 -0
- package/dist/interfaces/node/error/index.mjs +3 -0
- package/dist/interfaces/node/hooks.cjs +17 -13
- package/dist/interfaces/node/hooks.mjs +16 -12
- package/dist/interfaces/node/index.cjs +6 -13
- package/dist/interfaces/node/index.mjs +4 -11
- package/dist/interfaces/node/types/host.cjs +2 -0
- package/dist/interfaces/node/types/host.mjs +1 -0
- package/dist/interfaces/node/types/index.cjs +5 -0
- package/dist/interfaces/node/types/index.mjs +2 -0
- package/dist/interfaces/node/types/request.cjs +5 -0
- package/dist/interfaces/node/types/request.mjs +2 -0
- package/dist/plugins/codeGenerator/index.cjs +13 -0
- package/dist/plugins/codeGenerator/index.d.ts +5 -0
- package/dist/plugins/codeGenerator/index.mjs +5 -0
- package/dist/plugins/codeGenerator/plugin.cjs +51 -0
- package/dist/plugins/codeGenerator/plugin.d.ts +5 -0
- package/dist/plugins/codeGenerator/plugin.mjs +30 -0
- package/dist/plugins/codeGenerator/routeToDataParser.cjs +28 -0
- package/dist/plugins/codeGenerator/routeToDataParser.d.ts +7 -0
- package/dist/plugins/codeGenerator/routeToDataParser.mjs +26 -0
- package/dist/plugins/codeGenerator/stepsToDataParser.cjs +66 -0
- package/dist/plugins/codeGenerator/stepsToDataParser.d.ts +14 -0
- package/dist/plugins/codeGenerator/stepsToDataParser.mjs +64 -0
- package/dist/plugins/codeGenerator/types/entrypointKey.cjs +2 -0
- package/dist/plugins/codeGenerator/types/entrypointKey.d.ts +1 -0
- package/dist/plugins/codeGenerator/types/entrypointKey.mjs +1 -0
- package/dist/plugins/codeGenerator/types/index.cjs +4 -0
- package/dist/plugins/codeGenerator/types/index.d.ts +1 -0
- package/dist/plugins/codeGenerator/types/index.mjs +1 -0
- package/dist/plugins/openApiGenerator/aggregateStepContract.cjs +62 -0
- package/dist/plugins/openApiGenerator/aggregateStepContract.d.ts +18 -0
- package/dist/plugins/openApiGenerator/aggregateStepContract.mjs +60 -0
- package/dist/plugins/openApiGenerator/index.cjs +17 -0
- package/dist/plugins/openApiGenerator/index.d.ts +7 -0
- package/dist/plugins/openApiGenerator/index.mjs +7 -0
- package/dist/plugins/openApiGenerator/makeOpenApiPage.cjs +30 -0
- package/dist/plugins/openApiGenerator/makeOpenApiPage.d.ts +7 -0
- package/dist/plugins/openApiGenerator/makeOpenApiPage.mjs +28 -0
- package/dist/plugins/openApiGenerator/makeOpenApiRoute.cjs +15 -0
- package/dist/plugins/openApiGenerator/makeOpenApiRoute.d.ts +18 -0
- package/dist/plugins/openApiGenerator/makeOpenApiRoute.mjs +13 -0
- package/dist/plugins/openApiGenerator/plugin.cjs +90 -0
- package/dist/plugins/openApiGenerator/plugin.d.ts +49 -0
- package/dist/plugins/openApiGenerator/plugin.mjs +88 -0
- package/dist/plugins/openApiGenerator/routeToOpenApi.cjs +163 -0
- package/dist/plugins/openApiGenerator/routeToOpenApi.d.ts +35 -0
- package/dist/plugins/openApiGenerator/routeToOpenApi.mjs +161 -0
- package/dist/plugins/openApiGenerator/types/endpointResponse.cjs +2 -0
- package/dist/plugins/openApiGenerator/types/endpointResponse.d.ts +19 -0
- package/dist/plugins/openApiGenerator/types/endpointResponse.mjs +1 -0
- package/dist/plugins/openApiGenerator/types/entrypoint.cjs +2 -0
- package/dist/plugins/openApiGenerator/types/entrypoint.d.ts +22 -0
- package/dist/plugins/openApiGenerator/types/entrypoint.mjs +1 -0
- package/dist/plugins/openApiGenerator/types/entrypointKey.cjs +2 -0
- package/dist/plugins/openApiGenerator/types/entrypointKey.d.ts +1 -0
- package/dist/plugins/openApiGenerator/types/entrypointKey.mjs +1 -0
- package/dist/plugins/openApiGenerator/types/index.cjs +11 -0
- package/dist/plugins/openApiGenerator/types/index.d.ts +8 -0
- package/dist/plugins/openApiGenerator/types/index.mjs +8 -0
- package/dist/plugins/openApiGenerator/types/openApiDocument.cjs +2 -0
- package/dist/plugins/openApiGenerator/types/openApiDocument.d.ts +31 -0
- package/dist/plugins/openApiGenerator/types/openApiDocument.mjs +1 -0
- package/dist/plugins/openApiGenerator/types/openApiMethod.cjs +2 -0
- package/dist/plugins/openApiGenerator/types/openApiMethod.d.ts +1 -0
- package/dist/plugins/openApiGenerator/types/openApiMethod.mjs +1 -0
- package/dist/plugins/openApiGenerator/types/openApiOperation.cjs +2 -0
- package/dist/plugins/openApiGenerator/types/openApiOperation.d.ts +8 -0
- package/dist/plugins/openApiGenerator/types/openApiOperation.mjs +1 -0
- package/dist/plugins/openApiGenerator/types/openApiPath.cjs +2 -0
- package/dist/plugins/openApiGenerator/types/openApiPath.d.ts +4 -0
- package/dist/plugins/openApiGenerator/types/openApiPath.mjs +1 -0
- package/dist/plugins/openApiGenerator/types/openApiSecuritySchema.cjs +2 -0
- package/dist/plugins/openApiGenerator/types/openApiSecuritySchema.d.ts +8 -0
- package/dist/plugins/openApiGenerator/types/openApiSecuritySchema.mjs +1 -0
- package/package.json +22 -3
|
@@ -1,284 +1,286 @@
|
|
|
1
1
|
import { DP, type Kind, type NeverCoalescing } from "@duplojs/utils";
|
|
2
|
-
import { type ResponseCode, type
|
|
2
|
+
import { type ResponseCode, type PredictedResponse } from ".";
|
|
3
|
+
import { type ForbiddenBigintDataParser } from "../types";
|
|
3
4
|
export declare namespace ResponseContract {
|
|
5
|
+
type SupportedDataParser = DP.DataParser;
|
|
4
6
|
export const contractKind: import("@duplojs/utils").KindHandler<import("@duplojs/utils").KindDefinition<"@DuplojsHttpCore/response-contract", unknown>>;
|
|
5
|
-
export interface Contract<GenericCode extends ResponseCode = ResponseCode, GenericInformation extends string = string, GenericSchema extends
|
|
7
|
+
export interface Contract<GenericCode extends ResponseCode = ResponseCode, GenericInformation extends string = string, GenericSchema extends SupportedDataParser = SupportedDataParser> extends Kind<typeof contractKind.definition> {
|
|
6
8
|
code: GenericCode;
|
|
7
9
|
information: GenericInformation;
|
|
8
|
-
|
|
10
|
+
body: GenericSchema;
|
|
9
11
|
}
|
|
10
|
-
export type Convert<GenericContract extends Contract> = GenericContract extends Contract ?
|
|
11
|
-
export const http100Continue: <GenericInformation extends string, GenericSchema extends
|
|
12
|
+
export type Convert<GenericContract extends Contract> = GenericContract extends Contract ? PredictedResponse<GenericContract["code"], GenericContract["information"], DP.Input<GenericContract["body"]>> : never;
|
|
13
|
+
export const http100Continue: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
12
14
|
readonly errorMessage?: string | undefined;
|
|
13
15
|
readonly coerce: boolean;
|
|
14
16
|
readonly checkers: readonly [];
|
|
15
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"100", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
16
|
-
export const switchingProtocols: <GenericInformation extends string, GenericSchema extends
|
|
17
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"100", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
18
|
+
export const switchingProtocols: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
17
19
|
readonly errorMessage?: string | undefined;
|
|
18
20
|
readonly coerce: boolean;
|
|
19
21
|
readonly checkers: readonly [];
|
|
20
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"101", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
21
|
-
export const processing: <GenericInformation extends string, GenericSchema extends
|
|
22
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"101", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
23
|
+
export const processing: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
22
24
|
readonly errorMessage?: string | undefined;
|
|
23
25
|
readonly coerce: boolean;
|
|
24
26
|
readonly checkers: readonly [];
|
|
25
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"102", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
26
|
-
export const earlyHints: <GenericInformation extends string, GenericSchema extends
|
|
27
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"102", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
28
|
+
export const earlyHints: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
27
29
|
readonly errorMessage?: string | undefined;
|
|
28
30
|
readonly coerce: boolean;
|
|
29
31
|
readonly checkers: readonly [];
|
|
30
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"103", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
31
|
-
export const ok: <GenericInformation extends string, GenericSchema extends
|
|
32
|
-
export const created: <GenericInformation extends string, GenericSchema extends
|
|
32
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"103", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
33
|
+
export const ok: <GenericInformation extends string, GenericSchema extends SupportedDataParser = never>(information: GenericInformation, schema: GenericSchema & ForbiddenBigintDataParser<GenericSchema>) => NoInfer<Contract<"200", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
34
|
+
export const created: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
33
35
|
readonly errorMessage?: string | undefined;
|
|
34
36
|
readonly coerce: boolean;
|
|
35
37
|
readonly checkers: readonly [];
|
|
36
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"201", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
37
|
-
export const accepted: <GenericInformation extends string, GenericSchema extends
|
|
38
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"201", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
39
|
+
export const accepted: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
38
40
|
readonly errorMessage?: string | undefined;
|
|
39
41
|
readonly coerce: boolean;
|
|
40
42
|
readonly checkers: readonly [];
|
|
41
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"202", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
42
|
-
export const nonAuthoritativeInformation: <GenericInformation extends string, GenericSchema extends
|
|
43
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"202", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
44
|
+
export const nonAuthoritativeInformation: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
43
45
|
readonly errorMessage?: string | undefined;
|
|
44
46
|
readonly coerce: boolean;
|
|
45
47
|
readonly checkers: readonly [];
|
|
46
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"203", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
47
|
-
export const noContent: <GenericInformation extends string, GenericSchema extends
|
|
48
|
-
export const resetContent: <GenericInformation extends string, GenericSchema extends
|
|
48
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"203", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
49
|
+
export const noContent: <GenericInformation extends string, GenericSchema extends SupportedDataParser = never>(information: GenericInformation) => NoInfer<Contract<"204", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
50
|
+
export const resetContent: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
49
51
|
readonly errorMessage?: string | undefined;
|
|
50
52
|
readonly coerce: boolean;
|
|
51
53
|
readonly checkers: readonly [];
|
|
52
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"205", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
53
|
-
export const partialContent: <GenericInformation extends string, GenericSchema extends
|
|
54
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"205", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
55
|
+
export const partialContent: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
54
56
|
readonly errorMessage?: string | undefined;
|
|
55
57
|
readonly coerce: boolean;
|
|
56
58
|
readonly checkers: readonly [];
|
|
57
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"206", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
58
|
-
export const multiStatus: <GenericInformation extends string, GenericSchema extends
|
|
59
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"206", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
60
|
+
export const multiStatus: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
59
61
|
readonly errorMessage?: string | undefined;
|
|
60
62
|
readonly coerce: boolean;
|
|
61
63
|
readonly checkers: readonly [];
|
|
62
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"207", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
63
|
-
export const alreadyReported: <GenericInformation extends string, GenericSchema extends
|
|
64
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"207", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
65
|
+
export const alreadyReported: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
64
66
|
readonly errorMessage?: string | undefined;
|
|
65
67
|
readonly coerce: boolean;
|
|
66
68
|
readonly checkers: readonly [];
|
|
67
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"208", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
68
|
-
export const imUsed: <GenericInformation extends string, GenericSchema extends
|
|
69
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"208", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
70
|
+
export const imUsed: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
69
71
|
readonly errorMessage?: string | undefined;
|
|
70
72
|
readonly coerce: boolean;
|
|
71
73
|
readonly checkers: readonly [];
|
|
72
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"226", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
73
|
-
export const multipleChoices: <GenericInformation extends string, GenericSchema extends
|
|
74
|
-
export const movedPermanently: <GenericInformation extends string, GenericSchema extends
|
|
75
|
-
export const found: <GenericInformation extends string, GenericSchema extends
|
|
76
|
-
export const seeOther: <GenericInformation extends string, GenericSchema extends
|
|
77
|
-
export const notModified: <GenericInformation extends string, GenericSchema extends
|
|
78
|
-
export const useProxy: <GenericInformation extends string, GenericSchema extends
|
|
79
|
-
export const switchProxy: <GenericInformation extends string, GenericSchema extends
|
|
80
|
-
export const temporaryRedirect: <GenericInformation extends string, GenericSchema extends
|
|
81
|
-
export const permanentRedirect: <GenericInformation extends string, GenericSchema extends
|
|
82
|
-
export const badRequest: <GenericInformation extends string, GenericSchema extends
|
|
74
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"226", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
75
|
+
export const multipleChoices: <GenericInformation extends string, GenericSchema extends SupportedDataParser = never>(information: GenericInformation) => NoInfer<Contract<"300", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
76
|
+
export const movedPermanently: <GenericInformation extends string, GenericSchema extends SupportedDataParser = never>(information: GenericInformation) => NoInfer<Contract<"301", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
77
|
+
export const found: <GenericInformation extends string, GenericSchema extends SupportedDataParser = never>(information: GenericInformation) => NoInfer<Contract<"302", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
78
|
+
export const seeOther: <GenericInformation extends string, GenericSchema extends SupportedDataParser = never>(information: GenericInformation) => NoInfer<Contract<"303", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
79
|
+
export const notModified: <GenericInformation extends string, GenericSchema extends SupportedDataParser = never>(information: GenericInformation) => NoInfer<Contract<"304", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
80
|
+
export const useProxy: <GenericInformation extends string, GenericSchema extends SupportedDataParser = never>(information: GenericInformation) => NoInfer<Contract<"305", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
81
|
+
export const switchProxy: <GenericInformation extends string, GenericSchema extends SupportedDataParser = never>(information: GenericInformation) => NoInfer<Contract<"306", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
82
|
+
export const temporaryRedirect: <GenericInformation extends string, GenericSchema extends SupportedDataParser = never>(information: GenericInformation) => NoInfer<Contract<"307", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
83
|
+
export const permanentRedirect: <GenericInformation extends string, GenericSchema extends SupportedDataParser = never>(information: GenericInformation) => NoInfer<Contract<"308", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
84
|
+
export const badRequest: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
83
85
|
readonly errorMessage?: string | undefined;
|
|
84
86
|
readonly coerce: boolean;
|
|
85
87
|
readonly checkers: readonly [];
|
|
86
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"400", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
87
|
-
export const unauthorized: <GenericInformation extends string, GenericSchema extends
|
|
88
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"400", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
89
|
+
export const unauthorized: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
88
90
|
readonly errorMessage?: string | undefined;
|
|
89
91
|
readonly coerce: boolean;
|
|
90
92
|
readonly checkers: readonly [];
|
|
91
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"401", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
92
|
-
export const paymentRequired: <GenericInformation extends string, GenericSchema extends
|
|
93
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"401", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
94
|
+
export const paymentRequired: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
93
95
|
readonly errorMessage?: string | undefined;
|
|
94
96
|
readonly coerce: boolean;
|
|
95
97
|
readonly checkers: readonly [];
|
|
96
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"402", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
97
|
-
export const forbidden: <GenericInformation extends string, GenericSchema extends
|
|
98
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"402", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
99
|
+
export const forbidden: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
98
100
|
readonly errorMessage?: string | undefined;
|
|
99
101
|
readonly coerce: boolean;
|
|
100
102
|
readonly checkers: readonly [];
|
|
101
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"403", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
102
|
-
export const notFound: <GenericInformation extends string, GenericSchema extends
|
|
103
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"403", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
104
|
+
export const notFound: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
103
105
|
readonly errorMessage?: string | undefined;
|
|
104
106
|
readonly coerce: boolean;
|
|
105
107
|
readonly checkers: readonly [];
|
|
106
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"404", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
107
|
-
export const methodNotAllowed: <GenericInformation extends string, GenericSchema extends
|
|
108
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"404", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
109
|
+
export const methodNotAllowed: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
108
110
|
readonly errorMessage?: string | undefined;
|
|
109
111
|
readonly coerce: boolean;
|
|
110
112
|
readonly checkers: readonly [];
|
|
111
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"405", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
112
|
-
export const notAcceptable: <GenericInformation extends string, GenericSchema extends
|
|
113
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"405", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
114
|
+
export const notAcceptable: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
113
115
|
readonly errorMessage?: string | undefined;
|
|
114
116
|
readonly coerce: boolean;
|
|
115
117
|
readonly checkers: readonly [];
|
|
116
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"406", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
117
|
-
export const proxyAuthenticationRequired: <GenericInformation extends string, GenericSchema extends
|
|
118
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"406", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
119
|
+
export const proxyAuthenticationRequired: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
118
120
|
readonly errorMessage?: string | undefined;
|
|
119
121
|
readonly coerce: boolean;
|
|
120
122
|
readonly checkers: readonly [];
|
|
121
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"407", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
122
|
-
export const requestTimeout: <GenericInformation extends string, GenericSchema extends
|
|
123
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"407", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
124
|
+
export const requestTimeout: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
123
125
|
readonly errorMessage?: string | undefined;
|
|
124
126
|
readonly coerce: boolean;
|
|
125
127
|
readonly checkers: readonly [];
|
|
126
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"408", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
127
|
-
export const conflict: <GenericInformation extends string, GenericSchema extends
|
|
128
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"408", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
129
|
+
export const conflict: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
128
130
|
readonly errorMessage?: string | undefined;
|
|
129
131
|
readonly coerce: boolean;
|
|
130
132
|
readonly checkers: readonly [];
|
|
131
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"409", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
132
|
-
export const gone: <GenericInformation extends string, GenericSchema extends
|
|
133
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"409", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
134
|
+
export const gone: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
133
135
|
readonly errorMessage?: string | undefined;
|
|
134
136
|
readonly coerce: boolean;
|
|
135
137
|
readonly checkers: readonly [];
|
|
136
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"410", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
137
|
-
export const lengthRequired: <GenericInformation extends string, GenericSchema extends
|
|
138
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"410", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
139
|
+
export const lengthRequired: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
138
140
|
readonly errorMessage?: string | undefined;
|
|
139
141
|
readonly coerce: boolean;
|
|
140
142
|
readonly checkers: readonly [];
|
|
141
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"411", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
142
|
-
export const preconditionFailed: <GenericInformation extends string, GenericSchema extends
|
|
143
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"411", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
144
|
+
export const preconditionFailed: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
143
145
|
readonly errorMessage?: string | undefined;
|
|
144
146
|
readonly coerce: boolean;
|
|
145
147
|
readonly checkers: readonly [];
|
|
146
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"412", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
147
|
-
export const contentTooLarge: <GenericInformation extends string, GenericSchema extends
|
|
148
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"412", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
149
|
+
export const contentTooLarge: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
148
150
|
readonly errorMessage?: string | undefined;
|
|
149
151
|
readonly coerce: boolean;
|
|
150
152
|
readonly checkers: readonly [];
|
|
151
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"413", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
152
|
-
export const uriTooLong: <GenericInformation extends string, GenericSchema extends
|
|
153
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"413", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
154
|
+
export const uriTooLong: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
153
155
|
readonly errorMessage?: string | undefined;
|
|
154
156
|
readonly coerce: boolean;
|
|
155
157
|
readonly checkers: readonly [];
|
|
156
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"414", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
157
|
-
export const unsupportedMediaType: <GenericInformation extends string, GenericSchema extends
|
|
158
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"414", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
159
|
+
export const unsupportedMediaType: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
158
160
|
readonly errorMessage?: string | undefined;
|
|
159
161
|
readonly coerce: boolean;
|
|
160
162
|
readonly checkers: readonly [];
|
|
161
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"415", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
162
|
-
export const rangeNotSatisfiable: <GenericInformation extends string, GenericSchema extends
|
|
163
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"415", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
164
|
+
export const rangeNotSatisfiable: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
163
165
|
readonly errorMessage?: string | undefined;
|
|
164
166
|
readonly coerce: boolean;
|
|
165
167
|
readonly checkers: readonly [];
|
|
166
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"416", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
167
|
-
export const expectationFailed: <GenericInformation extends string, GenericSchema extends
|
|
168
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"416", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
169
|
+
export const expectationFailed: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
168
170
|
readonly errorMessage?: string | undefined;
|
|
169
171
|
readonly coerce: boolean;
|
|
170
172
|
readonly checkers: readonly [];
|
|
171
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"417", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
172
|
-
export const imATeapot: <GenericInformation extends string, GenericSchema extends
|
|
173
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"417", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
174
|
+
export const imATeapot: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
173
175
|
readonly errorMessage?: string | undefined;
|
|
174
176
|
readonly coerce: boolean;
|
|
175
177
|
readonly checkers: readonly [];
|
|
176
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"418", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
177
|
-
export const misdirectedRequest: <GenericInformation extends string, GenericSchema extends
|
|
178
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"418", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
179
|
+
export const misdirectedRequest: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
178
180
|
readonly errorMessage?: string | undefined;
|
|
179
181
|
readonly coerce: boolean;
|
|
180
182
|
readonly checkers: readonly [];
|
|
181
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"421", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
182
|
-
export const unprocessableContent: <GenericInformation extends string, GenericSchema extends
|
|
183
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"421", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
184
|
+
export const unprocessableContent: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
183
185
|
readonly errorMessage?: string | undefined;
|
|
184
186
|
readonly coerce: boolean;
|
|
185
187
|
readonly checkers: readonly [];
|
|
186
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"422", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
187
|
-
export const locked: <GenericInformation extends string, GenericSchema extends
|
|
188
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"422", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
189
|
+
export const locked: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
188
190
|
readonly errorMessage?: string | undefined;
|
|
189
191
|
readonly coerce: boolean;
|
|
190
192
|
readonly checkers: readonly [];
|
|
191
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"423", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
192
|
-
export const failedDependency: <GenericInformation extends string, GenericSchema extends
|
|
193
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"423", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
194
|
+
export const failedDependency: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
193
195
|
readonly errorMessage?: string | undefined;
|
|
194
196
|
readonly coerce: boolean;
|
|
195
197
|
readonly checkers: readonly [];
|
|
196
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"424", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
197
|
-
export const tooEarly: <GenericInformation extends string, GenericSchema extends
|
|
198
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"424", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
199
|
+
export const tooEarly: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
198
200
|
readonly errorMessage?: string | undefined;
|
|
199
201
|
readonly coerce: boolean;
|
|
200
202
|
readonly checkers: readonly [];
|
|
201
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"425", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
202
|
-
export const upgradeRequired: <GenericInformation extends string, GenericSchema extends
|
|
203
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"425", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
204
|
+
export const upgradeRequired: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
203
205
|
readonly errorMessage?: string | undefined;
|
|
204
206
|
readonly coerce: boolean;
|
|
205
207
|
readonly checkers: readonly [];
|
|
206
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"426", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
207
|
-
export const preconditionRequired: <GenericInformation extends string, GenericSchema extends
|
|
208
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"426", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
209
|
+
export const preconditionRequired: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
208
210
|
readonly errorMessage?: string | undefined;
|
|
209
211
|
readonly coerce: boolean;
|
|
210
212
|
readonly checkers: readonly [];
|
|
211
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"428", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
212
|
-
export const tooManyRequests: <GenericInformation extends string, GenericSchema extends
|
|
213
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"428", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
214
|
+
export const tooManyRequests: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
213
215
|
readonly errorMessage?: string | undefined;
|
|
214
216
|
readonly coerce: boolean;
|
|
215
217
|
readonly checkers: readonly [];
|
|
216
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"429", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
217
|
-
export const requestHeaderFieldsTooLarge: <GenericInformation extends string, GenericSchema extends
|
|
218
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"429", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
219
|
+
export const requestHeaderFieldsTooLarge: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
218
220
|
readonly errorMessage?: string | undefined;
|
|
219
221
|
readonly coerce: boolean;
|
|
220
222
|
readonly checkers: readonly [];
|
|
221
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"431", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
222
|
-
export const unavailableForLegalReasons: <GenericInformation extends string, GenericSchema extends
|
|
223
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"431", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
224
|
+
export const unavailableForLegalReasons: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
223
225
|
readonly errorMessage?: string | undefined;
|
|
224
226
|
readonly coerce: boolean;
|
|
225
227
|
readonly checkers: readonly [];
|
|
226
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"451", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
227
|
-
export const internalServerError: <GenericInformation extends string, GenericSchema extends
|
|
228
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"451", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
229
|
+
export const internalServerError: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
228
230
|
readonly errorMessage?: string | undefined;
|
|
229
231
|
readonly coerce: boolean;
|
|
230
232
|
readonly checkers: readonly [];
|
|
231
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"500", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
232
|
-
export const notImplemented: <GenericInformation extends string, GenericSchema extends
|
|
233
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"500", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
234
|
+
export const notImplemented: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
233
235
|
readonly errorMessage?: string | undefined;
|
|
234
236
|
readonly coerce: boolean;
|
|
235
237
|
readonly checkers: readonly [];
|
|
236
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"501", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
237
|
-
export const badGateway: <GenericInformation extends string, GenericSchema extends
|
|
238
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"501", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
239
|
+
export const badGateway: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
238
240
|
readonly errorMessage?: string | undefined;
|
|
239
241
|
readonly coerce: boolean;
|
|
240
242
|
readonly checkers: readonly [];
|
|
241
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"502", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
242
|
-
export const serviceUnavailable: <GenericInformation extends string, GenericSchema extends
|
|
243
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"502", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
244
|
+
export const serviceUnavailable: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
243
245
|
readonly errorMessage?: string | undefined;
|
|
244
246
|
readonly coerce: boolean;
|
|
245
247
|
readonly checkers: readonly [];
|
|
246
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"503", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
247
|
-
export const gatewayTimeout: <GenericInformation extends string, GenericSchema extends
|
|
248
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"503", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
249
|
+
export const gatewayTimeout: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
248
250
|
readonly errorMessage?: string | undefined;
|
|
249
251
|
readonly coerce: boolean;
|
|
250
252
|
readonly checkers: readonly [];
|
|
251
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"504", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
252
|
-
export const httpVersionNotSupported: <GenericInformation extends string, GenericSchema extends
|
|
253
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"504", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
254
|
+
export const httpVersionNotSupported: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
253
255
|
readonly errorMessage?: string | undefined;
|
|
254
256
|
readonly coerce: boolean;
|
|
255
257
|
readonly checkers: readonly [];
|
|
256
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"505", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
257
|
-
export const variantAlsoNegotiates: <GenericInformation extends string, GenericSchema extends
|
|
258
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"505", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
259
|
+
export const variantAlsoNegotiates: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
258
260
|
readonly errorMessage?: string | undefined;
|
|
259
261
|
readonly coerce: boolean;
|
|
260
262
|
readonly checkers: readonly [];
|
|
261
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"506", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
262
|
-
export const insufficientStorage: <GenericInformation extends string, GenericSchema extends
|
|
263
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"506", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
264
|
+
export const insufficientStorage: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
263
265
|
readonly errorMessage?: string | undefined;
|
|
264
266
|
readonly coerce: boolean;
|
|
265
267
|
readonly checkers: readonly [];
|
|
266
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"507", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
267
|
-
export const loopDetected: <GenericInformation extends string, GenericSchema extends
|
|
268
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"507", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
269
|
+
export const loopDetected: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
268
270
|
readonly errorMessage?: string | undefined;
|
|
269
271
|
readonly coerce: boolean;
|
|
270
272
|
readonly checkers: readonly [];
|
|
271
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"508", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
272
|
-
export const notExtended: <GenericInformation extends string, GenericSchema extends
|
|
273
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"508", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
274
|
+
export const notExtended: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
273
275
|
readonly errorMessage?: string | undefined;
|
|
274
276
|
readonly coerce: boolean;
|
|
275
277
|
readonly checkers: readonly [];
|
|
276
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"510", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
277
|
-
export const networkAuthenticationRequired: <GenericInformation extends string, GenericSchema extends
|
|
278
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"510", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
279
|
+
export const networkAuthenticationRequired: <GenericInformation extends string, GenericSchema extends SupportedDataParser = DP.DataParserEmpty<{
|
|
278
280
|
readonly errorMessage?: string | undefined;
|
|
279
281
|
readonly coerce: boolean;
|
|
280
282
|
readonly checkers: readonly [];
|
|
281
|
-
}>>(information: GenericInformation, schema?: GenericSchema | undefined) => NoInfer<Contract<"511", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
283
|
+
}>>(information: GenericInformation, schema?: (GenericSchema & ForbiddenBigintDataParser<GenericSchema>) | undefined) => NoInfer<Contract<"511", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
|
|
282
284
|
const Error_base: new (params: {
|
|
283
285
|
"@DuplojsHttpCore/contract-error"?: unknown;
|
|
284
286
|
}, parentParams: [message?: string | undefined, options?: ErrorOptions | undefined]) => Kind<import("@duplojs/utils").KindDefinition<"@DuplojsHttpCore/contract-error", unknown>, unknown> & Kind<import("@duplojs/utils").KindDefinition<"contract-error", unknown>, unknown> & globalThis.Error;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DP, kindHeritage
|
|
1
|
+
import { pipe, DP, kindHeritage } from '@duplojs/utils';
|
|
2
2
|
import { createCoreLibKind } from '../kind.mjs';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const ErrorClass = Error;
|
|
5
5
|
var ResponseContract;
|
|
6
6
|
(function (ResponseContract) {
|
|
7
7
|
ResponseContract.contractKind = createCoreLibKind("response-contract");
|
|
@@ -9,7 +9,7 @@ var ResponseContract;
|
|
|
9
9
|
return (information, ...[schema]) => pipe({
|
|
10
10
|
code,
|
|
11
11
|
information,
|
|
12
|
-
|
|
12
|
+
body: (schema ?? options?.defaultSchema ?? DP.empty()),
|
|
13
13
|
}, ResponseContract.contractKind.setTo);
|
|
14
14
|
}
|
|
15
15
|
const defaultSchema = DP.empty();
|
|
@@ -21,21 +21,21 @@ var ResponseContract;
|
|
|
21
21
|
ResponseContract.created = createContractBuilder("201", { defaultSchema });
|
|
22
22
|
ResponseContract.accepted = createContractBuilder("202", { defaultSchema });
|
|
23
23
|
ResponseContract.nonAuthoritativeInformation = createContractBuilder("203", { defaultSchema });
|
|
24
|
-
ResponseContract.noContent = createContractBuilder("204", { });
|
|
24
|
+
ResponseContract.noContent = createContractBuilder("204", { noSchema: true });
|
|
25
25
|
ResponseContract.resetContent = createContractBuilder("205", { defaultSchema });
|
|
26
26
|
ResponseContract.partialContent = createContractBuilder("206", { defaultSchema });
|
|
27
27
|
ResponseContract.multiStatus = createContractBuilder("207", { defaultSchema });
|
|
28
28
|
ResponseContract.alreadyReported = createContractBuilder("208", { defaultSchema });
|
|
29
29
|
ResponseContract.imUsed = createContractBuilder("226", { defaultSchema });
|
|
30
|
-
ResponseContract.multipleChoices = createContractBuilder("300", { });
|
|
31
|
-
ResponseContract.movedPermanently = createContractBuilder("301", { });
|
|
32
|
-
ResponseContract.found = createContractBuilder("302", { });
|
|
33
|
-
ResponseContract.seeOther = createContractBuilder("303", { });
|
|
34
|
-
ResponseContract.notModified = createContractBuilder("304", { });
|
|
35
|
-
ResponseContract.useProxy = createContractBuilder("305", { });
|
|
36
|
-
ResponseContract.switchProxy = createContractBuilder("306", { });
|
|
37
|
-
ResponseContract.temporaryRedirect = createContractBuilder("307", { });
|
|
38
|
-
ResponseContract.permanentRedirect = createContractBuilder("308", { });
|
|
30
|
+
ResponseContract.multipleChoices = createContractBuilder("300", { noSchema: true });
|
|
31
|
+
ResponseContract.movedPermanently = createContractBuilder("301", { noSchema: true });
|
|
32
|
+
ResponseContract.found = createContractBuilder("302", { noSchema: true });
|
|
33
|
+
ResponseContract.seeOther = createContractBuilder("303", { noSchema: true });
|
|
34
|
+
ResponseContract.notModified = createContractBuilder("304", { noSchema: true });
|
|
35
|
+
ResponseContract.useProxy = createContractBuilder("305", { noSchema: true });
|
|
36
|
+
ResponseContract.switchProxy = createContractBuilder("306", { noSchema: true });
|
|
37
|
+
ResponseContract.temporaryRedirect = createContractBuilder("307", { noSchema: true });
|
|
38
|
+
ResponseContract.permanentRedirect = createContractBuilder("308", { noSchema: true });
|
|
39
39
|
ResponseContract.badRequest = createContractBuilder("400", { defaultSchema });
|
|
40
40
|
ResponseContract.unauthorized = createContractBuilder("401", { defaultSchema });
|
|
41
41
|
ResponseContract.paymentRequired = createContractBuilder("402", { defaultSchema });
|
|
@@ -76,7 +76,7 @@ var ResponseContract;
|
|
|
76
76
|
ResponseContract.loopDetected = createContractBuilder("508", { defaultSchema });
|
|
77
77
|
ResponseContract.notExtended = createContractBuilder("510", { defaultSchema });
|
|
78
78
|
ResponseContract.networkAuthenticationRequired = createContractBuilder("511", { defaultSchema });
|
|
79
|
-
class Error extends kindHeritage("contract-error", createCoreLibKind("contract-error"),
|
|
79
|
+
class Error extends kindHeritage("contract-error", createCoreLibKind("contract-error"), ErrorClass) {
|
|
80
80
|
information;
|
|
81
81
|
dataParserError;
|
|
82
82
|
constructor(information, dataParserError) {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var kind = require('
|
|
4
|
-
|
|
3
|
+
var kind = require('../kind.cjs');
|
|
4
|
+
require('./index.cjs');
|
|
5
5
|
var utils = require('@duplojs/utils');
|
|
6
|
+
var base = require('./base.cjs');
|
|
6
7
|
|
|
7
8
|
const defaultParamsParent = [undefined, undefined, undefined];
|
|
8
9
|
const defaultParams = {};
|
|
9
|
-
class HookResponse extends utils.kindHeritage("hook-response", kind.createCoreLibKind("hook-response"),
|
|
10
|
+
class HookResponse extends utils.kindHeritage("hook-response", kind.createCoreLibKind("hook-response"), base.Response) {
|
|
10
11
|
code;
|
|
11
12
|
information;
|
|
12
13
|
body;
|
|
@@ -14,7 +15,7 @@ class HookResponse extends utils.kindHeritage("hook-response", kind.createCoreLi
|
|
|
14
15
|
constructor(from, code, information, body) {
|
|
15
16
|
super(defaultParams, defaultParamsParent);
|
|
16
17
|
this.code = code;
|
|
17
|
-
this.information =
|
|
18
|
+
this.information = information;
|
|
18
19
|
this.body = body;
|
|
19
20
|
this.fromHook = from;
|
|
20
21
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type ResponseCode, Response } from "
|
|
2
|
-
import { type HookRouteLifeCycle } from "
|
|
1
|
+
import { type ResponseCode, Response } from "../response";
|
|
2
|
+
import { type HookRouteLifeCycle } from "../route/hooks";
|
|
3
3
|
declare const HookResponse_base: new (params: {
|
|
4
4
|
"@DuplojsHttpCore/hook-response"?: unknown;
|
|
5
5
|
}, parentParams: [code: any, information: any, body: any]) => Response<any, any, any> & import("@duplojs/utils").Kind<import("@duplojs/utils").KindDefinition<"@DuplojsHttpCore/hook-response", unknown>, unknown> & import("@duplojs/utils").Kind<import("@duplojs/utils").KindDefinition<"hook-response", unknown>, unknown>;
|
|
6
6
|
export declare class HookResponse<GenericCode extends ResponseCode = ResponseCode, GenericInformation extends string = string, GenericBody extends unknown = unknown> extends HookResponse_base {
|
|
7
7
|
code: GenericCode;
|
|
8
|
-
information:
|
|
8
|
+
information: GenericInformation;
|
|
9
9
|
body: GenericBody;
|
|
10
10
|
fromHook: keyof HookRouteLifeCycle;
|
|
11
11
|
constructor(from: keyof HookRouteLifeCycle, code: GenericCode, information: GenericInformation, body: GenericBody);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { createCoreLibKind } from '
|
|
2
|
-
import
|
|
1
|
+
import { createCoreLibKind } from '../kind.mjs';
|
|
2
|
+
import './index.mjs';
|
|
3
3
|
import { kindHeritage } from '@duplojs/utils';
|
|
4
|
+
import { Response } from './base.mjs';
|
|
4
5
|
|
|
5
6
|
const defaultParamsParent = [undefined, undefined, undefined];
|
|
6
7
|
const defaultParams = {};
|
|
@@ -12,7 +13,7 @@ class HookResponse extends kindHeritage("hook-response", createCoreLibKind("hook
|
|
|
12
13
|
constructor(from, code, information, body) {
|
|
13
14
|
super(defaultParams, defaultParamsParent);
|
|
14
15
|
this.code = code;
|
|
15
|
-
this.information =
|
|
16
|
+
this.information = information;
|
|
16
17
|
this.body = body;
|
|
17
18
|
this.fromHook = from;
|
|
18
19
|
}
|