@uniswap/client-platform-service 0.0.5 → 0.0.7
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 +124 -0
- package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.js +128 -0
- package/dist/uniswap/platformservice/v1/sessionService_connect.d.ts +100 -0
- package/dist/uniswap/platformservice/v1/sessionService_connect.js +104 -0
- package/dist/uniswap/platformservice/v1/sessionService_pb.d.ts +379 -0
- package/dist/uniswap/platformservice/v1/sessionService_pb.js +550 -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
- package/dist/uniswap/sessionservice/v1/sessionService-SessionService_connectquery.d.ts +0 -77
- package/dist/uniswap/sessionservice/v1/sessionService-SessionService_connectquery.js +0 -81
- package/dist/uniswap/sessionservice/v1/sessionService_connect.d.ts +0 -65
- package/dist/uniswap/sessionservice/v1/sessionService_connect.js +0 -69
- package/dist/uniswap/sessionservice/v1/sessionService_pb.d.ts +0 -205
- package/dist/uniswap/sessionservice/v1/sessionService_pb.js +0 -328
|
@@ -0,0 +1,550 @@
|
|
|
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.ChallengeType
|
|
8
|
+
*/
|
|
9
|
+
export var ChallengeType;
|
|
10
|
+
(function (ChallengeType) {
|
|
11
|
+
/**
|
|
12
|
+
* Bot detection mechanisms
|
|
13
|
+
*
|
|
14
|
+
* @generated from enum value: CHALLENGE_TYPE_UNSPECIFIED = 0;
|
|
15
|
+
*/
|
|
16
|
+
ChallengeType[ChallengeType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
17
|
+
/**
|
|
18
|
+
* @generated from enum value: CHALLENGE_TYPE_TURNSTILE = 1;
|
|
19
|
+
*/
|
|
20
|
+
ChallengeType[ChallengeType["TURNSTILE"] = 1] = "TURNSTILE";
|
|
21
|
+
/**
|
|
22
|
+
* @generated from enum value: CHALLENGE_TYPE_HASHCASH = 2;
|
|
23
|
+
*/
|
|
24
|
+
ChallengeType[ChallengeType["HASHCASH"] = 2] = "HASHCASH";
|
|
25
|
+
/**
|
|
26
|
+
* Login Authentication
|
|
27
|
+
*
|
|
28
|
+
* @generated from enum value: CHALLENGE_TYPE_GOOGLE = 3;
|
|
29
|
+
*/
|
|
30
|
+
ChallengeType[ChallengeType["GOOGLE"] = 3] = "GOOGLE";
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum value: CHALLENGE_TYPE_SLACK = 4;
|
|
33
|
+
*/
|
|
34
|
+
ChallengeType[ChallengeType["SLACK"] = 4] = "SLACK";
|
|
35
|
+
/**
|
|
36
|
+
* @generated from enum value: CHALLENGE_TYPE_GITHUB = 5;
|
|
37
|
+
*/
|
|
38
|
+
ChallengeType[ChallengeType["GITHUB"] = 5] = "GITHUB";
|
|
39
|
+
/**
|
|
40
|
+
* @generated from enum value: CHALLENGE_TYPE_MAIL = 6;
|
|
41
|
+
*/
|
|
42
|
+
ChallengeType[ChallengeType["MAIL"] = 6] = "MAIL";
|
|
43
|
+
})(ChallengeType || (ChallengeType = {}));
|
|
44
|
+
// Retrieve enum metadata with: proto3.getEnumType(ChallengeType)
|
|
45
|
+
proto3.util.setEnumType(ChallengeType, "uniswap.platformservice.v1.ChallengeType", [
|
|
46
|
+
{ no: 0, name: "CHALLENGE_TYPE_UNSPECIFIED" },
|
|
47
|
+
{ no: 1, name: "CHALLENGE_TYPE_TURNSTILE" },
|
|
48
|
+
{ no: 2, name: "CHALLENGE_TYPE_HASHCASH" },
|
|
49
|
+
{ no: 3, name: "CHALLENGE_TYPE_GOOGLE" },
|
|
50
|
+
{ no: 4, name: "CHALLENGE_TYPE_SLACK" },
|
|
51
|
+
{ no: 5, name: "CHALLENGE_TYPE_GITHUB" },
|
|
52
|
+
{ no: 6, name: "CHALLENGE_TYPE_MAIL" },
|
|
53
|
+
]);
|
|
54
|
+
/**
|
|
55
|
+
* @generated from message uniswap.platformservice.v1.IntrospectSessionRequest
|
|
56
|
+
*/
|
|
57
|
+
export class IntrospectSessionRequest extends Message {
|
|
58
|
+
constructor(data) {
|
|
59
|
+
super();
|
|
60
|
+
/**
|
|
61
|
+
* only Entry Gate way will call, therefore in the request body
|
|
62
|
+
*
|
|
63
|
+
* @generated from field: string session_id = 1;
|
|
64
|
+
*/
|
|
65
|
+
this.sessionId = "";
|
|
66
|
+
proto3.util.initPartial(data, this);
|
|
67
|
+
}
|
|
68
|
+
static fromBinary(bytes, options) {
|
|
69
|
+
return new IntrospectSessionRequest().fromBinary(bytes, options);
|
|
70
|
+
}
|
|
71
|
+
static fromJson(jsonValue, options) {
|
|
72
|
+
return new IntrospectSessionRequest().fromJson(jsonValue, options);
|
|
73
|
+
}
|
|
74
|
+
static fromJsonString(jsonString, options) {
|
|
75
|
+
return new IntrospectSessionRequest().fromJsonString(jsonString, options);
|
|
76
|
+
}
|
|
77
|
+
static equals(a, b) {
|
|
78
|
+
return proto3.util.equals(IntrospectSessionRequest, a, b);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
IntrospectSessionRequest.runtime = proto3;
|
|
82
|
+
IntrospectSessionRequest.typeName = "uniswap.platformservice.v1.IntrospectSessionRequest";
|
|
83
|
+
IntrospectSessionRequest.fields = proto3.util.newFieldList(() => [
|
|
84
|
+
{ no: 1, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
85
|
+
]);
|
|
86
|
+
/**
|
|
87
|
+
* @generated from message uniswap.platformservice.v1.IntrospectSessionResponse
|
|
88
|
+
*/
|
|
89
|
+
export class IntrospectSessionResponse extends Message {
|
|
90
|
+
constructor(data) {
|
|
91
|
+
super();
|
|
92
|
+
/**
|
|
93
|
+
* @generated from field: string wrapped_id = 1;
|
|
94
|
+
*/
|
|
95
|
+
this.wrappedId = "";
|
|
96
|
+
/**
|
|
97
|
+
* @generated from field: bool result = 2;
|
|
98
|
+
*/
|
|
99
|
+
this.result = false;
|
|
100
|
+
/**
|
|
101
|
+
* string user_id = 3; // will add back when user_id is available
|
|
102
|
+
*
|
|
103
|
+
* @generated from field: int32 score = 4;
|
|
104
|
+
*/
|
|
105
|
+
this.score = 0;
|
|
106
|
+
/**
|
|
107
|
+
* @generated from field: string persona_id = 5;
|
|
108
|
+
*/
|
|
109
|
+
this.personaId = "";
|
|
110
|
+
proto3.util.initPartial(data, this);
|
|
111
|
+
}
|
|
112
|
+
static fromBinary(bytes, options) {
|
|
113
|
+
return new IntrospectSessionResponse().fromBinary(bytes, options);
|
|
114
|
+
}
|
|
115
|
+
static fromJson(jsonValue, options) {
|
|
116
|
+
return new IntrospectSessionResponse().fromJson(jsonValue, options);
|
|
117
|
+
}
|
|
118
|
+
static fromJsonString(jsonString, options) {
|
|
119
|
+
return new IntrospectSessionResponse().fromJsonString(jsonString, options);
|
|
120
|
+
}
|
|
121
|
+
static equals(a, b) {
|
|
122
|
+
return proto3.util.equals(IntrospectSessionResponse, a, b);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
IntrospectSessionResponse.runtime = proto3;
|
|
126
|
+
IntrospectSessionResponse.typeName = "uniswap.platformservice.v1.IntrospectSessionResponse";
|
|
127
|
+
IntrospectSessionResponse.fields = proto3.util.newFieldList(() => [
|
|
128
|
+
{ no: 1, name: "wrapped_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
129
|
+
{ no: 2, name: "result", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
130
|
+
{ no: 4, name: "score", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
131
|
+
{ no: 5, name: "persona_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
132
|
+
]);
|
|
133
|
+
/**
|
|
134
|
+
* @generated from message uniswap.platformservice.v1.InitSessionRequest
|
|
135
|
+
*/
|
|
136
|
+
export class InitSessionRequest extends Message {
|
|
137
|
+
constructor(data) {
|
|
138
|
+
super();
|
|
139
|
+
proto3.util.initPartial(data, this);
|
|
140
|
+
}
|
|
141
|
+
static fromBinary(bytes, options) {
|
|
142
|
+
return new InitSessionRequest().fromBinary(bytes, options);
|
|
143
|
+
}
|
|
144
|
+
static fromJson(jsonValue, options) {
|
|
145
|
+
return new InitSessionRequest().fromJson(jsonValue, options);
|
|
146
|
+
}
|
|
147
|
+
static fromJsonString(jsonString, options) {
|
|
148
|
+
return new InitSessionRequest().fromJsonString(jsonString, options);
|
|
149
|
+
}
|
|
150
|
+
static equals(a, b) {
|
|
151
|
+
return proto3.util.equals(InitSessionRequest, a, b);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
InitSessionRequest.runtime = proto3;
|
|
155
|
+
InitSessionRequest.typeName = "uniswap.platformservice.v1.InitSessionRequest";
|
|
156
|
+
InitSessionRequest.fields = proto3.util.newFieldList(() => []);
|
|
157
|
+
/**
|
|
158
|
+
* @generated from message uniswap.platformservice.v1.InitSessionResponse
|
|
159
|
+
*/
|
|
160
|
+
export class InitSessionResponse extends Message {
|
|
161
|
+
constructor(data) {
|
|
162
|
+
super();
|
|
163
|
+
/**
|
|
164
|
+
* @generated from field: bool need_challenge = 3;
|
|
165
|
+
*/
|
|
166
|
+
this.needChallenge = false;
|
|
167
|
+
/**
|
|
168
|
+
* extra information in json client needs to know to complete the bot detection mechanism
|
|
169
|
+
*
|
|
170
|
+
* @generated from field: map<string, string> extra = 4;
|
|
171
|
+
*/
|
|
172
|
+
this.extra = {};
|
|
173
|
+
proto3.util.initPartial(data, this);
|
|
174
|
+
}
|
|
175
|
+
static fromBinary(bytes, options) {
|
|
176
|
+
return new InitSessionResponse().fromBinary(bytes, options);
|
|
177
|
+
}
|
|
178
|
+
static fromJson(jsonValue, options) {
|
|
179
|
+
return new InitSessionResponse().fromJson(jsonValue, options);
|
|
180
|
+
}
|
|
181
|
+
static fromJsonString(jsonString, options) {
|
|
182
|
+
return new InitSessionResponse().fromJsonString(jsonString, options);
|
|
183
|
+
}
|
|
184
|
+
static equals(a, b) {
|
|
185
|
+
return proto3.util.equals(InitSessionResponse, a, b);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
InitSessionResponse.runtime = proto3;
|
|
189
|
+
InitSessionResponse.typeName = "uniswap.platformservice.v1.InitSessionResponse";
|
|
190
|
+
InitSessionResponse.fields = proto3.util.newFieldList(() => [
|
|
191
|
+
{ no: 1, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
192
|
+
{ no: 2, name: "device_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
193
|
+
{ no: 3, name: "need_challenge", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
194
|
+
{ no: 4, name: "extra", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
195
|
+
]);
|
|
196
|
+
/**
|
|
197
|
+
* @generated from message uniswap.platformservice.v1.GetChallengeTypesRequest
|
|
198
|
+
*/
|
|
199
|
+
export class GetChallengeTypesRequest extends Message {
|
|
200
|
+
constructor(data) {
|
|
201
|
+
super();
|
|
202
|
+
proto3.util.initPartial(data, this);
|
|
203
|
+
}
|
|
204
|
+
static fromBinary(bytes, options) {
|
|
205
|
+
return new GetChallengeTypesRequest().fromBinary(bytes, options);
|
|
206
|
+
}
|
|
207
|
+
static fromJson(jsonValue, options) {
|
|
208
|
+
return new GetChallengeTypesRequest().fromJson(jsonValue, options);
|
|
209
|
+
}
|
|
210
|
+
static fromJsonString(jsonString, options) {
|
|
211
|
+
return new GetChallengeTypesRequest().fromJsonString(jsonString, options);
|
|
212
|
+
}
|
|
213
|
+
static equals(a, b) {
|
|
214
|
+
return proto3.util.equals(GetChallengeTypesRequest, a, b);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
GetChallengeTypesRequest.runtime = proto3;
|
|
218
|
+
GetChallengeTypesRequest.typeName = "uniswap.platformservice.v1.GetChallengeTypesRequest";
|
|
219
|
+
GetChallengeTypesRequest.fields = proto3.util.newFieldList(() => []);
|
|
220
|
+
/**
|
|
221
|
+
* @generated from message uniswap.platformservice.v1.GetChallengeTypesResponse
|
|
222
|
+
*/
|
|
223
|
+
export class GetChallengeTypesResponse extends Message {
|
|
224
|
+
constructor(data) {
|
|
225
|
+
super();
|
|
226
|
+
/**
|
|
227
|
+
* @generated from field: repeated uniswap.platformservice.v1.ChallengeType challenge_types = 1;
|
|
228
|
+
*/
|
|
229
|
+
this.challengeTypes = [];
|
|
230
|
+
proto3.util.initPartial(data, this);
|
|
231
|
+
}
|
|
232
|
+
static fromBinary(bytes, options) {
|
|
233
|
+
return new GetChallengeTypesResponse().fromBinary(bytes, options);
|
|
234
|
+
}
|
|
235
|
+
static fromJson(jsonValue, options) {
|
|
236
|
+
return new GetChallengeTypesResponse().fromJson(jsonValue, options);
|
|
237
|
+
}
|
|
238
|
+
static fromJsonString(jsonString, options) {
|
|
239
|
+
return new GetChallengeTypesResponse().fromJsonString(jsonString, options);
|
|
240
|
+
}
|
|
241
|
+
static equals(a, b) {
|
|
242
|
+
return proto3.util.equals(GetChallengeTypesResponse, a, b);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
GetChallengeTypesResponse.runtime = proto3;
|
|
246
|
+
GetChallengeTypesResponse.typeName = "uniswap.platformservice.v1.GetChallengeTypesResponse";
|
|
247
|
+
GetChallengeTypesResponse.fields = proto3.util.newFieldList(() => [
|
|
248
|
+
{ no: 1, name: "challenge_types", kind: "enum", T: proto3.getEnumType(ChallengeType), repeated: true },
|
|
249
|
+
]);
|
|
250
|
+
/**
|
|
251
|
+
* @generated from message uniswap.platformservice.v1.ChallengeRequest
|
|
252
|
+
*/
|
|
253
|
+
export class ChallengeRequest extends Message {
|
|
254
|
+
constructor(data) {
|
|
255
|
+
super();
|
|
256
|
+
proto3.util.initPartial(data, this);
|
|
257
|
+
}
|
|
258
|
+
static fromBinary(bytes, options) {
|
|
259
|
+
return new ChallengeRequest().fromBinary(bytes, options);
|
|
260
|
+
}
|
|
261
|
+
static fromJson(jsonValue, options) {
|
|
262
|
+
return new ChallengeRequest().fromJson(jsonValue, options);
|
|
263
|
+
}
|
|
264
|
+
static fromJsonString(jsonString, options) {
|
|
265
|
+
return new ChallengeRequest().fromJsonString(jsonString, options);
|
|
266
|
+
}
|
|
267
|
+
static equals(a, b) {
|
|
268
|
+
return proto3.util.equals(ChallengeRequest, a, b);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
ChallengeRequest.runtime = proto3;
|
|
272
|
+
ChallengeRequest.typeName = "uniswap.platformservice.v1.ChallengeRequest";
|
|
273
|
+
ChallengeRequest.fields = proto3.util.newFieldList(() => [
|
|
274
|
+
{ no: 1, name: "challenge_type", kind: "enum", T: proto3.getEnumType(ChallengeType), opt: true },
|
|
275
|
+
{ no: 2, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
276
|
+
{ no: 3, name: "redirect_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
277
|
+
]);
|
|
278
|
+
/**
|
|
279
|
+
* @generated from message uniswap.platformservice.v1.ChallengeResponse
|
|
280
|
+
*/
|
|
281
|
+
export class ChallengeResponse extends Message {
|
|
282
|
+
constructor(data) {
|
|
283
|
+
super();
|
|
284
|
+
/**
|
|
285
|
+
* @generated from field: string challenge_id = 1;
|
|
286
|
+
*/
|
|
287
|
+
this.challengeId = "";
|
|
288
|
+
/**
|
|
289
|
+
* The challenge type being enforced for
|
|
290
|
+
*
|
|
291
|
+
* @generated from field: uniswap.platformservice.v1.ChallengeType challenge_type = 2;
|
|
292
|
+
*/
|
|
293
|
+
this.challengeType = ChallengeType.UNSPECIFIED;
|
|
294
|
+
/**
|
|
295
|
+
* Extra data for challenge (e.g., hashcash difficulty, turnstile site key)
|
|
296
|
+
*
|
|
297
|
+
* @generated from field: map<string, string> extra = 3;
|
|
298
|
+
*/
|
|
299
|
+
this.extra = {};
|
|
300
|
+
proto3.util.initPartial(data, this);
|
|
301
|
+
}
|
|
302
|
+
static fromBinary(bytes, options) {
|
|
303
|
+
return new ChallengeResponse().fromBinary(bytes, options);
|
|
304
|
+
}
|
|
305
|
+
static fromJson(jsonValue, options) {
|
|
306
|
+
return new ChallengeResponse().fromJson(jsonValue, options);
|
|
307
|
+
}
|
|
308
|
+
static fromJsonString(jsonString, options) {
|
|
309
|
+
return new ChallengeResponse().fromJsonString(jsonString, options);
|
|
310
|
+
}
|
|
311
|
+
static equals(a, b) {
|
|
312
|
+
return proto3.util.equals(ChallengeResponse, a, b);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
ChallengeResponse.runtime = proto3;
|
|
316
|
+
ChallengeResponse.typeName = "uniswap.platformservice.v1.ChallengeResponse";
|
|
317
|
+
ChallengeResponse.fields = proto3.util.newFieldList(() => [
|
|
318
|
+
{ no: 1, name: "challenge_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
319
|
+
{ no: 2, name: "challenge_type", kind: "enum", T: proto3.getEnumType(ChallengeType) },
|
|
320
|
+
{ no: 3, name: "extra", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
321
|
+
{ no: 4, name: "authorize_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
322
|
+
]);
|
|
323
|
+
/**
|
|
324
|
+
* @generated from message uniswap.platformservice.v1.VerifyRequest
|
|
325
|
+
*/
|
|
326
|
+
export class VerifyRequest extends Message {
|
|
327
|
+
constructor(data) {
|
|
328
|
+
super();
|
|
329
|
+
/**
|
|
330
|
+
* Bot detection token, hashcash solution, or OTP code. Oauth code == solution.
|
|
331
|
+
*
|
|
332
|
+
* @generated from field: string solution = 1;
|
|
333
|
+
*/
|
|
334
|
+
this.solution = "";
|
|
335
|
+
/**
|
|
336
|
+
* Oauth state = challenge_id
|
|
337
|
+
*
|
|
338
|
+
* @generated from field: string challenge_id = 2;
|
|
339
|
+
*/
|
|
340
|
+
this.challengeId = "";
|
|
341
|
+
/**
|
|
342
|
+
* Challenge type (must match the one used in Challenge). If not set, server infers from challenge_id
|
|
343
|
+
*
|
|
344
|
+
* @generated from field: uniswap.platformservice.v1.ChallengeType type = 3;
|
|
345
|
+
*/
|
|
346
|
+
this.type = ChallengeType.UNSPECIFIED;
|
|
347
|
+
proto3.util.initPartial(data, this);
|
|
348
|
+
}
|
|
349
|
+
static fromBinary(bytes, options) {
|
|
350
|
+
return new VerifyRequest().fromBinary(bytes, options);
|
|
351
|
+
}
|
|
352
|
+
static fromJson(jsonValue, options) {
|
|
353
|
+
return new VerifyRequest().fromJson(jsonValue, options);
|
|
354
|
+
}
|
|
355
|
+
static fromJsonString(jsonString, options) {
|
|
356
|
+
return new VerifyRequest().fromJsonString(jsonString, options);
|
|
357
|
+
}
|
|
358
|
+
static equals(a, b) {
|
|
359
|
+
return proto3.util.equals(VerifyRequest, a, b);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
VerifyRequest.runtime = proto3;
|
|
363
|
+
VerifyRequest.typeName = "uniswap.platformservice.v1.VerifyRequest";
|
|
364
|
+
VerifyRequest.fields = proto3.util.newFieldList(() => [
|
|
365
|
+
{ no: 1, name: "solution", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
366
|
+
{ no: 2, name: "challenge_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
367
|
+
{ no: 3, name: "type", kind: "enum", T: proto3.getEnumType(ChallengeType) },
|
|
368
|
+
]);
|
|
369
|
+
/**
|
|
370
|
+
* @generated from message uniswap.platformservice.v1.VerifyResponse
|
|
371
|
+
*/
|
|
372
|
+
export class VerifyResponse extends Message {
|
|
373
|
+
constructor(data) {
|
|
374
|
+
super();
|
|
375
|
+
/**
|
|
376
|
+
* @generated from field: bool retry = 1;
|
|
377
|
+
*/
|
|
378
|
+
this.retry = false;
|
|
379
|
+
proto3.util.initPartial(data, this);
|
|
380
|
+
}
|
|
381
|
+
static fromBinary(bytes, options) {
|
|
382
|
+
return new VerifyResponse().fromBinary(bytes, options);
|
|
383
|
+
}
|
|
384
|
+
static fromJson(jsonValue, options) {
|
|
385
|
+
return new VerifyResponse().fromJson(jsonValue, options);
|
|
386
|
+
}
|
|
387
|
+
static fromJsonString(jsonString, options) {
|
|
388
|
+
return new VerifyResponse().fromJsonString(jsonString, options);
|
|
389
|
+
}
|
|
390
|
+
static equals(a, b) {
|
|
391
|
+
return proto3.util.equals(VerifyResponse, a, b);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
VerifyResponse.runtime = proto3;
|
|
395
|
+
VerifyResponse.typeName = "uniswap.platformservice.v1.VerifyResponse";
|
|
396
|
+
VerifyResponse.fields = proto3.util.newFieldList(() => [
|
|
397
|
+
{ no: 1, name: "retry", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
398
|
+
{ no: 2, name: "wait_seconds", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
399
|
+
{ no: 3, name: "redirect_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
400
|
+
]);
|
|
401
|
+
/**
|
|
402
|
+
* @generated from message uniswap.platformservice.v1.DeleteSessionRequest
|
|
403
|
+
*/
|
|
404
|
+
export class DeleteSessionRequest extends Message {
|
|
405
|
+
constructor(data) {
|
|
406
|
+
super();
|
|
407
|
+
proto3.util.initPartial(data, this);
|
|
408
|
+
}
|
|
409
|
+
static fromBinary(bytes, options) {
|
|
410
|
+
return new DeleteSessionRequest().fromBinary(bytes, options);
|
|
411
|
+
}
|
|
412
|
+
static fromJson(jsonValue, options) {
|
|
413
|
+
return new DeleteSessionRequest().fromJson(jsonValue, options);
|
|
414
|
+
}
|
|
415
|
+
static fromJsonString(jsonString, options) {
|
|
416
|
+
return new DeleteSessionRequest().fromJsonString(jsonString, options);
|
|
417
|
+
}
|
|
418
|
+
static equals(a, b) {
|
|
419
|
+
return proto3.util.equals(DeleteSessionRequest, a, b);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
DeleteSessionRequest.runtime = proto3;
|
|
423
|
+
DeleteSessionRequest.typeName = "uniswap.platformservice.v1.DeleteSessionRequest";
|
|
424
|
+
DeleteSessionRequest.fields = proto3.util.newFieldList(() => []);
|
|
425
|
+
/**
|
|
426
|
+
* @generated from message uniswap.platformservice.v1.DeleteSessionResponse
|
|
427
|
+
*/
|
|
428
|
+
export class DeleteSessionResponse extends Message {
|
|
429
|
+
constructor(data) {
|
|
430
|
+
super();
|
|
431
|
+
proto3.util.initPartial(data, this);
|
|
432
|
+
}
|
|
433
|
+
static fromBinary(bytes, options) {
|
|
434
|
+
return new DeleteSessionResponse().fromBinary(bytes, options);
|
|
435
|
+
}
|
|
436
|
+
static fromJson(jsonValue, options) {
|
|
437
|
+
return new DeleteSessionResponse().fromJson(jsonValue, options);
|
|
438
|
+
}
|
|
439
|
+
static fromJsonString(jsonString, options) {
|
|
440
|
+
return new DeleteSessionResponse().fromJsonString(jsonString, options);
|
|
441
|
+
}
|
|
442
|
+
static equals(a, b) {
|
|
443
|
+
return proto3.util.equals(DeleteSessionResponse, a, b);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
DeleteSessionResponse.runtime = proto3;
|
|
447
|
+
DeleteSessionResponse.typeName = "uniswap.platformservice.v1.DeleteSessionResponse";
|
|
448
|
+
DeleteSessionResponse.fields = proto3.util.newFieldList(() => []);
|
|
449
|
+
/**
|
|
450
|
+
* @generated from message uniswap.platformservice.v1.UpdateSessionRequest
|
|
451
|
+
*/
|
|
452
|
+
export class UpdateSessionRequest extends Message {
|
|
453
|
+
constructor(data) {
|
|
454
|
+
super();
|
|
455
|
+
/**
|
|
456
|
+
* @generated from field: string wallet_addr = 1;
|
|
457
|
+
*/
|
|
458
|
+
this.walletAddr = "";
|
|
459
|
+
proto3.util.initPartial(data, this);
|
|
460
|
+
}
|
|
461
|
+
static fromBinary(bytes, options) {
|
|
462
|
+
return new UpdateSessionRequest().fromBinary(bytes, options);
|
|
463
|
+
}
|
|
464
|
+
static fromJson(jsonValue, options) {
|
|
465
|
+
return new UpdateSessionRequest().fromJson(jsonValue, options);
|
|
466
|
+
}
|
|
467
|
+
static fromJsonString(jsonString, options) {
|
|
468
|
+
return new UpdateSessionRequest().fromJsonString(jsonString, options);
|
|
469
|
+
}
|
|
470
|
+
static equals(a, b) {
|
|
471
|
+
return proto3.util.equals(UpdateSessionRequest, a, b);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
UpdateSessionRequest.runtime = proto3;
|
|
475
|
+
UpdateSessionRequest.typeName = "uniswap.platformservice.v1.UpdateSessionRequest";
|
|
476
|
+
UpdateSessionRequest.fields = proto3.util.newFieldList(() => [
|
|
477
|
+
{ no: 1, name: "wallet_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
478
|
+
]);
|
|
479
|
+
/**
|
|
480
|
+
* @generated from message uniswap.platformservice.v1.UpdateSessionResponse
|
|
481
|
+
*/
|
|
482
|
+
export class UpdateSessionResponse extends Message {
|
|
483
|
+
constructor(data) {
|
|
484
|
+
super();
|
|
485
|
+
proto3.util.initPartial(data, this);
|
|
486
|
+
}
|
|
487
|
+
static fromBinary(bytes, options) {
|
|
488
|
+
return new UpdateSessionResponse().fromBinary(bytes, options);
|
|
489
|
+
}
|
|
490
|
+
static fromJson(jsonValue, options) {
|
|
491
|
+
return new UpdateSessionResponse().fromJson(jsonValue, options);
|
|
492
|
+
}
|
|
493
|
+
static fromJsonString(jsonString, options) {
|
|
494
|
+
return new UpdateSessionResponse().fromJsonString(jsonString, options);
|
|
495
|
+
}
|
|
496
|
+
static equals(a, b) {
|
|
497
|
+
return proto3.util.equals(UpdateSessionResponse, a, b);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
UpdateSessionResponse.runtime = proto3;
|
|
501
|
+
UpdateSessionResponse.typeName = "uniswap.platformservice.v1.UpdateSessionResponse";
|
|
502
|
+
UpdateSessionResponse.fields = proto3.util.newFieldList(() => []);
|
|
503
|
+
/**
|
|
504
|
+
* @generated from message uniswap.platformservice.v1.SignoutRequest
|
|
505
|
+
*/
|
|
506
|
+
export class SignoutRequest extends Message {
|
|
507
|
+
constructor(data) {
|
|
508
|
+
super();
|
|
509
|
+
proto3.util.initPartial(data, this);
|
|
510
|
+
}
|
|
511
|
+
static fromBinary(bytes, options) {
|
|
512
|
+
return new SignoutRequest().fromBinary(bytes, options);
|
|
513
|
+
}
|
|
514
|
+
static fromJson(jsonValue, options) {
|
|
515
|
+
return new SignoutRequest().fromJson(jsonValue, options);
|
|
516
|
+
}
|
|
517
|
+
static fromJsonString(jsonString, options) {
|
|
518
|
+
return new SignoutRequest().fromJsonString(jsonString, options);
|
|
519
|
+
}
|
|
520
|
+
static equals(a, b) {
|
|
521
|
+
return proto3.util.equals(SignoutRequest, a, b);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
SignoutRequest.runtime = proto3;
|
|
525
|
+
SignoutRequest.typeName = "uniswap.platformservice.v1.SignoutRequest";
|
|
526
|
+
SignoutRequest.fields = proto3.util.newFieldList(() => []);
|
|
527
|
+
/**
|
|
528
|
+
* @generated from message uniswap.platformservice.v1.SignoutResponse
|
|
529
|
+
*/
|
|
530
|
+
export class SignoutResponse extends Message {
|
|
531
|
+
constructor(data) {
|
|
532
|
+
super();
|
|
533
|
+
proto3.util.initPartial(data, this);
|
|
534
|
+
}
|
|
535
|
+
static fromBinary(bytes, options) {
|
|
536
|
+
return new SignoutResponse().fromBinary(bytes, options);
|
|
537
|
+
}
|
|
538
|
+
static fromJson(jsonValue, options) {
|
|
539
|
+
return new SignoutResponse().fromJson(jsonValue, options);
|
|
540
|
+
}
|
|
541
|
+
static fromJsonString(jsonString, options) {
|
|
542
|
+
return new SignoutResponse().fromJsonString(jsonString, options);
|
|
543
|
+
}
|
|
544
|
+
static equals(a, b) {
|
|
545
|
+
return proto3.util.equals(SignoutResponse, a, b);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
SignoutResponse.runtime = proto3;
|
|
549
|
+
SignoutResponse.typeName = "uniswap.platformservice.v1.SignoutResponse";
|
|
550
|
+
SignoutResponse.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
|
};
|