@uniswap/client-platform-service 0.0.4 → 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/platformservice/v1/sessionService_connect.d.ts +76 -0
- package/dist/uniswap/platformservice/v1/sessionService_connect.js +80 -0
- package/dist/uniswap/platformservice/v1/sessionService_pb.d.ts +261 -0
- package/dist/uniswap/platformservice/v1/sessionService_pb.js +410 -0
- 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
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/platformservice/v1/sessionService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from enum uniswap.platformservice.v1.BotDetectionType
|
|
8
|
+
*/
|
|
9
|
+
export var BotDetectionType;
|
|
10
|
+
(function (BotDetectionType) {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: BOT_DETECTION_NONE = 0;
|
|
13
|
+
*/
|
|
14
|
+
BotDetectionType[BotDetectionType["BOT_DETECTION_NONE"] = 0] = "BOT_DETECTION_NONE";
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: BOT_DETECTION_TURNSTILE = 1;
|
|
17
|
+
*/
|
|
18
|
+
BotDetectionType[BotDetectionType["BOT_DETECTION_TURNSTILE"] = 1] = "BOT_DETECTION_TURNSTILE";
|
|
19
|
+
/**
|
|
20
|
+
* client should receive challenge in the format of json
|
|
21
|
+
*
|
|
22
|
+
* @generated from enum value: BOT_DETECTION_HASHCASH = 2;
|
|
23
|
+
*/
|
|
24
|
+
BotDetectionType[BotDetectionType["BOT_DETECTION_HASHCASH"] = 2] = "BOT_DETECTION_HASHCASH";
|
|
25
|
+
})(BotDetectionType || (BotDetectionType = {}));
|
|
26
|
+
// Retrieve enum metadata with: proto3.getEnumType(BotDetectionType)
|
|
27
|
+
proto3.util.setEnumType(BotDetectionType, "uniswap.platformservice.v1.BotDetectionType", [
|
|
28
|
+
{ no: 0, name: "BOT_DETECTION_NONE" },
|
|
29
|
+
{ no: 1, name: "BOT_DETECTION_TURNSTILE" },
|
|
30
|
+
{ no: 2, name: "BOT_DETECTION_HASHCASH" },
|
|
31
|
+
]);
|
|
32
|
+
/**
|
|
33
|
+
* @generated from message uniswap.platformservice.v1.IntrospectSessionRequest
|
|
34
|
+
*/
|
|
35
|
+
export class IntrospectSessionRequest extends Message {
|
|
36
|
+
constructor(data) {
|
|
37
|
+
super();
|
|
38
|
+
/**
|
|
39
|
+
* only Entry Gate way will call, therefore in the request body
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: string session_id = 1;
|
|
42
|
+
*/
|
|
43
|
+
this.sessionId = "";
|
|
44
|
+
proto3.util.initPartial(data, this);
|
|
45
|
+
}
|
|
46
|
+
static fromBinary(bytes, options) {
|
|
47
|
+
return new IntrospectSessionRequest().fromBinary(bytes, options);
|
|
48
|
+
}
|
|
49
|
+
static fromJson(jsonValue, options) {
|
|
50
|
+
return new IntrospectSessionRequest().fromJson(jsonValue, options);
|
|
51
|
+
}
|
|
52
|
+
static fromJsonString(jsonString, options) {
|
|
53
|
+
return new IntrospectSessionRequest().fromJsonString(jsonString, options);
|
|
54
|
+
}
|
|
55
|
+
static equals(a, b) {
|
|
56
|
+
return proto3.util.equals(IntrospectSessionRequest, a, b);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
IntrospectSessionRequest.runtime = proto3;
|
|
60
|
+
IntrospectSessionRequest.typeName = "uniswap.platformservice.v1.IntrospectSessionRequest";
|
|
61
|
+
IntrospectSessionRequest.fields = proto3.util.newFieldList(() => [
|
|
62
|
+
{ no: 1, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
63
|
+
]);
|
|
64
|
+
/**
|
|
65
|
+
* @generated from message uniswap.platformservice.v1.IntrospectSessionResponse
|
|
66
|
+
*/
|
|
67
|
+
export class IntrospectSessionResponse extends Message {
|
|
68
|
+
constructor(data) {
|
|
69
|
+
super();
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: string wrapped_id = 1;
|
|
72
|
+
*/
|
|
73
|
+
this.wrappedId = "";
|
|
74
|
+
/**
|
|
75
|
+
* @generated from field: bool result = 2;
|
|
76
|
+
*/
|
|
77
|
+
this.result = false;
|
|
78
|
+
/**
|
|
79
|
+
* string user_id = 3; // will add back when user_id is available
|
|
80
|
+
*
|
|
81
|
+
* @generated from field: int32 score = 4;
|
|
82
|
+
*/
|
|
83
|
+
this.score = 0;
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: string persona_id = 5;
|
|
86
|
+
*/
|
|
87
|
+
this.personaId = "";
|
|
88
|
+
proto3.util.initPartial(data, this);
|
|
89
|
+
}
|
|
90
|
+
static fromBinary(bytes, options) {
|
|
91
|
+
return new IntrospectSessionResponse().fromBinary(bytes, options);
|
|
92
|
+
}
|
|
93
|
+
static fromJson(jsonValue, options) {
|
|
94
|
+
return new IntrospectSessionResponse().fromJson(jsonValue, options);
|
|
95
|
+
}
|
|
96
|
+
static fromJsonString(jsonString, options) {
|
|
97
|
+
return new IntrospectSessionResponse().fromJsonString(jsonString, options);
|
|
98
|
+
}
|
|
99
|
+
static equals(a, b) {
|
|
100
|
+
return proto3.util.equals(IntrospectSessionResponse, a, b);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
IntrospectSessionResponse.runtime = proto3;
|
|
104
|
+
IntrospectSessionResponse.typeName = "uniswap.platformservice.v1.IntrospectSessionResponse";
|
|
105
|
+
IntrospectSessionResponse.fields = proto3.util.newFieldList(() => [
|
|
106
|
+
{ no: 1, name: "wrapped_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
107
|
+
{ no: 2, name: "result", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
108
|
+
{ no: 4, name: "score", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
109
|
+
{ no: 5, name: "persona_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
110
|
+
]);
|
|
111
|
+
/**
|
|
112
|
+
* @generated from message uniswap.platformservice.v1.InitSessionRequest
|
|
113
|
+
*/
|
|
114
|
+
export class InitSessionRequest extends Message {
|
|
115
|
+
constructor(data) {
|
|
116
|
+
super();
|
|
117
|
+
proto3.util.initPartial(data, this);
|
|
118
|
+
}
|
|
119
|
+
static fromBinary(bytes, options) {
|
|
120
|
+
return new InitSessionRequest().fromBinary(bytes, options);
|
|
121
|
+
}
|
|
122
|
+
static fromJson(jsonValue, options) {
|
|
123
|
+
return new InitSessionRequest().fromJson(jsonValue, options);
|
|
124
|
+
}
|
|
125
|
+
static fromJsonString(jsonString, options) {
|
|
126
|
+
return new InitSessionRequest().fromJsonString(jsonString, options);
|
|
127
|
+
}
|
|
128
|
+
static equals(a, b) {
|
|
129
|
+
return proto3.util.equals(InitSessionRequest, a, b);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
InitSessionRequest.runtime = proto3;
|
|
133
|
+
InitSessionRequest.typeName = "uniswap.platformservice.v1.InitSessionRequest";
|
|
134
|
+
InitSessionRequest.fields = proto3.util.newFieldList(() => []);
|
|
135
|
+
/**
|
|
136
|
+
* @generated from message uniswap.platformservice.v1.InitSessionResponse
|
|
137
|
+
*/
|
|
138
|
+
export class InitSessionResponse extends Message {
|
|
139
|
+
constructor(data) {
|
|
140
|
+
super();
|
|
141
|
+
/**
|
|
142
|
+
* @generated from field: bool need_challenge = 3;
|
|
143
|
+
*/
|
|
144
|
+
this.needChallenge = false;
|
|
145
|
+
/**
|
|
146
|
+
* extra information in json client needs to know to complete the bot detection mechanism
|
|
147
|
+
*
|
|
148
|
+
* @generated from field: map<string, string> extra = 4;
|
|
149
|
+
*/
|
|
150
|
+
this.extra = {};
|
|
151
|
+
proto3.util.initPartial(data, this);
|
|
152
|
+
}
|
|
153
|
+
static fromBinary(bytes, options) {
|
|
154
|
+
return new InitSessionResponse().fromBinary(bytes, options);
|
|
155
|
+
}
|
|
156
|
+
static fromJson(jsonValue, options) {
|
|
157
|
+
return new InitSessionResponse().fromJson(jsonValue, options);
|
|
158
|
+
}
|
|
159
|
+
static fromJsonString(jsonString, options) {
|
|
160
|
+
return new InitSessionResponse().fromJsonString(jsonString, options);
|
|
161
|
+
}
|
|
162
|
+
static equals(a, b) {
|
|
163
|
+
return proto3.util.equals(InitSessionResponse, a, b);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
InitSessionResponse.runtime = proto3;
|
|
167
|
+
InitSessionResponse.typeName = "uniswap.platformservice.v1.InitSessionResponse";
|
|
168
|
+
InitSessionResponse.fields = proto3.util.newFieldList(() => [
|
|
169
|
+
{ no: 1, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
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 */ } },
|
|
173
|
+
]);
|
|
174
|
+
/**
|
|
175
|
+
* @generated from message uniswap.platformservice.v1.ChallengeRequest
|
|
176
|
+
*/
|
|
177
|
+
export class ChallengeRequest extends Message {
|
|
178
|
+
constructor(data) {
|
|
179
|
+
super();
|
|
180
|
+
proto3.util.initPartial(data, this);
|
|
181
|
+
}
|
|
182
|
+
static fromBinary(bytes, options) {
|
|
183
|
+
return new ChallengeRequest().fromBinary(bytes, options);
|
|
184
|
+
}
|
|
185
|
+
static fromJson(jsonValue, options) {
|
|
186
|
+
return new ChallengeRequest().fromJson(jsonValue, options);
|
|
187
|
+
}
|
|
188
|
+
static fromJsonString(jsonString, options) {
|
|
189
|
+
return new ChallengeRequest().fromJsonString(jsonString, options);
|
|
190
|
+
}
|
|
191
|
+
static equals(a, b) {
|
|
192
|
+
return proto3.util.equals(ChallengeRequest, a, b);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
ChallengeRequest.runtime = proto3;
|
|
196
|
+
ChallengeRequest.typeName = "uniswap.platformservice.v1.ChallengeRequest";
|
|
197
|
+
ChallengeRequest.fields = proto3.util.newFieldList(() => []);
|
|
198
|
+
/**
|
|
199
|
+
* @generated from message uniswap.platformservice.v1.ChallengeResponse
|
|
200
|
+
*/
|
|
201
|
+
export class ChallengeResponse extends Message {
|
|
202
|
+
constructor(data) {
|
|
203
|
+
super();
|
|
204
|
+
/**
|
|
205
|
+
* @generated from field: string challenge_id = 1;
|
|
206
|
+
*/
|
|
207
|
+
this.challengeId = "";
|
|
208
|
+
/**
|
|
209
|
+
* the bot detection mechanism client should use
|
|
210
|
+
*
|
|
211
|
+
* @generated from field: uniswap.platformservice.v1.BotDetectionType bot_detection_type = 2;
|
|
212
|
+
*/
|
|
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 = {};
|
|
220
|
+
proto3.util.initPartial(data, this);
|
|
221
|
+
}
|
|
222
|
+
static fromBinary(bytes, options) {
|
|
223
|
+
return new ChallengeResponse().fromBinary(bytes, options);
|
|
224
|
+
}
|
|
225
|
+
static fromJson(jsonValue, options) {
|
|
226
|
+
return new ChallengeResponse().fromJson(jsonValue, options);
|
|
227
|
+
}
|
|
228
|
+
static fromJsonString(jsonString, options) {
|
|
229
|
+
return new ChallengeResponse().fromJsonString(jsonString, options);
|
|
230
|
+
}
|
|
231
|
+
static equals(a, b) {
|
|
232
|
+
return proto3.util.equals(ChallengeResponse, a, b);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
ChallengeResponse.runtime = proto3;
|
|
236
|
+
ChallengeResponse.typeName = "uniswap.platformservice.v1.ChallengeResponse";
|
|
237
|
+
ChallengeResponse.fields = proto3.util.newFieldList(() => [
|
|
238
|
+
{ no: 1, name: "challenge_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
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 */ } },
|
|
241
|
+
]);
|
|
242
|
+
/**
|
|
243
|
+
* @generated from message uniswap.platformservice.v1.VerifyRequest
|
|
244
|
+
*/
|
|
245
|
+
export class VerifyRequest extends Message {
|
|
246
|
+
constructor(data) {
|
|
247
|
+
super();
|
|
248
|
+
/**
|
|
249
|
+
* e.g., bot detection token or hashcash solution
|
|
250
|
+
*
|
|
251
|
+
* @generated from field: string solution = 1;
|
|
252
|
+
*/
|
|
253
|
+
this.solution = "";
|
|
254
|
+
/**
|
|
255
|
+
* @generated from field: string challenge_id = 2;
|
|
256
|
+
*/
|
|
257
|
+
this.challengeId = "";
|
|
258
|
+
proto3.util.initPartial(data, this);
|
|
259
|
+
}
|
|
260
|
+
static fromBinary(bytes, options) {
|
|
261
|
+
return new VerifyRequest().fromBinary(bytes, options);
|
|
262
|
+
}
|
|
263
|
+
static fromJson(jsonValue, options) {
|
|
264
|
+
return new VerifyRequest().fromJson(jsonValue, options);
|
|
265
|
+
}
|
|
266
|
+
static fromJsonString(jsonString, options) {
|
|
267
|
+
return new VerifyRequest().fromJsonString(jsonString, options);
|
|
268
|
+
}
|
|
269
|
+
static equals(a, b) {
|
|
270
|
+
return proto3.util.equals(VerifyRequest, a, b);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
VerifyRequest.runtime = proto3;
|
|
274
|
+
VerifyRequest.typeName = "uniswap.platformservice.v1.VerifyRequest";
|
|
275
|
+
VerifyRequest.fields = proto3.util.newFieldList(() => [
|
|
276
|
+
{ no: 1, name: "solution", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
277
|
+
{ no: 2, name: "challenge_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
278
|
+
]);
|
|
279
|
+
/**
|
|
280
|
+
* @generated from message uniswap.platformservice.v1.VerifyResponse
|
|
281
|
+
*/
|
|
282
|
+
export class VerifyResponse extends Message {
|
|
283
|
+
constructor(data) {
|
|
284
|
+
super();
|
|
285
|
+
/**
|
|
286
|
+
* @generated from field: bool retry = 1;
|
|
287
|
+
*/
|
|
288
|
+
this.retry = false;
|
|
289
|
+
proto3.util.initPartial(data, this);
|
|
290
|
+
}
|
|
291
|
+
static fromBinary(bytes, options) {
|
|
292
|
+
return new VerifyResponse().fromBinary(bytes, options);
|
|
293
|
+
}
|
|
294
|
+
static fromJson(jsonValue, options) {
|
|
295
|
+
return new VerifyResponse().fromJson(jsonValue, options);
|
|
296
|
+
}
|
|
297
|
+
static fromJsonString(jsonString, options) {
|
|
298
|
+
return new VerifyResponse().fromJsonString(jsonString, options);
|
|
299
|
+
}
|
|
300
|
+
static equals(a, b) {
|
|
301
|
+
return proto3.util.equals(VerifyResponse, a, b);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
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
|
+
]);
|
|
309
|
+
/**
|
|
310
|
+
* @generated from message uniswap.platformservice.v1.DeleteSessionRequest
|
|
311
|
+
*/
|
|
312
|
+
export class DeleteSessionRequest extends Message {
|
|
313
|
+
constructor(data) {
|
|
314
|
+
super();
|
|
315
|
+
proto3.util.initPartial(data, this);
|
|
316
|
+
}
|
|
317
|
+
static fromBinary(bytes, options) {
|
|
318
|
+
return new DeleteSessionRequest().fromBinary(bytes, options);
|
|
319
|
+
}
|
|
320
|
+
static fromJson(jsonValue, options) {
|
|
321
|
+
return new DeleteSessionRequest().fromJson(jsonValue, options);
|
|
322
|
+
}
|
|
323
|
+
static fromJsonString(jsonString, options) {
|
|
324
|
+
return new DeleteSessionRequest().fromJsonString(jsonString, options);
|
|
325
|
+
}
|
|
326
|
+
static equals(a, b) {
|
|
327
|
+
return proto3.util.equals(DeleteSessionRequest, a, b);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
DeleteSessionRequest.runtime = proto3;
|
|
331
|
+
DeleteSessionRequest.typeName = "uniswap.platformservice.v1.DeleteSessionRequest";
|
|
332
|
+
DeleteSessionRequest.fields = proto3.util.newFieldList(() => []);
|
|
333
|
+
/**
|
|
334
|
+
* @generated from message uniswap.platformservice.v1.DeleteSessionResponse
|
|
335
|
+
*/
|
|
336
|
+
export class DeleteSessionResponse extends Message {
|
|
337
|
+
constructor(data) {
|
|
338
|
+
super();
|
|
339
|
+
proto3.util.initPartial(data, this);
|
|
340
|
+
}
|
|
341
|
+
static fromBinary(bytes, options) {
|
|
342
|
+
return new DeleteSessionResponse().fromBinary(bytes, options);
|
|
343
|
+
}
|
|
344
|
+
static fromJson(jsonValue, options) {
|
|
345
|
+
return new DeleteSessionResponse().fromJson(jsonValue, options);
|
|
346
|
+
}
|
|
347
|
+
static fromJsonString(jsonString, options) {
|
|
348
|
+
return new DeleteSessionResponse().fromJsonString(jsonString, options);
|
|
349
|
+
}
|
|
350
|
+
static equals(a, b) {
|
|
351
|
+
return proto3.util.equals(DeleteSessionResponse, a, b);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
DeleteSessionResponse.runtime = proto3;
|
|
355
|
+
DeleteSessionResponse.typeName = "uniswap.platformservice.v1.DeleteSessionResponse";
|
|
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
|
+
}
|