@pear-protocol/types 1.17.0 → 1.18.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.
@@ -45,6 +45,7 @@ export declare const StatisticsTotalsQueryParams: z.ZodObject<{
45
45
  okx: "okx";
46
46
  lighter: "lighter";
47
47
  }>;
48
+ clientId: z.ZodOptional<z.ZodString>;
48
49
  }, z.core.$strip>;
49
50
  export type StatisticsTotalsQueryParamsInput = z.input<typeof StatisticsTotalsQueryParams>;
50
51
  export type StatisticsTotalsQueryParams = z.output<typeof StatisticsTotalsQueryParams>;
@@ -25,7 +25,10 @@ const OiStatisticsQueryParams = z.object({
25
25
  message: "startDate must be before endDate"
26
26
  });
27
27
  const StatisticsTotalsQueryParams = z.object({
28
- connector: Connector
28
+ connector: Connector,
29
+ // Per-client scope; absent serves the global totals. The literal 'other'
30
+ // selects the unattributed (NULL) bucket; an unknown code returns zero totals.
31
+ clientId: z.string().trim().min(1).optional()
29
32
  });
30
33
  const LeaderboardSortBy = z.enum(["trades", "totalNetPnl", "volume"]);
31
34
  const LEADERBOARD_MAX_LIMIT = 200;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pear-protocol/types",
3
- "version": "1.17.0",
3
+ "version": "1.18.0",
4
4
  "description": "Pear Protocol Types definitions",
5
5
  "private": false,
6
6
  "type": "module",