@uniswap/client-platform-service 0.0.29 → 0.0.31

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.
@@ -170,6 +170,12 @@ export declare class IntrospectResponse extends Message<IntrospectResponse> {
170
170
  * @generated from field: optional string name = 8;
171
171
  */
172
172
  name?: string;
173
+ /**
174
+ * Endpoint-access scopes assigned when the key is created.
175
+ *
176
+ * @generated from field: repeated string scope = 9;
177
+ */
178
+ scope: string[];
173
179
  constructor(data?: PartialMessage<IntrospectResponse>);
174
180
  static readonly runtime: typeof proto3;
175
181
  static readonly typeName = "uniswap.platformservice.v1.IntrospectResponse";
@@ -378,6 +384,10 @@ export declare class ApiKeyDataStruct extends Message<ApiKeyDataStruct> {
378
384
  * @generated from field: optional uniswap.platformservice.v1.ApiKeyTier tier = 11;
379
385
  */
380
386
  tier?: ApiKeyTier;
387
+ /**
388
+ * @generated from field: repeated string scope = 12;
389
+ */
390
+ scope: string[];
381
391
  constructor(data?: PartialMessage<ApiKeyDataStruct>);
382
392
  static readonly runtime: typeof proto3;
383
393
  static readonly typeName = "uniswap.platformservice.v1.ApiKeyDataStruct";
@@ -447,6 +457,10 @@ export declare class InternalCreateApiKeyRequest extends Message<InternalCreateA
447
457
  * @generated from field: uniswap.platformservice.v1.ApiKeyTier tier = 4;
448
458
  */
449
459
  tier: ApiKeyTier;
460
+ /**
461
+ * @generated from field: repeated string scope = 5;
462
+ */
463
+ scope: string[];
450
464
  constructor(data?: PartialMessage<InternalCreateApiKeyRequest>);
451
465
  static readonly runtime: typeof proto3;
452
466
  static readonly typeName = "uniswap.platformservice.v1.InternalCreateApiKeyRequest";
@@ -543,6 +557,10 @@ export declare class InternalModifyApiKeyV2Request extends Message<InternalModif
543
557
  * @generated from field: optional uniswap.platformservice.v1.ApiKeyTier tier = 3;
544
558
  */
545
559
  tier?: ApiKeyTier;
560
+ /**
561
+ * @generated from field: repeated string scope = 4;
562
+ */
563
+ scope: string[];
546
564
  constructor(data?: PartialMessage<InternalModifyApiKeyV2Request>);
547
565
  static readonly runtime: typeof proto3;
548
566
  static readonly typeName = "uniswap.platformservice.v1.InternalModifyApiKeyV2Request";
@@ -223,6 +223,12 @@ export class IntrospectResponse extends Message {
223
223
  * @generated from field: uniswap.platformservice.v1.ApiKeyTier tier = 6;
224
224
  */
225
225
  this.tier = ApiKeyTier.UNSPECIFIED;
226
+ /**
227
+ * Endpoint-access scopes assigned when the key is created.
228
+ *
229
+ * @generated from field: repeated string scope = 9;
230
+ */
231
+ this.scope = [];
226
232
  proto3.util.initPartial(data, this);
227
233
  }
228
234
  static fromBinary(bytes, options) {
@@ -249,6 +255,7 @@ IntrospectResponse.fields = proto3.util.newFieldList(() => [
249
255
  { no: 6, name: "tier", kind: "enum", T: proto3.getEnumType(ApiKeyTier) },
250
256
  { no: 7, name: "rate_limit_config", kind: "message", T: RateLimitConfig, opt: true },
251
257
  { no: 8, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
258
+ { no: 9, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
252
259
  ]);
253
260
  /**
254
261
  * Create API Key request/response
@@ -486,6 +493,10 @@ export class ApiKeyDataStruct extends Message {
486
493
  * @generated from field: bool active = 6;
487
494
  */
488
495
  this.active = false;
496
+ /**
497
+ * @generated from field: repeated string scope = 12;
498
+ */
499
+ this.scope = [];
489
500
  proto3.util.initPartial(data, this);
490
501
  }
491
502
  static fromBinary(bytes, options) {
@@ -514,6 +525,7 @@ ApiKeyDataStruct.fields = proto3.util.newFieldList(() => [
514
525
  { no: 9, name: "creation_time", kind: "message", T: Timestamp },
515
526
  { no: 10, name: "analytics_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
516
527
  { no: 11, name: "tier", kind: "enum", T: proto3.getEnumType(ApiKeyTier), opt: true },
528
+ { no: 12, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
517
529
  ]);
518
530
  /**
519
531
  * @generated from message uniswap.platformservice.v1.ListApiKeyRequest
@@ -596,6 +608,10 @@ export class InternalCreateApiKeyRequest extends Message {
596
608
  * @generated from field: uniswap.platformservice.v1.ApiKeyTier tier = 4;
597
609
  */
598
610
  this.tier = ApiKeyTier.UNSPECIFIED;
611
+ /**
612
+ * @generated from field: repeated string scope = 5;
613
+ */
614
+ this.scope = [];
599
615
  proto3.util.initPartial(data, this);
600
616
  }
601
617
  static fromBinary(bytes, options) {
@@ -618,6 +634,7 @@ InternalCreateApiKeyRequest.fields = proto3.util.newFieldList(() => [
618
634
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
619
635
  { no: 3, name: "rate_limit_config", kind: "message", T: RateLimitConfig, opt: true },
620
636
  { no: 4, name: "tier", kind: "enum", T: proto3.getEnumType(ApiKeyTier) },
637
+ { no: 5, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
621
638
  ]);
622
639
  /**
623
640
  * @generated from message uniswap.platformservice.v1.InternalCreateApiKeyResponse
@@ -734,6 +751,10 @@ export class InternalModifyApiKeyV2Request extends Message {
734
751
  * @generated from field: string hashed_api_key = 1;
735
752
  */
736
753
  this.hashedApiKey = "";
754
+ /**
755
+ * @generated from field: repeated string scope = 4;
756
+ */
757
+ this.scope = [];
737
758
  proto3.util.initPartial(data, this);
738
759
  }
739
760
  static fromBinary(bytes, options) {
@@ -755,6 +776,7 @@ InternalModifyApiKeyV2Request.fields = proto3.util.newFieldList(() => [
755
776
  { no: 1, name: "hashed_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
756
777
  { no: 2, name: "target_rps", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
757
778
  { no: 3, name: "tier", kind: "enum", T: proto3.getEnumType(ApiKeyTier), opt: true },
779
+ { no: 4, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
758
780
  ]);
759
781
  /**
760
782
  * @generated from message uniswap.platformservice.v1.InternalModifyApiKeyV2Response
@@ -310,6 +310,12 @@ export declare class Criterion extends Message<Criterion> {
310
310
  */
311
311
  value: EffectiveTime;
312
312
  case: "effectiveTime";
313
+ } | {
314
+ /**
315
+ * @generated from field: uniswap.platformservice.v1.NewUserOnly new_user_only = 5;
316
+ */
317
+ value: NewUserOnly;
318
+ case: "newUserOnly";
313
319
  } | {
314
320
  case: undefined;
315
321
  value?: undefined;
@@ -323,6 +329,28 @@ export declare class Criterion extends Message<Criterion> {
323
329
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Criterion;
324
330
  static equals(a: Criterion | PlainMessage<Criterion> | undefined, b: Criterion | PlainMessage<Criterion> | undefined): boolean;
325
331
  }
332
+ /**
333
+ * Restricts a campaign to new users: wallets with zero lifetime swaps at the
334
+ * time of their first sponsored swap. Evaluation is sticky — a wallet with
335
+ * any sponsorship already recorded under this campaign qualified at its
336
+ * first sponsored swap, so later swaps under the per-wallet cap keep
337
+ * matching. Otherwise the wallet must have zero lifetime swaps across all
338
+ * chains (wallet_swaps ClickHouse rollup: tx sender or output recipient of
339
+ * any v2/v3/v4 swap). A wallet whose first swap happened outside
340
+ * sponsorship never qualifies.
341
+ *
342
+ * @generated from message uniswap.platformservice.v1.NewUserOnly
343
+ */
344
+ export declare class NewUserOnly extends Message<NewUserOnly> {
345
+ constructor(data?: PartialMessage<NewUserOnly>);
346
+ static readonly runtime: typeof proto3;
347
+ static readonly typeName = "uniswap.platformservice.v1.NewUserOnly";
348
+ static readonly fields: FieldList;
349
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewUserOnly;
350
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewUserOnly;
351
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewUserOnly;
352
+ static equals(a: NewUserOnly | PlainMessage<NewUserOnly> | undefined, b: NewUserOnly | PlainMessage<NewUserOnly> | undefined): boolean;
353
+ }
326
354
  /**
327
355
  * Matches same-chain classic swaps and wrap/unwrap operations on the listed chains.
328
356
  * Cross-chain bridges never match.
@@ -388,7 +388,41 @@ Criterion.fields = proto3.util.newFieldList(() => [
388
388
  { no: 2, name: "always_reject", kind: "message", T: AlwaysReject, oneof: "criterion" },
389
389
  { no: 3, name: "max_sponsees_per_wallet", kind: "message", T: MaxSponseesPerWallet, oneof: "criterion" },
390
390
  { no: 4, name: "effective_time", kind: "message", T: EffectiveTime, oneof: "criterion" },
391
+ { no: 5, name: "new_user_only", kind: "message", T: NewUserOnly, oneof: "criterion" },
391
392
  ]);
393
+ /**
394
+ * Restricts a campaign to new users: wallets with zero lifetime swaps at the
395
+ * time of their first sponsored swap. Evaluation is sticky — a wallet with
396
+ * any sponsorship already recorded under this campaign qualified at its
397
+ * first sponsored swap, so later swaps under the per-wallet cap keep
398
+ * matching. Otherwise the wallet must have zero lifetime swaps across all
399
+ * chains (wallet_swaps ClickHouse rollup: tx sender or output recipient of
400
+ * any v2/v3/v4 swap). A wallet whose first swap happened outside
401
+ * sponsorship never qualifies.
402
+ *
403
+ * @generated from message uniswap.platformservice.v1.NewUserOnly
404
+ */
405
+ export class NewUserOnly extends Message {
406
+ constructor(data) {
407
+ super();
408
+ proto3.util.initPartial(data, this);
409
+ }
410
+ static fromBinary(bytes, options) {
411
+ return new NewUserOnly().fromBinary(bytes, options);
412
+ }
413
+ static fromJson(jsonValue, options) {
414
+ return new NewUserOnly().fromJson(jsonValue, options);
415
+ }
416
+ static fromJsonString(jsonString, options) {
417
+ return new NewUserOnly().fromJsonString(jsonString, options);
418
+ }
419
+ static equals(a, b) {
420
+ return proto3.util.equals(NewUserOnly, a, b);
421
+ }
422
+ }
423
+ NewUserOnly.runtime = proto3;
424
+ NewUserOnly.typeName = "uniswap.platformservice.v1.NewUserOnly";
425
+ NewUserOnly.fields = proto3.util.newFieldList(() => []);
392
426
  /**
393
427
  * Matches same-chain classic swaps and wrap/unwrap operations on the listed chains.
394
428
  * Cross-chain bridges never match.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-platform-service",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },