@uniswap/client-platform-service 0.0.8 → 0.0.9
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/personaService_pb.d.ts +4 -0
- package/dist/uniswap/platformservice/v1/personaService_pb.js +7 -1
- package/dist/uniswap/platformservice/v1/sessionService_pb.d.ts +118 -17
- package/dist/uniswap/platformservice/v1/sessionService_pb.js +146 -7
- package/package.json +1 -1
|
@@ -4,6 +4,10 @@ import { Message, proto3 } from "@bufbuild/protobuf";
|
|
|
4
4
|
* @generated from message uniswap.platformservice.v1.GetOrCreatePersonaRequest
|
|
5
5
|
*/
|
|
6
6
|
export declare class GetOrCreatePersonaRequest extends Message<GetOrCreatePersonaRequest> {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from field: string device_id = 1;
|
|
9
|
+
*/
|
|
10
|
+
deviceId: string;
|
|
7
11
|
constructor(data?: PartialMessage<GetOrCreatePersonaRequest>);
|
|
8
12
|
static readonly runtime: typeof proto3;
|
|
9
13
|
static readonly typeName = "uniswap.platformservice.v1.GetOrCreatePersonaRequest";
|
|
@@ -9,6 +9,10 @@ import { Message, proto3 } from "@bufbuild/protobuf";
|
|
|
9
9
|
export class GetOrCreatePersonaRequest extends Message {
|
|
10
10
|
constructor(data) {
|
|
11
11
|
super();
|
|
12
|
+
/**
|
|
13
|
+
* @generated from field: string device_id = 1;
|
|
14
|
+
*/
|
|
15
|
+
this.deviceId = "";
|
|
12
16
|
proto3.util.initPartial(data, this);
|
|
13
17
|
}
|
|
14
18
|
static fromBinary(bytes, options) {
|
|
@@ -26,7 +30,9 @@ export class GetOrCreatePersonaRequest extends Message {
|
|
|
26
30
|
}
|
|
27
31
|
GetOrCreatePersonaRequest.runtime = proto3;
|
|
28
32
|
GetOrCreatePersonaRequest.typeName = "uniswap.platformservice.v1.GetOrCreatePersonaRequest";
|
|
29
|
-
GetOrCreatePersonaRequest.fields = proto3.util.newFieldList(() => [
|
|
33
|
+
GetOrCreatePersonaRequest.fields = proto3.util.newFieldList(() => [
|
|
34
|
+
{ no: 1, name: "device_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
35
|
+
]);
|
|
30
36
|
/**
|
|
31
37
|
* @generated from message uniswap.platformservice.v1.GetOrCreatePersonaResponse
|
|
32
38
|
*/
|
|
@@ -150,14 +150,39 @@ export declare class GetChallengeTypesRequest extends Message<GetChallengeTypesR
|
|
|
150
150
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetChallengeTypesRequest;
|
|
151
151
|
static equals(a: GetChallengeTypesRequest | PlainMessage<GetChallengeTypesRequest> | undefined, b: GetChallengeTypesRequest | PlainMessage<GetChallengeTypesRequest> | undefined): boolean;
|
|
152
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* @generated from message uniswap.platformservice.v1.ChallengeTypeConfig
|
|
155
|
+
*/
|
|
156
|
+
export declare class ChallengeTypeConfig extends Message<ChallengeTypeConfig> {
|
|
157
|
+
/**
|
|
158
|
+
* @generated from field: uniswap.platformservice.v1.ChallengeType type = 1;
|
|
159
|
+
*/
|
|
160
|
+
type: ChallengeType;
|
|
161
|
+
/**
|
|
162
|
+
* Provider-specific config (e.g., "clientId": "xxx", "scope": "openid email profile")
|
|
163
|
+
*
|
|
164
|
+
* @generated from field: map<string, string> config = 2;
|
|
165
|
+
*/
|
|
166
|
+
config: {
|
|
167
|
+
[key: string]: string;
|
|
168
|
+
};
|
|
169
|
+
constructor(data?: PartialMessage<ChallengeTypeConfig>);
|
|
170
|
+
static readonly runtime: typeof proto3;
|
|
171
|
+
static readonly typeName = "uniswap.platformservice.v1.ChallengeTypeConfig";
|
|
172
|
+
static readonly fields: FieldList;
|
|
173
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChallengeTypeConfig;
|
|
174
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChallengeTypeConfig;
|
|
175
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChallengeTypeConfig;
|
|
176
|
+
static equals(a: ChallengeTypeConfig | PlainMessage<ChallengeTypeConfig> | undefined, b: ChallengeTypeConfig | PlainMessage<ChallengeTypeConfig> | undefined): boolean;
|
|
177
|
+
}
|
|
153
178
|
/**
|
|
154
179
|
* @generated from message uniswap.platformservice.v1.GetChallengeTypesResponse
|
|
155
180
|
*/
|
|
156
181
|
export declare class GetChallengeTypesResponse extends Message<GetChallengeTypesResponse> {
|
|
157
182
|
/**
|
|
158
|
-
* @generated from field: repeated uniswap.platformservice.v1.
|
|
183
|
+
* @generated from field: repeated uniswap.platformservice.v1.ChallengeTypeConfig challenge_type_config = 1;
|
|
159
184
|
*/
|
|
160
|
-
|
|
185
|
+
challengeTypeConfig: ChallengeTypeConfig[];
|
|
161
186
|
constructor(data?: PartialMessage<GetChallengeTypesResponse>);
|
|
162
187
|
static readonly runtime: typeof proto3;
|
|
163
188
|
static readonly typeName = "uniswap.platformservice.v1.GetChallengeTypesResponse";
|
|
@@ -214,12 +239,6 @@ export declare class ChallengeResponse extends Message<ChallengeResponse> {
|
|
|
214
239
|
extra: {
|
|
215
240
|
[key: string]: string;
|
|
216
241
|
};
|
|
217
|
-
/**
|
|
218
|
-
* OAuth authorization URL (for OAuth)
|
|
219
|
-
*
|
|
220
|
-
* @generated from field: optional string authorize_url = 4;
|
|
221
|
-
*/
|
|
222
|
-
authorizeUrl?: string;
|
|
223
242
|
constructor(data?: PartialMessage<ChallengeResponse>);
|
|
224
243
|
static readonly runtime: typeof proto3;
|
|
225
244
|
static readonly typeName = "uniswap.platformservice.v1.ChallengeResponse";
|
|
@@ -246,7 +265,7 @@ export declare class VerifyRequest extends Message<VerifyRequest> {
|
|
|
246
265
|
*/
|
|
247
266
|
challengeId: string;
|
|
248
267
|
/**
|
|
249
|
-
* Challenge type (must match the one used in Challenge).
|
|
268
|
+
* Challenge type (must match the one used in Challenge).
|
|
250
269
|
*
|
|
251
270
|
* @generated from field: uniswap.platformservice.v1.ChallengeType type = 3;
|
|
252
271
|
*/
|
|
@@ -261,23 +280,105 @@ export declare class VerifyRequest extends Message<VerifyRequest> {
|
|
|
261
280
|
static equals(a: VerifyRequest | PlainMessage<VerifyRequest> | undefined, b: VerifyRequest | PlainMessage<VerifyRequest> | undefined): boolean;
|
|
262
281
|
}
|
|
263
282
|
/**
|
|
264
|
-
* @generated from message uniswap.platformservice.v1.
|
|
283
|
+
* @generated from message uniswap.platformservice.v1.VerifySuccess
|
|
265
284
|
*/
|
|
266
|
-
export declare class
|
|
285
|
+
export declare class VerifySuccess extends Message<VerifySuccess> {
|
|
267
286
|
/**
|
|
268
|
-
* @generated from field:
|
|
287
|
+
* @generated from field: uniswap.platformservice.v1.UserInfo user_info = 1;
|
|
269
288
|
*/
|
|
270
|
-
|
|
289
|
+
userInfo?: UserInfo;
|
|
290
|
+
constructor(data?: PartialMessage<VerifySuccess>);
|
|
291
|
+
static readonly runtime: typeof proto3;
|
|
292
|
+
static readonly typeName = "uniswap.platformservice.v1.VerifySuccess";
|
|
293
|
+
static readonly fields: FieldList;
|
|
294
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifySuccess;
|
|
295
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifySuccess;
|
|
296
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifySuccess;
|
|
297
|
+
static equals(a: VerifySuccess | PlainMessage<VerifySuccess> | undefined, b: VerifySuccess | PlainMessage<VerifySuccess> | undefined): boolean;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* @generated from message uniswap.platformservice.v1.VerifyFailure
|
|
301
|
+
*/
|
|
302
|
+
export declare class VerifyFailure extends Message<VerifyFailure> {
|
|
303
|
+
/**
|
|
304
|
+
* @generated from field: uniswap.platformservice.v1.VerifyFailure.Reason reason = 1;
|
|
305
|
+
*/
|
|
306
|
+
reason: VerifyFailure_Reason;
|
|
307
|
+
/**
|
|
308
|
+
* human-friendly message
|
|
309
|
+
*
|
|
310
|
+
* @generated from field: string message = 2;
|
|
311
|
+
*/
|
|
312
|
+
message: string;
|
|
271
313
|
/**
|
|
272
|
-
*
|
|
314
|
+
* cool-down if relevant
|
|
273
315
|
*
|
|
274
|
-
* @generated from field: optional int32 wait_seconds =
|
|
316
|
+
* @generated from field: optional int32 wait_seconds = 4;
|
|
275
317
|
*/
|
|
276
318
|
waitSeconds?: number;
|
|
319
|
+
constructor(data?: PartialMessage<VerifyFailure>);
|
|
320
|
+
static readonly runtime: typeof proto3;
|
|
321
|
+
static readonly typeName = "uniswap.platformservice.v1.VerifyFailure";
|
|
322
|
+
static readonly fields: FieldList;
|
|
323
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyFailure;
|
|
324
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyFailure;
|
|
325
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyFailure;
|
|
326
|
+
static equals(a: VerifyFailure | PlainMessage<VerifyFailure> | undefined, b: VerifyFailure | PlainMessage<VerifyFailure> | undefined): boolean;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* @generated from enum uniswap.platformservice.v1.VerifyFailure.Reason
|
|
330
|
+
*/
|
|
331
|
+
export declare enum VerifyFailure_Reason {
|
|
277
332
|
/**
|
|
278
|
-
* @generated from
|
|
333
|
+
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
279
334
|
*/
|
|
280
|
-
|
|
335
|
+
UNSPECIFIED = 0,
|
|
336
|
+
/**
|
|
337
|
+
* bad OTP / bot detection solutions
|
|
338
|
+
*
|
|
339
|
+
* @generated from enum value: REASON_INVALID_SOLUTION = 1;
|
|
340
|
+
*/
|
|
341
|
+
INVALID_SOLUTION = 1,
|
|
342
|
+
/**
|
|
343
|
+
* provider email needs verification
|
|
344
|
+
*
|
|
345
|
+
* @generated from enum value: REASON_EMAIL_NOT_VERIFIED = 2;
|
|
346
|
+
*/
|
|
347
|
+
EMAIL_NOT_VERIFIED = 2,
|
|
348
|
+
/**
|
|
349
|
+
* challenge id is invalid, re-initiate a challenge.
|
|
350
|
+
*
|
|
351
|
+
* @generated from enum value: REASON_IVALID_CHALLENGE = 3;
|
|
352
|
+
*/
|
|
353
|
+
IVALID_CHALLENGE = 3
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* @generated from message uniswap.platformservice.v1.VerifyResponse
|
|
357
|
+
*/
|
|
358
|
+
export declare class VerifyResponse extends Message<VerifyResponse> {
|
|
359
|
+
/**
|
|
360
|
+
* @generated from field: bool retry = 1;
|
|
361
|
+
*/
|
|
362
|
+
retry: boolean;
|
|
363
|
+
/**
|
|
364
|
+
* @generated from oneof uniswap.platformservice.v1.VerifyResponse.outcome
|
|
365
|
+
*/
|
|
366
|
+
outcome: {
|
|
367
|
+
/**
|
|
368
|
+
* @generated from field: uniswap.platformservice.v1.VerifySuccess success = 2;
|
|
369
|
+
*/
|
|
370
|
+
value: VerifySuccess;
|
|
371
|
+
case: "success";
|
|
372
|
+
} | {
|
|
373
|
+
/**
|
|
374
|
+
* @generated from field: uniswap.platformservice.v1.VerifyFailure failure = 3;
|
|
375
|
+
*/
|
|
376
|
+
value: VerifyFailure;
|
|
377
|
+
case: "failure";
|
|
378
|
+
} | {
|
|
379
|
+
case: undefined;
|
|
380
|
+
value?: undefined;
|
|
381
|
+
};
|
|
281
382
|
constructor(data?: PartialMessage<VerifyResponse>);
|
|
282
383
|
static readonly runtime: typeof proto3;
|
|
283
384
|
static readonly typeName = "uniswap.platformservice.v1.VerifyResponse";
|
|
@@ -217,6 +217,43 @@ export class GetChallengeTypesRequest extends Message {
|
|
|
217
217
|
GetChallengeTypesRequest.runtime = proto3;
|
|
218
218
|
GetChallengeTypesRequest.typeName = "uniswap.platformservice.v1.GetChallengeTypesRequest";
|
|
219
219
|
GetChallengeTypesRequest.fields = proto3.util.newFieldList(() => []);
|
|
220
|
+
/**
|
|
221
|
+
* @generated from message uniswap.platformservice.v1.ChallengeTypeConfig
|
|
222
|
+
*/
|
|
223
|
+
export class ChallengeTypeConfig extends Message {
|
|
224
|
+
constructor(data) {
|
|
225
|
+
super();
|
|
226
|
+
/**
|
|
227
|
+
* @generated from field: uniswap.platformservice.v1.ChallengeType type = 1;
|
|
228
|
+
*/
|
|
229
|
+
this.type = ChallengeType.UNSPECIFIED;
|
|
230
|
+
/**
|
|
231
|
+
* Provider-specific config (e.g., "clientId": "xxx", "scope": "openid email profile")
|
|
232
|
+
*
|
|
233
|
+
* @generated from field: map<string, string> config = 2;
|
|
234
|
+
*/
|
|
235
|
+
this.config = {};
|
|
236
|
+
proto3.util.initPartial(data, this);
|
|
237
|
+
}
|
|
238
|
+
static fromBinary(bytes, options) {
|
|
239
|
+
return new ChallengeTypeConfig().fromBinary(bytes, options);
|
|
240
|
+
}
|
|
241
|
+
static fromJson(jsonValue, options) {
|
|
242
|
+
return new ChallengeTypeConfig().fromJson(jsonValue, options);
|
|
243
|
+
}
|
|
244
|
+
static fromJsonString(jsonString, options) {
|
|
245
|
+
return new ChallengeTypeConfig().fromJsonString(jsonString, options);
|
|
246
|
+
}
|
|
247
|
+
static equals(a, b) {
|
|
248
|
+
return proto3.util.equals(ChallengeTypeConfig, a, b);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
ChallengeTypeConfig.runtime = proto3;
|
|
252
|
+
ChallengeTypeConfig.typeName = "uniswap.platformservice.v1.ChallengeTypeConfig";
|
|
253
|
+
ChallengeTypeConfig.fields = proto3.util.newFieldList(() => [
|
|
254
|
+
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(ChallengeType) },
|
|
255
|
+
{ no: 2, name: "config", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
256
|
+
]);
|
|
220
257
|
/**
|
|
221
258
|
* @generated from message uniswap.platformservice.v1.GetChallengeTypesResponse
|
|
222
259
|
*/
|
|
@@ -224,9 +261,9 @@ export class GetChallengeTypesResponse extends Message {
|
|
|
224
261
|
constructor(data) {
|
|
225
262
|
super();
|
|
226
263
|
/**
|
|
227
|
-
* @generated from field: repeated uniswap.platformservice.v1.
|
|
264
|
+
* @generated from field: repeated uniswap.platformservice.v1.ChallengeTypeConfig challenge_type_config = 1;
|
|
228
265
|
*/
|
|
229
|
-
this.
|
|
266
|
+
this.challengeTypeConfig = [];
|
|
230
267
|
proto3.util.initPartial(data, this);
|
|
231
268
|
}
|
|
232
269
|
static fromBinary(bytes, options) {
|
|
@@ -245,7 +282,7 @@ export class GetChallengeTypesResponse extends Message {
|
|
|
245
282
|
GetChallengeTypesResponse.runtime = proto3;
|
|
246
283
|
GetChallengeTypesResponse.typeName = "uniswap.platformservice.v1.GetChallengeTypesResponse";
|
|
247
284
|
GetChallengeTypesResponse.fields = proto3.util.newFieldList(() => [
|
|
248
|
-
{ no: 1, name: "
|
|
285
|
+
{ no: 1, name: "challenge_type_config", kind: "message", T: ChallengeTypeConfig, repeated: true },
|
|
249
286
|
]);
|
|
250
287
|
/**
|
|
251
288
|
* @generated from message uniswap.platformservice.v1.ChallengeRequest
|
|
@@ -317,7 +354,6 @@ ChallengeResponse.fields = proto3.util.newFieldList(() => [
|
|
|
317
354
|
{ no: 1, name: "challenge_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
318
355
|
{ no: 2, name: "challenge_type", kind: "enum", T: proto3.getEnumType(ChallengeType) },
|
|
319
356
|
{ no: 3, name: "extra", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
320
|
-
{ no: 4, name: "authorize_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
321
357
|
]);
|
|
322
358
|
/**
|
|
323
359
|
* @generated from message uniswap.platformservice.v1.VerifyRequest
|
|
@@ -338,7 +374,7 @@ export class VerifyRequest extends Message {
|
|
|
338
374
|
*/
|
|
339
375
|
this.challengeId = "";
|
|
340
376
|
/**
|
|
341
|
-
* Challenge type (must match the one used in Challenge).
|
|
377
|
+
* Challenge type (must match the one used in Challenge).
|
|
342
378
|
*
|
|
343
379
|
* @generated from field: uniswap.platformservice.v1.ChallengeType type = 3;
|
|
344
380
|
*/
|
|
@@ -365,6 +401,105 @@ VerifyRequest.fields = proto3.util.newFieldList(() => [
|
|
|
365
401
|
{ no: 2, name: "challenge_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
366
402
|
{ no: 3, name: "type", kind: "enum", T: proto3.getEnumType(ChallengeType) },
|
|
367
403
|
]);
|
|
404
|
+
/**
|
|
405
|
+
* @generated from message uniswap.platformservice.v1.VerifySuccess
|
|
406
|
+
*/
|
|
407
|
+
export class VerifySuccess extends Message {
|
|
408
|
+
constructor(data) {
|
|
409
|
+
super();
|
|
410
|
+
proto3.util.initPartial(data, this);
|
|
411
|
+
}
|
|
412
|
+
static fromBinary(bytes, options) {
|
|
413
|
+
return new VerifySuccess().fromBinary(bytes, options);
|
|
414
|
+
}
|
|
415
|
+
static fromJson(jsonValue, options) {
|
|
416
|
+
return new VerifySuccess().fromJson(jsonValue, options);
|
|
417
|
+
}
|
|
418
|
+
static fromJsonString(jsonString, options) {
|
|
419
|
+
return new VerifySuccess().fromJsonString(jsonString, options);
|
|
420
|
+
}
|
|
421
|
+
static equals(a, b) {
|
|
422
|
+
return proto3.util.equals(VerifySuccess, a, b);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
VerifySuccess.runtime = proto3;
|
|
426
|
+
VerifySuccess.typeName = "uniswap.platformservice.v1.VerifySuccess";
|
|
427
|
+
VerifySuccess.fields = proto3.util.newFieldList(() => [
|
|
428
|
+
{ no: 1, name: "user_info", kind: "message", T: UserInfo },
|
|
429
|
+
]);
|
|
430
|
+
/**
|
|
431
|
+
* @generated from message uniswap.platformservice.v1.VerifyFailure
|
|
432
|
+
*/
|
|
433
|
+
export class VerifyFailure extends Message {
|
|
434
|
+
constructor(data) {
|
|
435
|
+
super();
|
|
436
|
+
/**
|
|
437
|
+
* @generated from field: uniswap.platformservice.v1.VerifyFailure.Reason reason = 1;
|
|
438
|
+
*/
|
|
439
|
+
this.reason = VerifyFailure_Reason.UNSPECIFIED;
|
|
440
|
+
/**
|
|
441
|
+
* human-friendly message
|
|
442
|
+
*
|
|
443
|
+
* @generated from field: string message = 2;
|
|
444
|
+
*/
|
|
445
|
+
this.message = "";
|
|
446
|
+
proto3.util.initPartial(data, this);
|
|
447
|
+
}
|
|
448
|
+
static fromBinary(bytes, options) {
|
|
449
|
+
return new VerifyFailure().fromBinary(bytes, options);
|
|
450
|
+
}
|
|
451
|
+
static fromJson(jsonValue, options) {
|
|
452
|
+
return new VerifyFailure().fromJson(jsonValue, options);
|
|
453
|
+
}
|
|
454
|
+
static fromJsonString(jsonString, options) {
|
|
455
|
+
return new VerifyFailure().fromJsonString(jsonString, options);
|
|
456
|
+
}
|
|
457
|
+
static equals(a, b) {
|
|
458
|
+
return proto3.util.equals(VerifyFailure, a, b);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
VerifyFailure.runtime = proto3;
|
|
462
|
+
VerifyFailure.typeName = "uniswap.platformservice.v1.VerifyFailure";
|
|
463
|
+
VerifyFailure.fields = proto3.util.newFieldList(() => [
|
|
464
|
+
{ no: 1, name: "reason", kind: "enum", T: proto3.getEnumType(VerifyFailure_Reason) },
|
|
465
|
+
{ no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
466
|
+
{ no: 4, name: "wait_seconds", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
467
|
+
]);
|
|
468
|
+
/**
|
|
469
|
+
* @generated from enum uniswap.platformservice.v1.VerifyFailure.Reason
|
|
470
|
+
*/
|
|
471
|
+
export var VerifyFailure_Reason;
|
|
472
|
+
(function (VerifyFailure_Reason) {
|
|
473
|
+
/**
|
|
474
|
+
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
475
|
+
*/
|
|
476
|
+
VerifyFailure_Reason[VerifyFailure_Reason["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
477
|
+
/**
|
|
478
|
+
* bad OTP / bot detection solutions
|
|
479
|
+
*
|
|
480
|
+
* @generated from enum value: REASON_INVALID_SOLUTION = 1;
|
|
481
|
+
*/
|
|
482
|
+
VerifyFailure_Reason[VerifyFailure_Reason["INVALID_SOLUTION"] = 1] = "INVALID_SOLUTION";
|
|
483
|
+
/**
|
|
484
|
+
* provider email needs verification
|
|
485
|
+
*
|
|
486
|
+
* @generated from enum value: REASON_EMAIL_NOT_VERIFIED = 2;
|
|
487
|
+
*/
|
|
488
|
+
VerifyFailure_Reason[VerifyFailure_Reason["EMAIL_NOT_VERIFIED"] = 2] = "EMAIL_NOT_VERIFIED";
|
|
489
|
+
/**
|
|
490
|
+
* challenge id is invalid, re-initiate a challenge.
|
|
491
|
+
*
|
|
492
|
+
* @generated from enum value: REASON_IVALID_CHALLENGE = 3;
|
|
493
|
+
*/
|
|
494
|
+
VerifyFailure_Reason[VerifyFailure_Reason["IVALID_CHALLENGE"] = 3] = "IVALID_CHALLENGE";
|
|
495
|
+
})(VerifyFailure_Reason || (VerifyFailure_Reason = {}));
|
|
496
|
+
// Retrieve enum metadata with: proto3.getEnumType(VerifyFailure_Reason)
|
|
497
|
+
proto3.util.setEnumType(VerifyFailure_Reason, "uniswap.platformservice.v1.VerifyFailure.Reason", [
|
|
498
|
+
{ no: 0, name: "REASON_UNSPECIFIED" },
|
|
499
|
+
{ no: 1, name: "REASON_INVALID_SOLUTION" },
|
|
500
|
+
{ no: 2, name: "REASON_EMAIL_NOT_VERIFIED" },
|
|
501
|
+
{ no: 3, name: "REASON_IVALID_CHALLENGE" },
|
|
502
|
+
]);
|
|
368
503
|
/**
|
|
369
504
|
* @generated from message uniswap.platformservice.v1.VerifyResponse
|
|
370
505
|
*/
|
|
@@ -375,6 +510,10 @@ export class VerifyResponse extends Message {
|
|
|
375
510
|
* @generated from field: bool retry = 1;
|
|
376
511
|
*/
|
|
377
512
|
this.retry = false;
|
|
513
|
+
/**
|
|
514
|
+
* @generated from oneof uniswap.platformservice.v1.VerifyResponse.outcome
|
|
515
|
+
*/
|
|
516
|
+
this.outcome = { case: undefined };
|
|
378
517
|
proto3.util.initPartial(data, this);
|
|
379
518
|
}
|
|
380
519
|
static fromBinary(bytes, options) {
|
|
@@ -394,8 +533,8 @@ VerifyResponse.runtime = proto3;
|
|
|
394
533
|
VerifyResponse.typeName = "uniswap.platformservice.v1.VerifyResponse";
|
|
395
534
|
VerifyResponse.fields = proto3.util.newFieldList(() => [
|
|
396
535
|
{ no: 1, name: "retry", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
397
|
-
{ no: 2, name: "
|
|
398
|
-
{ no: 3, name: "
|
|
536
|
+
{ no: 2, name: "success", kind: "message", T: VerifySuccess, oneof: "outcome" },
|
|
537
|
+
{ no: 3, name: "failure", kind: "message", T: VerifyFailure, oneof: "outcome" },
|
|
399
538
|
]);
|
|
400
539
|
/**
|
|
401
540
|
* @generated from message uniswap.platformservice.v1.UserInfo
|