@uniswap/client-platform-service 0.0.30 → 0.0.32
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.
|
@@ -11,7 +11,12 @@ export declare enum ApiKeyTier {
|
|
|
11
11
|
*/
|
|
12
12
|
UNSPECIFIED = 0,
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Deprecated: legacy internal keys are stamped auth score 40 and rely on the
|
|
15
|
+
* shared x-internal-service-secret to pass score-gated services. Use
|
|
16
|
+
* API_KEY_TIER_INTERNAL_SECURED for new internal keys.
|
|
17
|
+
*
|
|
18
|
+
* @generated from enum value: API_KEY_TIER_INTERNAL = 1 [deprecated = true];
|
|
19
|
+
* @deprecated
|
|
15
20
|
*/
|
|
16
21
|
INTERNAL = 1,
|
|
17
22
|
/**
|
|
@@ -21,7 +26,14 @@ export declare enum ApiKeyTier {
|
|
|
21
26
|
/**
|
|
22
27
|
* @generated from enum value: API_KEY_TIER_DEV_PORTAL = 3;
|
|
23
28
|
*/
|
|
24
|
-
DEV_PORTAL = 3
|
|
29
|
+
DEV_PORTAL = 3,
|
|
30
|
+
/**
|
|
31
|
+
* Internal key trusted to pass score-gated services (Entry Gateway stamps
|
|
32
|
+
* auth score 60) without the shared internal-service secret.
|
|
33
|
+
*
|
|
34
|
+
* @generated from enum value: API_KEY_TIER_INTERNAL_SECURED = 4;
|
|
35
|
+
*/
|
|
36
|
+
INTERNAL_SECURED = 4
|
|
25
37
|
}
|
|
26
38
|
/**
|
|
27
39
|
* Application error codes for the API Key service (dev portal / API clients).
|
|
@@ -170,6 +182,12 @@ export declare class IntrospectResponse extends Message<IntrospectResponse> {
|
|
|
170
182
|
* @generated from field: optional string name = 8;
|
|
171
183
|
*/
|
|
172
184
|
name?: string;
|
|
185
|
+
/**
|
|
186
|
+
* Endpoint-access scopes assigned when the key is created.
|
|
187
|
+
*
|
|
188
|
+
* @generated from field: repeated string scope = 9;
|
|
189
|
+
*/
|
|
190
|
+
scope: string[];
|
|
173
191
|
constructor(data?: PartialMessage<IntrospectResponse>);
|
|
174
192
|
static readonly runtime: typeof proto3;
|
|
175
193
|
static readonly typeName = "uniswap.platformservice.v1.IntrospectResponse";
|
|
@@ -378,6 +396,10 @@ export declare class ApiKeyDataStruct extends Message<ApiKeyDataStruct> {
|
|
|
378
396
|
* @generated from field: optional uniswap.platformservice.v1.ApiKeyTier tier = 11;
|
|
379
397
|
*/
|
|
380
398
|
tier?: ApiKeyTier;
|
|
399
|
+
/**
|
|
400
|
+
* @generated from field: repeated string scope = 12;
|
|
401
|
+
*/
|
|
402
|
+
scope: string[];
|
|
381
403
|
constructor(data?: PartialMessage<ApiKeyDataStruct>);
|
|
382
404
|
static readonly runtime: typeof proto3;
|
|
383
405
|
static readonly typeName = "uniswap.platformservice.v1.ApiKeyDataStruct";
|
|
@@ -447,6 +469,10 @@ export declare class InternalCreateApiKeyRequest extends Message<InternalCreateA
|
|
|
447
469
|
* @generated from field: uniswap.platformservice.v1.ApiKeyTier tier = 4;
|
|
448
470
|
*/
|
|
449
471
|
tier: ApiKeyTier;
|
|
472
|
+
/**
|
|
473
|
+
* @generated from field: repeated string scope = 5;
|
|
474
|
+
*/
|
|
475
|
+
scope: string[];
|
|
450
476
|
constructor(data?: PartialMessage<InternalCreateApiKeyRequest>);
|
|
451
477
|
static readonly runtime: typeof proto3;
|
|
452
478
|
static readonly typeName = "uniswap.platformservice.v1.InternalCreateApiKeyRequest";
|
|
@@ -543,6 +569,10 @@ export declare class InternalModifyApiKeyV2Request extends Message<InternalModif
|
|
|
543
569
|
* @generated from field: optional uniswap.platformservice.v1.ApiKeyTier tier = 3;
|
|
544
570
|
*/
|
|
545
571
|
tier?: ApiKeyTier;
|
|
572
|
+
/**
|
|
573
|
+
* @generated from field: repeated string scope = 4;
|
|
574
|
+
*/
|
|
575
|
+
scope: string[];
|
|
546
576
|
constructor(data?: PartialMessage<InternalModifyApiKeyV2Request>);
|
|
547
577
|
static readonly runtime: typeof proto3;
|
|
548
578
|
static readonly typeName = "uniswap.platformservice.v1.InternalModifyApiKeyV2Request";
|
|
@@ -15,7 +15,12 @@ export var ApiKeyTier;
|
|
|
15
15
|
*/
|
|
16
16
|
ApiKeyTier[ApiKeyTier["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Deprecated: legacy internal keys are stamped auth score 40 and rely on the
|
|
19
|
+
* shared x-internal-service-secret to pass score-gated services. Use
|
|
20
|
+
* API_KEY_TIER_INTERNAL_SECURED for new internal keys.
|
|
21
|
+
*
|
|
22
|
+
* @generated from enum value: API_KEY_TIER_INTERNAL = 1 [deprecated = true];
|
|
23
|
+
* @deprecated
|
|
19
24
|
*/
|
|
20
25
|
ApiKeyTier[ApiKeyTier["INTERNAL"] = 1] = "INTERNAL";
|
|
21
26
|
/**
|
|
@@ -26,6 +31,13 @@ export var ApiKeyTier;
|
|
|
26
31
|
* @generated from enum value: API_KEY_TIER_DEV_PORTAL = 3;
|
|
27
32
|
*/
|
|
28
33
|
ApiKeyTier[ApiKeyTier["DEV_PORTAL"] = 3] = "DEV_PORTAL";
|
|
34
|
+
/**
|
|
35
|
+
* Internal key trusted to pass score-gated services (Entry Gateway stamps
|
|
36
|
+
* auth score 60) without the shared internal-service secret.
|
|
37
|
+
*
|
|
38
|
+
* @generated from enum value: API_KEY_TIER_INTERNAL_SECURED = 4;
|
|
39
|
+
*/
|
|
40
|
+
ApiKeyTier[ApiKeyTier["INTERNAL_SECURED"] = 4] = "INTERNAL_SECURED";
|
|
29
41
|
})(ApiKeyTier || (ApiKeyTier = {}));
|
|
30
42
|
// Retrieve enum metadata with: proto3.getEnumType(ApiKeyTier)
|
|
31
43
|
proto3.util.setEnumType(ApiKeyTier, "uniswap.platformservice.v1.ApiKeyTier", [
|
|
@@ -33,6 +45,7 @@ proto3.util.setEnumType(ApiKeyTier, "uniswap.platformservice.v1.ApiKeyTier", [
|
|
|
33
45
|
{ no: 1, name: "API_KEY_TIER_INTERNAL" },
|
|
34
46
|
{ no: 2, name: "API_KEY_TIER_PARTNER" },
|
|
35
47
|
{ no: 3, name: "API_KEY_TIER_DEV_PORTAL" },
|
|
48
|
+
{ no: 4, name: "API_KEY_TIER_INTERNAL_SECURED" },
|
|
36
49
|
]);
|
|
37
50
|
/**
|
|
38
51
|
* Application error codes for the API Key service (dev portal / API clients).
|
|
@@ -223,6 +236,12 @@ export class IntrospectResponse extends Message {
|
|
|
223
236
|
* @generated from field: uniswap.platformservice.v1.ApiKeyTier tier = 6;
|
|
224
237
|
*/
|
|
225
238
|
this.tier = ApiKeyTier.UNSPECIFIED;
|
|
239
|
+
/**
|
|
240
|
+
* Endpoint-access scopes assigned when the key is created.
|
|
241
|
+
*
|
|
242
|
+
* @generated from field: repeated string scope = 9;
|
|
243
|
+
*/
|
|
244
|
+
this.scope = [];
|
|
226
245
|
proto3.util.initPartial(data, this);
|
|
227
246
|
}
|
|
228
247
|
static fromBinary(bytes, options) {
|
|
@@ -249,6 +268,7 @@ IntrospectResponse.fields = proto3.util.newFieldList(() => [
|
|
|
249
268
|
{ no: 6, name: "tier", kind: "enum", T: proto3.getEnumType(ApiKeyTier) },
|
|
250
269
|
{ no: 7, name: "rate_limit_config", kind: "message", T: RateLimitConfig, opt: true },
|
|
251
270
|
{ no: 8, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
271
|
+
{ no: 9, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
252
272
|
]);
|
|
253
273
|
/**
|
|
254
274
|
* Create API Key request/response
|
|
@@ -486,6 +506,10 @@ export class ApiKeyDataStruct extends Message {
|
|
|
486
506
|
* @generated from field: bool active = 6;
|
|
487
507
|
*/
|
|
488
508
|
this.active = false;
|
|
509
|
+
/**
|
|
510
|
+
* @generated from field: repeated string scope = 12;
|
|
511
|
+
*/
|
|
512
|
+
this.scope = [];
|
|
489
513
|
proto3.util.initPartial(data, this);
|
|
490
514
|
}
|
|
491
515
|
static fromBinary(bytes, options) {
|
|
@@ -514,6 +538,7 @@ ApiKeyDataStruct.fields = proto3.util.newFieldList(() => [
|
|
|
514
538
|
{ no: 9, name: "creation_time", kind: "message", T: Timestamp },
|
|
515
539
|
{ no: 10, name: "analytics_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
516
540
|
{ no: 11, name: "tier", kind: "enum", T: proto3.getEnumType(ApiKeyTier), opt: true },
|
|
541
|
+
{ no: 12, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
517
542
|
]);
|
|
518
543
|
/**
|
|
519
544
|
* @generated from message uniswap.platformservice.v1.ListApiKeyRequest
|
|
@@ -596,6 +621,10 @@ export class InternalCreateApiKeyRequest extends Message {
|
|
|
596
621
|
* @generated from field: uniswap.platformservice.v1.ApiKeyTier tier = 4;
|
|
597
622
|
*/
|
|
598
623
|
this.tier = ApiKeyTier.UNSPECIFIED;
|
|
624
|
+
/**
|
|
625
|
+
* @generated from field: repeated string scope = 5;
|
|
626
|
+
*/
|
|
627
|
+
this.scope = [];
|
|
599
628
|
proto3.util.initPartial(data, this);
|
|
600
629
|
}
|
|
601
630
|
static fromBinary(bytes, options) {
|
|
@@ -618,6 +647,7 @@ InternalCreateApiKeyRequest.fields = proto3.util.newFieldList(() => [
|
|
|
618
647
|
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
619
648
|
{ no: 3, name: "rate_limit_config", kind: "message", T: RateLimitConfig, opt: true },
|
|
620
649
|
{ no: 4, name: "tier", kind: "enum", T: proto3.getEnumType(ApiKeyTier) },
|
|
650
|
+
{ no: 5, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
621
651
|
]);
|
|
622
652
|
/**
|
|
623
653
|
* @generated from message uniswap.platformservice.v1.InternalCreateApiKeyResponse
|
|
@@ -734,6 +764,10 @@ export class InternalModifyApiKeyV2Request extends Message {
|
|
|
734
764
|
* @generated from field: string hashed_api_key = 1;
|
|
735
765
|
*/
|
|
736
766
|
this.hashedApiKey = "";
|
|
767
|
+
/**
|
|
768
|
+
* @generated from field: repeated string scope = 4;
|
|
769
|
+
*/
|
|
770
|
+
this.scope = [];
|
|
737
771
|
proto3.util.initPartial(data, this);
|
|
738
772
|
}
|
|
739
773
|
static fromBinary(bytes, options) {
|
|
@@ -755,6 +789,7 @@ InternalModifyApiKeyV2Request.fields = proto3.util.newFieldList(() => [
|
|
|
755
789
|
{ no: 1, name: "hashed_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
756
790
|
{ no: 2, name: "target_rps", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
757
791
|
{ no: 3, name: "tier", kind: "enum", T: proto3.getEnumType(ApiKeyTier), opt: true },
|
|
792
|
+
{ no: 4, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
758
793
|
]);
|
|
759
794
|
/**
|
|
760
795
|
* @generated from message uniswap.platformservice.v1.InternalModifyApiKeyV2Response
|