@uniswap/client-platform-service 0.0.15 → 0.0.16

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,5 +1,5 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
2
+ import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, InternalModifyApiKeyRequest, InternalModifyApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
3
3
  /**
4
4
  * @generated from rpc uniswap.platformservice.v1.ApiKeyService.Introspect
5
5
  */
@@ -78,3 +78,16 @@ export declare const listApiKeys: {
78
78
  readonly typeName: "uniswap.platformservice.v1.ApiKeyService";
79
79
  };
80
80
  };
81
+ /**
82
+ * @generated from rpc uniswap.platformservice.v1.ApiKeyService.InternalModifyApiKey
83
+ */
84
+ export declare const internalModifyApiKey: {
85
+ readonly localName: "internalModifyApiKey";
86
+ readonly name: "InternalModifyApiKey";
87
+ readonly kind: MethodKind.Unary;
88
+ readonly I: typeof InternalModifyApiKeyRequest;
89
+ readonly O: typeof InternalModifyApiKeyResponse;
90
+ readonly service: {
91
+ readonly typeName: "uniswap.platformservice.v1.ApiKeyService";
92
+ };
93
+ };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
6
+ import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, InternalModifyApiKeyRequest, InternalModifyApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
7
7
  /**
8
8
  * @generated from rpc uniswap.platformservice.v1.ApiKeyService.Introspect
9
9
  */
@@ -82,3 +82,16 @@ export const listApiKeys = {
82
82
  typeName: "uniswap.platformservice.v1.ApiKeyService"
83
83
  }
84
84
  };
85
+ /**
86
+ * @generated from rpc uniswap.platformservice.v1.ApiKeyService.InternalModifyApiKey
87
+ */
88
+ export const internalModifyApiKey = {
89
+ localName: "internalModifyApiKey",
90
+ name: "InternalModifyApiKey",
91
+ kind: MethodKind.Unary,
92
+ I: InternalModifyApiKeyRequest,
93
+ O: InternalModifyApiKeyResponse,
94
+ service: {
95
+ typeName: "uniswap.platformservice.v1.ApiKeyService"
96
+ }
97
+ };
@@ -1,4 +1,4 @@
1
- import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
1
+ import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, InternalModifyApiKeyRequest, InternalModifyApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * Service definition
@@ -62,5 +62,14 @@ export declare const ApiKeyService: {
62
62
  readonly O: typeof ListApiKeyResponse;
63
63
  readonly kind: MethodKind.Unary;
64
64
  };
65
+ /**
66
+ * @generated from rpc uniswap.platformservice.v1.ApiKeyService.InternalModifyApiKey
67
+ */
68
+ readonly internalModifyApiKey: {
69
+ readonly name: "InternalModifyApiKey";
70
+ readonly I: typeof InternalModifyApiKeyRequest;
71
+ readonly O: typeof InternalModifyApiKeyResponse;
72
+ readonly kind: MethodKind.Unary;
73
+ };
65
74
  };
66
75
  };
@@ -2,7 +2,7 @@
2
2
  // @generated from file uniswap/platformservice/v1/apiKeyService.proto (package uniswap.platformservice.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
5
+ import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, InternalModifyApiKeyRequest, InternalModifyApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * Service definition
@@ -66,5 +66,14 @@ export const ApiKeyService = {
66
66
  O: ListApiKeyResponse,
67
67
  kind: MethodKind.Unary,
68
68
  },
69
+ /**
70
+ * @generated from rpc uniswap.platformservice.v1.ApiKeyService.InternalModifyApiKey
71
+ */
72
+ internalModifyApiKey: {
73
+ name: "InternalModifyApiKey",
74
+ I: InternalModifyApiKeyRequest,
75
+ O: InternalModifyApiKeyResponse,
76
+ kind: MethodKind.Unary,
77
+ },
69
78
  }
70
79
  };
@@ -155,6 +155,10 @@ export declare class IntrospectResponse extends Message<IntrospectResponse> {
155
155
  * @generated from field: string analytics_id = 5;
156
156
  */
157
157
  analyticsId: string;
158
+ /**
159
+ * @generated from field: uniswap.platformservice.v1.ApiKeyTier tier = 6;
160
+ */
161
+ tier: ApiKeyTier;
158
162
  constructor(data?: PartialMessage<IntrospectResponse>);
159
163
  static readonly runtime: typeof proto3;
160
164
  static readonly typeName = "uniswap.platformservice.v1.IntrospectResponse";
@@ -454,3 +458,49 @@ export declare class InternalCreateApiKeyResponse extends Message<InternalCreate
454
458
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InternalCreateApiKeyResponse;
455
459
  static equals(a: InternalCreateApiKeyResponse | PlainMessage<InternalCreateApiKeyResponse> | undefined, b: InternalCreateApiKeyResponse | PlainMessage<InternalCreateApiKeyResponse> | undefined): boolean;
456
460
  }
