@uniswap/client-data-api 0.0.127 → 0.0.128

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.
@@ -991,6 +991,13 @@ export declare class ListTokensRequest extends Message<ListTokensRequest> {
991
991
  * @generated from field: optional data.v2.PageRequest page = 4;
992
992
  */
993
993
  page?: PageRequest;
994
+ /**
995
+ * Sparkline window. Required — UNSPECIFIED or unknown values are rejected.
996
+ * MAX serves the DAY series.
997
+ *
998
+ * @generated from field: data.v2.HistoryDuration sparkline_duration = 5;
999
+ */
1000
+ sparklineDuration: HistoryDuration;
994
1001
  constructor(data?: PartialMessage<ListTokensRequest>);
995
1002
  static readonly runtime: typeof proto3;
996
1003
  static readonly typeName = "data.v2.ListTokensRequest";
@@ -1331,6 +1331,13 @@ export class ListTokensRequest extends Message {
1331
1331
  * @generated from field: repeated uint32 chain_ids = 1;
1332
1332
  */
1333
1333
  this.chainIds = [];
1334
+ /**
1335
+ * Sparkline window. Required — UNSPECIFIED or unknown values are rejected.
1336
+ * MAX serves the DAY series.
1337
+ *
1338
+ * @generated from field: data.v2.HistoryDuration sparkline_duration = 5;
1339
+ */
1340
+ this.sparklineDuration = HistoryDuration.UNSPECIFIED;
1334
1341
  proto3.util.initPartial(data, this);
1335
1342
  }
1336
1343
  static fromBinary(bytes, options) {
@@ -1353,6 +1360,7 @@ ListTokensRequest.fields = proto3.util.newFieldList(() => [
1353
1360
  { no: 2, name: "sort", kind: "message", T: TokensSort, opt: true },
1354
1361
  { no: 3, name: "filter", kind: "message", T: TokenListFilter, opt: true },
1355
1362
  { no: 4, name: "page", kind: "message", T: PageRequest, opt: true },
1363
+ { no: 5, name: "sparkline_duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
1356
1364
  ]);
1357
1365
  /**
1358
1366
  * @generated from message data.v2.ListTokensResponse
@@ -1,6 +1,6 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
- import { TokenType } from "../v1/types_pb.js";
3
+ import { TimestampedValue, TokenType } from "../v1/types_pb.js";
4
4
  /**
5
5
  * @generated from enum data.v2.TokensOrderBy
6
6
  */
@@ -391,6 +391,14 @@ export declare class RankedMultichainToken extends Message<RankedMultichainToken
391
391
  * @generated from field: repeated data.v2.ChainTokenRankStats chain_stats = 3;
392
392
  */
393
393
  chainStats: ChainTokenRankStats[];
394
+ /**
395
+ * USD price sparkline over sparkline_duration, from the same chain member
396
+ * as price_change. <=20 points, oldest first; timestamps are synthesized,
397
+ * not observed. Empty when no series is available.
398
+ *
399
+ * @generated from field: repeated data.v1.TimestampedValue sparkline = 4;
400
+ */
401
+ sparkline: TimestampedValue[];
394
402
  constructor(data?: PartialMessage<RankedMultichainToken>);
395
403
  static readonly runtime: typeof proto3;
396
404
  static readonly typeName = "data.v2.RankedMultichainToken";
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
6
- import { TokenType } from "../v1/types_pb.js";
6
+ import { TimestampedValue, TokenType } from "../v1/types_pb.js";
7
7
  /**
8
8
  * @generated from enum data.v2.TokensOrderBy
9
9
  */
@@ -462,6 +462,14 @@ export class RankedMultichainToken extends Message {
462
462
  * @generated from field: repeated data.v2.ChainTokenRankStats chain_stats = 3;
463
463
  */
464
464
  this.chainStats = [];
465
+ /**
466
+ * USD price sparkline over sparkline_duration, from the same chain member
467
+ * as price_change. <=20 points, oldest first; timestamps are synthesized,
468
+ * not observed. Empty when no series is available.
469
+ *
470
+ * @generated from field: repeated data.v1.TimestampedValue sparkline = 4;
471
+ */
472
+ this.sparkline = [];
465
473
  proto3.util.initPartial(data, this);
466
474
  }
467
475
  static fromBinary(bytes, options) {
@@ -483,6 +491,7 @@ RankedMultichainToken.fields = proto3.util.newFieldList(() => [
483
491
  { no: 1, name: "multichain_token", kind: "message", T: MultichainToken },
484
492
  { no: 2, name: "stats", kind: "message", T: TokenRankStats },
485
493
  { no: 3, name: "chain_stats", kind: "message", T: ChainTokenRankStats, repeated: true },
494
+ { no: 4, name: "sparkline", kind: "message", T: TimestampedValue, repeated: true },
486
495
  ]);
487
496
  /**
488
497
  * @generated from message data.v2.TokenPriceData
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.127",
3
+ "version": "0.0.128",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },