@duplojs/http 0.2.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.
Files changed (151) hide show
  1. package/dist/client/getBody.cjs +22 -0
  2. package/dist/client/getBody.d.ts +1 -0
  3. package/dist/client/getBody.mjs +20 -0
  4. package/dist/client/hooks.cjs +79 -0
  5. package/dist/client/hooks.d.ts +33 -0
  6. package/dist/client/hooks.mjs +70 -0
  7. package/dist/client/httpClient.cjs +153 -0
  8. package/dist/client/httpClient.d.ts +60 -0
  9. package/dist/client/httpClient.mjs +130 -0
  10. package/dist/client/index.cjs +33 -0
  11. package/dist/client/index.d.ts +9 -0
  12. package/dist/client/index.mjs +9 -0
  13. package/dist/client/insertParamsInPath.cjs +12 -0
  14. package/dist/client/insertParamsInPath.d.ts +2 -0
  15. package/dist/client/insertParamsInPath.mjs +10 -0
  16. package/dist/client/kind.cjs +9 -0
  17. package/dist/client/kind.d.ts +6 -0
  18. package/dist/client/kind.mjs +7 -0
  19. package/dist/client/promiseRequest.cjs +355 -0
  20. package/dist/client/promiseRequest.d.ts +98 -0
  21. package/dist/client/promiseRequest.mjs +332 -0
  22. package/dist/client/queryToString.cjs +25 -0
  23. package/dist/client/queryToString.d.ts +2 -0
  24. package/dist/client/queryToString.mjs +23 -0
  25. package/dist/client/types/ObjectCanBeEmpty.cjs +2 -0
  26. package/dist/client/types/ObjectCanBeEmpty.d.ts +4 -0
  27. package/dist/client/types/ObjectCanBeEmpty.mjs +1 -0
  28. package/dist/client/types/clientRequestParams.cjs +2 -0
  29. package/dist/client/types/clientRequestParams.d.ts +51 -0
  30. package/dist/client/types/clientRequestParams.mjs +1 -0
  31. package/dist/client/types/clientResponse.cjs +2 -0
  32. package/dist/client/types/clientResponse.d.ts +34 -0
  33. package/dist/client/types/clientResponse.mjs +1 -0
  34. package/dist/client/types/index.cjs +7 -0
  35. package/dist/client/types/index.d.ts +4 -0
  36. package/dist/client/types/index.mjs +4 -0
  37. package/dist/client/types/serverRoute.cjs +2 -0
  38. package/dist/client/types/serverRoute.d.ts +22 -0
  39. package/dist/client/types/serverRoute.mjs +1 -0
  40. package/dist/client/unexpectedResponseError.cjs +44 -0
  41. package/dist/client/unexpectedResponseError.d.ts +38 -0
  42. package/dist/client/unexpectedResponseError.mjs +39 -0
  43. package/dist/core/functionsBuilders/route/default.cjs +10 -9
  44. package/dist/core/functionsBuilders/route/default.mjs +3 -2
  45. package/dist/core/functionsBuilders/route/hook.cjs +22 -22
  46. package/dist/core/functionsBuilders/route/hook.d.ts +2 -2
  47. package/dist/core/functionsBuilders/route/hook.mjs +2 -2
  48. package/dist/core/functionsBuilders/steps/create.d.ts +2 -2
  49. package/dist/core/functionsBuilders/steps/defaults/checkerStep.cjs +3 -2
  50. package/dist/core/functionsBuilders/steps/defaults/checkerStep.mjs +3 -2
  51. package/dist/core/functionsBuilders/steps/defaults/cutStep.cjs +3 -2
  52. package/dist/core/functionsBuilders/steps/defaults/cutStep.mjs +3 -2
  53. package/dist/core/functionsBuilders/steps/defaults/extractStep.cjs +6 -5
  54. package/dist/core/functionsBuilders/steps/defaults/extractStep.mjs +4 -3
  55. package/dist/core/functionsBuilders/steps/defaults/handlerStep.cjs +3 -2
  56. package/dist/core/functionsBuilders/steps/defaults/handlerStep.mjs +3 -2
  57. package/dist/core/functionsBuilders/steps/defaults/processStep.cjs +5 -4
  58. package/dist/core/functionsBuilders/steps/defaults/processStep.mjs +3 -2
  59. package/dist/core/hub/defaultNotfoundHandler.d.ts +1 -1
  60. package/dist/core/hub/index.cjs +1 -1
  61. package/dist/core/hub/index.mjs +1 -1
  62. package/dist/core/index.cjs +37 -34
  63. package/dist/core/index.mjs +5 -3
  64. package/dist/core/response/base.cjs +40 -0
  65. package/dist/core/response/base.d.ts +21 -0
  66. package/dist/core/response/base.mjs +38 -0
  67. package/dist/core/response/contract.cjs +2 -2
  68. package/dist/core/response/contract.d.ts +120 -118
  69. package/dist/core/response/contract.mjs +2 -2
  70. package/dist/core/{route/hooks/response.cjs → response/hook.cjs} +4 -3
  71. package/dist/core/{route/hooks/response.d.ts → response/hook.d.ts} +2 -2
  72. package/dist/core/{route/hooks/response.mjs → response/hook.mjs} +3 -2
  73. package/dist/core/response/index.cjs +9 -38
  74. package/dist/core/response/index.d.ts +3 -20
  75. package/dist/core/response/index.mjs +3 -38
  76. package/dist/core/response/predicted.cjs +22 -0
  77. package/dist/core/response/predicted.d.ts +11 -0
  78. package/dist/core/response/predicted.mjs +20 -0
  79. package/dist/core/route/{hooks/index.cjs → hooks.cjs} +2 -3
  80. package/dist/core/route/{hooks/index.d.ts → hooks.d.ts} +4 -4
  81. package/dist/core/route/{hooks/index.mjs → hooks.mjs} +2 -2
  82. package/dist/core/route/index.cjs +4 -4
  83. package/dist/core/route/index.mjs +1 -1
  84. package/dist/core/steps/cut.d.ts +3 -3
  85. package/dist/core/steps/handler.d.ts +3 -3
  86. package/dist/core/steps/identifier.d.ts +2 -2
  87. package/dist/core/steps/types/stepFunctionParams.d.ts +2 -2
  88. package/dist/core/types/forbiddenBigintDataParser.cjs +2 -0
  89. package/dist/core/types/forbiddenBigintDataParser.d.ts +6 -0
  90. package/dist/core/types/forbiddenBigintDataParser.mjs +1 -0
  91. package/dist/core/types/index.cjs +1 -0
  92. package/dist/core/types/index.d.ts +1 -0
  93. package/dist/core/types/index.mjs +1 -0
  94. package/dist/interfaces/node/createHttpServer.cjs +1 -0
  95. package/dist/interfaces/node/createHttpServer.d.ts +2 -1
  96. package/dist/interfaces/node/createHttpServer.mjs +1 -0
  97. package/dist/interfaces/node/hooks.cjs +16 -13
  98. package/dist/interfaces/node/hooks.mjs +15 -12
  99. package/dist/plugins/codeGenerator/index.cjs +0 -3
  100. package/dist/plugins/codeGenerator/index.mjs +1 -1
  101. package/dist/plugins/codeGenerator/plugin.cjs +1 -1
  102. package/dist/plugins/codeGenerator/plugin.mjs +1 -1
  103. package/dist/plugins/codeGenerator/routeToDataParser.cjs +4 -55
  104. package/dist/plugins/codeGenerator/routeToDataParser.d.ts +2 -181
  105. package/dist/plugins/codeGenerator/routeToDataParser.mjs +6 -54
  106. package/dist/plugins/openApiGenerator/aggregateStepContract.cjs +62 -0
  107. package/dist/plugins/openApiGenerator/aggregateStepContract.d.ts +18 -0
  108. package/dist/plugins/openApiGenerator/aggregateStepContract.mjs +60 -0
  109. package/dist/plugins/openApiGenerator/index.cjs +17 -0
  110. package/dist/plugins/openApiGenerator/index.d.ts +7 -0
  111. package/dist/plugins/openApiGenerator/index.mjs +7 -0
  112. package/dist/plugins/openApiGenerator/makeOpenApiPage.cjs +30 -0
  113. package/dist/plugins/openApiGenerator/makeOpenApiPage.d.ts +7 -0
  114. package/dist/plugins/openApiGenerator/makeOpenApiPage.mjs +28 -0
  115. package/dist/plugins/openApiGenerator/makeOpenApiRoute.cjs +15 -0
  116. package/dist/plugins/openApiGenerator/makeOpenApiRoute.d.ts +18 -0
  117. package/dist/plugins/openApiGenerator/makeOpenApiRoute.mjs +13 -0
  118. package/dist/plugins/openApiGenerator/plugin.cjs +90 -0
  119. package/dist/plugins/openApiGenerator/plugin.d.ts +49 -0
  120. package/dist/plugins/openApiGenerator/plugin.mjs +88 -0
  121. package/dist/plugins/openApiGenerator/routeToOpenApi.cjs +163 -0
  122. package/dist/plugins/openApiGenerator/routeToOpenApi.d.ts +35 -0
  123. package/dist/plugins/openApiGenerator/routeToOpenApi.mjs +161 -0
  124. package/dist/plugins/openApiGenerator/types/endpointResponse.cjs +2 -0
  125. package/dist/plugins/openApiGenerator/types/endpointResponse.d.ts +19 -0
  126. package/dist/plugins/openApiGenerator/types/endpointResponse.mjs +1 -0
  127. package/dist/plugins/openApiGenerator/types/entrypoint.cjs +2 -0
  128. package/dist/plugins/openApiGenerator/types/entrypoint.d.ts +22 -0
  129. package/dist/plugins/openApiGenerator/types/entrypoint.mjs +1 -0
  130. package/dist/plugins/openApiGenerator/types/entrypointKey.cjs +2 -0
  131. package/dist/plugins/openApiGenerator/types/entrypointKey.d.ts +1 -0
  132. package/dist/plugins/openApiGenerator/types/entrypointKey.mjs +1 -0
  133. package/dist/plugins/openApiGenerator/types/index.cjs +11 -0
  134. package/dist/plugins/openApiGenerator/types/index.d.ts +8 -0
  135. package/dist/plugins/openApiGenerator/types/index.mjs +8 -0
  136. package/dist/plugins/openApiGenerator/types/openApiDocument.cjs +2 -0
  137. package/dist/plugins/openApiGenerator/types/openApiDocument.d.ts +31 -0
  138. package/dist/plugins/openApiGenerator/types/openApiDocument.mjs +1 -0
  139. package/dist/plugins/openApiGenerator/types/openApiMethod.cjs +2 -0
  140. package/dist/plugins/openApiGenerator/types/openApiMethod.d.ts +1 -0
  141. package/dist/plugins/openApiGenerator/types/openApiMethod.mjs +1 -0
  142. package/dist/plugins/openApiGenerator/types/openApiOperation.cjs +2 -0
  143. package/dist/plugins/openApiGenerator/types/openApiOperation.d.ts +8 -0
  144. package/dist/plugins/openApiGenerator/types/openApiOperation.mjs +1 -0
  145. package/dist/plugins/openApiGenerator/types/openApiPath.cjs +2 -0
  146. package/dist/plugins/openApiGenerator/types/openApiPath.d.ts +4 -0
  147. package/dist/plugins/openApiGenerator/types/openApiPath.mjs +1 -0
  148. package/dist/plugins/openApiGenerator/types/openApiSecuritySchema.cjs +2 -0
  149. package/dist/plugins/openApiGenerator/types/openApiSecuritySchema.d.ts +8 -0
  150. package/dist/plugins/openApiGenerator/types/openApiSecuritySchema.mjs +1 -0
  151. package/package.json +17 -4
