@evergonlabs/tmi-protocol-api 0.11.0 → 0.11.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.
@@ -1,7 +1,7 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  export declare const PageSchema: z.ZodObject<{
3
- skip: z.ZodNumber;
4
- limit: z.ZodNumber;
3
+ skip: z.ZodCoercedNumber<unknown>;
4
+ limit: z.ZodCoercedNumber<unknown>;
5
5
  }, z.core.$strip>;
6
6
  export type IPageSchema = z.output<typeof PageSchema>;
7
7
  //# sourceMappingURL=page.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { z } from "@evergonlabs/tmi-protocol-utils/zod";
2
2
  export const PageSchema = z
3
3
  .object({
4
- skip: z.number().min(0).openapi({
4
+ skip: z.coerce.number().min(0).openapi({
5
5
  description: "How many entries to skip from the start",
6
6
  }),
7
- limit: z.number().min(0).max(50).openapi({
7
+ limit: z.coerce.number().min(0).max(50).openapi({
8
8
  description: "How many items per page should be retrieved",
9
9
  maximum: 50,
10
10
  }),
@@ -28,8 +28,8 @@ export declare const SearchMarketsResponse: z.ZodArray<z.ZodObject<{
28
28
  updatedAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
29
29
  }, z.core.$strip>>;
30
30
  export declare const SearchMarketsQuery: z.ZodObject<{
31
- skip: z.ZodNumber;
32
- limit: z.ZodNumber;
31
+ skip: z.ZodCoercedNumber<unknown>;
32
+ limit: z.ZodCoercedNumber<unknown>;
33
33
  chainId: z.ZodOptional<z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>>;
34
34
  owner: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
35
35
  }, z.core.$strip>;
@@ -47,8 +47,8 @@ export declare const SearchActivityResponse: z.ZodArray<z.ZodObject<{
47
47
  }, z.core.$strip>], "type">;
48
48
  }, z.core.$strip>>;
49
49
  export declare const SearchActivityQuery: z.ZodObject<{
50
- skip: z.ZodNumber;
51
- limit: z.ZodNumber;
50
+ skip: z.ZodCoercedNumber<unknown>;
51
+ limit: z.ZodCoercedNumber<unknown>;
52
52
  chainId: z.ZodOptional<z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>>;
53
53
  platform: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
54
54
  campaignId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "Int256", "out">>;
@@ -72,8 +72,8 @@ export declare const SearchSalesResponse: z.ZodArray<z.ZodObject<{
72
72
  updatedAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
73
73
  }, z.core.$strip>>;
74
74
  export declare const SearchSalesQuery: z.ZodObject<{
75
- skip: z.ZodNumber;
76
- limit: z.ZodNumber;
75
+ skip: z.ZodCoercedNumber<unknown>;
76
+ limit: z.ZodCoercedNumber<unknown>;
77
77
  chainId: z.ZodOptional<z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>>;
78
78
  owner: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
79
79
  platform: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
@@ -72,8 +72,8 @@ export declare const SearchWithdrawalResponse: z.ZodArray<z.ZodObject<{
72
72
  updatedAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
73
73
  }, z.core.$strip>>;
74
74
  export declare const SearchWithdrawalQuery: z.ZodObject<{
75
- skip: z.ZodNumber;
76
- limit: z.ZodNumber;
75
+ skip: z.ZodCoercedNumber<unknown>;
76
+ limit: z.ZodCoercedNumber<unknown>;
77
77
  chainId: z.ZodOptional<z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>>;
78
78
  platform: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
79
79
  campaignId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "Int256", "out">>;
@@ -8,8 +8,8 @@ export declare const SearchPlatformsResponse: z.ZodArray<z.ZodObject<{
8
8
  updatedAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
9
9
  }, z.core.$strip>>;
10
10
  export declare const SearchPlatformsQuery: z.ZodObject<{
11
- skip: z.ZodNumber;
12
- limit: z.ZodNumber;
11
+ skip: z.ZodCoercedNumber<unknown>;
12
+ limit: z.ZodCoercedNumber<unknown>;
13
13
  chainId: z.ZodOptional<z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>>;
14
14
  owner: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
15
15
  }, z.core.$strip>;
@@ -9,8 +9,8 @@ export declare const SearchPoolsResponse: z.ZodArray<z.ZodObject<{
9
9
  createdAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
10
10
  }, z.core.$strip>>;
11
11
  export declare const SearchPoolsQuery: z.ZodObject<{
12
- skip: z.ZodNumber;
13
- limit: z.ZodNumber;
12
+ skip: z.ZodCoercedNumber<unknown>;
13
+ limit: z.ZodCoercedNumber<unknown>;
14
14
  chainId: z.ZodOptional<z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>>;
15
15
  platform: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
16
16
  }, z.core.$strip>;
@@ -10,8 +10,8 @@ export declare const SearchRoleEventsResponse: z.ZodArray<z.ZodObject<{
10
10
  isRevoked: z.ZodBoolean;
11
11
  }, z.core.$strip>>;
12
12
  export declare const SearchRoleEventsQuery: z.ZodObject<{
13
- skip: z.ZodNumber;
14
- limit: z.ZodNumber;
13
+ skip: z.ZodCoercedNumber<unknown>;
14
+ limit: z.ZodCoercedNumber<unknown>;
15
15
  chainId: z.ZodOptional<z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>>;
16
16
  owner: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
17
17
  platform: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
@@ -9,8 +9,8 @@ export declare const SearchRolesResponse: z.ZodArray<z.ZodObject<{
9
9
  updatedAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
10
10
  }, z.core.$strip>>;
11
11
  export declare const SearchRolesQuery: z.ZodObject<{
12
- skip: z.ZodNumber;
13
- limit: z.ZodNumber;
12
+ skip: z.ZodCoercedNumber<unknown>;
13
+ limit: z.ZodCoercedNumber<unknown>;
14
14
  chainId: z.ZodOptional<z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>>;
15
15
  owner: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
16
16
  platform: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
@@ -10,8 +10,8 @@ export declare const SearchStakeEventsResponse: z.ZodArray<z.ZodObject<{
10
10
  txHash: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
11
11
  }, z.core.$strip>>;
12
12
  export declare const SearchStakeEventsQuery: z.ZodObject<{
13
- skip: z.ZodNumber;
14
- limit: z.ZodNumber;
13
+ skip: z.ZodCoercedNumber<unknown>;
14
+ limit: z.ZodCoercedNumber<unknown>;
15
15
  chainId: z.ZodOptional<z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>>;
16
16
  owner: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
17
17
  platform: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
@@ -14,8 +14,8 @@ export declare const SearchStakesResponse: z.ZodArray<z.ZodObject<{
14
14
  updatedAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
15
15
  }, z.core.$strip>>;
16
16
  export declare const SearchStakesQuery: z.ZodObject<{
17
- skip: z.ZodNumber;
18
- limit: z.ZodNumber;
17
+ skip: z.ZodCoercedNumber<unknown>;
18
+ limit: z.ZodCoercedNumber<unknown>;
19
19
  chainId: z.ZodOptional<z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>>;
20
20
  owner: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
21
21
  platform: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evergonlabs/tmi-protocol-api",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -57,13 +57,13 @@
57
57
  "viem": "2.46.2",
58
58
  "zod": "^4.3.6",
59
59
  "zod-openapi": "^5.4.6",
60
- "@evergonlabs/tmi-protocol-contracts": "0.11.0",
61
- "@evergonlabs/tmi-protocol-fractions-sdk": "0.11.0",
62
- "@evergonlabs/tmi-protocol-indexer": "0.11.0",
63
- "@evergonlabs/tmi-protocol-shared": "0.11.0",
64
- "@evergonlabs/tmi-protocol-staking-sdk": "0.11.0",
65
- "@evergonlabs/tmi-protocol-types": "0.11.0",
66
- "@evergonlabs/tmi-protocol-utils": "0.11.0"
60
+ "@evergonlabs/tmi-protocol-contracts": "0.11.1",
61
+ "@evergonlabs/tmi-protocol-fractions-sdk": "0.11.1",
62
+ "@evergonlabs/tmi-protocol-indexer": "0.11.1",
63
+ "@evergonlabs/tmi-protocol-shared": "0.11.1",
64
+ "@evergonlabs/tmi-protocol-staking-sdk": "0.11.1",
65
+ "@evergonlabs/tmi-protocol-types": "0.11.1",
66
+ "@evergonlabs/tmi-protocol-utils": "0.11.1"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@evergonlabs/tmi-eslint-config": "0.8.0-rc.1",