@uniswap/client-platform-service 0.0.8 → 0.0.10
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-ApiKeyService_connectquery.js +1 -1
- package/dist/uniswap/platformservice/v1/apiKeyService_connect.js +1 -1
- package/dist/uniswap/platformservice/v1/apiKeyService_pb.d.ts +8 -0
- package/dist/uniswap/platformservice/v1/apiKeyService_pb.js +7 -1
- package/dist/uniswap/platformservice/v1/organizationService-OrganizationService_connectquery.d.ts +14 -1
- package/dist/uniswap/platformservice/v1/organizationService-OrganizationService_connectquery.js +15 -2
- package/dist/uniswap/platformservice/v1/organizationService_connect.d.ts +10 -1
- package/dist/uniswap/platformservice/v1/organizationService_connect.js +11 -2
- package/dist/uniswap/platformservice/v1/organizationService_pb.d.ts +42 -0
- package/dist/uniswap/platformservice/v1/organizationService_pb.js +70 -1
- package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.d.ts +2 -43
- package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.js +3 -44
- package/dist/uniswap/platformservice/v1/personaService_connect.d.ts +2 -31
- package/dist/uniswap/platformservice/v1/personaService_connect.js +3 -32
- package/dist/uniswap/platformservice/v1/personaService_pb.d.ts +4 -150
- package/dist/uniswap/platformservice/v1/personaService_pb.js +8 -232
- package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.d.ts +2 -18
- package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.js +3 -19
- package/dist/uniswap/platformservice/v1/sessionService_connect.d.ts +2 -14
- package/dist/uniswap/platformservice/v1/sessionService_connect.js +3 -15
- package/dist/uniswap/platformservice/v1/sessionService_pb.d.ts +124 -43
- package/dist/uniswap/platformservice/v1/sessionService_pb.js +149 -51
- package/dist/uniswap/platformservice/v1/userService-UserService_connectquery.d.ts +73 -0
- package/dist/uniswap/platformservice/v1/userService-UserService_connectquery.js +77 -0
- package/dist/uniswap/platformservice/v1/userService_connect.d.ts +61 -0
- package/dist/uniswap/platformservice/v1/userService_connect.js +65 -0
- package/dist/uniswap/platformservice/v1/userService_pb.d.ts +261 -0
- package/dist/uniswap/platformservice/v1/userService_pb.js +382 -0
- package/dist/uniswap/platformservice/v1/workerService-WorkerService_connectquery.js +1 -1
- package/dist/uniswap/platformservice/v1/workerService_connect.js +1 -1
- package/dist/uniswap/platformservice/v1/workerService_pb.js +1 -1
- package/package.json +1 -1
|
@@ -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,111 @@ 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;
|
|
271
307
|
/**
|
|
272
|
-
*
|
|
308
|
+
* human-friendly message, includes provider type for mismatch errors
|
|
273
309
|
*
|
|
274
|
-
* @generated from field:
|
|
310
|
+
* @generated from field: string message = 2;
|
|
311
|
+
*/
|
|
312
|
+
message: string;
|
|
313
|
+
/**
|
|
314
|
+
* cool-down if relevant
|
|
315
|
+
*
|
|
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
|
+
* email linked to different auth provider
|
|
356
|
+
*
|
|
357
|
+
* @generated from enum value: REASON_PROVIDER_MISMATCH = 4;
|
|
358
|
+
*/
|
|
359
|
+
PROVIDER_MISMATCH = 4
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* @generated from message uniswap.platformservice.v1.VerifyResponse
|
|
363
|
+
*/
|
|
364
|
+
export declare class VerifyResponse extends Message<VerifyResponse> {
|
|
365
|
+
/**
|
|
366
|
+
* @generated from field: bool retry = 1;
|
|
367
|
+
*/
|
|
368
|
+
retry: boolean;
|
|
369
|
+
/**
|
|
370
|
+
* @generated from oneof uniswap.platformservice.v1.VerifyResponse.outcome
|
|
371
|
+
*/
|
|
372
|
+
outcome: {
|
|
373
|
+
/**
|
|
374
|
+
* @generated from field: uniswap.platformservice.v1.VerifySuccess success = 2;
|
|
375
|
+
*/
|
|
376
|
+
value: VerifySuccess;
|
|
377
|
+
case: "success";
|
|
378
|
+
} | {
|
|
379
|
+
/**
|
|
380
|
+
* @generated from field: uniswap.platformservice.v1.VerifyFailure failure = 3;
|
|
381
|
+
*/
|
|
382
|
+
value: VerifyFailure;
|
|
383
|
+
case: "failure";
|
|
384
|
+
} | {
|
|
385
|
+
case: undefined;
|
|
386
|
+
value?: undefined;
|
|
387
|
+
};
|
|
281
388
|
constructor(data?: PartialMessage<VerifyResponse>);
|
|
282
389
|
static readonly runtime: typeof proto3;
|
|
283
390
|
static readonly typeName = "uniswap.platformservice.v1.VerifyResponse";
|
|
@@ -308,32 +415,6 @@ export declare class UserInfo extends Message<UserInfo> {
|
|
|
308
415
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserInfo;
|
|
309
416
|
static equals(a: UserInfo | PlainMessage<UserInfo> | undefined, b: UserInfo | PlainMessage<UserInfo> | undefined): boolean;
|
|
310
417
|
}
|
|
311
|
-
/**
|
|
312
|
-
* @generated from message uniswap.platformservice.v1.DeleteSessionRequest
|
|
313
|
-
*/
|
|
314
|
-
export declare class DeleteSessionRequest extends Message<DeleteSessionRequest> {
|
|
315
|
-
constructor(data?: PartialMessage<DeleteSessionRequest>);
|
|
316
|
-
static readonly runtime: typeof proto3;
|
|
317
|
-
static readonly typeName = "uniswap.platformservice.v1.DeleteSessionRequest";
|
|
318
|
-
static readonly fields: FieldList;
|
|
319
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteSessionRequest;
|
|
320
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteSessionRequest;
|
|
321
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteSessionRequest;
|
|
322
|
-
static equals(a: DeleteSessionRequest | PlainMessage<DeleteSessionRequest> | undefined, b: DeleteSessionRequest | PlainMessage<DeleteSessionRequest> | undefined): boolean;
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
* @generated from message uniswap.platformservice.v1.DeleteSessionResponse
|
|
326
|
-
*/
|
|
327
|
-
export declare class DeleteSessionResponse extends Message<DeleteSessionResponse> {
|
|
328
|
-
constructor(data?: PartialMessage<DeleteSessionResponse>);
|
|
329
|
-
static readonly runtime: typeof proto3;
|
|
330
|
-
static readonly typeName = "uniswap.platformservice.v1.DeleteSessionResponse";
|
|
331
|
-
static readonly fields: FieldList;
|
|
332
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteSessionResponse;
|
|
333
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteSessionResponse;
|
|
334
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteSessionResponse;
|
|
335
|
-
static equals(a: DeleteSessionResponse | PlainMessage<DeleteSessionResponse> | undefined, b: DeleteSessionResponse | PlainMessage<DeleteSessionResponse> | undefined): boolean;
|
|
336
|
-
}
|
|
337
418
|
/**
|
|
338
419
|
* @generated from message uniswap.platformservice.v1.UpdateSessionRequest
|
|
339
420
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
2
|
// @generated from file uniswap/platformservice/v1/sessionService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
@@ -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
|
*/
|
|
@@ -366,112 +402,174 @@ VerifyRequest.fields = proto3.util.newFieldList(() => [
|
|
|
366
402
|
{ no: 3, name: "type", kind: "enum", T: proto3.getEnumType(ChallengeType) },
|
|
367
403
|
]);
|
|
368
404
|
/**
|
|
369
|
-
* @generated from message uniswap.platformservice.v1.
|
|
405
|
+
* @generated from message uniswap.platformservice.v1.VerifySuccess
|
|
370
406
|
*/
|
|
371
|
-
export class
|
|
407
|
+
export class VerifySuccess extends Message {
|
|
372
408
|
constructor(data) {
|
|
373
409
|
super();
|
|
374
|
-
/**
|
|
375
|
-
* @generated from field: bool retry = 1;
|
|
376
|
-
*/
|
|
377
|
-
this.retry = false;
|
|
378
410
|
proto3.util.initPartial(data, this);
|
|
379
411
|
}
|
|
380
412
|
static fromBinary(bytes, options) {
|
|
381
|
-
return new
|
|
413
|
+
return new VerifySuccess().fromBinary(bytes, options);
|
|
382
414
|
}
|
|
383
415
|
static fromJson(jsonValue, options) {
|
|
384
|
-
return new
|
|
416
|
+
return new VerifySuccess().fromJson(jsonValue, options);
|
|
385
417
|
}
|
|
386
418
|
static fromJsonString(jsonString, options) {
|
|
387
|
-
return new
|
|
419
|
+
return new VerifySuccess().fromJsonString(jsonString, options);
|
|
388
420
|
}
|
|
389
421
|
static equals(a, b) {
|
|
390
|
-
return proto3.util.equals(
|
|
422
|
+
return proto3.util.equals(VerifySuccess, a, b);
|
|
391
423
|
}
|
|
392
424
|
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
{ no: 1, name: "
|
|
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 },
|
|
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 },
|
|
399
429
|
]);
|
|
400
430
|
/**
|
|
401
|
-
* @generated from message uniswap.platformservice.v1.
|
|
431
|
+
* @generated from message uniswap.platformservice.v1.VerifyFailure
|
|
402
432
|
*/
|
|
403
|
-
export class
|
|
433
|
+
export class VerifyFailure extends Message {
|
|
404
434
|
constructor(data) {
|
|
405
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, includes provider type for mismatch errors
|
|
442
|
+
*
|
|
443
|
+
* @generated from field: string message = 2;
|
|
444
|
+
*/
|
|
445
|
+
this.message = "";
|
|
406
446
|
proto3.util.initPartial(data, this);
|
|
407
447
|
}
|
|
408
448
|
static fromBinary(bytes, options) {
|
|
409
|
-
return new
|
|
449
|
+
return new VerifyFailure().fromBinary(bytes, options);
|
|
410
450
|
}
|
|
411
451
|
static fromJson(jsonValue, options) {
|
|
412
|
-
return new
|
|
452
|
+
return new VerifyFailure().fromJson(jsonValue, options);
|
|
413
453
|
}
|
|
414
454
|
static fromJsonString(jsonString, options) {
|
|
415
|
-
return new
|
|
455
|
+
return new VerifyFailure().fromJsonString(jsonString, options);
|
|
416
456
|
}
|
|
417
457
|
static equals(a, b) {
|
|
418
|
-
return proto3.util.equals(
|
|
458
|
+
return proto3.util.equals(VerifyFailure, a, b);
|
|
419
459
|
}
|
|
420
460
|
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
{ no: 1, name: "
|
|
425
|
-
{ no: 2, name: "
|
|
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 },
|
|
426
467
|
]);
|
|
427
468
|
/**
|
|
428
|
-
* @generated from
|
|
469
|
+
* @generated from enum uniswap.platformservice.v1.VerifyFailure.Reason
|
|
429
470
|
*/
|
|
430
|
-
export
|
|
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
|
+
/**
|
|
496
|
+
* email linked to different auth provider
|
|
497
|
+
*
|
|
498
|
+
* @generated from enum value: REASON_PROVIDER_MISMATCH = 4;
|
|
499
|
+
*/
|
|
500
|
+
VerifyFailure_Reason[VerifyFailure_Reason["PROVIDER_MISMATCH"] = 4] = "PROVIDER_MISMATCH";
|
|
501
|
+
})(VerifyFailure_Reason || (VerifyFailure_Reason = {}));
|
|
502
|
+
// Retrieve enum metadata with: proto3.getEnumType(VerifyFailure_Reason)
|
|
503
|
+
proto3.util.setEnumType(VerifyFailure_Reason, "uniswap.platformservice.v1.VerifyFailure.Reason", [
|
|
504
|
+
{ no: 0, name: "REASON_UNSPECIFIED" },
|
|
505
|
+
{ no: 1, name: "REASON_INVALID_SOLUTION" },
|
|
506
|
+
{ no: 2, name: "REASON_EMAIL_NOT_VERIFIED" },
|
|
507
|
+
{ no: 3, name: "REASON_IVALID_CHALLENGE" },
|
|
508
|
+
{ no: 4, name: "REASON_PROVIDER_MISMATCH" },
|
|
509
|
+
]);
|
|
510
|
+
/**
|
|
511
|
+
* @generated from message uniswap.platformservice.v1.VerifyResponse
|
|
512
|
+
*/
|
|
513
|
+
export class VerifyResponse extends Message {
|
|
431
514
|
constructor(data) {
|
|
432
515
|
super();
|
|
516
|
+
/**
|
|
517
|
+
* @generated from field: bool retry = 1;
|
|
518
|
+
*/
|
|
519
|
+
this.retry = false;
|
|
520
|
+
/**
|
|
521
|
+
* @generated from oneof uniswap.platformservice.v1.VerifyResponse.outcome
|
|
522
|
+
*/
|
|
523
|
+
this.outcome = { case: undefined };
|
|
433
524
|
proto3.util.initPartial(data, this);
|
|
434
525
|
}
|
|
435
526
|
static fromBinary(bytes, options) {
|
|
436
|
-
return new
|
|
527
|
+
return new VerifyResponse().fromBinary(bytes, options);
|
|
437
528
|
}
|
|
438
529
|
static fromJson(jsonValue, options) {
|
|
439
|
-
return new
|
|
530
|
+
return new VerifyResponse().fromJson(jsonValue, options);
|
|
440
531
|
}
|
|
441
532
|
static fromJsonString(jsonString, options) {
|
|
442
|
-
return new
|
|
533
|
+
return new VerifyResponse().fromJsonString(jsonString, options);
|
|
443
534
|
}
|
|
444
535
|
static equals(a, b) {
|
|
445
|
-
return proto3.util.equals(
|
|
536
|
+
return proto3.util.equals(VerifyResponse, a, b);
|
|
446
537
|
}
|
|
447
538
|
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
539
|
+
VerifyResponse.runtime = proto3;
|
|
540
|
+
VerifyResponse.typeName = "uniswap.platformservice.v1.VerifyResponse";
|
|
541
|
+
VerifyResponse.fields = proto3.util.newFieldList(() => [
|
|
542
|
+
{ no: 1, name: "retry", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
543
|
+
{ no: 2, name: "success", kind: "message", T: VerifySuccess, oneof: "outcome" },
|
|
544
|
+
{ no: 3, name: "failure", kind: "message", T: VerifyFailure, oneof: "outcome" },
|
|
545
|
+
]);
|
|
451
546
|
/**
|
|
452
|
-
* @generated from message uniswap.platformservice.v1.
|
|
547
|
+
* @generated from message uniswap.platformservice.v1.UserInfo
|
|
453
548
|
*/
|
|
454
|
-
export class
|
|
549
|
+
export class UserInfo extends Message {
|
|
455
550
|
constructor(data) {
|
|
456
551
|
super();
|
|
457
552
|
proto3.util.initPartial(data, this);
|
|
458
553
|
}
|
|
459
554
|
static fromBinary(bytes, options) {
|
|
460
|
-
return new
|
|
555
|
+
return new UserInfo().fromBinary(bytes, options);
|
|
461
556
|
}
|
|
462
557
|
static fromJson(jsonValue, options) {
|
|
463
|
-
return new
|
|
558
|
+
return new UserInfo().fromJson(jsonValue, options);
|
|
464
559
|
}
|
|
465
560
|
static fromJsonString(jsonString, options) {
|
|
466
|
-
return new
|
|
561
|
+
return new UserInfo().fromJsonString(jsonString, options);
|
|
467
562
|
}
|
|
468
563
|
static equals(a, b) {
|
|
469
|
-
return proto3.util.equals(
|
|
564
|
+
return proto3.util.equals(UserInfo, a, b);
|
|
470
565
|
}
|
|
471
566
|
}
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
567
|
+
UserInfo.runtime = proto3;
|
|
568
|
+
UserInfo.typeName = "uniswap.platformservice.v1.UserInfo";
|
|
569
|
+
UserInfo.fields = proto3.util.newFieldList(() => [
|
|
570
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
571
|
+
{ no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
572
|
+
]);
|
|
475
573
|
/**
|
|
476
574
|
* @generated from message uniswap.platformservice.v1.UpdateSessionRequest
|
|
477
575
|
*/
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
+
import { CreateUserRequest, CreateUserResponse, DeleteUserRequest, DeleteUserResponse, GetUserByEmailRequest, GetUserByEmailResponse, GetUserRequest, GetUserResponse, ModifyUserRequest, ModifyUserResponse } from "./userService_pb.js";
|
|
3
|
+
/**
|
|
4
|
+
* External facing & Authed endpoints - get UserID directly through ctx.auth.userID header
|
|
5
|
+
*
|
|
6
|
+
* @generated from rpc uniswap.platformservice.v1.UserService.CreateUser
|
|
7
|
+
*/
|
|
8
|
+
export declare const createUser: {
|
|
9
|
+
readonly localName: "createUser";
|
|
10
|
+
readonly name: "CreateUser";
|
|
11
|
+
readonly kind: MethodKind.Unary;
|
|
12
|
+
readonly I: typeof CreateUserRequest;
|
|
13
|
+
readonly O: typeof CreateUserResponse;
|
|
14
|
+
readonly service: {
|
|
15
|
+
readonly typeName: "uniswap.platformservice.v1.UserService";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @generated from rpc uniswap.platformservice.v1.UserService.ModifyUser
|
|
20
|
+
*/
|
|
21
|
+
export declare const modifyUser: {
|
|
22
|
+
readonly localName: "modifyUser";
|
|
23
|
+
readonly name: "ModifyUser";
|
|
24
|
+
readonly kind: MethodKind.Unary;
|
|
25
|
+
readonly I: typeof ModifyUserRequest;
|
|
26
|
+
readonly O: typeof ModifyUserResponse;
|
|
27
|
+
readonly service: {
|
|
28
|
+
readonly typeName: "uniswap.platformservice.v1.UserService";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Gets current user details and session info
|
|
33
|
+
*
|
|
34
|
+
* @generated from rpc uniswap.platformservice.v1.UserService.GetUser
|
|
35
|
+
*/
|
|
36
|
+
export declare const getUser: {
|
|
37
|
+
readonly localName: "getUser";
|
|
38
|
+
readonly name: "GetUser";
|
|
39
|
+
readonly kind: MethodKind.Unary;
|
|
40
|
+
readonly I: typeof GetUserRequest;
|
|
41
|
+
readonly O: typeof GetUserResponse;
|
|
42
|
+
readonly service: {
|
|
43
|
+
readonly typeName: "uniswap.platformservice.v1.UserService";
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* @generated from rpc uniswap.platformservice.v1.UserService.DeleteUser
|
|
48
|
+
*/
|
|
49
|
+
export declare const deleteUser: {
|
|
50
|
+
readonly localName: "deleteUser";
|
|
51
|
+
readonly name: "DeleteUser";
|
|
52
|
+
readonly kind: MethodKind.Unary;
|
|
53
|
+
readonly I: typeof DeleteUserRequest;
|
|
54
|
+
readonly O: typeof DeleteUserResponse;
|
|
55
|
+
readonly service: {
|
|
56
|
+
readonly typeName: "uniswap.platformservice.v1.UserService";
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Internal service-to-service endpoint - get user by email
|
|
61
|
+
*
|
|
62
|
+
* @generated from rpc uniswap.platformservice.v1.UserService.GetUserByEmail
|
|
63
|
+
*/
|
|
64
|
+
export declare const getUserByEmail: {
|
|
65
|
+
readonly localName: "getUserByEmail";
|
|
66
|
+
readonly name: "GetUserByEmail";
|
|
67
|
+
readonly kind: MethodKind.Unary;
|
|
68
|
+
readonly I: typeof GetUserByEmailRequest;
|
|
69
|
+
readonly O: typeof GetUserByEmailResponse;
|
|
70
|
+
readonly service: {
|
|
71
|
+
readonly typeName: "uniswap.platformservice.v1.UserService";
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/platformservice/v1/userService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
+
import { CreateUserRequest, CreateUserResponse, DeleteUserRequest, DeleteUserResponse, GetUserByEmailRequest, GetUserByEmailResponse, GetUserRequest, GetUserResponse, ModifyUserRequest, ModifyUserResponse } from "./userService_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* External facing & Authed endpoints - get UserID directly through ctx.auth.userID header
|
|
9
|
+
*
|
|
10
|
+
* @generated from rpc uniswap.platformservice.v1.UserService.CreateUser
|
|
11
|
+
*/
|
|
12
|
+
export const createUser = {
|
|
13
|
+
localName: "createUser",
|
|
14
|
+
name: "CreateUser",
|
|
15
|
+
kind: MethodKind.Unary,
|
|
16
|
+
I: CreateUserRequest,
|
|
17
|
+
O: CreateUserResponse,
|
|
18
|
+
service: {
|
|
19
|
+
typeName: "uniswap.platformservice.v1.UserService"
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @generated from rpc uniswap.platformservice.v1.UserService.ModifyUser
|
|
24
|
+
*/
|
|
25
|
+
export const modifyUser = {
|
|
26
|
+
localName: "modifyUser",
|
|
27
|
+
name: "ModifyUser",
|
|
28
|
+
kind: MethodKind.Unary,
|
|
29
|
+
I: ModifyUserRequest,
|
|
30
|
+
O: ModifyUserResponse,
|
|
31
|
+
service: {
|
|
32
|
+
typeName: "uniswap.platformservice.v1.UserService"
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Gets current user details and session info
|
|
37
|
+
*
|
|
38
|
+
* @generated from rpc uniswap.platformservice.v1.UserService.GetUser
|
|
39
|
+
*/
|
|
40
|
+
export const getUser = {
|
|
41
|
+
localName: "getUser",
|
|
42
|
+
name: "GetUser",
|
|
43
|
+
kind: MethodKind.Unary,
|
|
44
|
+
I: GetUserRequest,
|
|
45
|
+
O: GetUserResponse,
|
|
46
|
+
service: {
|
|
47
|
+
typeName: "uniswap.platformservice.v1.UserService"
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* @generated from rpc uniswap.platformservice.v1.UserService.DeleteUser
|
|
52
|
+
*/
|
|
53
|
+
export const deleteUser = {
|
|
54
|
+
localName: "deleteUser",
|
|
55
|
+
name: "DeleteUser",
|
|
56
|
+
kind: MethodKind.Unary,
|
|
57
|
+
I: DeleteUserRequest,
|
|
58
|
+
O: DeleteUserResponse,
|
|
59
|
+
service: {
|
|
60
|
+
typeName: "uniswap.platformservice.v1.UserService"
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Internal service-to-service endpoint - get user by email
|
|
65
|
+
*
|
|
66
|
+
* @generated from rpc uniswap.platformservice.v1.UserService.GetUserByEmail
|
|
67
|
+
*/
|
|
68
|
+
export const getUserByEmail = {
|
|
69
|
+
localName: "getUserByEmail",
|
|
70
|
+
name: "GetUserByEmail",
|
|
71
|
+
kind: MethodKind.Unary,
|
|
72
|
+
I: GetUserByEmailRequest,
|
|
73
|
+
O: GetUserByEmailResponse,
|
|
74
|
+
service: {
|
|
75
|
+
typeName: "uniswap.platformservice.v1.UserService"
|
|
76
|
+
}
|
|
77
|
+
};
|