@@ -1,284 +1,286 @@
1
1
  import { DP, type Kind, type NeverCoalescing } from "@duplojs/utils";
2
- import { type ResponseCode, type Response } from ".";
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 DP.DataParser = DP.DataParser> extends Kind<typeof contractKind.definition> {
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 ? Response<GenericContract["code"], GenericContract["information"], DP.Input<GenericContract["body"]>> : never;
11
- export const http100Continue: <GenericInformation extends string, GenericSchema extends DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = never>(information: GenericInformation, schema: GenericSchema) => NoInfer<Contract<"200", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
32
- export const created: <GenericInformation extends string, GenericSchema extends DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = never>(information: GenericInformation) => NoInfer<Contract<"204", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
48
- export const resetContent: <GenericInformation extends string, GenericSchema extends DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = never>(information: GenericInformation) => NoInfer<Contract<"300", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
74
- export const movedPermanently: <GenericInformation extends string, GenericSchema extends DP.DataParser = never>(information: GenericInformation) => NoInfer<Contract<"301", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
75
- export const found: <GenericInformation extends string, GenericSchema extends DP.DataParser = never>(information: GenericInformation) => NoInfer<Contract<"302", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
76
- export const seeOther: <GenericInformation extends string, GenericSchema extends DP.DataParser = never>(information: GenericInformation) => NoInfer<Contract<"303", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
77
- export const notModified: <GenericInformation extends string, GenericSchema extends DP.DataParser = never>(information: GenericInformation) => NoInfer<Contract<"304", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
78
- export const useProxy: <GenericInformation extends string, GenericSchema extends DP.DataParser = never>(information: GenericInformation) => NoInfer<Contract<"305", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
79
- export const switchProxy: <GenericInformation extends string, GenericSchema extends DP.DataParser = never>(information: GenericInformation) => NoInfer<Contract<"306", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
80
- export const temporaryRedirect: <GenericInformation extends string, GenericSchema extends DP.DataParser = never>(information: GenericInformation) => NoInfer<Contract<"307", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
81
- export const permanentRedirect: <GenericInformation extends string, GenericSchema extends DP.DataParser = never>(information: GenericInformation) => NoInfer<Contract<"308", GenericInformation, NeverCoalescing<GenericSchema, DP.DataParserEmpty<DP.DataParserDefinitionEmpty>>>>;
82
- export const badRequest: <GenericInformation extends string, GenericSchema extends DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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 DP.DataParser = DP.DataParserEmpty<{
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
1
  import { pipe, DP, kindHeritage } from '@duplojs/utils';
2
2
  import { createCoreLibKind } from '../kind.mjs';
3
3
 
4
- const errorClass = Error;
4
+ const ErrorClass = Error;
5
5
  var ResponseContract;
6
6
  (function (ResponseContract) {
7
7
  ResponseContract.contractKind = createCoreLibKind("response-contract");
@@ -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"), errorClass) {
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('../../kind.cjs');
4
- var index = require('../../response/index.cjs');
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"), index.Response) {
10
+ class HookResponse extends utils.kindHeritage("hook-response", kind.createCoreLibKind("hook-response"), base.Response) {
10
11
  code;
11
12
  information;
12
13
  body;
@@ -1,5 +1,5 @@
1
- import { type ResponseCode, Response } from "../../response";
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>;
@@ -1,6 +1,7 @@
1
- import { createCoreLibKind } from '../../kind.mjs';
2
- import { Response } from '../../response/index.mjs';
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 = {};
@@ -1,45 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var utils = require('@duplojs/utils');
4
- var kind = require('../kind.cjs');
3
+ var base = require('./base.cjs');
5
4
  var contract = require('./contract.cjs');
5
+ var hook = require('./hook.cjs');
6
+ var predicted = require('./predicted.cjs');
6
7
 
7
- class Response extends utils.kindHeritage("response", kind.createCoreLibKind("response")) {
8
- code;
9
- information;
10
- body;
11
- headers = undefined;
12
- constructor(code, information, body) {
13
- super();
14
- this.code = code;
15
- this.information = information;
16
- this.body = body;
17
- }
18
- setHeaders(headers) {
19
- this.headers = utils.O.override(this.headers ?? {}, headers);
20
- return this;
21
- }
22
- setHeader(key, header) {
23
- if (!this.headers) {
24
- this.headers = {};
25
- }
26
- if (typeof header !== "undefined") {
27
- this.headers[key] = header;
28
- }
29
- return this;
30
- }
31
- deleteHeader(key) {
32
- if (!this.headers) {
33
- return this;
34
- }
35
- const { [key]: deleteHeader, ...rest } = this.headers;
36
- this.headers = rest;
37
- return this;
38
- }
39
- }
40
8
 
9
+
10
+ exports.Response = base.Response;
41
11
  Object.defineProperty(exports, "ResponseContract", {
42
- enumerable: true,
43
- get: function () { return contract.ResponseContract; }
12
+ enumerable: true,
13
+ get: function () { return contract.ResponseContract; }
44
14
  });
45
- exports.Response = Response;
15
+ exports.HookResponse = hook.HookResponse;
16
+ exports.PredictedResponse = predicted.PredictedResponse;
@@ -1,21 +1,4 @@
1
- import { type S } from "@duplojs/utils";
1
+ export * from "./base";
2
2
  export * from "./contract";
3
- export type InformationResponseCode = `1${S.Digit}${S.Digit}`;
4
- export type SuccessResponseCode = `2${S.Digit}${S.Digit}`;
5
- export type RedirectionResponseCode = `3${S.Digit}${S.Digit}`;
6
- export type ClientErrorResponseCode = `4${S.Digit}${S.Digit}`;
7
- export type ServerErrorResponseCode = `5${S.Digit}${S.Digit}`;
8
- export type ResponseCode = (InformationResponseCode | SuccessResponseCode | RedirectionResponseCode | ClientErrorResponseCode | ServerErrorResponseCode);
9
- declare const Response_base: new (params?: {
10
- "@DuplojsHttpCore/response"?: unknown;
11
- } | undefined) => import("@duplojs/utils").Kind<import("@duplojs/utils").KindDefinition<"@DuplojsHttpCore/response", unknown>, unknown> & import("@duplojs/utils").Kind<import("@duplojs/utils").KindDefinition<"response", unknown>, unknown>;
12
- export declare class Response<GenericCode extends ResponseCode = ResponseCode, GenericInformation extends string = string, GenericBody extends unknown = unknown> extends Response_base {
13
- code: GenericCode;
14
- information: GenericInformation;
15
- body: GenericBody;
16
- headers: Record<string, string | string[]> | undefined;
17
- constructor(code: GenericCode, information: GenericInformation, body: GenericBody);
18
- setHeaders(headers: Partial<Record<string, string | string[]>>): this;
19
- setHeader(key: string, header?: string | string[]): this;
20
- deleteHeader(key: string): this;
21
- }
3
+ export * from "./hook";
4
+ export * from "./predicted";