@uniswap/client-platform-service 0.0.7 → 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/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 +154 -0
- package/dist/uniswap/platformservice/v1/personaService_pb.js +237 -1
- package/dist/uniswap/platformservice/v1/sessionService_pb.d.ts +138 -24
- package/dist/uniswap/platformservice/v1/sessionService_pb.js +173 -8
- package/package.json +1 -1
package/dist/uniswap/platformservice/v1/organizationService-OrganizationService_connectquery.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
+
import { CreateOrganizationRequest, CreateOrganizationResponse } from "./organizationService_pb.js";
|
|
3
|
+
/**
|
|
4
|
+
* authed toward user through egw
|
|
5
|
+
* User who created the org is admin
|
|
6
|
+
*
|
|
7
|
+
* @generated from rpc uniswap.platformservice.v1.OrganizationService.CreateOrganization
|
|
8
|
+
*/
|
|
9
|
+
export declare const createOrganization: {
|
|
10
|
+
readonly localName: "createOrganization";
|
|
11
|
+
readonly name: "CreateOrganization";
|
|
12
|
+
readonly kind: MethodKind.Unary;
|
|
13
|
+
readonly I: typeof CreateOrganizationRequest;
|
|
14
|
+
readonly O: typeof CreateOrganizationResponse;
|
|
15
|
+
readonly service: {
|
|
16
|
+
readonly typeName: "uniswap.platformservice.v1.OrganizationService";
|
|
17
|
+
};
|
|
18
|
+
};
|
package/dist/uniswap/platformservice/v1/organizationService-OrganizationService_connectquery.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/platformservice/v1/organizationService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
+
import { CreateOrganizationRequest, CreateOrganizationResponse } from "./organizationService_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* authed toward user through egw
|
|
9
|
+
* User who created the org is admin
|
|
10
|
+
*
|
|
11
|
+
* @generated from rpc uniswap.platformservice.v1.OrganizationService.CreateOrganization
|
|
12
|
+
*/
|
|
13
|
+
export const createOrganization = {
|
|
14
|
+
localName: "createOrganization",
|
|
15
|
+
name: "CreateOrganization",
|
|
16
|
+
kind: MethodKind.Unary,
|
|
17
|
+
I: CreateOrganizationRequest,
|
|
18
|
+
O: CreateOrganizationResponse,
|
|
19
|
+
service: {
|
|
20
|
+
typeName: "uniswap.platformservice.v1.OrganizationService"
|
|
21
|
+
}
|
|
22
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CreateOrganizationRequest, CreateOrganizationResponse } from "./organizationService_pb.js";
|
|
2
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from service uniswap.platformservice.v1.OrganizationService
|
|
5
|
+
*/
|
|
6
|
+
export declare const OrganizationService: {
|
|
7
|
+
readonly typeName: "uniswap.platformservice.v1.OrganizationService";
|
|
8
|
+
readonly methods: {
|
|
9
|
+
/**
|
|
10
|
+
* authed toward user through egw
|
|
11
|
+
* User who created the org is admin
|
|
12
|
+
*
|
|
13
|
+
* @generated from rpc uniswap.platformservice.v1.OrganizationService.CreateOrganization
|
|
14
|
+
*/
|
|
15
|
+
readonly createOrganization: {
|
|
16
|
+
readonly name: "CreateOrganization";
|
|
17
|
+
readonly I: typeof CreateOrganizationRequest;
|
|
18
|
+
readonly O: typeof CreateOrganizationResponse;
|
|
19
|
+
readonly kind: MethodKind.Unary;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/platformservice/v1/organizationService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { CreateOrganizationRequest, CreateOrganizationResponse } from "./organizationService_pb.js";
|
|
6
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from service uniswap.platformservice.v1.OrganizationService
|
|
9
|
+
*/
|
|
10
|
+
export const OrganizationService = {
|
|
11
|
+
typeName: "uniswap.platformservice.v1.OrganizationService",
|
|
12
|
+
methods: {
|
|
13
|
+
/**
|
|
14
|
+
* authed toward user through egw
|
|
15
|
+
* User who created the org is admin
|
|
16
|
+
*
|
|
17
|
+
* @generated from rpc uniswap.platformservice.v1.OrganizationService.CreateOrganization
|
|
18
|
+
*/
|
|
19
|
+
createOrganization: {
|
|
20
|
+
name: "CreateOrganization",
|
|
21
|
+
I: CreateOrganizationRequest,
|
|
22
|
+
O: CreateOrganizationResponse,
|
|
23
|
+
kind: MethodKind.Unary,
|
|
24
|
+
},
|
|
25
|
+
}
|
|
26
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from message uniswap.platformservice.v1.CreateOrganizationRequest
|
|
5
|
+
*/
|
|
6
|
+
export declare class CreateOrganizationRequest extends Message<CreateOrganizationRequest> {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from field: string name = 1;
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
constructor(data?: PartialMessage<CreateOrganizationRequest>);
|
|
12
|
+
static readonly runtime: typeof proto3;
|
|
13
|
+
static readonly typeName = "uniswap.platformservice.v1.CreateOrganizationRequest";
|
|
14
|
+
static readonly fields: FieldList;
|
|
15
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateOrganizationRequest;
|
|
16
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateOrganizationRequest;
|
|
17
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateOrganizationRequest;
|
|
18
|
+
static equals(a: CreateOrganizationRequest | PlainMessage<CreateOrganizationRequest> | undefined, b: CreateOrganizationRequest | PlainMessage<CreateOrganizationRequest> | undefined): boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @generated from message uniswap.platformservice.v1.CreateOrganizationResponse
|
|
22
|
+
*/
|
|
23
|
+
export declare class CreateOrganizationResponse extends Message<CreateOrganizationResponse> {
|
|
24
|
+
constructor(data?: PartialMessage<CreateOrganizationResponse>);
|
|
25
|
+
static readonly runtime: typeof proto3;
|
|
26
|
+
static readonly typeName = "uniswap.platformservice.v1.CreateOrganizationResponse";
|
|
27
|
+
static readonly fields: FieldList;
|
|
28
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateOrganizationResponse;
|
|
29
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateOrganizationResponse;
|
|
30
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateOrganizationResponse;
|
|
31
|
+
static equals(a: CreateOrganizationResponse | PlainMessage<CreateOrganizationResponse> | undefined, b: CreateOrganizationResponse | PlainMessage<CreateOrganizationResponse> | undefined): boolean;
|
|
32
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/platformservice/v1/organizationService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from message uniswap.platformservice.v1.CreateOrganizationRequest
|
|
8
|
+
*/
|
|
9
|
+
export class CreateOrganizationRequest extends Message {
|
|
10
|
+
constructor(data) {
|
|
11
|
+
super();
|
|
12
|
+
/**
|
|
13
|
+
* @generated from field: string name = 1;
|
|
14
|
+
*/
|
|
15
|
+
this.name = "";
|
|
16
|
+
proto3.util.initPartial(data, this);
|
|
17
|
+
}
|
|
18
|
+
static fromBinary(bytes, options) {
|
|
19
|
+
return new CreateOrganizationRequest().fromBinary(bytes, options);
|
|
20
|
+
}
|
|
21
|
+
static fromJson(jsonValue, options) {
|
|
22
|
+
return new CreateOrganizationRequest().fromJson(jsonValue, options);
|
|
23
|
+
}
|
|
24
|
+
static fromJsonString(jsonString, options) {
|
|
25
|
+
return new CreateOrganizationRequest().fromJsonString(jsonString, options);
|
|
26
|
+
}
|
|
27
|
+
static equals(a, b) {
|
|
28
|
+
return proto3.util.equals(CreateOrganizationRequest, a, b);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
CreateOrganizationRequest.runtime = proto3;
|
|
32
|
+
CreateOrganizationRequest.typeName = "uniswap.platformservice.v1.CreateOrganizationRequest";
|
|
33
|
+
CreateOrganizationRequest.fields = proto3.util.newFieldList(() => [
|
|
34
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
35
|
+
]);
|
|
36
|
+
/**
|
|
37
|
+
* @generated from message uniswap.platformservice.v1.CreateOrganizationResponse
|
|
38
|
+
*/
|
|
39
|
+
export class CreateOrganizationResponse extends Message {
|
|
40
|
+
constructor(data) {
|
|
41
|
+
super();
|
|
42
|
+
proto3.util.initPartial(data, this);
|
|
43
|
+
}
|
|
44
|
+
static fromBinary(bytes, options) {
|
|
45
|
+
return new CreateOrganizationResponse().fromBinary(bytes, options);
|
|
46
|
+
}
|
|
47
|
+
static fromJson(jsonValue, options) {
|
|
48
|
+
return new CreateOrganizationResponse().fromJson(jsonValue, options);
|
|
49
|
+
}
|
|
50
|
+
static fromJsonString(jsonString, options) {
|
|
51
|
+
return new CreateOrganizationResponse().fromJsonString(jsonString, options);
|
|
52
|
+
}
|
|
53
|
+
static equals(a, b) {
|
|
54
|
+
return proto3.util.equals(CreateOrganizationResponse, a, b);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
CreateOrganizationResponse.runtime = proto3;
|
|
58
|
+
CreateOrganizationResponse.typeName = "uniswap.platformservice.v1.CreateOrganizationResponse";
|
|
59
|
+
CreateOrganizationResponse.fields = proto3.util.newFieldList(() => []);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { GetOrCreatePersonaRequest, GetOrCreatePersonaResponse, UpgradePersonaRequest, UpgradePersonaResponse } from "./personaService_pb.js";
|
|
2
|
+
import { DeletePersonaRequest, DeletePersonaResponse, GetAccountRequest, GetAccountResponse, GetOrCreatePersonaRequest, GetOrCreatePersonaResponse, ModifyPersonaRequest, ModifyPersonaResponse, UpgradePersonaRequest, UpgradePersonaResponse } from "./personaService_pb.js";
|
|
3
3
|
/**
|
|
4
|
+
* Internal endpoints
|
|
5
|
+
*
|
|
4
6
|
* @generated from rpc uniswap.platformservice.v1.PersonaService.UpgradePersona
|
|
5
7
|
*/
|
|
6
8
|
export declare const upgradePersona: {
|
|
@@ -26,3 +28,44 @@ export declare const getOrCreatePersona: {
|
|
|
26
28
|
readonly typeName: "uniswap.platformservice.v1.PersonaService";
|
|
27
29
|
};
|
|
28
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* External facing & Authed endpoint get PersonaID directly through ctx.auth.userID header
|
|
33
|
+
*
|
|
34
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.ModifyPersona
|
|
35
|
+
*/
|
|
36
|
+
export declare const modifyPersona: {
|
|
37
|
+
readonly localName: "modifyPersona";
|
|
38
|
+
readonly name: "ModifyPersona";
|
|
39
|
+
readonly kind: MethodKind.Unary;
|
|
40
|
+
readonly I: typeof ModifyPersonaRequest;
|
|
41
|
+
readonly O: typeof ModifyPersonaResponse;
|
|
42
|
+
readonly service: {
|
|
43
|
+
readonly typeName: "uniswap.platformservice.v1.PersonaService";
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.GetAccount
|
|
48
|
+
*/
|
|
49
|
+
export declare const getAccount: {
|
|
50
|
+
readonly localName: "getAccount";
|
|
51
|
+
readonly name: "GetAccount";
|
|
52
|
+
readonly kind: MethodKind.Unary;
|
|
53
|
+
readonly I: typeof GetAccountRequest;
|
|
54
|
+
readonly O: typeof GetAccountResponse;
|
|
55
|
+
readonly service: {
|
|
56
|
+
readonly typeName: "uniswap.platformservice.v1.PersonaService";
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.DeletePersona
|
|
61
|
+
*/
|
|
62
|
+
export declare const deletePersona: {
|
|
63
|
+
readonly localName: "deletePersona";
|
|
64
|
+
readonly name: "DeletePersona";
|
|
65
|
+
readonly kind: MethodKind.Unary;
|
|
66
|
+
readonly I: typeof DeletePersonaRequest;
|
|
67
|
+
readonly O: typeof DeletePersonaResponse;
|
|
68
|
+
readonly service: {
|
|
69
|
+
readonly typeName: "uniswap.platformservice.v1.PersonaService";
|
|
70
|
+
};
|
|
71
|
+
};
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { GetOrCreatePersonaRequest, GetOrCreatePersonaResponse, UpgradePersonaRequest, UpgradePersonaResponse } from "./personaService_pb.js";
|
|
6
|
+
import { DeletePersonaRequest, DeletePersonaResponse, GetAccountRequest, GetAccountResponse, GetOrCreatePersonaRequest, GetOrCreatePersonaResponse, ModifyPersonaRequest, ModifyPersonaResponse, UpgradePersonaRequest, UpgradePersonaResponse } from "./personaService_pb.js";
|
|
7
7
|
/**
|
|
8
|
+
* Internal endpoints
|
|
9
|
+
*
|
|
8
10
|
* @generated from rpc uniswap.platformservice.v1.PersonaService.UpgradePersona
|
|
9
11
|
*/
|
|
10
12
|
export const upgradePersona = {
|
|
@@ -30,3 +32,44 @@ export const getOrCreatePersona = {
|
|
|
30
32
|
typeName: "uniswap.platformservice.v1.PersonaService"
|
|
31
33
|
}
|
|
32
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* External facing & Authed endpoint get PersonaID directly through ctx.auth.userID header
|
|
37
|
+
*
|
|
38
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.ModifyPersona
|
|
39
|
+
*/
|
|
40
|
+
export const modifyPersona = {
|
|
41
|
+
localName: "modifyPersona",
|
|
42
|
+
name: "ModifyPersona",
|
|
43
|
+
kind: MethodKind.Unary,
|
|
44
|
+
I: ModifyPersonaRequest,
|
|
45
|
+
O: ModifyPersonaResponse,
|
|
46
|
+
service: {
|
|
47
|
+
typeName: "uniswap.platformservice.v1.PersonaService"
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.GetAccount
|
|
52
|
+
*/
|
|
53
|
+
export const getAccount = {
|
|
54
|
+
localName: "getAccount",
|
|
55
|
+
name: "GetAccount",
|
|
56
|
+
kind: MethodKind.Unary,
|
|
57
|
+
I: GetAccountRequest,
|
|
58
|
+
O: GetAccountResponse,
|
|
59
|
+
service: {
|
|
60
|
+
typeName: "uniswap.platformservice.v1.PersonaService"
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.DeletePersona
|
|
65
|
+
*/
|
|
66
|
+
export const deletePersona = {
|
|
67
|
+
localName: "deletePersona",
|
|
68
|
+
name: "DeletePersona",
|
|
69
|
+
kind: MethodKind.Unary,
|
|
70
|
+
I: DeletePersonaRequest,
|
|
71
|
+
O: DeletePersonaResponse,
|
|
72
|
+
service: {
|
|
73
|
+
typeName: "uniswap.platformservice.v1.PersonaService"
|
|
74
|
+
}
|
|
75
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetOrCreatePersonaRequest, GetOrCreatePersonaResponse, UpgradePersonaRequest, UpgradePersonaResponse } from "./personaService_pb.js";
|
|
1
|
+
import { DeletePersonaRequest, DeletePersonaResponse, GetAccountRequest, GetAccountResponse, GetOrCreatePersonaRequest, GetOrCreatePersonaResponse, ModifyPersonaRequest, ModifyPersonaResponse, UpgradePersonaRequest, UpgradePersonaResponse } from "./personaService_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service uniswap.platformservice.v1.PersonaService
|
|
@@ -7,6 +7,8 @@ export declare const PersonaService: {
|
|
|
7
7
|
readonly typeName: "uniswap.platformservice.v1.PersonaService";
|
|
8
8
|
readonly methods: {
|
|
9
9
|
/**
|
|
10
|
+
* Internal endpoints
|
|
11
|
+
*
|
|
10
12
|
* @generated from rpc uniswap.platformservice.v1.PersonaService.UpgradePersona
|
|
11
13
|
*/
|
|
12
14
|
readonly upgradePersona: {
|
|
@@ -24,5 +26,34 @@ export declare const PersonaService: {
|
|
|
24
26
|
readonly O: typeof GetOrCreatePersonaResponse;
|
|
25
27
|
readonly kind: MethodKind.Unary;
|
|
26
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* External facing & Authed endpoint get PersonaID directly through ctx.auth.userID header
|
|
31
|
+
*
|
|
32
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.ModifyPersona
|
|
33
|
+
*/
|
|
34
|
+
readonly modifyPersona: {
|
|
35
|
+
readonly name: "ModifyPersona";
|
|
36
|
+
readonly I: typeof ModifyPersonaRequest;
|
|
37
|
+
readonly O: typeof ModifyPersonaResponse;
|
|
38
|
+
readonly kind: MethodKind.Unary;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.GetAccount
|
|
42
|
+
*/
|
|
43
|
+
readonly getAccount: {
|
|
44
|
+
readonly name: "GetAccount";
|
|
45
|
+
readonly I: typeof GetAccountRequest;
|
|
46
|
+
readonly O: typeof GetAccountResponse;
|
|
47
|
+
readonly kind: MethodKind.Unary;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.DeletePersona
|
|
51
|
+
*/
|
|
52
|
+
readonly deletePersona: {
|
|
53
|
+
readonly name: "DeletePersona";
|
|
54
|
+
readonly I: typeof DeletePersonaRequest;
|
|
55
|
+
readonly O: typeof DeletePersonaResponse;
|
|
56
|
+
readonly kind: MethodKind.Unary;
|
|
57
|
+
};
|
|
27
58
|
};
|
|
28
59
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file uniswap/platformservice/v1/personaService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { GetOrCreatePersonaRequest, GetOrCreatePersonaResponse, UpgradePersonaRequest, UpgradePersonaResponse } from "./personaService_pb.js";
|
|
5
|
+
import { DeletePersonaRequest, DeletePersonaResponse, GetAccountRequest, GetAccountResponse, GetOrCreatePersonaRequest, GetOrCreatePersonaResponse, ModifyPersonaRequest, ModifyPersonaResponse, UpgradePersonaRequest, UpgradePersonaResponse } from "./personaService_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service uniswap.platformservice.v1.PersonaService
|
|
@@ -11,6 +11,8 @@ export const PersonaService = {
|
|
|
11
11
|
typeName: "uniswap.platformservice.v1.PersonaService",
|
|
12
12
|
methods: {
|
|
13
13
|
/**
|
|
14
|
+
* Internal endpoints
|
|
15
|
+
*
|
|
14
16
|
* @generated from rpc uniswap.platformservice.v1.PersonaService.UpgradePersona
|
|
15
17
|
*/
|
|
16
18
|
upgradePersona: {
|
|
@@ -28,5 +30,34 @@ export const PersonaService = {
|
|
|
28
30
|
O: GetOrCreatePersonaResponse,
|
|
29
31
|
kind: MethodKind.Unary,
|
|
30
32
|
},
|
|
33
|
+
/**
|
|
34
|
+
* External facing & Authed endpoint get PersonaID directly through ctx.auth.userID header
|
|
35
|
+
*
|
|
36
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.ModifyPersona
|
|
37
|
+
*/
|
|
38
|
+
modifyPersona: {
|
|
39
|
+
name: "ModifyPersona",
|
|
40
|
+
I: ModifyPersonaRequest,
|
|
41
|
+
O: ModifyPersonaResponse,
|
|
42
|
+
kind: MethodKind.Unary,
|
|
43
|
+
},
|
|
44
|
+
/**
|
|
45
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.GetAccount
|
|
46
|
+
*/
|
|
47
|
+
getAccount: {
|
|
48
|
+
name: "GetAccount",
|
|
49
|
+
I: GetAccountRequest,
|
|
50
|
+
O: GetAccountResponse,
|
|
51
|
+
kind: MethodKind.Unary,
|
|
52
|
+
},
|
|
53
|
+
/**
|
|
54
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.DeletePersona
|
|
55
|
+
*/
|
|
56
|
+
deletePersona: {
|
|
57
|
+
name: "DeletePersona",
|
|
58
|
+
I: DeletePersonaRequest,
|
|
59
|
+
O: DeletePersonaResponse,
|
|
60
|
+
kind: MethodKind.Unary,
|
|
61
|
+
},
|
|
31
62
|
}
|
|
32
63
|
};
|
|
@@ -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";
|
|
@@ -93,3 +97,153 @@ export declare class PersonaScore extends Message<PersonaScore> {
|
|
|
93
97
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PersonaScore;
|
|
94
98
|
static equals(a: PersonaScore | PlainMessage<PersonaScore> | undefined, b: PersonaScore | PlainMessage<PersonaScore> | undefined): boolean;
|
|
95
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* Represents an agreement
|
|
102
|
+
*
|
|
103
|
+
* @generated from message uniswap.platformservice.v1.Agreement
|
|
104
|
+
*/
|
|
105
|
+
export declare class Agreement extends Message<Agreement> {
|
|
106
|
+
/**
|
|
107
|
+
* @generated from field: string name = 1;
|
|
108
|
+
*/
|
|
109
|
+
name: string;
|
|
110
|
+
/**
|
|
111
|
+
* @generated from field: string version = 2;
|
|
112
|
+
*/
|
|
113
|
+
version: string;
|
|
114
|
+
/**
|
|
115
|
+
* @generated from field: bool agreed = 3;
|
|
116
|
+
*/
|
|
117
|
+
agreed: boolean;
|
|
118
|
+
constructor(data?: PartialMessage<Agreement>);
|
|
119
|
+
static readonly runtime: typeof proto3;
|
|
120
|
+
static readonly typeName = "uniswap.platformservice.v1.Agreement";
|
|
121
|
+
static readonly fields: FieldList;
|
|
122
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Agreement;
|
|
123
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Agreement;
|
|
124
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Agreement;
|
|
125
|
+
static equals(a: Agreement | PlainMessage<Agreement> | undefined, b: Agreement | PlainMessage<Agreement> | undefined): boolean;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Request to modify an existing persona
|
|
129
|
+
*
|
|
130
|
+
* @generated from message uniswap.platformservice.v1.ModifyPersonaRequest
|
|
131
|
+
*/
|
|
132
|
+
export declare class ModifyPersonaRequest extends Message<ModifyPersonaRequest> {
|
|
133
|
+
/**
|
|
134
|
+
* @generated from field: optional string name = 1;
|
|
135
|
+
*/
|
|
136
|
+
name?: string;
|
|
137
|
+
/**
|
|
138
|
+
* @generated from field: optional uniswap.platformservice.v1.Agreement agreement = 2;
|
|
139
|
+
*/
|
|
140
|
+
agreement?: Agreement;
|
|
141
|
+
constructor(data?: PartialMessage<ModifyPersonaRequest>);
|
|
142
|
+
static readonly runtime: typeof proto3;
|
|
143
|
+
static readonly typeName = "uniswap.platformservice.v1.ModifyPersonaRequest";
|
|
144
|
+
static readonly fields: FieldList;
|
|
145
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModifyPersonaRequest;
|
|
146
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModifyPersonaRequest;
|
|
147
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModifyPersonaRequest;
|
|
148
|
+
static equals(a: ModifyPersonaRequest | PlainMessage<ModifyPersonaRequest> | undefined, b: ModifyPersonaRequest | PlainMessage<ModifyPersonaRequest> | undefined): boolean;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Response for modify persona
|
|
152
|
+
*
|
|
153
|
+
* @generated from message uniswap.platformservice.v1.ModifyPersonaResponse
|
|
154
|
+
*/
|
|
155
|
+
export declare class ModifyPersonaResponse extends Message<ModifyPersonaResponse> {
|
|
156
|
+
constructor(data?: PartialMessage<ModifyPersonaResponse>);
|
|
157
|
+
static readonly runtime: typeof proto3;
|
|
158
|
+
static readonly typeName = "uniswap.platformservice.v1.ModifyPersonaResponse";
|
|
159
|
+
static readonly fields: FieldList;
|
|
160
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModifyPersonaResponse;
|
|
161
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModifyPersonaResponse;
|
|
162
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModifyPersonaResponse;
|
|
163
|
+
static equals(a: ModifyPersonaResponse | PlainMessage<ModifyPersonaResponse> | undefined, b: ModifyPersonaResponse | PlainMessage<ModifyPersonaResponse> | undefined): boolean;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Request to get a persona
|
|
167
|
+
*
|
|
168
|
+
* @generated from message uniswap.platformservice.v1.GetAccountRequest
|
|
169
|
+
*/
|
|
170
|
+
export declare class GetAccountRequest extends Message<GetAccountRequest> {
|
|
171
|
+
constructor(data?: PartialMessage<GetAccountRequest>);
|
|
172
|
+
static readonly runtime: typeof proto3;
|
|
173
|
+
static readonly typeName = "uniswap.platformservice.v1.GetAccountRequest";
|
|
174
|
+
static readonly fields: FieldList;
|
|
175
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAccountRequest;
|
|
176
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAccountRequest;
|
|
177
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAccountRequest;
|
|
178
|
+
static equals(a: GetAccountRequest | PlainMessage<GetAccountRequest> | undefined, b: GetAccountRequest | PlainMessage<GetAccountRequest> | undefined): boolean;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* @generated from message uniswap.platformservice.v1.Persona
|
|
182
|
+
*/
|
|
183
|
+
export declare class Persona extends Message<Persona> {
|
|
184
|
+
/**
|
|
185
|
+
* @generated from field: optional string name = 1;
|
|
186
|
+
*/
|
|
187
|
+
name?: string;
|
|
188
|
+
/**
|
|
189
|
+
* @generated from field: optional string email = 2;
|
|
190
|
+
*/
|
|
191
|
+
email?: string;
|
|
192
|
+
constructor(data?: PartialMessage<Persona>);
|
|
193
|
+
static readonly runtime: typeof proto3;
|
|
194
|
+
static readonly typeName = "uniswap.platformservice.v1.Persona";
|
|
195
|
+
static readonly fields: FieldList;
|
|
196
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Persona;
|
|
197
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Persona;
|
|
198
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Persona;
|
|
199
|
+
static equals(a: Persona | PlainMessage<Persona> | undefined, b: Persona | PlainMessage<Persona> | undefined): boolean;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* TODO: Populate account information, including persona data, api keys, organization info all toghther.
|
|
203
|
+
*
|
|
204
|
+
* @generated from message uniswap.platformservice.v1.GetAccountResponse
|
|
205
|
+
*/
|
|
206
|
+
export declare class GetAccountResponse extends Message<GetAccountResponse> {
|
|
207
|
+
/**
|
|
208
|
+
* @generated from field: uniswap.platformservice.v1.Persona persona = 1;
|
|
209
|
+
*/
|
|
210
|
+
persona?: Persona;
|
|
211
|
+
constructor(data?: PartialMessage<GetAccountResponse>);
|
|
212
|
+
static readonly runtime: typeof proto3;
|
|
213
|
+
static readonly typeName = "uniswap.platformservice.v1.GetAccountResponse";
|
|
214
|
+
static readonly fields: FieldList;
|
|
215
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAccountResponse;
|
|
216
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAccountResponse;
|
|
217
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAccountResponse;
|
|
218
|
+
static equals(a: GetAccountResponse | PlainMessage<GetAccountResponse> | undefined, b: GetAccountResponse | PlainMessage<GetAccountResponse> | undefined): boolean;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Request to delete a persona
|
|
222
|
+
*
|
|
223
|
+
* @generated from message uniswap.platformservice.v1.DeletePersonaRequest
|
|
224
|
+
*/
|
|
225
|
+
export declare class DeletePersonaRequest extends Message<DeletePersonaRequest> {
|
|
226
|
+
constructor(data?: PartialMessage<DeletePersonaRequest>);
|
|
227
|
+
static readonly runtime: typeof proto3;
|
|
228
|
+
static readonly typeName = "uniswap.platformservice.v1.DeletePersonaRequest";
|
|
229
|
+
static readonly fields: FieldList;
|
|
230
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeletePersonaRequest;
|
|
231
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeletePersonaRequest;
|
|
232
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeletePersonaRequest;
|
|
233
|
+
static equals(a: DeletePersonaRequest | PlainMessage<DeletePersonaRequest> | undefined, b: DeletePersonaRequest | PlainMessage<DeletePersonaRequest> | undefined): boolean;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Response for delete persona
|
|
237
|
+
*
|
|
238
|
+
* @generated from message uniswap.platformservice.v1.DeletePersonaResponse
|
|
239
|
+
*/
|
|
240
|
+
export declare class DeletePersonaResponse extends Message<DeletePersonaResponse> {
|
|
241
|
+
constructor(data?: PartialMessage<DeletePersonaResponse>);
|
|
242
|
+
static readonly runtime: typeof proto3;
|
|
243
|
+
static readonly typeName = "uniswap.platformservice.v1.DeletePersonaResponse";
|
|
244
|
+
static readonly fields: FieldList;
|
|
245
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeletePersonaResponse;
|
|
246
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeletePersonaResponse;
|
|
247
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeletePersonaResponse;
|
|
248
|
+
static equals(a: DeletePersonaResponse | PlainMessage<DeletePersonaResponse> | undefined, b: DeletePersonaResponse | PlainMessage<DeletePersonaResponse> | undefined): boolean;
|
|
249
|
+
}
|
|
@@ -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
|
*/
|
|
@@ -155,3 +161,233 @@ PersonaScore.fields = proto3.util.newFieldList(() => [
|
|
|
155
161
|
{ no: 1, name: "persona_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
156
162
|
{ no: 2, name: "score", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
157
163
|
]);
|
|
164
|
+
/**
|
|
165
|
+
* Represents an agreement
|
|
166
|
+
*
|
|
167
|
+
* @generated from message uniswap.platformservice.v1.Agreement
|
|
168
|
+
*/
|
|
169
|
+
export class Agreement extends Message {
|
|
170
|
+
constructor(data) {
|
|
171
|
+
super();
|
|
172
|
+
/**
|
|
173
|
+
* @generated from field: string name = 1;
|
|
174
|
+
*/
|
|
175
|
+
this.name = "";
|
|
176
|
+
/**
|
|
177
|
+
* @generated from field: string version = 2;
|
|
178
|
+
*/
|
|
179
|
+
this.version = "";
|
|
180
|
+
/**
|
|
181
|
+
* @generated from field: bool agreed = 3;
|
|
182
|
+
*/
|
|
183
|
+
this.agreed = false;
|
|
184
|
+
proto3.util.initPartial(data, this);
|
|
185
|
+
}
|
|
186
|
+
static fromBinary(bytes, options) {
|
|
187
|
+
return new Agreement().fromBinary(bytes, options);
|
|
188
|
+
}
|
|
189
|
+
static fromJson(jsonValue, options) {
|
|
190
|
+
return new Agreement().fromJson(jsonValue, options);
|
|
191
|
+
}
|
|
192
|
+
static fromJsonString(jsonString, options) {
|
|
193
|
+
return new Agreement().fromJsonString(jsonString, options);
|
|
194
|
+
}
|
|
195
|
+
static equals(a, b) {
|
|
196
|
+
return proto3.util.equals(Agreement, a, b);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
Agreement.runtime = proto3;
|
|
200
|
+
Agreement.typeName = "uniswap.platformservice.v1.Agreement";
|
|
201
|
+
Agreement.fields = proto3.util.newFieldList(() => [
|
|
202
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
203
|
+
{ no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
204
|
+
{ no: 3, name: "agreed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
205
|
+
]);
|
|
206
|
+
/**
|
|
207
|
+
* Request to modify an existing persona
|
|
208
|
+
*
|
|
209
|
+
* @generated from message uniswap.platformservice.v1.ModifyPersonaRequest
|
|
210
|
+
*/
|
|
211
|
+
export class ModifyPersonaRequest extends Message {
|
|
212
|
+
constructor(data) {
|
|
213
|
+
super();
|
|
214
|
+
proto3.util.initPartial(data, this);
|
|
215
|
+
}
|
|
216
|
+
static fromBinary(bytes, options) {
|
|
217
|
+
return new ModifyPersonaRequest().fromBinary(bytes, options);
|
|
218
|
+
}
|
|
219
|
+
static fromJson(jsonValue, options) {
|
|
220
|
+
return new ModifyPersonaRequest().fromJson(jsonValue, options);
|
|
221
|
+
}
|
|
222
|
+
static fromJsonString(jsonString, options) {
|
|
223
|
+
return new ModifyPersonaRequest().fromJsonString(jsonString, options);
|
|
224
|
+
}
|
|
225
|
+
static equals(a, b) {
|
|
226
|
+
return proto3.util.equals(ModifyPersonaRequest, a, b);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
ModifyPersonaRequest.runtime = proto3;
|
|
230
|
+
ModifyPersonaRequest.typeName = "uniswap.platformservice.v1.ModifyPersonaRequest";
|
|
231
|
+
ModifyPersonaRequest.fields = proto3.util.newFieldList(() => [
|
|
232
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
233
|
+
{ no: 2, name: "agreement", kind: "message", T: Agreement, opt: true },
|
|
234
|
+
]);
|
|
235
|
+
/**
|
|
236
|
+
* Response for modify persona
|
|
237
|
+
*
|
|
238
|
+
* @generated from message uniswap.platformservice.v1.ModifyPersonaResponse
|
|
239
|
+
*/
|
|
240
|
+
export class ModifyPersonaResponse extends Message {
|
|
241
|
+
constructor(data) {
|
|
242
|
+
super();
|
|
243
|
+
proto3.util.initPartial(data, this);
|
|
244
|
+
}
|
|
245
|
+
static fromBinary(bytes, options) {
|
|
246
|
+
return new ModifyPersonaResponse().fromBinary(bytes, options);
|
|
247
|
+
}
|
|
248
|
+
static fromJson(jsonValue, options) {
|
|
249
|
+
return new ModifyPersonaResponse().fromJson(jsonValue, options);
|
|
250
|
+
}
|
|
251
|
+
static fromJsonString(jsonString, options) {
|
|
252
|
+
return new ModifyPersonaResponse().fromJsonString(jsonString, options);
|
|
253
|
+
}
|
|
254
|
+
static equals(a, b) {
|
|
255
|
+
return proto3.util.equals(ModifyPersonaResponse, a, b);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
ModifyPersonaResponse.runtime = proto3;
|
|
259
|
+
ModifyPersonaResponse.typeName = "uniswap.platformservice.v1.ModifyPersonaResponse";
|
|
260
|
+
ModifyPersonaResponse.fields = proto3.util.newFieldList(() => []);
|
|
261
|
+
/**
|
|
262
|
+
* Request to get a persona
|
|
263
|
+
*
|
|
264
|
+
* @generated from message uniswap.platformservice.v1.GetAccountRequest
|
|
265
|
+
*/
|
|
266
|
+
export class GetAccountRequest extends Message {
|
|
267
|
+
constructor(data) {
|
|
268
|
+
super();
|
|
269
|
+
proto3.util.initPartial(data, this);
|
|
270
|
+
}
|
|
271
|
+
static fromBinary(bytes, options) {
|
|
272
|
+
return new GetAccountRequest().fromBinary(bytes, options);
|
|
273
|
+
}
|
|
274
|
+
static fromJson(jsonValue, options) {
|
|
275
|
+
return new GetAccountRequest().fromJson(jsonValue, options);
|
|
276
|
+
}
|
|
277
|
+
static fromJsonString(jsonString, options) {
|
|
278
|
+
return new GetAccountRequest().fromJsonString(jsonString, options);
|
|
279
|
+
}
|
|
280
|
+
static equals(a, b) {
|
|
281
|
+
return proto3.util.equals(GetAccountRequest, a, b);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
GetAccountRequest.runtime = proto3;
|
|
285
|
+
GetAccountRequest.typeName = "uniswap.platformservice.v1.GetAccountRequest";
|
|
286
|
+
GetAccountRequest.fields = proto3.util.newFieldList(() => []);
|
|
287
|
+
/**
|
|
288
|
+
* @generated from message uniswap.platformservice.v1.Persona
|
|
289
|
+
*/
|
|
290
|
+
export class Persona extends Message {
|
|
291
|
+
constructor(data) {
|
|
292
|
+
super();
|
|
293
|
+
proto3.util.initPartial(data, this);
|
|
294
|
+
}
|
|
295
|
+
static fromBinary(bytes, options) {
|
|
296
|
+
return new Persona().fromBinary(bytes, options);
|
|
297
|
+
}
|
|
298
|
+
static fromJson(jsonValue, options) {
|
|
299
|
+
return new Persona().fromJson(jsonValue, options);
|
|
300
|
+
}
|
|
301
|
+
static fromJsonString(jsonString, options) {
|
|
302
|
+
return new Persona().fromJsonString(jsonString, options);
|
|
303
|
+
}
|
|
304
|
+
static equals(a, b) {
|
|
305
|
+
return proto3.util.equals(Persona, a, b);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
Persona.runtime = proto3;
|
|
309
|
+
Persona.typeName = "uniswap.platformservice.v1.Persona";
|
|
310
|
+
Persona.fields = proto3.util.newFieldList(() => [
|
|
311
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
312
|
+
{ no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
313
|
+
]);
|
|
314
|
+
/**
|
|
315
|
+
* TODO: Populate account information, including persona data, api keys, organization info all toghther.
|
|
316
|
+
*
|
|
317
|
+
* @generated from message uniswap.platformservice.v1.GetAccountResponse
|
|
318
|
+
*/
|
|
319
|
+
export class GetAccountResponse extends Message {
|
|
320
|
+
constructor(data) {
|
|
321
|
+
super();
|
|
322
|
+
proto3.util.initPartial(data, this);
|
|
323
|
+
}
|
|
324
|
+
static fromBinary(bytes, options) {
|
|
325
|
+
return new GetAccountResponse().fromBinary(bytes, options);
|
|
326
|
+
}
|
|
327
|
+
static fromJson(jsonValue, options) {
|
|
328
|
+
return new GetAccountResponse().fromJson(jsonValue, options);
|
|
329
|
+
}
|
|
330
|
+
static fromJsonString(jsonString, options) {
|
|
331
|
+
return new GetAccountResponse().fromJsonString(jsonString, options);
|
|
332
|
+
}
|
|
333
|
+
static equals(a, b) {
|
|
334
|
+
return proto3.util.equals(GetAccountResponse, a, b);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
GetAccountResponse.runtime = proto3;
|
|
338
|
+
GetAccountResponse.typeName = "uniswap.platformservice.v1.GetAccountResponse";
|
|
339
|
+
GetAccountResponse.fields = proto3.util.newFieldList(() => [
|
|
340
|
+
{ no: 1, name: "persona", kind: "message", T: Persona },
|
|
341
|
+
]);
|
|
342
|
+
/**
|
|
343
|
+
* Request to delete a persona
|
|
344
|
+
*
|
|
345
|
+
* @generated from message uniswap.platformservice.v1.DeletePersonaRequest
|
|
346
|
+
*/
|
|
347
|
+
export class DeletePersonaRequest extends Message {
|
|
348
|
+
constructor(data) {
|
|
349
|
+
super();
|
|
350
|
+
proto3.util.initPartial(data, this);
|
|
351
|
+
}
|
|
352
|
+
static fromBinary(bytes, options) {
|
|
353
|
+
return new DeletePersonaRequest().fromBinary(bytes, options);
|
|
354
|
+
}
|
|
355
|
+
static fromJson(jsonValue, options) {
|
|
356
|
+
return new DeletePersonaRequest().fromJson(jsonValue, options);
|
|
357
|
+
}
|
|
358
|
+
static fromJsonString(jsonString, options) {
|
|
359
|
+
return new DeletePersonaRequest().fromJsonString(jsonString, options);
|
|
360
|
+
}
|
|
361
|
+
static equals(a, b) {
|
|
362
|
+
return proto3.util.equals(DeletePersonaRequest, a, b);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
DeletePersonaRequest.runtime = proto3;
|
|
366
|
+
DeletePersonaRequest.typeName = "uniswap.platformservice.v1.DeletePersonaRequest";
|
|
367
|
+
DeletePersonaRequest.fields = proto3.util.newFieldList(() => []);
|
|
368
|
+
/**
|
|
369
|
+
* Response for delete persona
|
|
370
|
+
*
|
|
371
|
+
* @generated from message uniswap.platformservice.v1.DeletePersonaResponse
|
|
372
|
+
*/
|
|
373
|
+
export class DeletePersonaResponse extends Message {
|
|
374
|
+
constructor(data) {
|
|
375
|
+
super();
|
|
376
|
+
proto3.util.initPartial(data, this);
|
|
377
|
+
}
|
|
378
|
+
static fromBinary(bytes, options) {
|
|
379
|
+
return new DeletePersonaResponse().fromBinary(bytes, options);
|
|
380
|
+
}
|
|
381
|
+
static fromJson(jsonValue, options) {
|
|
382
|
+
return new DeletePersonaResponse().fromJson(jsonValue, options);
|
|
383
|
+
}
|
|
384
|
+
static fromJsonString(jsonString, options) {
|
|
385
|
+
return new DeletePersonaResponse().fromJsonString(jsonString, options);
|
|
386
|
+
}
|
|
387
|
+
static equals(a, b) {
|
|
388
|
+
return proto3.util.equals(DeletePersonaResponse, a, b);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
DeletePersonaResponse.runtime = proto3;
|
|
392
|
+
DeletePersonaResponse.typeName = "uniswap.platformservice.v1.DeletePersonaResponse";
|
|
393
|
+
DeletePersonaResponse.fields = proto3.util.newFieldList(() => []);
|
|
@@ -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";
|
|
@@ -183,12 +208,6 @@ export declare class ChallengeRequest extends Message<ChallengeRequest> {
|
|
|
183
208
|
* @generated from field: optional string identifier = 2;
|
|
184
209
|
*/
|
|
185
210
|
identifier?: string;
|
|
186
|
-
/**
|
|
187
|
-
* Post login redirect URL
|
|
188
|
-
*
|
|
189
|
-
* @generated from field: optional string redirect_url = 3;
|
|
190
|
-
*/
|
|
191
|
-
redirectUrl?: string;
|
|
192
211
|
constructor(data?: PartialMessage<ChallengeRequest>);
|
|
193
212
|
static readonly runtime: typeof proto3;
|
|
194
213
|
static readonly typeName = "uniswap.platformservice.v1.ChallengeRequest";
|
|
@@ -220,12 +239,6 @@ export declare class ChallengeResponse extends Message<ChallengeResponse> {
|
|
|
220
239
|
extra: {
|
|
221
240
|
[key: string]: string;
|
|
222
241
|
};
|
|
223
|
-
/**
|
|
224
|
-
* OAuth authorization URL (for OAuth)
|
|
225
|
-
*
|
|
226
|
-
* @generated from field: optional string authorize_url = 4;
|
|
227
|
-
*/
|
|
228
|
-
authorizeUrl?: string;
|
|
229
242
|
constructor(data?: PartialMessage<ChallengeResponse>);
|
|
230
243
|
static readonly runtime: typeof proto3;
|
|
231
244
|
static readonly typeName = "uniswap.platformservice.v1.ChallengeResponse";
|
|
@@ -252,7 +265,7 @@ export declare class VerifyRequest extends Message<VerifyRequest> {
|
|
|
252
265
|
*/
|
|
253
266
|
challengeId: string;
|
|
254
267
|
/**
|
|
255
|
-
* Challenge type (must match the one used in Challenge).
|
|
268
|
+
* Challenge type (must match the one used in Challenge).
|
|
256
269
|
*
|
|
257
270
|
* @generated from field: uniswap.platformservice.v1.ChallengeType type = 3;
|
|
258
271
|
*/
|
|
@@ -267,25 +280,105 @@ export declare class VerifyRequest extends Message<VerifyRequest> {
|
|
|
267
280
|
static equals(a: VerifyRequest | PlainMessage<VerifyRequest> | undefined, b: VerifyRequest | PlainMessage<VerifyRequest> | undefined): boolean;
|
|
268
281
|
}
|
|
269
282
|
/**
|
|
270
|
-
* @generated from message uniswap.platformservice.v1.
|
|
283
|
+
* @generated from message uniswap.platformservice.v1.VerifySuccess
|
|
271
284
|
*/
|
|
272
|
-
export declare class
|
|
285
|
+
export declare class VerifySuccess extends Message<VerifySuccess> {
|
|
273
286
|
/**
|
|
274
|
-
* @generated from field:
|
|
287
|
+
* @generated from field: uniswap.platformservice.v1.UserInfo user_info = 1;
|
|
275
288
|
*/
|
|
276
|
-
|
|
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;
|
|
277
307
|
/**
|
|
278
|
-
*
|
|
308
|
+
* human-friendly message
|
|
279
309
|
*
|
|
280
|
-
* @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;
|
|
281
317
|
*/
|
|
282
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 {
|
|
283
332
|
/**
|
|
284
|
-
*
|
|
333
|
+
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
334
|
+
*/
|
|
335
|
+
UNSPECIFIED = 0,
|
|
336
|
+
/**
|
|
337
|
+
* bad OTP / bot detection solutions
|
|
285
338
|
*
|
|
286
|
-
* @generated from
|
|
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;
|
|
287
361
|
*/
|
|
288
|
-
|
|
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
|
+
};
|
|
289
382
|
constructor(data?: PartialMessage<VerifyResponse>);
|
|
290
383
|
static readonly runtime: typeof proto3;
|
|
291
384
|
static readonly typeName = "uniswap.platformservice.v1.VerifyResponse";
|
|
@@ -295,6 +388,27 @@ export declare class VerifyResponse extends Message<VerifyResponse> {
|
|
|
295
388
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyResponse;
|
|
296
389
|
static equals(a: VerifyResponse | PlainMessage<VerifyResponse> | undefined, b: VerifyResponse | PlainMessage<VerifyResponse> | undefined): boolean;
|
|
297
390
|
}
|
|
391
|
+
/**
|
|
392
|
+
* @generated from message uniswap.platformservice.v1.UserInfo
|
|
393
|
+
*/
|
|
394
|
+
export declare class UserInfo extends Message<UserInfo> {
|
|
395
|
+
/**
|
|
396
|
+
* @generated from field: optional string name = 1;
|
|
397
|
+
*/
|
|
398
|
+
name?: string;
|
|
399
|
+
/**
|
|
400
|
+
* @generated from field: optional string email = 2;
|
|
401
|
+
*/
|
|
402
|
+
email?: string;
|
|
403
|
+
constructor(data?: PartialMessage<UserInfo>);
|
|
404
|
+
static readonly runtime: typeof proto3;
|
|
405
|
+
static readonly typeName = "uniswap.platformservice.v1.UserInfo";
|
|
406
|
+
static readonly fields: FieldList;
|
|
407
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserInfo;
|
|
408
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserInfo;
|
|
409
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserInfo;
|
|
410
|
+
static equals(a: UserInfo | PlainMessage<UserInfo> | undefined, b: UserInfo | PlainMessage<UserInfo> | undefined): boolean;
|
|
411
|
+
}
|
|
298
412
|
/**
|
|
299
413
|
* @generated from message uniswap.platformservice.v1.DeleteSessionRequest
|
|
300
414
|
*/
|
|
@@ -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
|
|
@@ -273,7 +310,6 @@ ChallengeRequest.typeName = "uniswap.platformservice.v1.ChallengeRequest";
|
|
|
273
310
|
ChallengeRequest.fields = proto3.util.newFieldList(() => [
|
|
274
311
|
{ no: 1, name: "challenge_type", kind: "enum", T: proto3.getEnumType(ChallengeType), opt: true },
|
|
275
312
|
{ 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
313
|
]);
|
|
278
314
|
/**
|
|
279
315
|
* @generated from message uniswap.platformservice.v1.ChallengeResponse
|
|
@@ -318,7 +354,6 @@ ChallengeResponse.fields = proto3.util.newFieldList(() => [
|
|
|
318
354
|
{ no: 1, name: "challenge_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
319
355
|
{ no: 2, name: "challenge_type", kind: "enum", T: proto3.getEnumType(ChallengeType) },
|
|
320
356
|
{ 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
357
|
]);
|
|
323
358
|
/**
|
|
324
359
|
* @generated from message uniswap.platformservice.v1.VerifyRequest
|
|
@@ -339,7 +374,7 @@ export class VerifyRequest extends Message {
|
|
|
339
374
|
*/
|
|
340
375
|
this.challengeId = "";
|
|
341
376
|
/**
|
|
342
|
-
* Challenge type (must match the one used in Challenge).
|
|
377
|
+
* Challenge type (must match the one used in Challenge).
|
|
343
378
|
*
|
|
344
379
|
* @generated from field: uniswap.platformservice.v1.ChallengeType type = 3;
|
|
345
380
|
*/
|
|
@@ -366,6 +401,105 @@ VerifyRequest.fields = proto3.util.newFieldList(() => [
|
|
|
366
401
|
{ no: 2, name: "challenge_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
367
402
|
{ no: 3, name: "type", kind: "enum", T: proto3.getEnumType(ChallengeType) },
|
|
368
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
|
+
]);
|
|
369
503
|
/**
|
|
370
504
|
* @generated from message uniswap.platformservice.v1.VerifyResponse
|
|
371
505
|
*/
|
|
@@ -376,6 +510,10 @@ export class VerifyResponse extends Message {
|
|
|
376
510
|
* @generated from field: bool retry = 1;
|
|
377
511
|
*/
|
|
378
512
|
this.retry = false;
|
|
513
|
+
/**
|
|
514
|
+
* @generated from oneof uniswap.platformservice.v1.VerifyResponse.outcome
|
|
515
|
+
*/
|
|
516
|
+
this.outcome = { case: undefined };
|
|
379
517
|
proto3.util.initPartial(data, this);
|
|
380
518
|
}
|
|
381
519
|
static fromBinary(bytes, options) {
|
|
@@ -395,8 +533,35 @@ VerifyResponse.runtime = proto3;
|
|
|
395
533
|
VerifyResponse.typeName = "uniswap.platformservice.v1.VerifyResponse";
|
|
396
534
|
VerifyResponse.fields = proto3.util.newFieldList(() => [
|
|
397
535
|
{ no: 1, name: "retry", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
398
|
-
{ no: 2, name: "
|
|
399
|
-
{ 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" },
|
|
538
|
+
]);
|
|
539
|
+
/**
|
|
540
|
+
* @generated from message uniswap.platformservice.v1.UserInfo
|
|
541
|
+
*/
|
|
542
|
+
export class UserInfo extends Message {
|
|
543
|
+
constructor(data) {
|
|
544
|
+
super();
|
|
545
|
+
proto3.util.initPartial(data, this);
|
|
546
|
+
}
|
|
547
|
+
static fromBinary(bytes, options) {
|
|
548
|
+
return new UserInfo().fromBinary(bytes, options);
|
|
549
|
+
}
|
|
550
|
+
static fromJson(jsonValue, options) {
|
|
551
|
+
return new UserInfo().fromJson(jsonValue, options);
|
|
552
|
+
}
|
|
553
|
+
static fromJsonString(jsonString, options) {
|
|
554
|
+
return new UserInfo().fromJsonString(jsonString, options);
|
|
555
|
+
}
|
|
556
|
+
static equals(a, b) {
|
|
557
|
+
return proto3.util.equals(UserInfo, a, b);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
UserInfo.runtime = proto3;
|
|
561
|
+
UserInfo.typeName = "uniswap.platformservice.v1.UserInfo";
|
|
562
|
+
UserInfo.fields = proto3.util.newFieldList(() => [
|
|
563
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
564
|
+
{ no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
400
565
|
]);
|
|
401
566
|
/**
|
|
402
567
|
* @generated from message uniswap.platformservice.v1.DeleteSessionRequest
|