@uniswap/client-platform-service 0.0.5 → 0.0.6
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.
- package/dist/uniswap/platformservice/v1/apiKeyService_pb.d.ts +5 -1
- package/dist/uniswap/platformservice/v1/apiKeyService_pb.js +7 -2
- package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.d.ts +28 -0
- package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.js +32 -0
- package/dist/uniswap/platformservice/v1/personaService_connect.d.ts +28 -0
- package/dist/uniswap/platformservice/v1/personaService_connect.js +32 -0
- package/dist/uniswap/platformservice/v1/personaService_pb.d.ts +95 -0
- package/dist/uniswap/platformservice/v1/personaService_pb.js +157 -0
- package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.d.ts +92 -0
- package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.js +96 -0
- package/dist/uniswap/{sessionservice → platformservice}/v1/sessionService_connect.d.ts +27 -16
- package/dist/uniswap/{sessionservice → platformservice}/v1/sessionService_connect.js +28 -17
- package/dist/uniswap/{sessionservice → platformservice}/v1/sessionService_pb.d.ts +106 -50
- package/dist/uniswap/{sessionservice → platformservice}/v1/sessionService_pb.js +139 -57
- package/dist/uniswap/platformservice/v1/workerService-WorkerService_connectquery.d.ts +14 -1
- package/dist/uniswap/platformservice/v1/workerService-WorkerService_connectquery.js +14 -1
- package/dist/uniswap/platformservice/v1/workerService_connect.d.ts +10 -1
- package/dist/uniswap/platformservice/v1/workerService_connect.js +10 -1
- package/dist/uniswap/platformservice/v1/workerService_pb.d.ts +88 -0
- package/dist/uniswap/platformservice/v1/workerService_pb.js +128 -0
- package/package.json +1 -1
- package/dist/uniswap/sessionservice/v1/sessionService-SessionService_connectquery.d.ts +0 -77
- package/dist/uniswap/sessionservice/v1/sessionService-SessionService_connectquery.js +0 -81
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
|
-
// @generated from file uniswap/
|
|
2
|
+
// @generated from file uniswap/platformservice/v1/sessionService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
6
|
/**
|
|
7
|
-
* @generated from enum uniswap.
|
|
7
|
+
* @generated from enum uniswap.platformservice.v1.BotDetectionType
|
|
8
8
|
*/
|
|
9
9
|
export var BotDetectionType;
|
|
10
10
|
(function (BotDetectionType) {
|
|
@@ -24,15 +24,15 @@ export var BotDetectionType;
|
|
|
24
24
|
BotDetectionType[BotDetectionType["BOT_DETECTION_HASHCASH"] = 2] = "BOT_DETECTION_HASHCASH";
|
|
25
25
|
})(BotDetectionType || (BotDetectionType = {}));
|
|
26
26
|
// Retrieve enum metadata with: proto3.getEnumType(BotDetectionType)
|
|
27
|
-
proto3.util.setEnumType(BotDetectionType, "uniswap.
|
|
27
|
+
proto3.util.setEnumType(BotDetectionType, "uniswap.platformservice.v1.BotDetectionType", [
|
|
28
28
|
{ no: 0, name: "BOT_DETECTION_NONE" },
|
|
29
29
|
{ no: 1, name: "BOT_DETECTION_TURNSTILE" },
|
|
30
30
|
{ no: 2, name: "BOT_DETECTION_HASHCASH" },
|
|
31
31
|
]);
|
|
32
32
|
/**
|
|
33
|
-
* @generated from message uniswap.
|
|
33
|
+
* @generated from message uniswap.platformservice.v1.IntrospectSessionRequest
|
|
34
34
|
*/
|
|
35
|
-
export class
|
|
35
|
+
export class IntrospectSessionRequest extends Message {
|
|
36
36
|
constructor(data) {
|
|
37
37
|
super();
|
|
38
38
|
/**
|
|
@@ -44,27 +44,27 @@ export class IntrospectRequest extends Message {
|
|
|
44
44
|
proto3.util.initPartial(data, this);
|
|
45
45
|
}
|
|
46
46
|
static fromBinary(bytes, options) {
|
|
47
|
-
return new
|
|
47
|
+
return new IntrospectSessionRequest().fromBinary(bytes, options);
|
|
48
48
|
}
|
|
49
49
|
static fromJson(jsonValue, options) {
|
|
50
|
-
return new
|
|
50
|
+
return new IntrospectSessionRequest().fromJson(jsonValue, options);
|
|
51
51
|
}
|
|
52
52
|
static fromJsonString(jsonString, options) {
|
|
53
|
-
return new
|
|
53
|
+
return new IntrospectSessionRequest().fromJsonString(jsonString, options);
|
|
54
54
|
}
|
|
55
55
|
static equals(a, b) {
|
|
56
|
-
return proto3.util.equals(
|
|
56
|
+
return proto3.util.equals(IntrospectSessionRequest, a, b);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
IntrospectSessionRequest.runtime = proto3;
|
|
60
|
+
IntrospectSessionRequest.typeName = "uniswap.platformservice.v1.IntrospectSessionRequest";
|
|
61
|
+
IntrospectSessionRequest.fields = proto3.util.newFieldList(() => [
|
|
62
62
|
{ no: 1, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
63
63
|
]);
|
|
64
64
|
/**
|
|
65
|
-
* @generated from message uniswap.
|
|
65
|
+
* @generated from message uniswap.platformservice.v1.IntrospectSessionResponse
|
|
66
66
|
*/
|
|
67
|
-
export class
|
|
67
|
+
export class IntrospectSessionResponse extends Message {
|
|
68
68
|
constructor(data) {
|
|
69
69
|
super();
|
|
70
70
|
/**
|
|
@@ -81,30 +81,35 @@ export class IntrospectResponse extends Message {
|
|
|
81
81
|
* @generated from field: int32 score = 4;
|
|
82
82
|
*/
|
|
83
83
|
this.score = 0;
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: string persona_id = 5;
|
|
86
|
+
*/
|
|
87
|
+
this.personaId = "";
|
|
84
88
|
proto3.util.initPartial(data, this);
|
|
85
89
|
}
|
|
86
90
|
static fromBinary(bytes, options) {
|
|
87
|
-
return new
|
|
91
|
+
return new IntrospectSessionResponse().fromBinary(bytes, options);
|
|
88
92
|
}
|
|
89
93
|
static fromJson(jsonValue, options) {
|
|
90
|
-
return new
|
|
94
|
+
return new IntrospectSessionResponse().fromJson(jsonValue, options);
|
|
91
95
|
}
|
|
92
96
|
static fromJsonString(jsonString, options) {
|
|
93
|
-
return new
|
|
97
|
+
return new IntrospectSessionResponse().fromJsonString(jsonString, options);
|
|
94
98
|
}
|
|
95
99
|
static equals(a, b) {
|
|
96
|
-
return proto3.util.equals(
|
|
100
|
+
return proto3.util.equals(IntrospectSessionResponse, a, b);
|
|
97
101
|
}
|
|
98
102
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
103
|
+
IntrospectSessionResponse.runtime = proto3;
|
|
104
|
+
IntrospectSessionResponse.typeName = "uniswap.platformservice.v1.IntrospectSessionResponse";
|
|
105
|
+
IntrospectSessionResponse.fields = proto3.util.newFieldList(() => [
|
|
102
106
|
{ no: 1, name: "wrapped_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
103
107
|
{ no: 2, name: "result", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
104
108
|
{ no: 4, name: "score", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
109
|
+
{ no: 5, name: "persona_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
105
110
|
]);
|
|
106
111
|
/**
|
|
107
|
-
* @generated from message uniswap.
|
|
112
|
+
* @generated from message uniswap.platformservice.v1.InitSessionRequest
|
|
108
113
|
*/
|
|
109
114
|
export class InitSessionRequest extends Message {
|
|
110
115
|
constructor(data) {
|
|
@@ -125,22 +130,22 @@ export class InitSessionRequest extends Message {
|
|
|
125
130
|
}
|
|
126
131
|
}
|
|
127
132
|
InitSessionRequest.runtime = proto3;
|
|
128
|
-
InitSessionRequest.typeName = "uniswap.
|
|
133
|
+
InitSessionRequest.typeName = "uniswap.platformservice.v1.InitSessionRequest";
|
|
129
134
|
InitSessionRequest.fields = proto3.util.newFieldList(() => []);
|
|
130
135
|
/**
|
|
131
|
-
* @generated from message uniswap.
|
|
136
|
+
* @generated from message uniswap.platformservice.v1.InitSessionResponse
|
|
132
137
|
*/
|
|
133
138
|
export class InitSessionResponse extends Message {
|
|
134
139
|
constructor(data) {
|
|
135
140
|
super();
|
|
136
141
|
/**
|
|
137
|
-
* @generated from field: bool need_challenge =
|
|
142
|
+
* @generated from field: bool need_challenge = 3;
|
|
138
143
|
*/
|
|
139
144
|
this.needChallenge = false;
|
|
140
145
|
/**
|
|
141
146
|
* extra information in json client needs to know to complete the bot detection mechanism
|
|
142
147
|
*
|
|
143
|
-
* @generated from field: map<string, string> extra =
|
|
148
|
+
* @generated from field: map<string, string> extra = 4;
|
|
144
149
|
*/
|
|
145
150
|
this.extra = {};
|
|
146
151
|
proto3.util.initPartial(data, this);
|
|
@@ -159,14 +164,15 @@ export class InitSessionResponse extends Message {
|
|
|
159
164
|
}
|
|
160
165
|
}
|
|
161
166
|
InitSessionResponse.runtime = proto3;
|
|
162
|
-
InitSessionResponse.typeName = "uniswap.
|
|
167
|
+
InitSessionResponse.typeName = "uniswap.platformservice.v1.InitSessionResponse";
|
|
163
168
|
InitSessionResponse.fields = proto3.util.newFieldList(() => [
|
|
164
169
|
{ no: 1, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
165
|
-
{ no: 2, name: "
|
|
166
|
-
{ no: 3, name: "
|
|
170
|
+
{ no: 2, name: "device_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
171
|
+
{ no: 3, name: "need_challenge", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
172
|
+
{ no: 4, name: "extra", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
167
173
|
]);
|
|
168
174
|
/**
|
|
169
|
-
* @generated from message uniswap.
|
|
175
|
+
* @generated from message uniswap.platformservice.v1.ChallengeRequest
|
|
170
176
|
*/
|
|
171
177
|
export class ChallengeRequest extends Message {
|
|
172
178
|
constructor(data) {
|
|
@@ -187,20 +193,30 @@ export class ChallengeRequest extends Message {
|
|
|
187
193
|
}
|
|
188
194
|
}
|
|
189
195
|
ChallengeRequest.runtime = proto3;
|
|
190
|
-
ChallengeRequest.typeName = "uniswap.
|
|
196
|
+
ChallengeRequest.typeName = "uniswap.platformservice.v1.ChallengeRequest";
|
|
191
197
|
ChallengeRequest.fields = proto3.util.newFieldList(() => []);
|
|
192
198
|
/**
|
|
193
|
-
* @generated from message uniswap.
|
|
199
|
+
* @generated from message uniswap.platformservice.v1.ChallengeResponse
|
|
194
200
|
*/
|
|
195
201
|
export class ChallengeResponse extends Message {
|
|
196
202
|
constructor(data) {
|
|
197
203
|
super();
|
|
204
|
+
/**
|
|
205
|
+
* @generated from field: string challenge_id = 1;
|
|
206
|
+
*/
|
|
207
|
+
this.challengeId = "";
|
|
198
208
|
/**
|
|
199
209
|
* the bot detection mechanism client should use
|
|
200
210
|
*
|
|
201
|
-
* @generated from field: uniswap.
|
|
211
|
+
* @generated from field: uniswap.platformservice.v1.BotDetectionType bot_detection_type = 2;
|
|
202
212
|
*/
|
|
203
213
|
this.botDetectionType = BotDetectionType.BOT_DETECTION_NONE;
|
|
214
|
+
/**
|
|
215
|
+
* contains extra data for challenge data
|
|
216
|
+
*
|
|
217
|
+
* @generated from field: map<string, string> extra = 3;
|
|
218
|
+
*/
|
|
219
|
+
this.extra = {};
|
|
204
220
|
proto3.util.initPartial(data, this);
|
|
205
221
|
}
|
|
206
222
|
static fromBinary(bytes, options) {
|
|
@@ -217,15 +233,16 @@ export class ChallengeResponse extends Message {
|
|
|
217
233
|
}
|
|
218
234
|
}
|
|
219
235
|
ChallengeResponse.runtime = proto3;
|
|
220
|
-
ChallengeResponse.typeName = "uniswap.
|
|
236
|
+
ChallengeResponse.typeName = "uniswap.platformservice.v1.ChallengeResponse";
|
|
221
237
|
ChallengeResponse.fields = proto3.util.newFieldList(() => [
|
|
222
|
-
{ no: 1, name: "
|
|
238
|
+
{ no: 1, name: "challenge_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
223
239
|
{ no: 2, name: "bot_detection_type", kind: "enum", T: proto3.getEnumType(BotDetectionType) },
|
|
240
|
+
{ no: 3, name: "extra", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
224
241
|
]);
|
|
225
242
|
/**
|
|
226
|
-
* @generated from message uniswap.
|
|
243
|
+
* @generated from message uniswap.platformservice.v1.VerifyRequest
|
|
227
244
|
*/
|
|
228
|
-
export class
|
|
245
|
+
export class VerifyRequest extends Message {
|
|
229
246
|
constructor(data) {
|
|
230
247
|
super();
|
|
231
248
|
/**
|
|
@@ -234,52 +251,63 @@ export class UpgradeSessionRequest extends Message {
|
|
|
234
251
|
* @generated from field: string solution = 1;
|
|
235
252
|
*/
|
|
236
253
|
this.solution = "";
|
|
254
|
+
/**
|
|
255
|
+
* @generated from field: string challenge_id = 2;
|
|
256
|
+
*/
|
|
257
|
+
this.challengeId = "";
|
|
237
258
|
proto3.util.initPartial(data, this);
|
|
238
259
|
}
|
|
239
260
|
static fromBinary(bytes, options) {
|
|
240
|
-
return new
|
|
261
|
+
return new VerifyRequest().fromBinary(bytes, options);
|
|
241
262
|
}
|
|
242
263
|
static fromJson(jsonValue, options) {
|
|
243
|
-
return new
|
|
264
|
+
return new VerifyRequest().fromJson(jsonValue, options);
|
|
244
265
|
}
|
|
245
266
|
static fromJsonString(jsonString, options) {
|
|
246
|
-
return new
|
|
267
|
+
return new VerifyRequest().fromJsonString(jsonString, options);
|
|
247
268
|
}
|
|
248
269
|
static equals(a, b) {
|
|
249
|
-
return proto3.util.equals(
|
|
270
|
+
return proto3.util.equals(VerifyRequest, a, b);
|
|
250
271
|
}
|
|
251
272
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
273
|
+
VerifyRequest.runtime = proto3;
|
|
274
|
+
VerifyRequest.typeName = "uniswap.platformservice.v1.VerifyRequest";
|
|
275
|
+
VerifyRequest.fields = proto3.util.newFieldList(() => [
|
|
255
276
|
{ no: 1, name: "solution", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
277
|
+
{ no: 2, name: "challenge_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
256
278
|
]);
|
|
257
279
|
/**
|
|
258
|
-
* @generated from message uniswap.
|
|
280
|
+
* @generated from message uniswap.platformservice.v1.VerifyResponse
|
|
259
281
|
*/
|
|
260
|
-
export class
|
|
282
|
+
export class VerifyResponse extends Message {
|
|
261
283
|
constructor(data) {
|
|
262
284
|
super();
|
|
285
|
+
/**
|
|
286
|
+
* @generated from field: bool retry = 1;
|
|
287
|
+
*/
|
|
288
|
+
this.retry = false;
|
|
263
289
|
proto3.util.initPartial(data, this);
|
|
264
290
|
}
|
|
265
291
|
static fromBinary(bytes, options) {
|
|
266
|
-
return new
|
|
292
|
+
return new VerifyResponse().fromBinary(bytes, options);
|
|
267
293
|
}
|
|
268
294
|
static fromJson(jsonValue, options) {
|
|
269
|
-
return new
|
|
295
|
+
return new VerifyResponse().fromJson(jsonValue, options);
|
|
270
296
|
}
|
|
271
297
|
static fromJsonString(jsonString, options) {
|
|
272
|
-
return new
|
|
298
|
+
return new VerifyResponse().fromJsonString(jsonString, options);
|
|
273
299
|
}
|
|
274
300
|
static equals(a, b) {
|
|
275
|
-
return proto3.util.equals(
|
|
301
|
+
return proto3.util.equals(VerifyResponse, a, b);
|
|
276
302
|
}
|
|
277
303
|
}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
304
|
+
VerifyResponse.runtime = proto3;
|
|
305
|
+
VerifyResponse.typeName = "uniswap.platformservice.v1.VerifyResponse";
|
|
306
|
+
VerifyResponse.fields = proto3.util.newFieldList(() => [
|
|
307
|
+
{ no: 1, name: "retry", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
308
|
+
]);
|
|
281
309
|
/**
|
|
282
|
-
* @generated from message uniswap.
|
|
310
|
+
* @generated from message uniswap.platformservice.v1.DeleteSessionRequest
|
|
283
311
|
*/
|
|
284
312
|
export class DeleteSessionRequest extends Message {
|
|
285
313
|
constructor(data) {
|
|
@@ -300,10 +328,10 @@ export class DeleteSessionRequest extends Message {
|
|
|
300
328
|
}
|
|
301
329
|
}
|
|
302
330
|
DeleteSessionRequest.runtime = proto3;
|
|
303
|
-
DeleteSessionRequest.typeName = "uniswap.
|
|
331
|
+
DeleteSessionRequest.typeName = "uniswap.platformservice.v1.DeleteSessionRequest";
|
|
304
332
|
DeleteSessionRequest.fields = proto3.util.newFieldList(() => []);
|
|
305
333
|
/**
|
|
306
|
-
* @generated from message uniswap.
|
|
334
|
+
* @generated from message uniswap.platformservice.v1.DeleteSessionResponse
|
|
307
335
|
*/
|
|
308
336
|
export class DeleteSessionResponse extends Message {
|
|
309
337
|
constructor(data) {
|
|
@@ -324,5 +352,59 @@ export class DeleteSessionResponse extends Message {
|
|
|
324
352
|
}
|
|
325
353
|
}
|
|
326
354
|
DeleteSessionResponse.runtime = proto3;
|
|
327
|
-
DeleteSessionResponse.typeName = "uniswap.
|
|
355
|
+
DeleteSessionResponse.typeName = "uniswap.platformservice.v1.DeleteSessionResponse";
|
|
328
356
|
DeleteSessionResponse.fields = proto3.util.newFieldList(() => []);
|
|
357
|
+
/**
|
|
358
|
+
* @generated from message uniswap.platformservice.v1.UpdateSessionRequest
|
|
359
|
+
*/
|
|
360
|
+
export class UpdateSessionRequest extends Message {
|
|
361
|
+
constructor(data) {
|
|
362
|
+
super();
|
|
363
|
+
/**
|
|
364
|
+
* @generated from field: string wallet_addr = 1;
|
|
365
|
+
*/
|
|
366
|
+
this.walletAddr = "";
|
|
367
|
+
proto3.util.initPartial(data, this);
|
|
368
|
+
}
|
|
369
|
+
static fromBinary(bytes, options) {
|
|
370
|
+
return new UpdateSessionRequest().fromBinary(bytes, options);
|
|
371
|
+
}
|
|
372
|
+
static fromJson(jsonValue, options) {
|
|
373
|
+
return new UpdateSessionRequest().fromJson(jsonValue, options);
|
|
374
|
+
}
|
|
375
|
+
static fromJsonString(jsonString, options) {
|
|
376
|
+
return new UpdateSessionRequest().fromJsonString(jsonString, options);
|
|
377
|
+
}
|
|
378
|
+
static equals(a, b) {
|
|
379
|
+
return proto3.util.equals(UpdateSessionRequest, a, b);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
UpdateSessionRequest.runtime = proto3;
|
|
383
|
+
UpdateSessionRequest.typeName = "uniswap.platformservice.v1.UpdateSessionRequest";
|
|
384
|
+
UpdateSessionRequest.fields = proto3.util.newFieldList(() => [
|
|
385
|
+
{ no: 1, name: "wallet_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
386
|
+
]);
|
|
387
|
+
/**
|
|
388
|
+
* @generated from message uniswap.platformservice.v1.UpdateSessionResponse
|
|
389
|
+
*/
|
|
390
|
+
export class UpdateSessionResponse extends Message {
|
|
391
|
+
constructor(data) {
|
|
392
|
+
super();
|
|
393
|
+
proto3.util.initPartial(data, this);
|
|
394
|
+
}
|
|
395
|
+
static fromBinary(bytes, options) {
|
|
396
|
+
return new UpdateSessionResponse().fromBinary(bytes, options);
|
|
397
|
+
}
|
|
398
|
+
static fromJson(jsonValue, options) {
|
|
399
|
+
return new UpdateSessionResponse().fromJson(jsonValue, options);
|
|
400
|
+
}
|
|
401
|
+
static fromJsonString(jsonString, options) {
|
|
402
|
+
return new UpdateSessionResponse().fromJsonString(jsonString, options);
|
|
403
|
+
}
|
|
404
|
+
static equals(a, b) {
|
|
405
|
+
return proto3.util.equals(UpdateSessionResponse, a, b);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
UpdateSessionResponse.runtime = proto3;
|
|
409
|
+
UpdateSessionResponse.typeName = "uniswap.platformservice.v1.UpdateSessionResponse";
|
|
410
|
+
UpdateSessionResponse.fields = proto3.util.newFieldList(() => []);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { LocationUpdateS3Request, LocationUpdateS3Response } from "./workerService_pb.js";
|
|
2
|
+
import { LocationUpdateS3Request, LocationUpdateS3Response, MigrateExistingApikeyRequest, MigrateExistingApikeyResponse } from "./workerService_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc uniswap.platformservice.v1.WorkerService.UpdateLocationS3
|
|
5
5
|
*/
|
|
@@ -13,3 +13,16 @@ export declare const updateLocationS3: {
|
|
|
13
13
|
readonly typeName: "uniswap.platformservice.v1.WorkerService";
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* @generated from rpc uniswap.platformservice.v1.WorkerService.MigrateExistingApikey
|
|
18
|
+
*/
|
|
19
|
+
export declare const migrateExistingApikey: {
|
|
20
|
+
readonly localName: "migrateExistingApikey";
|
|
21
|
+
readonly name: "MigrateExistingApikey";
|
|
22
|
+
readonly kind: MethodKind.Unary;
|
|
23
|
+
readonly I: typeof MigrateExistingApikeyRequest;
|
|
24
|
+
readonly O: typeof MigrateExistingApikeyResponse;
|
|
25
|
+
readonly service: {
|
|
26
|
+
readonly typeName: "uniswap.platformservice.v1.WorkerService";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { LocationUpdateS3Request, LocationUpdateS3Response } from "./workerService_pb.js";
|
|
6
|
+
import { LocationUpdateS3Request, LocationUpdateS3Response, MigrateExistingApikeyRequest, MigrateExistingApikeyResponse } from "./workerService_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc uniswap.platformservice.v1.WorkerService.UpdateLocationS3
|
|
9
9
|
*/
|
|
@@ -17,3 +17,16 @@ export const updateLocationS3 = {
|
|
|
17
17
|
typeName: "uniswap.platformservice.v1.WorkerService"
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* @generated from rpc uniswap.platformservice.v1.WorkerService.MigrateExistingApikey
|
|
22
|
+
*/
|
|
23
|
+
export const migrateExistingApikey = {
|
|
24
|
+
localName: "migrateExistingApikey",
|
|
25
|
+
name: "MigrateExistingApikey",
|
|
26
|
+
kind: MethodKind.Unary,
|
|
27
|
+
I: MigrateExistingApikeyRequest,
|
|
28
|
+
O: MigrateExistingApikeyResponse,
|
|
29
|
+
service: {
|
|
30
|
+
typeName: "uniswap.platformservice.v1.WorkerService"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LocationUpdateS3Request, LocationUpdateS3Response } from "./workerService_pb.js";
|
|
1
|
+
import { LocationUpdateS3Request, LocationUpdateS3Response, MigrateExistingApikeyRequest, MigrateExistingApikeyResponse } from "./workerService_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* Service definition
|
|
@@ -17,5 +17,14 @@ export declare const WorkerService: {
|
|
|
17
17
|
readonly O: typeof LocationUpdateS3Response;
|
|
18
18
|
readonly kind: MethodKind.Unary;
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* @generated from rpc uniswap.platformservice.v1.WorkerService.MigrateExistingApikey
|
|
22
|
+
*/
|
|
23
|
+
readonly migrateExistingApikey: {
|
|
24
|
+
readonly name: "MigrateExistingApikey";
|
|
25
|
+
readonly I: typeof MigrateExistingApikeyRequest;
|
|
26
|
+
readonly O: typeof MigrateExistingApikeyResponse;
|
|
27
|
+
readonly kind: MethodKind.Unary;
|
|
28
|
+
};
|
|
20
29
|
};
|
|
21
30
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file uniswap/platformservice/v1/workerService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { LocationUpdateS3Request, LocationUpdateS3Response } from "./workerService_pb.js";
|
|
5
|
+
import { LocationUpdateS3Request, LocationUpdateS3Response, MigrateExistingApikeyRequest, MigrateExistingApikeyResponse } from "./workerService_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* Service definition
|
|
@@ -21,5 +21,14 @@ export const WorkerService = {
|
|
|
21
21
|
O: LocationUpdateS3Response,
|
|
22
22
|
kind: MethodKind.Unary,
|
|
23
23
|
},
|
|
24
|
+
/**
|
|
25
|
+
* @generated from rpc uniswap.platformservice.v1.WorkerService.MigrateExistingApikey
|
|
26
|
+
*/
|
|
27
|
+
migrateExistingApikey: {
|
|
28
|
+
name: "MigrateExistingApikey",
|
|
29
|
+
I: MigrateExistingApikeyRequest,
|
|
30
|
+
O: MigrateExistingApikeyResponse,
|
|
31
|
+
kind: MethodKind.Unary,
|
|
32
|
+
},
|
|
24
33
|
}
|
|
25
34
|
};
|
|
@@ -28,3 +28,91 @@ export declare class LocationUpdateS3Response extends Message<LocationUpdateS3Re
|
|
|
28
28
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LocationUpdateS3Response;
|
|
29
29
|
static equals(a: LocationUpdateS3Response | PlainMessage<LocationUpdateS3Response> | undefined, b: LocationUpdateS3Response | PlainMessage<LocationUpdateS3Response> | undefined): boolean;
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Rate limit configuration
|
|
33
|
+
*
|
|
34
|
+
* @generated from message uniswap.platformservice.v1.WorkerRateLimitConfig
|
|
35
|
+
*/
|
|
36
|
+
export declare class WorkerRateLimitConfig extends Message<WorkerRateLimitConfig> {
|
|
37
|
+
/**
|
|
38
|
+
* period_ms defines the time window in milliseconds for the rate limit
|
|
39
|
+
* For example: 60000 means a 1-minute window
|
|
40
|
+
* If you want to limit "X requests per minute", set this to 60000
|
|
41
|
+
*
|
|
42
|
+
* @generated from field: int32 period_ms = 1;
|
|
43
|
+
*/
|
|
44
|
+
periodMs: number;
|
|
45
|
+
/**
|
|
46
|
+
* units defines the number of requests allowed per time period
|
|
47
|
+
* For example: if period_ms=60000 and units=100, this means
|
|
48
|
+
* the user can make 100 requests every minute
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: int32 units = 2;
|
|
51
|
+
*/
|
|
52
|
+
units: number;
|
|
53
|
+
/**
|
|
54
|
+
* capacity defines the maximum number of requests that can be made at once
|
|
55
|
+
* This acts as a hard limit on burst requests
|
|
56
|
+
* For example: if capacity=200, even if the user hasn't made requests for a while,
|
|
57
|
+
* they can't make more than 200 requests at once
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: int32 capacity = 3;
|
|
60
|
+
*/
|
|
61
|
+
capacity: number;
|
|
62
|
+
constructor(data?: PartialMessage<WorkerRateLimitConfig>);
|
|
63
|
+
static readonly runtime: typeof proto3;
|
|
64
|
+
static readonly typeName = "uniswap.platformservice.v1.WorkerRateLimitConfig";
|
|
65
|
+
static readonly fields: FieldList;
|
|
66
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerRateLimitConfig;
|
|
67
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerRateLimitConfig;
|
|
68
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerRateLimitConfig;
|
|
69
|
+
static equals(a: WorkerRateLimitConfig | PlainMessage<WorkerRateLimitConfig> | undefined, b: WorkerRateLimitConfig | PlainMessage<WorkerRateLimitConfig> | undefined): boolean;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Create API Key request/response
|
|
73
|
+
*
|
|
74
|
+
* @generated from message uniswap.platformservice.v1.MigrateExistingApikeyRequest
|
|
75
|
+
*/
|
|
76
|
+
export declare class MigrateExistingApikeyRequest extends Message<MigrateExistingApikeyRequest> {
|
|
77
|
+
/**
|
|
78
|
+
* @generated from field: string api_key = 1;
|
|
79
|
+
*/
|
|
80
|
+
apiKey: string;
|
|
81
|
+
/**
|
|
82
|
+
* @generated from field: string name = 2;
|
|
83
|
+
*/
|
|
84
|
+
name: string;
|
|
85
|
+
/**
|
|
86
|
+
* @generated from field: string creation_date = 3;
|
|
87
|
+
*/
|
|
88
|
+
creationDate: string;
|
|
89
|
+
/**
|
|
90
|
+
* @generated from field: uniswap.platformservice.v1.WorkerRateLimitConfig rate_limit_config = 4;
|
|
91
|
+
*/
|
|
92
|
+
rateLimitConfig?: WorkerRateLimitConfig;
|
|
93
|
+
constructor(data?: PartialMessage<MigrateExistingApikeyRequest>);
|
|
94
|
+
static readonly runtime: typeof proto3;
|
|
95
|
+
static readonly typeName = "uniswap.platformservice.v1.MigrateExistingApikeyRequest";
|
|
96
|
+
static readonly fields: FieldList;
|
|
97
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MigrateExistingApikeyRequest;
|
|
98
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MigrateExistingApikeyRequest;
|
|
99
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MigrateExistingApikeyRequest;
|
|
100
|
+
static equals(a: MigrateExistingApikeyRequest | PlainMessage<MigrateExistingApikeyRequest> | undefined, b: MigrateExistingApikeyRequest | PlainMessage<MigrateExistingApikeyRequest> | undefined): boolean;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* @generated from message uniswap.platformservice.v1.MigrateExistingApikeyResponse
|
|
104
|
+
*/
|
|
105
|
+
export declare class MigrateExistingApikeyResponse extends Message<MigrateExistingApikeyResponse> {
|
|
106
|
+
/**
|
|
107
|
+
* @generated from field: string hashed_api_key = 1;
|
|
108
|
+
*/
|
|
109
|
+
hashedApiKey: string;
|
|
110
|
+
constructor(data?: PartialMessage<MigrateExistingApikeyResponse>);
|
|
111
|
+
static readonly runtime: typeof proto3;
|
|
112
|
+
static readonly typeName = "uniswap.platformservice.v1.MigrateExistingApikeyResponse";
|
|
113
|
+
static readonly fields: FieldList;
|
|
114
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MigrateExistingApikeyResponse;
|
|
115
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MigrateExistingApikeyResponse;
|
|
116
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MigrateExistingApikeyResponse;
|
|
117
|
+
static equals(a: MigrateExistingApikeyResponse | PlainMessage<MigrateExistingApikeyResponse> | undefined, b: MigrateExistingApikeyResponse | PlainMessage<MigrateExistingApikeyResponse> | undefined): boolean;
|
|
118
|
+
}
|