@uniswap/client-platform-service 0.0.6 → 0.0.8
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/organizationService-OrganizationService_connectquery.d.ts +18 -0
- package/dist/uniswap/platformservice/v1/organizationService-OrganizationService_connectquery.js +22 -0
- package/dist/uniswap/platformservice/v1/organizationService_connect.d.ts +22 -0
- package/dist/uniswap/platformservice/v1/organizationService_connect.js +26 -0
- package/dist/uniswap/platformservice/v1/organizationService_pb.d.ts +32 -0
- package/dist/uniswap/platformservice/v1/organizationService_pb.js +59 -0
- package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.d.ts +44 -1
- package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.js +44 -1
- package/dist/uniswap/platformservice/v1/personaService_connect.d.ts +32 -1
- package/dist/uniswap/platformservice/v1/personaService_connect.js +32 -1
- package/dist/uniswap/platformservice/v1/personaService_pb.d.ts +150 -0
- package/dist/uniswap/platformservice/v1/personaService_pb.js +230 -0
- package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.d.ts +34 -2
- package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.js +34 -2
- package/dist/uniswap/platformservice/v1/sessionService_connect.d.ts +26 -2
- package/dist/uniswap/platformservice/v1/sessionService_connect.js +26 -2
- package/dist/uniswap/platformservice/v1/sessionService_pb.d.ts +145 -14
- package/dist/uniswap/platformservice/v1/sessionService_pb.js +189 -23
- package/package.json +1 -1
|
@@ -1,23 +1,41 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
|
-
* @generated from enum uniswap.platformservice.v1.
|
|
4
|
+
* @generated from enum uniswap.platformservice.v1.ChallengeType
|
|
5
5
|
*/
|
|
6
|
-
export declare enum
|
|
6
|
+
export declare enum ChallengeType {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Bot detection mechanisms
|
|
9
|
+
*
|
|
10
|
+
* @generated from enum value: CHALLENGE_TYPE_UNSPECIFIED = 0;
|
|
11
|
+
*/
|
|
12
|
+
UNSPECIFIED = 0,
|
|
13
|
+
/**
|
|
14
|
+
* @generated from enum value: CHALLENGE_TYPE_TURNSTILE = 1;
|
|
9
15
|
*/
|
|
10
|
-
|
|
16
|
+
TURNSTILE = 1,
|
|
11
17
|
/**
|
|
12
|
-
* @generated from enum value:
|
|
18
|
+
* @generated from enum value: CHALLENGE_TYPE_HASHCASH = 2;
|
|
13
19
|
*/
|
|
14
|
-
|
|
20
|
+
HASHCASH = 2,
|
|
15
21
|
/**
|
|
16
|
-
*
|
|
22
|
+
* Login Authentication
|
|
17
23
|
*
|
|
18
|
-
* @generated from enum value:
|
|
24
|
+
* @generated from enum value: CHALLENGE_TYPE_GOOGLE = 3;
|
|
25
|
+
*/
|
|
26
|
+
GOOGLE = 3,
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: CHALLENGE_TYPE_SLACK = 4;
|
|
29
|
+
*/
|
|
30
|
+
SLACK = 4,
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum value: CHALLENGE_TYPE_GITHUB = 5;
|
|
19
33
|
*/
|
|
20
|
-
|
|
34
|
+
GITHUB = 5,
|
|
35
|
+
/**
|
|
36
|
+
* @generated from enum value: CHALLENGE_TYPE_MAIL = 6;
|
|
37
|
+
*/
|
|
38
|
+
MAIL = 6
|
|
21
39
|
}
|
|
22
40
|
/**
|
|
23
41
|
* @generated from message uniswap.platformservice.v1.IntrospectSessionRequest
|
|
@@ -119,10 +137,52 @@ export declare class InitSessionResponse extends Message<InitSessionResponse> {
|
|
|
119
137
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InitSessionResponse;
|
|
120
138
|
static equals(a: InitSessionResponse | PlainMessage<InitSessionResponse> | undefined, b: InitSessionResponse | PlainMessage<InitSessionResponse> | undefined): boolean;
|
|
121
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* @generated from message uniswap.platformservice.v1.GetChallengeTypesRequest
|
|
142
|
+
*/
|
|
143
|
+
export declare class GetChallengeTypesRequest extends Message<GetChallengeTypesRequest> {
|
|
144
|
+
constructor(data?: PartialMessage<GetChallengeTypesRequest>);
|
|
145
|
+
static readonly runtime: typeof proto3;
|
|
146
|
+
static readonly typeName = "uniswap.platformservice.v1.GetChallengeTypesRequest";
|
|
147
|
+
static readonly fields: FieldList;
|
|
148
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetChallengeTypesRequest;
|
|
149
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetChallengeTypesRequest;
|
|
150
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetChallengeTypesRequest;
|
|
151
|
+
static equals(a: GetChallengeTypesRequest | PlainMessage<GetChallengeTypesRequest> | undefined, b: GetChallengeTypesRequest | PlainMessage<GetChallengeTypesRequest> | undefined): boolean;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* @generated from message uniswap.platformservice.v1.GetChallengeTypesResponse
|
|
155
|
+
*/
|
|
156
|
+
export declare class GetChallengeTypesResponse extends Message<GetChallengeTypesResponse> {
|
|
157
|
+
/**
|
|
158
|
+
* @generated from field: repeated uniswap.platformservice.v1.ChallengeType challenge_types = 1;
|
|
159
|
+
*/
|
|
160
|
+
challengeTypes: ChallengeType[];
|
|
161
|
+
constructor(data?: PartialMessage<GetChallengeTypesResponse>);
|
|
162
|
+
static readonly runtime: typeof proto3;
|
|
163
|
+
static readonly typeName = "uniswap.platformservice.v1.GetChallengeTypesResponse";
|
|
164
|
+
static readonly fields: FieldList;
|
|
165
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetChallengeTypesResponse;
|
|
166
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetChallengeTypesResponse;
|
|
167
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetChallengeTypesResponse;
|
|
168
|
+
static equals(a: GetChallengeTypesResponse | PlainMessage<GetChallengeTypesResponse> | undefined, b: GetChallengeTypesResponse | PlainMessage<GetChallengeTypesResponse> | undefined): boolean;
|
|
169
|
+
}
|
|
122
170
|
/**
|
|
123
171
|
* @generated from message uniswap.platformservice.v1.ChallengeRequest
|
|
124
172
|
*/
|
|
125
173
|
export declare class ChallengeRequest extends Message<ChallengeRequest> {
|
|
174
|
+
/**
|
|
175
|
+
* Challenge type (auth provider or bot detection). If not set, server decides
|
|
176
|
+
*
|
|
177
|
+
* @generated from field: optional uniswap.platformservice.v1.ChallengeType challenge_type = 1;
|
|
178
|
+
*/
|
|
179
|
+
challengeType?: ChallengeType;
|
|
180
|
+
/**
|
|
181
|
+
* Email address (required when type=PROVIDER_EMAIL)
|
|
182
|
+
*
|
|
183
|
+
* @generated from field: optional string identifier = 2;
|
|
184
|
+
*/
|
|
185
|
+
identifier?: string;
|
|
126
186
|
constructor(data?: PartialMessage<ChallengeRequest>);
|
|
127
187
|
static readonly runtime: typeof proto3;
|
|
128
188
|
static readonly typeName = "uniswap.platformservice.v1.ChallengeRequest";
|
|
@@ -141,19 +201,25 @@ export declare class ChallengeResponse extends Message<ChallengeResponse> {
|
|
|
141
201
|
*/
|
|
142
202
|
challengeId: string;
|
|
143
203
|
/**
|
|
144
|
-
*
|
|
204
|
+
* The challenge type being enforced for
|
|
145
205
|
*
|
|
146
|
-
* @generated from field: uniswap.platformservice.v1.
|
|
206
|
+
* @generated from field: uniswap.platformservice.v1.ChallengeType challenge_type = 2;
|
|
147
207
|
*/
|
|
148
|
-
|
|
208
|
+
challengeType: ChallengeType;
|
|
149
209
|
/**
|
|
150
|
-
*
|
|
210
|
+
* Extra data for challenge (e.g., hashcash difficulty, turnstile site key)
|
|
151
211
|
*
|
|
152
212
|
* @generated from field: map<string, string> extra = 3;
|
|
153
213
|
*/
|
|
154
214
|
extra: {
|
|
155
215
|
[key: string]: string;
|
|
156
216
|
};
|
|
217
|
+
/**
|
|
218
|
+
* OAuth authorization URL (for OAuth)
|
|
219
|
+
*
|
|
220
|
+
* @generated from field: optional string authorize_url = 4;
|
|
221
|
+
*/
|
|
222
|
+
authorizeUrl?: string;
|
|
157
223
|
constructor(data?: PartialMessage<ChallengeResponse>);
|
|
158
224
|
static readonly runtime: typeof proto3;
|
|
159
225
|
static readonly typeName = "uniswap.platformservice.v1.ChallengeResponse";
|
|
@@ -168,15 +234,23 @@ export declare class ChallengeResponse extends Message<ChallengeResponse> {
|
|
|
168
234
|
*/
|
|
169
235
|
export declare class VerifyRequest extends Message<VerifyRequest> {
|
|
170
236
|
/**
|
|
171
|
-
*
|
|
237
|
+
* Bot detection token, hashcash solution, or OTP code. Oauth code == solution.
|
|
172
238
|
*
|
|
173
239
|
* @generated from field: string solution = 1;
|
|
174
240
|
*/
|
|
175
241
|
solution: string;
|
|
176
242
|
/**
|
|
243
|
+
* Oauth state = challenge_id
|
|
244
|
+
*
|
|
177
245
|
* @generated from field: string challenge_id = 2;
|
|
178
246
|
*/
|
|
179
247
|
challengeId: string;
|
|
248
|
+
/**
|
|
249
|
+
* Challenge type (must match the one used in Challenge). If not set, server infers from challenge_id
|
|
250
|
+
*
|
|
251
|
+
* @generated from field: uniswap.platformservice.v1.ChallengeType type = 3;
|
|
252
|
+
*/
|
|
253
|
+
type: ChallengeType;
|
|
180
254
|
constructor(data?: PartialMessage<VerifyRequest>);
|
|
181
255
|
static readonly runtime: typeof proto3;
|
|
182
256
|
static readonly typeName = "uniswap.platformservice.v1.VerifyRequest";
|
|
@@ -194,6 +268,16 @@ export declare class VerifyResponse extends Message<VerifyResponse> {
|
|
|
194
268
|
* @generated from field: bool retry = 1;
|
|
195
269
|
*/
|
|
196
270
|
retry: boolean;
|
|
271
|
+
/**
|
|
272
|
+
* seconds to wait before resend (for email+OTP)
|
|
273
|
+
*
|
|
274
|
+
* @generated from field: optional int32 wait_seconds = 2;
|
|
275
|
+
*/
|
|
276
|
+
waitSeconds?: number;
|
|
277
|
+
/**
|
|
278
|
+
* @generated from field: optional uniswap.platformservice.v1.UserInfo user_info = 3;
|
|
279
|
+
*/
|
|
280
|
+
userInfo?: UserInfo;
|
|
197
281
|
constructor(data?: PartialMessage<VerifyResponse>);
|
|
198
282
|
static readonly runtime: typeof proto3;
|
|
199
283
|
static readonly typeName = "uniswap.platformservice.v1.VerifyResponse";
|
|
@@ -203,6 +287,27 @@ export declare class VerifyResponse extends Message<VerifyResponse> {
|
|
|
203
287
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyResponse;
|
|
204
288
|
static equals(a: VerifyResponse | PlainMessage<VerifyResponse> | undefined, b: VerifyResponse | PlainMessage<VerifyResponse> | undefined): boolean;
|
|
205
289
|
}
|
|
290
|
+
/**
|
|
291
|
+
* @generated from message uniswap.platformservice.v1.UserInfo
|
|
292
|
+
*/
|
|
293
|
+
export declare class UserInfo extends Message<UserInfo> {
|
|
294
|
+
/**
|
|
295
|
+
* @generated from field: optional string name = 1;
|
|
296
|
+
*/
|
|
297
|
+
name?: string;
|
|
298
|
+
/**
|
|
299
|
+
* @generated from field: optional string email = 2;
|
|
300
|
+
*/
|
|
301
|
+
email?: string;
|
|
302
|
+
constructor(data?: PartialMessage<UserInfo>);
|
|
303
|
+
static readonly runtime: typeof proto3;
|
|
304
|
+
static readonly typeName = "uniswap.platformservice.v1.UserInfo";
|
|
305
|
+
static readonly fields: FieldList;
|
|
306
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserInfo;
|
|
307
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserInfo;
|
|
308
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserInfo;
|
|
309
|
+
static equals(a: UserInfo | PlainMessage<UserInfo> | undefined, b: UserInfo | PlainMessage<UserInfo> | undefined): boolean;
|
|
310
|
+
}
|
|
206
311
|
/**
|
|
207
312
|
* @generated from message uniswap.platformservice.v1.DeleteSessionRequest
|
|
208
313
|
*/
|
|
@@ -259,3 +364,29 @@ export declare class UpdateSessionResponse extends Message<UpdateSessionResponse
|
|
|
259
364
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateSessionResponse;
|
|
260
365
|
static equals(a: UpdateSessionResponse | PlainMessage<UpdateSessionResponse> | undefined, b: UpdateSessionResponse | PlainMessage<UpdateSessionResponse> | undefined): boolean;
|
|
261
366
|
}
|
|
367
|
+
/**
|
|
368
|
+
* @generated from message uniswap.platformservice.v1.SignoutRequest
|
|
369
|
+
*/
|
|
370
|
+
export declare class SignoutRequest extends Message<SignoutRequest> {
|
|
371
|
+
constructor(data?: PartialMessage<SignoutRequest>);
|
|
372
|
+
static readonly runtime: typeof proto3;
|
|
373
|
+
static readonly typeName = "uniswap.platformservice.v1.SignoutRequest";
|
|
374
|
+
static readonly fields: FieldList;
|
|
375
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignoutRequest;
|
|
376
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignoutRequest;
|
|
377
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignoutRequest;
|
|
378
|
+
static equals(a: SignoutRequest | PlainMessage<SignoutRequest> | undefined, b: SignoutRequest | PlainMessage<SignoutRequest> | undefined): boolean;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* @generated from message uniswap.platformservice.v1.SignoutResponse
|
|
382
|
+
*/
|
|
383
|
+
export declare class SignoutResponse extends Message<SignoutResponse> {
|
|
384
|
+
constructor(data?: PartialMessage<SignoutResponse>);
|
|
385
|
+
static readonly runtime: typeof proto3;
|
|
386
|
+
static readonly typeName = "uniswap.platformservice.v1.SignoutResponse";
|
|
387
|
+
static readonly fields: FieldList;
|
|
388
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignoutResponse;
|
|
389
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignoutResponse;
|
|
390
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignoutResponse;
|
|
391
|
+
static equals(a: SignoutResponse | PlainMessage<SignoutResponse> | undefined, b: SignoutResponse | PlainMessage<SignoutResponse> | undefined): boolean;
|
|
392
|
+
}
|
|
@@ -4,30 +4,52 @@
|
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
6
|
/**
|
|
7
|
-
* @generated from enum uniswap.platformservice.v1.
|
|
7
|
+
* @generated from enum uniswap.platformservice.v1.ChallengeType
|
|
8
8
|
*/
|
|
9
|
-
export var
|
|
10
|
-
(function (
|
|
9
|
+
export var ChallengeType;
|
|
10
|
+
(function (ChallengeType) {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
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;
|
|
13
19
|
*/
|
|
14
|
-
|
|
20
|
+
ChallengeType[ChallengeType["TURNSTILE"] = 1] = "TURNSTILE";
|
|
15
21
|
/**
|
|
16
|
-
* @generated from enum value:
|
|
22
|
+
* @generated from enum value: CHALLENGE_TYPE_HASHCASH = 2;
|
|
17
23
|
*/
|
|
18
|
-
|
|
24
|
+
ChallengeType[ChallengeType["HASHCASH"] = 2] = "HASHCASH";
|
|
19
25
|
/**
|
|
20
|
-
*
|
|
26
|
+
* Login Authentication
|
|
21
27
|
*
|
|
22
|
-
* @generated from enum value:
|
|
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;
|
|
23
41
|
*/
|
|
24
|
-
|
|
25
|
-
})(
|
|
26
|
-
// Retrieve enum metadata with: proto3.getEnumType(
|
|
27
|
-
proto3.util.setEnumType(
|
|
28
|
-
{ no: 0, name: "
|
|
29
|
-
{ no: 1, name: "
|
|
30
|
-
{ no: 2, name: "
|
|
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" },
|
|
31
53
|
]);
|
|
32
54
|
/**
|
|
33
55
|
* @generated from message uniswap.platformservice.v1.IntrospectSessionRequest
|
|
@@ -171,6 +193,60 @@ InitSessionResponse.fields = proto3.util.newFieldList(() => [
|
|
|
171
193
|
{ no: 3, name: "need_challenge", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
172
194
|
{ no: 4, name: "extra", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
173
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
|
+
]);
|
|
174
250
|
/**
|
|
175
251
|
* @generated from message uniswap.platformservice.v1.ChallengeRequest
|
|
176
252
|
*/
|
|
@@ -194,7 +270,10 @@ export class ChallengeRequest extends Message {
|
|
|
194
270
|
}
|
|
195
271
|
ChallengeRequest.runtime = proto3;
|
|
196
272
|
ChallengeRequest.typeName = "uniswap.platformservice.v1.ChallengeRequest";
|
|
197
|
-
ChallengeRequest.fields = proto3.util.newFieldList(() => [
|
|
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
|
+
]);
|
|
198
277
|
/**
|
|
199
278
|
* @generated from message uniswap.platformservice.v1.ChallengeResponse
|
|
200
279
|
*/
|
|
@@ -206,13 +285,13 @@ export class ChallengeResponse extends Message {
|
|
|
206
285
|
*/
|
|
207
286
|
this.challengeId = "";
|
|
208
287
|
/**
|
|
209
|
-
*
|
|
288
|
+
* The challenge type being enforced for
|
|
210
289
|
*
|
|
211
|
-
* @generated from field: uniswap.platformservice.v1.
|
|
290
|
+
* @generated from field: uniswap.platformservice.v1.ChallengeType challenge_type = 2;
|
|
212
291
|
*/
|
|
213
|
-
this.
|
|
292
|
+
this.challengeType = ChallengeType.UNSPECIFIED;
|
|
214
293
|
/**
|
|
215
|
-
*
|
|
294
|
+
* Extra data for challenge (e.g., hashcash difficulty, turnstile site key)
|
|
216
295
|
*
|
|
217
296
|
* @generated from field: map<string, string> extra = 3;
|
|
218
297
|
*/
|
|
@@ -236,8 +315,9 @@ ChallengeResponse.runtime = proto3;
|
|
|
236
315
|
ChallengeResponse.typeName = "uniswap.platformservice.v1.ChallengeResponse";
|
|
237
316
|
ChallengeResponse.fields = proto3.util.newFieldList(() => [
|
|
238
317
|
{ no: 1, name: "challenge_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
239
|
-
{ no: 2, name: "
|
|
318
|
+
{ no: 2, name: "challenge_type", kind: "enum", T: proto3.getEnumType(ChallengeType) },
|
|
240
319
|
{ 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 },
|
|
241
321
|
]);
|
|
242
322
|
/**
|
|
243
323
|
* @generated from message uniswap.platformservice.v1.VerifyRequest
|
|
@@ -246,15 +326,23 @@ export class VerifyRequest extends Message {
|
|
|
246
326
|
constructor(data) {
|
|
247
327
|
super();
|
|
248
328
|
/**
|
|
249
|
-
*
|
|
329
|
+
* Bot detection token, hashcash solution, or OTP code. Oauth code == solution.
|
|
250
330
|
*
|
|
251
331
|
* @generated from field: string solution = 1;
|
|
252
332
|
*/
|
|
253
333
|
this.solution = "";
|
|
254
334
|
/**
|
|
335
|
+
* Oauth state = challenge_id
|
|
336
|
+
*
|
|
255
337
|
* @generated from field: string challenge_id = 2;
|
|
256
338
|
*/
|
|
257
339
|
this.challengeId = "";
|
|
340
|
+
/**
|
|
341
|
+
* Challenge type (must match the one used in Challenge). If not set, server infers from challenge_id
|
|
342
|
+
*
|
|
343
|
+
* @generated from field: uniswap.platformservice.v1.ChallengeType type = 3;
|
|
344
|
+
*/
|
|
345
|
+
this.type = ChallengeType.UNSPECIFIED;
|
|
258
346
|
proto3.util.initPartial(data, this);
|
|
259
347
|
}
|
|
260
348
|
static fromBinary(bytes, options) {
|
|
@@ -275,6 +363,7 @@ VerifyRequest.typeName = "uniswap.platformservice.v1.VerifyRequest";
|
|
|
275
363
|
VerifyRequest.fields = proto3.util.newFieldList(() => [
|
|
276
364
|
{ no: 1, name: "solution", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
277
365
|
{ no: 2, name: "challenge_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
366
|
+
{ no: 3, name: "type", kind: "enum", T: proto3.getEnumType(ChallengeType) },
|
|
278
367
|
]);
|
|
279
368
|
/**
|
|
280
369
|
* @generated from message uniswap.platformservice.v1.VerifyResponse
|
|
@@ -305,6 +394,35 @@ VerifyResponse.runtime = proto3;
|
|
|
305
394
|
VerifyResponse.typeName = "uniswap.platformservice.v1.VerifyResponse";
|
|
306
395
|
VerifyResponse.fields = proto3.util.newFieldList(() => [
|
|
307
396
|
{ no: 1, name: "retry", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
397
|
+
{ no: 2, name: "wait_seconds", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
398
|
+
{ no: 3, name: "user_info", kind: "message", T: UserInfo, opt: true },
|
|
399
|
+
]);
|
|
400
|
+
/**
|
|
401
|
+
* @generated from message uniswap.platformservice.v1.UserInfo
|
|
402
|
+
*/
|
|
403
|
+
export class UserInfo extends Message {
|
|
404
|
+
constructor(data) {
|
|
405
|
+
super();
|
|
406
|
+
proto3.util.initPartial(data, this);
|
|
407
|
+
}
|
|
408
|
+
static fromBinary(bytes, options) {
|
|
409
|
+
return new UserInfo().fromBinary(bytes, options);
|
|
410
|
+
}
|
|
411
|
+
static fromJson(jsonValue, options) {
|
|
412
|
+
return new UserInfo().fromJson(jsonValue, options);
|
|
413
|
+
}
|
|
414
|
+
static fromJsonString(jsonString, options) {
|
|
415
|
+
return new UserInfo().fromJsonString(jsonString, options);
|
|
416
|
+
}
|
|
417
|
+
static equals(a, b) {
|
|
418
|
+
return proto3.util.equals(UserInfo, a, b);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
UserInfo.runtime = proto3;
|
|
422
|
+
UserInfo.typeName = "uniswap.platformservice.v1.UserInfo";
|
|
423
|
+
UserInfo.fields = proto3.util.newFieldList(() => [
|
|
424
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
425
|
+
{ no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
308
426
|
]);
|
|
309
427
|
/**
|
|
310
428
|
* @generated from message uniswap.platformservice.v1.DeleteSessionRequest
|
|
@@ -408,3 +526,51 @@ export class UpdateSessionResponse extends Message {
|
|
|
408
526
|
UpdateSessionResponse.runtime = proto3;
|
|
409
527
|
UpdateSessionResponse.typeName = "uniswap.platformservice.v1.UpdateSessionResponse";
|
|
410
528
|
UpdateSessionResponse.fields = proto3.util.newFieldList(() => []);
|
|
529
|
+
/**
|
|
530
|
+
* @generated from message uniswap.platformservice.v1.SignoutRequest
|
|
531
|
+
*/
|
|
532
|
+
export class SignoutRequest extends Message {
|
|
533
|
+
constructor(data) {
|
|
534
|
+
super();
|
|
535
|
+
proto3.util.initPartial(data, this);
|
|
536
|
+
}
|
|
537
|
+
static fromBinary(bytes, options) {
|
|
538
|
+
return new SignoutRequest().fromBinary(bytes, options);
|
|
539
|
+
}
|
|
540
|
+
static fromJson(jsonValue, options) {
|
|
541
|
+
return new SignoutRequest().fromJson(jsonValue, options);
|
|
542
|
+
}
|
|
543
|
+
static fromJsonString(jsonString, options) {
|
|
544
|
+
return new SignoutRequest().fromJsonString(jsonString, options);
|
|
545
|
+
}
|
|
546
|
+
static equals(a, b) {
|
|
547
|
+
return proto3.util.equals(SignoutRequest, a, b);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
SignoutRequest.runtime = proto3;
|
|
551
|
+
SignoutRequest.typeName = "uniswap.platformservice.v1.SignoutRequest";
|
|
552
|
+
SignoutRequest.fields = proto3.util.newFieldList(() => []);
|
|
553
|
+
/**
|
|
554
|
+
* @generated from message uniswap.platformservice.v1.SignoutResponse
|
|
555
|
+
*/
|
|
556
|
+
export class SignoutResponse extends Message {
|
|
557
|
+
constructor(data) {
|
|
558
|
+
super();
|
|
559
|
+
proto3.util.initPartial(data, this);
|
|
560
|
+
}
|
|
561
|
+
static fromBinary(bytes, options) {
|
|
562
|
+
return new SignoutResponse().fromBinary(bytes, options);
|
|
563
|
+
}
|
|
564
|
+
static fromJson(jsonValue, options) {
|
|
565
|
+
return new SignoutResponse().fromJson(jsonValue, options);
|
|
566
|
+
}
|
|
567
|
+
static fromJsonString(jsonString, options) {
|
|
568
|
+
return new SignoutResponse().fromJsonString(jsonString, options);
|
|
569
|
+
}
|
|
570
|
+
static equals(a, b) {
|
|
571
|
+
return proto3.util.equals(SignoutResponse, a, b);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
SignoutResponse.runtime = proto3;
|
|
575
|
+
SignoutResponse.typeName = "uniswap.platformservice.v1.SignoutResponse";
|
|
576
|
+
SignoutResponse.fields = proto3.util.newFieldList(() => []);
|