461
+ /**
462
+ * Internal Modify API Key request/response (VPN-restricted admin endpoint)
463
+ *
464
+ * @generated from message uniswap.platformservice.v1.InternalModifyApiKeyRequest
465
+ */
466
+ export declare class InternalModifyApiKeyRequest extends Message<InternalModifyApiKeyRequest> {
467
+ /**
468
+ * user email to look up their organization
469
+ *
470
+ * @generated from field: string email = 1;
471
+ */
472
+ email: string;
473
+ /**
474
+ * api key name to identify the key within the org
475
+ *
476
+ * @generated from field: string api_key_name = 2;
477
+ */
478
+ apiKeyName: string;
479
+ /**
480
+ * required
481
+ *
482
+ * @generated from field: uniswap.platformservice.v1.RateLimitConfig rate_limit_config = 3;
483
+ */
484
+ rateLimitConfig?: RateLimitConfig;
485
+ constructor(data?: PartialMessage<InternalModifyApiKeyRequest>);
486
+ static readonly runtime: typeof proto3;
487
+ static readonly typeName = "uniswap.platformservice.v1.InternalModifyApiKeyRequest";
488
+ static readonly fields: FieldList;
489
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InternalModifyApiKeyRequest;
490
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InternalModifyApiKeyRequest;
491
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InternalModifyApiKeyRequest;
492
+ static equals(a: InternalModifyApiKeyRequest | PlainMessage<InternalModifyApiKeyRequest> | undefined, b: InternalModifyApiKeyRequest | PlainMessage<InternalModifyApiKeyRequest> | undefined): boolean;
493
+ }
494
+ /**
495
+ * @generated from message uniswap.platformservice.v1.InternalModifyApiKeyResponse
496
+ */
497
+ export declare class InternalModifyApiKeyResponse extends Message<InternalModifyApiKeyResponse> {
498
+ constructor(data?: PartialMessage<InternalModifyApiKeyResponse>);
499
+ static readonly runtime: typeof proto3;
500
+ static readonly typeName = "uniswap.platformservice.v1.InternalModifyApiKeyResponse";
501
+ static readonly fields: FieldList;
502
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InternalModifyApiKeyResponse;
503
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InternalModifyApiKeyResponse;
504
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InternalModifyApiKeyResponse;
505
+ static equals(a: InternalModifyApiKeyResponse | PlainMessage<InternalModifyApiKeyResponse> | undefined, b: InternalModifyApiKeyResponse | PlainMessage<InternalModifyApiKeyResponse> | undefined): boolean;
506
+ }
@@ -219,6 +219,10 @@ export class IntrospectResponse extends Message {
219
219
  * @generated from field: string analytics_id = 5;
220
220
  */
221
221
  this.analyticsId = "";
222
+ /**
223
+ * @generated from field: uniswap.platformservice.v1.ApiKeyTier tier = 6;
224
+ */
225
+ this.tier = ApiKeyTier.UNSPECIFIED;
222
226
  proto3.util.initPartial(data, this);
223
227
  }
224
228
  static fromBinary(bytes, options) {
@@ -242,6 +246,7 @@ IntrospectResponse.fields = proto3.util.newFieldList(() => [
242
246
  { no: 3, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
243
247
  { no: 4, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
244
248
  { no: 5, name: "analytics_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
249
+ { no: 6, name: "tier", kind: "enum", T: proto3.getEnumType(ApiKeyTier) },
245
250
  ]);
246
251
  /**
247
252
  * Create API Key request/response
@@ -645,3 +650,69 @@ InternalCreateApiKeyResponse.fields = proto3.util.newFieldList(() => [
645
650
  { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
646
651
  { no: 2, name: "wrapped_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
647
652
  ]);
653
+ /**
654
+ * Internal Modify API Key request/response (VPN-restricted admin endpoint)
655
+ *
656
+ * @generated from message uniswap.platformservice.v1.InternalModifyApiKeyRequest
657
+ */
658
+ export class InternalModifyApiKeyRequest extends Message {
659
+ constructor(data) {
660
+ super();
661
+ /**
662
+ * user email to look up their organization
663
+ *
664
+ * @generated from field: string email = 1;
665
+ */
666
+ this.email = "";
667
+ /**
668
+ * api key name to identify the key within the org
669
+ *
670
+ * @generated from field: string api_key_name = 2;
671
+ */
672
+ this.apiKeyName = "";
673
+ proto3.util.initPartial(data, this);
674
+ }
675
+ static fromBinary(bytes, options) {
676
+ return new InternalModifyApiKeyRequest().fromBinary(bytes, options);
677
+ }
678
+ static fromJson(jsonValue, options) {
679
+ return new InternalModifyApiKeyRequest().fromJson(jsonValue, options);
680
+ }
681
+ static fromJsonString(jsonString, options) {
682
+ return new InternalModifyApiKeyRequest().fromJsonString(jsonString, options);
683
+ }
684
+ static equals(a, b) {
685
+ return proto3.util.equals(InternalModifyApiKeyRequest, a, b);
686
+ }
687
+ }
688
+ InternalModifyApiKeyRequest.runtime = proto3;
689
+ InternalModifyApiKeyRequest.typeName = "uniswap.platformservice.v1.InternalModifyApiKeyRequest";
690
+ InternalModifyApiKeyRequest.fields = proto3.util.newFieldList(() => [
691
+ { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
692
+ { no: 2, name: "api_key_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
693
+ { no: 3, name: "rate_limit_config", kind: "message", T: RateLimitConfig },
694
+ ]);
695
+ /**
696
+ * @generated from message uniswap.platformservice.v1.InternalModifyApiKeyResponse
697
+ */
698
+ export class InternalModifyApiKeyResponse extends Message {
699
+ constructor(data) {
700
+ super();
701
+ proto3.util.initPartial(data, this);
702
+ }
703
+ static fromBinary(bytes, options) {
704
+ return new InternalModifyApiKeyResponse().fromBinary(bytes, options);
705
+ }
706
+ static fromJson(jsonValue, options) {
707
+ return new InternalModifyApiKeyResponse().fromJson(jsonValue, options);
708
+ }
709
+ static fromJsonString(jsonString, options) {
710
+ return new InternalModifyApiKeyResponse().fromJsonString(jsonString, options);
711
+ }
712
+ static equals(a, b) {
713
+ return proto3.util.equals(InternalModifyApiKeyResponse, a, b);
714
+ }
715
+ }
716
+ InternalModifyApiKeyResponse.runtime = proto3;
717
+ InternalModifyApiKeyResponse.typeName = "uniswap.platformservice.v1.InternalModifyApiKeyResponse";
718
+ InternalModifyApiKeyResponse.fields = proto3.util.newFieldList(() => []);
@@ -121,13 +121,20 @@ export declare class InitSessionResponse extends Message<InitSessionResponse> {
121
121
  */
122
122
  needChallenge: boolean;
123
123
  /**
124
- * extra information in json client needs to know to complete the bot detection mechanism
124
+ * DEPRECATED: Use uniswap_identifier instead
125
125
  *
126
- * @generated from field: map<string, string> extra = 4;
126
+ * @generated from field: map<string, string> extra = 4 [deprecated = true];
127
+ * @deprecated
127
128
  */
128
129
  extra: {
129
130
  [key: string]: string;
130
131
  };
132
+ /**
133
+ * The persona ID associated with this session (previously in extra["uniswapIdentifier"])
134
+ *
135
+ * @generated from field: optional string uniswap_identifier = 5;
136
+ */
137
+ uniswapIdentifier?: string;
131
138
  constructor(data?: PartialMessage<InitSessionResponse>);
132
139
  static readonly runtime: typeof proto3;
133
140
  static readonly typeName = "uniswap.platformservice.v1.InitSessionResponse";
@@ -165,9 +165,10 @@ export class InitSessionResponse extends Message {
165
165
  */
166
166
  this.needChallenge = false;
167
167
  /**
168
- * extra information in json client needs to know to complete the bot detection mechanism
168
+ * DEPRECATED: Use uniswap_identifier instead
169
169
  *
170
- * @generated from field: map<string, string> extra = 4;
170
+ * @generated from field: map<string, string> extra = 4 [deprecated = true];
171
+ * @deprecated
171
172
  */
172
173
  this.extra = {};
173
174
  proto3.util.initPartial(data, this);
@@ -192,6 +193,7 @@ InitSessionResponse.fields = proto3.util.newFieldList(() => [
192
193
  { no: 2, name: "device_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
193
194
  { no: 3, name: "need_challenge", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
194
195
  { no: 4, name: "extra", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
196
+ { no: 5, name: "uniswap_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
195
197
  ]);
196
198
  /**
197
199
  * @generated from message uniswap.platformservice.v1.GetChallengeTypesRequest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-platform-service",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },