@shware/http 3.4.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/cache/index.d.cts +1 -2
  2. package/dist/cache/index.d.cts.map +1 -1
  3. package/dist/cache/index.d.mts +1 -2
  4. package/dist/cache/index.d.mts.map +1 -1
  5. package/dist/error/detail.d.cts +14 -15
  6. package/dist/error/detail.d.cts.map +1 -1
  7. package/dist/error/detail.d.mts +14 -15
  8. package/dist/error/detail.d.mts.map +1 -1
  9. package/dist/error/i18n/en-us.d.cts +1 -2
  10. package/dist/error/i18n/en-us.d.cts.map +1 -1
  11. package/dist/error/i18n/en-us.d.mts +1 -2
  12. package/dist/error/i18n/en-us.d.mts.map +1 -1
  13. package/dist/error/index.d.cts +5 -6
  14. package/dist/error/index.d.cts.map +1 -1
  15. package/dist/error/index.d.mts +5 -6
  16. package/dist/error/index.d.mts.map +1 -1
  17. package/dist/error/parse.d.cts +4 -5
  18. package/dist/error/parse.d.cts.map +1 -1
  19. package/dist/error/parse.d.mts +4 -5
  20. package/dist/error/parse.d.mts.map +1 -1
  21. package/dist/error/reason.d.cts +2 -3
  22. package/dist/error/reason.d.cts.map +1 -1
  23. package/dist/error/reason.d.mts +2 -3
  24. package/dist/error/reason.d.mts.map +1 -1
  25. package/dist/error/status.d.cts +6 -7
  26. package/dist/error/status.d.cts.map +1 -1
  27. package/dist/error/status.d.mts +6 -7
  28. package/dist/error/status.d.mts.map +1 -1
  29. package/dist/google-one-tap/index.d.cts +8 -9
  30. package/dist/google-one-tap/index.d.cts.map +1 -1
  31. package/dist/google-one-tap/index.d.mts +8 -9
  32. package/dist/google-one-tap/index.d.mts.map +1 -1
  33. package/dist/google-one-tap/types.d.cts +6 -7
  34. package/dist/google-one-tap/types.d.cts.map +1 -1
  35. package/dist/google-one-tap/types.d.mts +6 -7
  36. package/dist/google-one-tap/types.d.mts.map +1 -1
  37. package/dist/hono/authorizer.d.cts +3 -4
  38. package/dist/hono/authorizer.d.cts.map +1 -1
  39. package/dist/hono/authorizer.d.mts +3 -4
  40. package/dist/hono/authorizer.d.mts.map +1 -1
  41. package/dist/hono/csrf.d.cts +3 -4
  42. package/dist/hono/csrf.d.cts.map +1 -1
  43. package/dist/hono/csrf.d.mts +3 -4
  44. package/dist/hono/csrf.d.mts.map +1 -1
  45. package/dist/hono/geolocation.d.cts +1 -2
  46. package/dist/hono/geolocation.d.cts.map +1 -1
  47. package/dist/hono/geolocation.d.mts +1 -2
  48. package/dist/hono/geolocation.d.mts.map +1 -1
  49. package/dist/hono/handler.d.cts +4 -5
  50. package/dist/hono/handler.d.cts.map +1 -1
  51. package/dist/hono/handler.d.mts +4 -5
  52. package/dist/hono/handler.d.mts.map +1 -1
  53. package/dist/hono/rate-limit.d.cts +5 -6
  54. package/dist/hono/rate-limit.d.cts.map +1 -1
  55. package/dist/hono/rate-limit.d.mts +5 -6
  56. package/dist/hono/rate-limit.d.mts.map +1 -1
  57. package/dist/hono/validator.d.cts +16 -17
  58. package/dist/hono/validator.d.cts.map +1 -1
  59. package/dist/hono/validator.d.mts +17 -18
  60. package/dist/hono/validator.d.mts.map +1 -1
  61. package/dist/iso/iso-3601-1.d.cts +2 -3
  62. package/dist/iso/iso-3601-1.d.cts.map +1 -1
  63. package/dist/iso/iso-3601-1.d.mts +2 -3
  64. package/dist/iso/iso-3601-1.d.mts.map +1 -1
  65. package/dist/max-length/index.d.cts +23 -23
  66. package/dist/max-length/index.d.cts.map +1 -1
  67. package/dist/max-length/index.d.mts +23 -23
  68. package/dist/max-length/index.d.mts.map +1 -1
  69. package/dist/message.d.cts +1 -2
  70. package/dist/message.d.cts.map +1 -1
  71. package/dist/message.d.mts +1 -2
  72. package/dist/message.d.mts.map +1 -1
  73. package/dist/response.d.cts +18 -19
  74. package/dist/response.d.cts.map +1 -1
  75. package/dist/response.d.mts +18 -19
  76. package/dist/response.d.mts.map +1 -1
  77. package/dist/snowflake.d.cts +2 -3
  78. package/dist/snowflake.d.cts.map +1 -1
  79. package/dist/snowflake.d.mts +2 -3
  80. package/dist/snowflake.d.mts.map +1 -1
  81. package/dist/utils/geolocation.d.cts +5 -6
  82. package/dist/utils/geolocation.d.cts.map +1 -1
  83. package/dist/utils/geolocation.d.mts +5 -6
  84. package/dist/utils/geolocation.d.mts.map +1 -1
  85. package/dist/utils/google-tag-gateway.d.cts +1 -2
  86. package/dist/utils/google-tag-gateway.d.cts.map +1 -1
  87. package/dist/utils/google-tag-gateway.d.mts +1 -2
  88. package/dist/utils/google-tag-gateway.d.mts.map +1 -1
  89. package/dist/utils/timing.d.cts +2 -3
  90. package/dist/utils/timing.d.cts.map +1 -1
  91. package/dist/utils/timing.d.mts +2 -3
  92. package/dist/utils/timing.d.mts.map +1 -1
  93. package/dist/webhook/index.d.cts +1 -2
  94. package/dist/webhook/index.d.cts.map +1 -1
  95. package/dist/webhook/index.d.mts +1 -2
  96. package/dist/webhook/index.d.mts.map +1 -1
  97. package/package.json +9 -9
@@ -1,26 +1,25 @@
1
- import { ZodMiniType } from "zod/mini";
1
+ import { ZodMiniType, output } from "zod/mini";
2
2
  import { ValidationTargets } from "hono";
3
- import { ZodType, output } from "zod";
3
+ import { ZodType, output as output$1 } from "zod";
4
4
  //#region src/hono/validator.d.ts
5
- declare function zValidator<S extends ZodType | ZodMiniType>(target: keyof ValidationTargets, schema: S): import("hono").MiddlewareHandler<any, string, {
5
+ export declare function zValidator<S extends ZodType | ZodMiniType>(target: keyof ValidationTargets, schema: S): import("hono").MiddlewareHandler<any, string, {
6
6
  in: {
7
- cookie: import("hono/validator").InferInput<(S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never, "cookie", import("hono/types").FormValue>;
8
- form: import("hono/validator").InferInput<(S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never, "form", import("hono/types").FormValue>;
9
- header: import("hono/validator").InferInput<(S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never, "header", import("hono/types").FormValue>;
10
- json: (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) extends (infer T_1) ? T_1 extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) ? T_1 extends Response | import("hono").TypedResponse<any, any, any> ? never : T_1 : never : never;
11
- param: import("hono/validator").InferInput<(S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never, "param", import("hono/types").FormValue>;
12
- query: import("hono/validator").InferInput<(S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never, "query", import("hono/types").FormValue>;
7
+ cookie: import("hono/validator").InferInput<(S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never, "cookie", import("hono/types").FormValue>;
8
+ form: import("hono/validator").InferInput<(S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never, "form", import("hono/types").FormValue>;
9
+ header: import("hono/validator").InferInput<(S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never, "header", import("hono/types").FormValue>;
10
+ json: (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) extends (infer T_1) ? T_1 extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) ? T_1 extends Response | import("hono").TypedResponse<any, any, any> ? never : T_1 : never : never;
11
+ param: import("hono/validator").InferInput<(S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never, "param", import("hono/types").FormValue>;
12
+ query: import("hono/validator").InferInput<(S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never, "query", import("hono/types").FormValue>;
13
13
  };
14
14
  out: {
15
- cookie: (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never;
16
- form: (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never;
17
- header: (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never;
18
- json: (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never;
19
- param: (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never;
20
- query: (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never;
15
+ cookie: (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never;
16
+ form: (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never;
17
+ header: (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never;
18
+ json: (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never;
19
+ param: (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never;
20
+ query: (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) extends (infer T) ? T extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) ? T extends Response | import("hono").TypedResponse<any, any, any> ? never : T : never : never;
21
21
  };
22
- }, (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) extends (infer T_2) ? T_2 extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output<S> : output<S>) ? T_2 extends import("hono").TypedResponse<infer T_3, infer S_1 extends import("hono/utils/http-status").StatusCode, infer F extends string> ? import("hono").TypedResponse<T_3, S_1, F> : T_2 extends Response ? T_2 : T_2 extends undefined ? never : never : never : never>;
23
- declare const bigintId: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniTransform<bigint, string>>;
22
+ }, (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) extends (infer T_2) ? T_2 extends (S extends ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? output$1<S> : output<S>) ? T_2 extends import("hono").TypedResponse<infer T_3, infer S_1 extends import("hono/utils/http-status").StatusCode, infer F extends string> ? import("hono").TypedResponse<T_3, S_1, F> : T_2 extends Response ? T_2 : T_2 extends undefined ? never : never : never : never>;
23
+ export declare const bigintId: import("zod/mini").ZodMiniPipe<import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniTransform<bigint, string>>;
24
24
  //#endregion
25
- export { bigintId, zValidator };
26
25
  //# sourceMappingURL=validator.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validator.d.mts","names":[],"sources":["../../src/hono/validator.ts"],"mappings":";;;;iBAcgB,WAAW,UAAU,UAAU,aAC7C,cAAc,mBACd,QAAQ,mBAAC;;;;;;;;;;;;;;;;;IAiBV,UAAA,gDAAA,uCAAA,OAAA,KAAA,OAAA,mBAAA,OAAA,aAAA,UAAA,gDAAA,uCAAA,OAAA,KAAA,OAAA,MAAA,2BAAA,oBAAA,WAAA,6CAAA,kBAAA,mCAAA,cAAA,KAAA,KAAA,KAAA,YAAA,WAAA,MAAA;cAEY,6BAAQ,+BAAA,0CAAA"}
1
+ {"version":3,"file":"validator.d.mts","names":["outputV4","outputMini"],"sources":["../../src/hono/validator.ts"],"mappings":";;;;wBAcgB,WAAW,UAAU,UAAU,aAC7C,cAAc,mBACd,QAAQ,mBAAC;;;;;;;;;;;;;;;;;IAiBV,UAAA,gDAAA,uCAAAA,SAAA,KAAAC,OAAA,mBAAA,OAAA,aAAA,UAAA,gDAAA,uCAAAD,SAAA,KAAAC,OAAA,MAAA,2BAAA,oBAAA,WAAA,6CAAA,kBAAA,mCAAA,cAAA,KAAA,KAAA,KAAA,YAAA,WAAA,MAAA;qBAEY,6BAAQ,+BAAA,0CAAA"}
@@ -1,11 +1,10 @@
1
1
  //#region src/iso/iso-3601-1.d.ts
2
- type ISO3166CountryCode = {
2
+ export type ISO3166CountryCode = {
3
3
  numeric: number;
4
4
  name: string;
5
5
  alpha2: string;
6
6
  alpha3: string;
7
7
  };
8
- declare const ISO_3601_1: ISO3166CountryCode[];
8
+ export declare const ISO_3601_1: ISO3166CountryCode[];
9
9
  //#endregion
10
- export { ISO3166CountryCode, ISO_3601_1 };
11
10
  //# sourceMappingURL=iso-3601-1.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"iso-3601-1.d.cts","names":[],"sources":["../../src/iso/iso-3601-1.ts"],"mappings":";KAAY;EACV;EACA;EACA;EACA;;cAGW,YAAY"}
1
+ {"version":3,"file":"iso-3601-1.d.cts","names":[],"sources":["../../src/iso/iso-3601-1.ts"],"mappings":";YAAY;EACV;EACA;EACA;EACA;;qBAGW,YAAY"}
@@ -1,11 +1,10 @@
1
1
  //#region src/iso/iso-3601-1.d.ts
2
- type ISO3166CountryCode = {
2
+ export type ISO3166CountryCode = {
3
3
  numeric: number;
4
4
  name: string;
5
5
  alpha2: string;
6
6
  alpha3: string;
7
7
  };
8
- declare const ISO_3601_1: ISO3166CountryCode[];
8
+ export declare const ISO_3601_1: ISO3166CountryCode[];
9
9
  //#endregion
10
- export { ISO3166CountryCode, ISO_3601_1 };
11
10
  //# sourceMappingURL=iso-3601-1.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"iso-3601-1.d.mts","names":[],"sources":["../../src/iso/iso-3601-1.ts"],"mappings":";KAAY;EACV;EACA;EACA;EACA;;cAGW,YAAY"}
1
+ {"version":3,"file":"iso-3601-1.d.mts","names":[],"sources":["../../src/iso/iso-3601-1.ts"],"mappings":";YAAY;EACV;EACA;EACA;EACA;;qBAGW,YAAY"}
@@ -5,71 +5,71 @@ declare namespace index_d_exports {
5
5
  * A Universally Unique Identifier (UUID) is a 36-character alphanumeric string that's typically represented in the following format:
6
6
  * - Format: 8-4-4-4-12
7
7
  * */
8
- declare const UUID = 36;
8
+ export declare const UUID = 36;
9
9
  /**
10
10
  * The length of an Apple device's unique device identifier (UDID) depends on the model of the device:
11
11
  * - iPhone X and earlier: The UDID is a 40-character alphanumeric string
12
12
  * - iPhone XS and later: The UDID is a 24-character string with a dash after the 8th digit
13
13
  * */
14
- declare const UDID = 40;
14
+ export declare const UDID = 40;
15
15
  /**
16
16
  * Apple's Identifier for Vendors (IDFV).
17
17
  * - `var identifierForVendor: UUID? { get }` An alphanumeric string that uniquely identifies a device to the app’s vendor.
18
18
  * - Reference: [identifierForVendor](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor)
19
19
  * */
20
- declare const IDFV = 36;
20
+ export declare const IDFV = 36;
21
21
  /**
22
22
  * Apple's Identifier for Advertisers (IDFA).
23
23
  * - `var advertisingIdentifier: UUID { get }` The UUID that is specific to a device.
24
24
  * - Reference: [advertisingIdentifier](https://developer.apple.com/documentation/adsupport/asidentifiermanager/advertisingidentifier)
25
25
  * */
26
- declare const IDFA = 36;
26
+ export declare const IDFA = 36;
27
27
  /**
28
28
  * Android Device ID
29
29
  * - 64-bit number (expressed as a hexadecimal string)
30
30
  * - Reference: [ANDROID_ID](https://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID)
31
31
  * */
32
- declare const ANDROID_ID = 16;
32
+ export declare const ANDROID_ID = 16;
33
33
  /**
34
34
  * - Web Device ID: UUID v4
35
35
  * - iOS Device ID: IDFV
36
36
  * - Android Device ID: ANDROID_ID
37
37
  * */
38
- declare const DEVICE_ID: number;
38
+ export declare const DEVICE_ID: number;
39
39
  /**
40
40
  * - The advertising ID is represented using version 3 of the universally unique identifier (UUID) format or an equivalent 128-bit format.
41
41
  * - If this permission is not declared, the returned value will be 00000000-0000-0000-0000-000000000000 starting early 2022.
42
42
  * - Reference: [AD_ID](https://developers.google.com/android/reference/com/google/android/gms/ads/identifier/AdvertisingIdClient.Info#public-string-getid)
43
43
  * */
44
- declare const AAID = 36;
44
+ export declare const AAID = 36;
45
45
  /**
46
46
  * - Web: UUID
47
47
  * - iOS: IDFA
48
48
  * - Android: AAID
49
49
  * */
50
- declare const ADVERTISING_ID: number;
50
+ export declare const ADVERTISING_ID: number;
51
51
  /**
52
52
  * - An IPv4 address is at most 4 sets of 3 numbers (12 characters), each set separated by a dot (.). That makes 15 characters.
53
53
  * - An IPv6 address, at its longest, would be 8 sets of 4 characters (32 total), each set separated by a colon. That makes 39 characters.
54
54
  * */
55
- declare const IPv4 = 15;
56
- declare const IPv6 = 39;
57
- declare const IPv4_MAPPED_IPv6 = 45;
58
- declare const IP: number;
55
+ export declare const IPv4 = 15;
56
+ export declare const IPv6 = 39;
57
+ export declare const IPv4_MAPPED_IPv6 = 45;
58
+ export declare const IP: number;
59
59
  /**
60
60
  * - The longest string in the database is America/Argentina/ComodRivadavia. It's 32 characters long.
61
61
  * - The mysql.time_zone_name table has a Name column defined with 64 characters.
62
62
  * - It makes sense to use VARCHAR(64) for storing this information.
63
63
  * - Reference: [List of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
64
64
  * */
65
- declare const TIMEZONE_LONGEST: number;
66
- declare const TIMEZONE: number;
65
+ export declare const TIMEZONE_LONGEST: number;
66
+ export declare const TIMEZONE: number;
67
67
  /**
68
68
  * Reference: [List of ISO 3166 country codes](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)
69
69
  * */
70
- declare const COUNTRY_CODE_ALPHA_2 = 2;
71
- declare const COUNTRY_CODE_ALPHA_3 = 3;
72
- declare const COUNTRY_CODE: number;
70
+ export declare const COUNTRY_CODE_ALPHA_2 = 2;
71
+ export declare const COUNTRY_CODE_ALPHA_3 = 3;
72
+ export declare const COUNTRY_CODE: number;
73
73
  /**
74
74
  * Reference: [RFC5646 Tags for Identifying Languages](https://www.rfc-editor.org/rfc/rfc5646#section-4.4.1)
75
75
  * The following illustration shows how the 35-character recommendation was derived:
@@ -87,7 +87,7 @@ declare const COUNTRY_CODE: number;
87
87
  * total = 35 characters
88
88
  * ```
89
89
  * */
90
- declare const LANGUAGE_CODE = 35;
90
+ export declare const LANGUAGE_CODE = 35;
91
91
  /**
92
92
  * Mailbox = Local-part "@" ( Domain / address-literal )
93
93
  * - Local-part: The maximum total length of a user name or other local-part is 64 octets.
@@ -95,16 +95,16 @@ declare const LANGUAGE_CODE = 35;
95
95
  * - Maximum length of an email address: 64 + 1 + 255 = 320
96
96
  * - Reference: [Simple Mail Transfer Protocol - Size Limits and Minimums](https://datatracker.ietf.org/doc/html/rfc5321#section-4.5.3.1)
97
97
  * */
98
- declare const EMAIL_LOCAL_PART = 64;
99
- declare const EMAIL_DOMAIN = 255;
100
- declare const EMAIL: number;
98
+ export declare const EMAIL_LOCAL_PART = 64;
99
+ export declare const EMAIL_DOMAIN = 255;
100
+ export declare const EMAIL: number;
101
101
  /**
102
102
  * Reference: [E.164](https://en.wikipedia.org/wiki/E.164)
103
103
  * */
104
- declare const PHONE_NUMBER = 15;
104
+ export declare const PHONE_NUMBER = 15;
105
105
  /**
106
106
  * Reference: [How big can a user agent string get?](https://stackoverflow.com/questions/654921/how-big-can-a-user-agent-string-get)
107
107
  * */
108
108
  //#endregion
109
- export { AAID, ADVERTISING_ID, ANDROID_ID, COUNTRY_CODE, COUNTRY_CODE_ALPHA_2, COUNTRY_CODE_ALPHA_3, DEVICE_ID, EMAIL, EMAIL_DOMAIN, EMAIL_LOCAL_PART, IDFA, IDFV, IP, IPv4, IPv4_MAPPED_IPv6, IPv6, LANGUAGE_CODE, PHONE_NUMBER, TIMEZONE, TIMEZONE_LONGEST, UDID, UUID, index_d_exports };
109
+ export { index_d_exports };
110
110
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/max-length/index.ts"],"mappings":";;;;;;;cAMa;;;;;;cAOA;;;;;;cAOA;;;;;;cAOA;;;;;;cAOA;;;;;;cAOA;;;;;;cAOA;;;;;;cAOA;;;;;cAMA;cACA;cACA;cACA;;;;;;;cAQA;cACA;;;;cAKA;cACA;cACA;;;;;;;;;;;;;;;;;;cAmBA;;;;;;;;cASA;cACA;cACA;;;;cAKA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/max-length/index.ts"],"mappings":";;;;;;;qBAMa;;;;;;qBAOA;;;;;;qBAOA;;;;;;qBAOA;;;;;;qBAOA;;;;;;qBAOA;;;;;;qBAOA;;;;;;qBAOA;;;;;qBAMA;qBACA;qBACA;qBACA;;;;;;;qBAQA;qBACA;;;;qBAKA;qBACA;qBACA;;;;;;;;;;;;;;;;;;qBAmBA;;;;;;;;qBASA;qBACA;qBACA;;;;qBAKA"}
@@ -5,71 +5,71 @@ declare namespace index_d_exports {
5
5
  * A Universally Unique Identifier (UUID) is a 36-character alphanumeric string that's typically represented in the following format:
6
6
  * - Format: 8-4-4-4-12
7
7
  * */
8
- declare const UUID = 36;
8
+ export declare const UUID = 36;
9
9
  /**
10
10
  * The length of an Apple device's unique device identifier (UDID) depends on the model of the device:
11
11
  * - iPhone X and earlier: The UDID is a 40-character alphanumeric string
12
12
  * - iPhone XS and later: The UDID is a 24-character string with a dash after the 8th digit
13
13
  * */
14
- declare const UDID = 40;
14
+ export declare const UDID = 40;
15
15
  /**
16
16
  * Apple's Identifier for Vendors (IDFV).
17
17
  * - `var identifierForVendor: UUID? { get }` An alphanumeric string that uniquely identifies a device to the app’s vendor.
18
18
  * - Reference: [identifierForVendor](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor)
19
19
  * */
20
- declare const IDFV = 36;
20
+ export declare const IDFV = 36;
21
21
  /**
22
22
  * Apple's Identifier for Advertisers (IDFA).
23
23
  * - `var advertisingIdentifier: UUID { get }` The UUID that is specific to a device.
24
24
  * - Reference: [advertisingIdentifier](https://developer.apple.com/documentation/adsupport/asidentifiermanager/advertisingidentifier)
25
25
  * */
26
- declare const IDFA = 36;
26
+ export declare const IDFA = 36;
27
27
  /**
28
28
  * Android Device ID
29
29
  * - 64-bit number (expressed as a hexadecimal string)
30
30
  * - Reference: [ANDROID_ID](https://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID)
31
31
  * */
32
- declare const ANDROID_ID = 16;
32
+ export declare const ANDROID_ID = 16;
33
33
  /**
34
34
  * - Web Device ID: UUID v4
35
35
  * - iOS Device ID: IDFV
36
36
  * - Android Device ID: ANDROID_ID
37
37
  * */
38
- declare const DEVICE_ID: number;
38
+ export declare const DEVICE_ID: number;
39
39
  /**
40
40
  * - The advertising ID is represented using version 3 of the universally unique identifier (UUID) format or an equivalent 128-bit format.
41
41
  * - If this permission is not declared, the returned value will be 00000000-0000-0000-0000-000000000000 starting early 2022.
42
42
  * - Reference: [AD_ID](https://developers.google.com/android/reference/com/google/android/gms/ads/identifier/AdvertisingIdClient.Info#public-string-getid)
43
43
  * */
44
- declare const AAID = 36;
44
+ export declare const AAID = 36;
45
45
  /**
46
46
  * - Web: UUID
47
47
  * - iOS: IDFA
48
48
  * - Android: AAID
49
49
  * */
50
- declare const ADVERTISING_ID: number;
50
+ export declare const ADVERTISING_ID: number;
51
51
  /**
52
52
  * - An IPv4 address is at most 4 sets of 3 numbers (12 characters), each set separated by a dot (.). That makes 15 characters.
53
53
  * - An IPv6 address, at its longest, would be 8 sets of 4 characters (32 total), each set separated by a colon. That makes 39 characters.
54
54
  * */
55
- declare const IPv4 = 15;
56
- declare const IPv6 = 39;
57
- declare const IPv4_MAPPED_IPv6 = 45;
58
- declare const IP: number;
55
+ export declare const IPv4 = 15;
56
+ export declare const IPv6 = 39;
57
+ export declare const IPv4_MAPPED_IPv6 = 45;
58
+ export declare const IP: number;
59
59
  /**
60
60
  * - The longest string in the database is America/Argentina/ComodRivadavia. It's 32 characters long.
61
61
  * - The mysql.time_zone_name table has a Name column defined with 64 characters.
62
62
  * - It makes sense to use VARCHAR(64) for storing this information.
63
63
  * - Reference: [List of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
64
64
  * */
65
- declare const TIMEZONE_LONGEST: number;
66
- declare const TIMEZONE: number;
65
+ export declare const TIMEZONE_LONGEST: number;
66
+ export declare const TIMEZONE: number;
67
67
  /**
68
68
  * Reference: [List of ISO 3166 country codes](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)
69
69
  * */
70
- declare const COUNTRY_CODE_ALPHA_2 = 2;
71
- declare const COUNTRY_CODE_ALPHA_3 = 3;
72
- declare const COUNTRY_CODE: number;
70
+ export declare const COUNTRY_CODE_ALPHA_2 = 2;
71
+ export declare const COUNTRY_CODE_ALPHA_3 = 3;
72
+ export declare const COUNTRY_CODE: number;
73
73
  /**
74
74
  * Reference: [RFC5646 Tags for Identifying Languages](https://www.rfc-editor.org/rfc/rfc5646#section-4.4.1)
75
75
  * The following illustration shows how the 35-character recommendation was derived:
@@ -87,7 +87,7 @@ declare const COUNTRY_CODE: number;
87
87
  * total = 35 characters
88
88
  * ```
89
89
  * */
90
- declare const LANGUAGE_CODE = 35;
90
+ export declare const LANGUAGE_CODE = 35;
91
91
  /**
92
92
  * Mailbox = Local-part "@" ( Domain / address-literal )
93
93
  * - Local-part: The maximum total length of a user name or other local-part is 64 octets.
@@ -95,16 +95,16 @@ declare const LANGUAGE_CODE = 35;
95
95
  * - Maximum length of an email address: 64 + 1 + 255 = 320
96
96
  * - Reference: [Simple Mail Transfer Protocol - Size Limits and Minimums](https://datatracker.ietf.org/doc/html/rfc5321#section-4.5.3.1)
97
97
  * */
98
- declare const EMAIL_LOCAL_PART = 64;
99
- declare const EMAIL_DOMAIN = 255;
100
- declare const EMAIL: number;
98
+ export declare const EMAIL_LOCAL_PART = 64;
99
+ export declare const EMAIL_DOMAIN = 255;
100
+ export declare const EMAIL: number;
101
101
  /**
102
102
  * Reference: [E.164](https://en.wikipedia.org/wiki/E.164)
103
103
  * */
104
- declare const PHONE_NUMBER = 15;
104
+ export declare const PHONE_NUMBER = 15;
105
105
  /**
106
106
  * Reference: [How big can a user agent string get?](https://stackoverflow.com/questions/654921/how-big-can-a-user-agent-string-get)
107
107
  * */
108
108
  //#endregion
109
- export { AAID, ADVERTISING_ID, ANDROID_ID, COUNTRY_CODE, COUNTRY_CODE_ALPHA_2, COUNTRY_CODE_ALPHA_3, DEVICE_ID, EMAIL, EMAIL_DOMAIN, EMAIL_LOCAL_PART, IDFA, IDFV, IP, IPv4, IPv4_MAPPED_IPv6, IPv6, LANGUAGE_CODE, PHONE_NUMBER, TIMEZONE, TIMEZONE_LONGEST, UDID, UUID, index_d_exports };
109
+ export { index_d_exports };
110
110
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/max-length/index.ts"],"mappings":";;;;;;;cAMa;;;;;;cAOA;;;;;;cAOA;;;;;;cAOA;;;;;;cAOA;;;;;;cAOA;;;;;;cAOA;;;;;;cAOA;;;;;cAMA;cACA;cACA;cACA;;;;;;;cAQA;cACA;;;;cAKA;cACA;cACA;;;;;;;;;;;;;;;;;;cAmBA;;;;;;;;cASA;cACA;cACA;;;;cAKA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/max-length/index.ts"],"mappings":";;;;;;;qBAMa;;;;;;qBAOA;;;;;;qBAOA;;;;;;qBAOA;;;;;;qBAOA;;;;;;qBAOA;;;;;;qBAOA;;;;;;qBAOA;;;;;qBAMA;qBACA;qBACA;qBACA;;;;;;;qBAQA;qBACA;;;;qBAKA;qBACA;qBACA;;;;;;;;;;;;;;;;;;qBAmBA;;;;;;;;qBASA;qBACA;qBACA;;;;qBAKA"}
@@ -1,5 +1,4 @@
1
1
  //#region src/message.d.ts
2
- declare function getI18nErrorMessage(): void;
2
+ export declare function getI18nErrorMessage(): void;
3
3
  //#endregion
4
- export { getI18nErrorMessage };
5
4
  //# sourceMappingURL=message.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"message.d.cts","names":[],"sources":["../src/message.ts"],"mappings":";iBAAgB"}
1
+ {"version":3,"file":"message.d.cts","names":[],"sources":["../src/message.ts"],"mappings":";wBAAgB"}
@@ -1,5 +1,4 @@
1
1
  //#region src/message.d.ts
2
- declare function getI18nErrorMessage(): void;
2
+ export declare function getI18nErrorMessage(): void;
3
3
  //#endregion
4
- export { getI18nErrorMessage };
5
4
  //# sourceMappingURL=message.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"message.d.mts","names":[],"sources":["../src/message.ts"],"mappings":";iBAAgB"}
1
+ {"version":3,"file":"message.d.mts","names":[],"sources":["../src/message.ts"],"mappings":";wBAAgB"}
@@ -1,63 +1,63 @@
1
1
  //#region src/response.d.ts
2
- type Empty = {};
3
- type EntityId = string | number;
4
- type Entity = {
2
+ export type Empty = {};
3
+ export type EntityId = string | number;
4
+ export type Entity = {
5
5
  id: EntityId;
6
6
  };
7
- type Response<T = never> = {
7
+ export type Response<T = never> = {
8
8
  data: T;
9
9
  };
10
- type InitParams = {
10
+ export type InitParams = {
11
11
  limit: number;
12
12
  parent?: string;
13
13
  };
14
- type NextParams = {
14
+ export type NextParams = {
15
15
  limit: number;
16
16
  parent?: string;
17
17
  next: string;
18
18
  };
19
- type PrevParams = {
19
+ export type PrevParams = {
20
20
  limit: number;
21
21
  parent?: string;
22
22
  prev: string;
23
23
  };
24
- type PageParams = {
24
+ export type PageParams = {
25
25
  limit: number;
26
26
  prev?: string;
27
27
  next?: string;
28
28
  };
29
- type ParentPageParams = {
29
+ export type ParentPageParams = {
30
30
  limit: number;
31
31
  parent: string;
32
32
  prev?: string;
33
33
  next?: string;
34
34
  };
35
- type Page<T = never> = {
35
+ export type Page<T = never> = {
36
36
  data: T[];
37
37
  paging: {
38
38
  next?: string;
39
39
  prev?: string;
40
40
  };
41
41
  };
42
- declare function pageParamsSchema(max?: number, defaultLimit?: number): import("zod/mini").ZodMiniObject<{
42
+ export declare function pageParamsSchema(max?: number, defaultLimit?: number): import("zod/mini").ZodMiniObject<{
43
43
  limit: import("zod/mini").ZodMiniDefault<import("zod/mini").ZodMiniNumber<unknown>>;
44
44
  prev: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
45
45
  next: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
46
46
  }, import("zod/v4/core").$strip>;
47
- declare const Cursor: {
47
+ export declare const Cursor: {
48
48
  of(prev: bigint | number | string | undefined, next: bigint | number | string | undefined): Page['paging'];
49
49
  empty(): Page['paging'];
50
50
  encode(id: bigint | number | string | undefined): string | undefined;
51
51
  decode<T extends 'bigint' | 'number' | 'string' = 'bigint'>(token: string, type?: T): T extends 'bigint' ? bigint : T extends 'number' ? number : string;
52
52
  };
53
- declare const initialPageParam: Page['paging'];
54
- declare function getPreviousPageParam<T = never>(first: Page<T>): Page['paging'] | null;
55
- declare function getNextPageParam<T = never>(last: Page<T>): Page['paging'] | null;
56
- type InfinitePageData<T> = {
53
+ export declare const initialPageParam: Page['paging'];
54
+ export declare function getPreviousPageParam<T = never>(first: Page<T>): Page['paging'] | null;
55
+ export declare function getNextPageParam<T = never>(last: Page<T>): Page['paging'] | null;
56
+ export type InfinitePageData<T> = {
57
57
  pages: Array<Page<T>>;
58
58
  pageParams: Array<Page['paging']>;
59
59
  };
60
- declare const Pages: {
60
+ export declare const Pages: {
61
61
  flatten<T>(data: InfinitePageData<T>): T[];
62
62
  dedupe<T extends Entity>(data: InfinitePageData<T>): T[];
63
63
  prepend<T>(item: T): (data: InfinitePageData<T> | undefined) => InfinitePageData<T> | undefined;
@@ -67,7 +67,7 @@ declare const Pages: {
67
67
  remove<T>(predicate: (item: T) => boolean): (data: InfinitePageData<T> | undefined) => InfinitePageData<T> | undefined;
68
68
  removeById<T extends Entity>(id: EntityId): (data: InfinitePageData<T> | undefined) => InfinitePageData<T> | undefined;
69
69
  };
70
- declare const Items: {
70
+ export declare const Items: {
71
71
  push<T>(newItems: T[]): (data: T[] | undefined) => T[] | undefined;
72
72
  unshift<T>(newItems: T[]): (data: T[] | undefined) => T[] | undefined;
73
73
  pushAndDedupe<T extends Entity>(newItems: T[]): (data: T[] | undefined) => T[] | undefined;
@@ -78,5 +78,4 @@ declare const Items: {
78
78
  removeById<T extends Entity>(id: EntityId): (data: T[] | undefined) => T[] | undefined;
79
79
  };
80
80
  //#endregion
81
- export { Cursor, Empty, Entity, EntityId, InfinitePageData, InitParams, Items, NextParams, Page, PageParams, Pages, ParentPageParams, PrevParams, Response, getNextPageParam, getPreviousPageParam, initialPageParam, pageParamsSchema };
82
81
  //# sourceMappingURL=response.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"response.d.cts","names":[],"sources":["../src/response.ts"],"mappings":";KAIY;KACA;KACA;EAAW,IAAI;;KAEf,SAAS;EAAe,MAAM;;KAE9B;EAAe;EAAe;;KAC9B;EAAe;EAAe;EAAiB;;KAC/C;EAAe;EAAe;EAAiB;;KAC/C;EAAe;EAAe;EAAe;;KAC7C;EAAqB;EAAe;EAAgB;EAAe;;KACn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AAkB;EAKlC,cAAc,UAAU,QAAM,UAAY,OAAG,MAC7B,oBAAkB;EAmBlC,iBAAiB,UAAU,QAAM,UAAY,OAAG,MAChC,oBAAkB;EAmBlC,OAAO,GAAC,SAAW,GAAC,YAAc,MAAM,iBAAa,MACrC,oBAAkB;EAKlC,WAAW,UAAU,QAAM,SAAW,KAAC,MAAA,oBAAA;EAGvC,OAAO,GAAC,YAAc,MAAM,iBAAa,MACzB,oBAAkB;EAKlC,WAAW,UAAU,QAAM,IAAM,YAAQ,MAAA,oBAAA"}
@@ -1,63 +1,63 @@
1
1
  //#region src/response.d.ts
2
- type Empty = {};
3
- type EntityId = string | number;
4
- type Entity = {
2
+ export type Empty = {};
3
+ export type EntityId = string | number;
4
+ export type Entity = {
5
5
  id: EntityId;
6
6
  };
7
- type Response<T = never> = {
7
+ export type Response<T = never> = {
8
8
  data: T;
9
9
  };
10
- type InitParams = {
10
+ export type InitParams = {
11
11
  limit: number;
12
12
  parent?: string;
13
13
  };
14
- type NextParams = {
14
+ export type NextParams = {
15
15
  limit: number;
16
16
  parent?: string;
17
17
  next: string;
18
18
  };
19
- type PrevParams = {
19
+ export type PrevParams = {
20
20
  limit: number;
21
21
  parent?: string;
22
22
  prev: string;
23
23
  };
24
- type PageParams = {
24
+ export type PageParams = {
25
25
  limit: number;
26
26
  prev?: string;
27
27
  next?: string;
28
28
  };
29
- type ParentPageParams = {
29
+ export type ParentPageParams = {
30
30
  limit: number;
31
31
  parent: string;
32
32
  prev?: string;
33
33
  next?: string;
34
34
  };
35
- type Page<T = never> = {
35
+ export type Page<T = never> = {
36
36
  data: T[];
37
37
  paging: {
38
38
  next?: string;
39
39
  prev?: string;
40
40
  };
41
41
  };
42
- declare function pageParamsSchema(max?: number, defaultLimit?: number): import("zod/mini").ZodMiniObject<{
42
+ export declare function pageParamsSchema(max?: number, defaultLimit?: number): import("zod/mini").ZodMiniObject<{
43
43
  limit: import("zod/mini").ZodMiniDefault<import("zod/mini").ZodMiniNumber<unknown>>;
44
44
  prev: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
45
45
  next: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniString<string>>;
46
46
  }, import("zod/v4/core").$strip>;
47
- declare const Cursor: {
47
+ export declare const Cursor: {
48
48
  of(prev: bigint | number | string | undefined, next: bigint | number | string | undefined): Page['paging'];
49
49
  empty(): Page['paging'];
50
50
  encode(id: bigint | number | string | undefined): string | undefined;
51
51
  decode<T extends 'bigint' | 'number' | 'string' = 'bigint'>(token: string, type?: T): T extends 'bigint' ? bigint : T extends 'number' ? number : string;
52
52
  };
53
- declare const initialPageParam: Page['paging'];
54
- declare function getPreviousPageParam<T = never>(first: Page<T>): Page['paging'] | null;
55
- declare function getNextPageParam<T = never>(last: Page<T>): Page['paging'] | null;
56
- type InfinitePageData<T> = {
53
+ export declare const initialPageParam: Page['paging'];
54
+ export declare function getPreviousPageParam<T = never>(first: Page<T>): Page['paging'] | null;
55
+ export declare function getNextPageParam<T = never>(last: Page<T>): Page['paging'] | null;
56
+ export type InfinitePageData<T> = {
57
57
  pages: Array<Page<T>>;
58
58
  pageParams: Array<Page['paging']>;
59
59
  };
60
- declare const Pages: {
60
+ export declare const Pages: {
61
61
  flatten<T>(data: InfinitePageData<T>): T[];
62
62
  dedupe<T extends Entity>(data: InfinitePageData<T>): T[];
63
63
  prepend<T>(item: T): (data: InfinitePageData<T> | undefined) => InfinitePageData<T> | undefined;
@@ -67,7 +67,7 @@ declare const Pages: {
67
67
  remove<T>(predicate: (item: T) => boolean): (data: InfinitePageData<T> | undefined) => InfinitePageData<T> | undefined;
68
68
  removeById<T extends Entity>(id: EntityId): (data: InfinitePageData<T> | undefined) => InfinitePageData<T> | undefined;
69
69
  };
70
- declare const Items: {
70
+ export declare const Items: {
71
71
  push<T>(newItems: T[]): (data: T[] | undefined) => T[] | undefined;
72
72
  unshift<T>(newItems: T[]): (data: T[] | undefined) => T[] | undefined;
73
73
  pushAndDedupe<T extends Entity>(newItems: T[]): (data: T[] | undefined) => T[] | undefined;
@@ -78,5 +78,4 @@ declare const Items: {
78
78
  removeById<T extends Entity>(id: EntityId): (data: T[] | undefined) => T[] | undefined;
79
79
  };
80
80
  //#endregion
81
- export { Cursor, Empty, Entity, EntityId, InfinitePageData, InitParams, Items, NextParams, Page, PageParams, Pages, ParentPageParams, PrevParams, Response, getNextPageParam, getPreviousPageParam, initialPageParam, pageParamsSchema };
82
81
  //# sourceMappingURL=response.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"response.d.mts","names":[],"sources":["../src/response.ts"],"mappings":";KAIY;KACA;KACA;EAAW,IAAI;;KAEf,SAAS;EAAe,MAAM;;KAE9B;EAAe;EAAe;;KAC9B;EAAe;EAAe;EAAiB;;KAC/C;EAAe;EAAe;EAAiB;;KAC/C;EAAe;EAAe;EAAe;;KAC7C;EAAqB;EAAe;EAAgB;EAAe;;KACnE,KAAK;EAAe,MAAM;EAAK;IAAU;IAAe;;;iBAEpD,iBAAiB,cAAW,2CAAiB;;;;yBAM5D;cAEY;EACX,GAAE,4CAC0C,6CAEzC;EAMH,SAAS;EAGT,OAAM;EAIN,OAAO,qDAAmD,eAC3C,OACP,IACL,8BAA8B;;cAUtB,kBAAkB;iBAEf,qBAAqB,WAAW,OAAO,KAAK,KAAK;iBAIjD,iBAAiB,WAAW,MAAM,KAAK,KAAK;KAIhD,iBAAiB;EAC3B,OAAO,MAAM,KAAK;EAClB,YAAY,MAAM;;cAGP;EACX,QAAQ,GAAC,MAAQ,iBAAiB,KAAK;EAGvC,OAAO,UAAU,QAAM,MAAQ,iBAAiB,KAAK;EAarD,QAAQ,GAAC,MAAQ,KAAC,MACF,iBAAiB,mBAAiB,iBAAiB;EAQnE,OAAO,GAAC,MAAQ,KAAC,MACD,iBAAiB,mBAAiB,iBAAiB;EAQnE,OAAO,GAAC,SAAW,GAAC,YAAc,MAAM,iBAAa,MACrC,iBAAiB,mBAAiB,iBAAiB;EAWnE,WAAW,UAAU,QAAM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,iBAAiB,KAAK;EAGvC,OAAO,UAAU,QAAM,MAAQ,iBAAiB,KAAK;EAarD,QAAQ,GAAC,MAAQ,KAAC,MACF,iBAAiB,mBAAiB,iBAAiB;EAQnE,OAAO,GAAC,MAAQ,KAAC,MACD,iBAAiB,mBAAiB,iBAAiB;EAQnE,OAAO,GAAC,SAAW,GAAC,YAAc,MAAM,iBAAa,MACrC,iBAAiB,mBAAiB,iBAAiB;EAWnE,WAAW,UAAU,QAAM,SAAW,KAAC,MAAA,iBAAA,mBAAA,iBAAA;EAGvC,OAAO,GAAC,YAAc,MAAM,iBAAa,MACzB,iBAAiB,mBAAiB,iBAAiB;EAWnE,WAAW,UAAU,QAAM,IAAM,YAAQ,MAAA,iBAAA,mBAAA,iBAAA;;qBAK9B;EACX,KAAK,GAAC,UAAY,OAAG,MACL,oBAAkB;EAKlC,QAAQ,GAAC,UAAY,OAAG,MACR,oBAAkB;EAKlC,cAAc,UAAU,QAAM,UAAY,OAAG,MAC7B,oBAAkB;EAmBlC,iBAAiB,UAAU,QAAM,UAAY,OAAG,MAChC,oBAAkB;EAmBlC,OAAO,GAAC,SAAW,GAAC,YAAc,MAAM,iBAAa,MACrC,oBAAkB;EAKlC,WAAW,UAAU,QAAM,SAAW,KAAC,MAAA,oBAAA;EAGvC,OAAO,GAAC,YAAc,MAAM,iBAAa,MACzB,oBAAkB;EAKlC,WAAW,UAAU,QAAM,IAAM,YAAQ,MAAA,oBAAA"}
@@ -10,7 +10,7 @@
10
10
  * +----------------------+----------------+-----------+
11
11
  *
12
12
  */
13
- declare class UidGenerator {
13
+ export declare class UidGenerator {
14
14
  readonly MAX: bigint;
15
15
  private readonly machineBits;
16
16
  private readonly sequenceBits;
@@ -25,7 +25,6 @@ declare class UidGenerator {
25
25
  constructor(mackineId: number);
26
26
  readonly next: () => bigint;
27
27
  }
28
- declare const uid: UidGenerator;
28
+ export declare const uid: UidGenerator;
29
29
  //#endregion
30
- export { UidGenerator, uid };
31
30
  //# sourceMappingURL=snowflake.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"snowflake.d.cts","names":[],"sources":["../src/snowflake.ts"],"mappings":";;;;;;;;;;;;cAoBa;WACK;mBACC;mBACA;mBACA;mBACA;mBACA;mBACA;mBACA;mBACA;UACT;UACA;EAER,YAAY;WAII;;cAwBL,KAAG"}
1
+ {"version":3,"file":"snowflake.d.cts","names":[],"sources":["../src/snowflake.ts"],"mappings":";;;;;;;;;;;;qBAoBa;WACK;mBACC;mBACA;mBACA;mBACA;mBACA;mBACA;mBACA;mBACA;UACT;UACA;EAER,YAAY;WAII;;qBAwBL,KAAG"}