@uniswap/client-platform-service 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/uniswap/platformservice/v1/apiKeyService_pb.d.ts +5 -1
- package/dist/uniswap/platformservice/v1/apiKeyService_pb.js +7 -2
- package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.d.ts +28 -0
- package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.js +32 -0
- package/dist/uniswap/platformservice/v1/personaService_connect.d.ts +28 -0
- package/dist/uniswap/platformservice/v1/personaService_connect.js +32 -0
- package/dist/uniswap/platformservice/v1/personaService_pb.d.ts +95 -0
- package/dist/uniswap/platformservice/v1/personaService_pb.js +157 -0
- package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.d.ts +92 -0
- package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.js +96 -0
- package/dist/uniswap/platformservice/v1/sessionService_connect.d.ts +76 -0
- package/dist/uniswap/platformservice/v1/sessionService_connect.js +80 -0
- package/dist/uniswap/platformservice/v1/sessionService_pb.d.ts +261 -0
- package/dist/uniswap/platformservice/v1/sessionService_pb.js +410 -0
- package/dist/uniswap/platformservice/v1/workerService-WorkerService_connectquery.d.ts +14 -1
- package/dist/uniswap/platformservice/v1/workerService-WorkerService_connectquery.js +14 -1
- package/dist/uniswap/platformservice/v1/workerService_connect.d.ts +10 -1
- package/dist/uniswap/platformservice/v1/workerService_connect.js +10 -1
- package/dist/uniswap/platformservice/v1/workerService_pb.d.ts +88 -0
- package/dist/uniswap/platformservice/v1/workerService_pb.js +128 -0
- package/package.json +1 -1
|
@@ -116,9 +116,13 @@ export declare class CreateApiKeyRequest extends Message<CreateApiKeyRequest> {
|
|
|
116
116
|
*/
|
|
117
117
|
export declare class CreateApiKeyResponse extends Message<CreateApiKeyResponse> {
|
|
118
118
|
/**
|
|
119
|
-
* @generated from field: string id =
|
|
119
|
+
* @generated from field: string id = 1;
|
|
120
120
|
*/
|
|
121
121
|
id: string;
|
|
122
|
+
/**
|
|
123
|
+
* @generated from field: string wrapped_id = 2;
|
|
124
|
+
*/
|
|
125
|
+
wrappedId: string;
|
|
122
126
|
constructor(data?: PartialMessage<CreateApiKeyResponse>);
|
|
123
127
|
static readonly runtime: typeof proto3;
|
|
124
128
|
static readonly typeName = "uniswap.platformservice.v1.CreateApiKeyResponse";
|
|
@@ -175,9 +175,13 @@ export class CreateApiKeyResponse extends Message {
|
|
|
175
175
|
constructor(data) {
|
|
176
176
|
super();
|
|
177
177
|
/**
|
|
178
|
-
* @generated from field: string id =
|
|
178
|
+
* @generated from field: string id = 1;
|
|
179
179
|
*/
|
|
180
180
|
this.id = "";
|
|
181
|
+
/**
|
|
182
|
+
* @generated from field: string wrapped_id = 2;
|
|
183
|
+
*/
|
|
184
|
+
this.wrappedId = "";
|
|
181
185
|
proto3.util.initPartial(data, this);
|
|
182
186
|
}
|
|
183
187
|
static fromBinary(bytes, options) {
|
|
@@ -196,7 +200,8 @@ export class CreateApiKeyResponse extends Message {
|
|
|
196
200
|
CreateApiKeyResponse.runtime = proto3;
|
|
197
201
|
CreateApiKeyResponse.typeName = "uniswap.platformservice.v1.CreateApiKeyResponse";
|
|
198
202
|
CreateApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
199
|
-
{ no:
|
|
203
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
204
|
+
{ no: 2, name: "wrapped_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
200
205
|
]);
|
|
201
206
|
/**
|
|
202
207
|
* @generated from message uniswap.platformservice.v1.ModificationData
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
+
import { GetOrCreatePersonaRequest, GetOrCreatePersonaResponse, UpgradePersonaRequest, UpgradePersonaResponse } from "./personaService_pb.js";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.UpgradePersona
|
|
5
|
+
*/
|
|
6
|
+
export declare const upgradePersona: {
|
|
7
|
+
readonly localName: "upgradePersona";
|
|
8
|
+
readonly name: "UpgradePersona";
|
|
9
|
+
readonly kind: MethodKind.Unary;
|
|
10
|
+
readonly I: typeof UpgradePersonaRequest;
|
|
11
|
+
readonly O: typeof UpgradePersonaResponse;
|
|
12
|
+
readonly service: {
|
|
13
|
+
readonly typeName: "uniswap.platformservice.v1.PersonaService";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.GetOrCreatePersona
|
|
18
|
+
*/
|
|
19
|
+
export declare const getOrCreatePersona: {
|
|
20
|
+
readonly localName: "getOrCreatePersona";
|
|
21
|
+
readonly name: "GetOrCreatePersona";
|
|
22
|
+
readonly kind: MethodKind.Unary;
|
|
23
|
+
readonly I: typeof GetOrCreatePersonaRequest;
|
|
24
|
+
readonly O: typeof GetOrCreatePersonaResponse;
|
|
25
|
+
readonly service: {
|
|
26
|
+
readonly typeName: "uniswap.platformservice.v1.PersonaService";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/platformservice/v1/personaService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
+
import { GetOrCreatePersonaRequest, GetOrCreatePersonaResponse, UpgradePersonaRequest, UpgradePersonaResponse } from "./personaService_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.UpgradePersona
|
|
9
|
+
*/
|
|
10
|
+
export const upgradePersona = {
|
|
11
|
+
localName: "upgradePersona",
|
|
12
|
+
name: "UpgradePersona",
|
|
13
|
+
kind: MethodKind.Unary,
|
|
14
|
+
I: UpgradePersonaRequest,
|
|
15
|
+
O: UpgradePersonaResponse,
|
|
16
|
+
service: {
|
|
17
|
+
typeName: "uniswap.platformservice.v1.PersonaService"
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.GetOrCreatePersona
|
|
22
|
+
*/
|
|
23
|
+
export const getOrCreatePersona = {
|
|
24
|
+
localName: "getOrCreatePersona",
|
|
25
|
+
name: "GetOrCreatePersona",
|
|
26
|
+
kind: MethodKind.Unary,
|
|
27
|
+
I: GetOrCreatePersonaRequest,
|
|
28
|
+
O: GetOrCreatePersonaResponse,
|
|
29
|
+
service: {
|
|
30
|
+
typeName: "uniswap.platformservice.v1.PersonaService"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { GetOrCreatePersonaRequest, GetOrCreatePersonaResponse, UpgradePersonaRequest, UpgradePersonaResponse } from "./personaService_pb.js";
|
|
2
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from service uniswap.platformservice.v1.PersonaService
|
|
5
|
+
*/
|
|
6
|
+
export declare const PersonaService: {
|
|
7
|
+
readonly typeName: "uniswap.platformservice.v1.PersonaService";
|
|
8
|
+
readonly methods: {
|
|
9
|
+
/**
|
|
10
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.UpgradePersona
|
|
11
|
+
*/
|
|
12
|
+
readonly upgradePersona: {
|
|
13
|
+
readonly name: "UpgradePersona";
|
|
14
|
+
readonly I: typeof UpgradePersonaRequest;
|
|
15
|
+
readonly O: typeof UpgradePersonaResponse;
|
|
16
|
+
readonly kind: MethodKind.Unary;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.GetOrCreatePersona
|
|
20
|
+
*/
|
|
21
|
+
readonly getOrCreatePersona: {
|
|
22
|
+
readonly name: "GetOrCreatePersona";
|
|
23
|
+
readonly I: typeof GetOrCreatePersonaRequest;
|
|
24
|
+
readonly O: typeof GetOrCreatePersonaResponse;
|
|
25
|
+
readonly kind: MethodKind.Unary;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/platformservice/v1/personaService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { GetOrCreatePersonaRequest, GetOrCreatePersonaResponse, UpgradePersonaRequest, UpgradePersonaResponse } from "./personaService_pb.js";
|
|
6
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from service uniswap.platformservice.v1.PersonaService
|
|
9
|
+
*/
|
|
10
|
+
export const PersonaService = {
|
|
11
|
+
typeName: "uniswap.platformservice.v1.PersonaService",
|
|
12
|
+
methods: {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.UpgradePersona
|
|
15
|
+
*/
|
|
16
|
+
upgradePersona: {
|
|
17
|
+
name: "UpgradePersona",
|
|
18
|
+
I: UpgradePersonaRequest,
|
|
19
|
+
O: UpgradePersonaResponse,
|
|
20
|
+
kind: MethodKind.Unary,
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* @generated from rpc uniswap.platformservice.v1.PersonaService.GetOrCreatePersona
|
|
24
|
+
*/
|
|
25
|
+
getOrCreatePersona: {
|
|
26
|
+
name: "GetOrCreatePersona",
|
|
27
|
+
I: GetOrCreatePersonaRequest,
|
|
28
|
+
O: GetOrCreatePersonaResponse,
|
|
29
|
+
kind: MethodKind.Unary,
|
|
30
|
+
},
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
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.GetOrCreatePersonaRequest
|
|
5
|
+
*/
|
|
6
|
+
export declare class GetOrCreatePersonaRequest extends Message<GetOrCreatePersonaRequest> {
|
|
7
|
+
constructor(data?: PartialMessage<GetOrCreatePersonaRequest>);
|
|
8
|
+
static readonly runtime: typeof proto3;
|
|
9
|
+
static readonly typeName = "uniswap.platformservice.v1.GetOrCreatePersonaRequest";
|
|
10
|
+
static readonly fields: FieldList;
|
|
11
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrCreatePersonaRequest;
|
|
12
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrCreatePersonaRequest;
|
|
13
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrCreatePersonaRequest;
|
|
14
|
+
static equals(a: GetOrCreatePersonaRequest | PlainMessage<GetOrCreatePersonaRequest> | undefined, b: GetOrCreatePersonaRequest | PlainMessage<GetOrCreatePersonaRequest> | undefined): boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @generated from message uniswap.platformservice.v1.GetOrCreatePersonaResponse
|
|
18
|
+
*/
|
|
19
|
+
export declare class GetOrCreatePersonaResponse extends Message<GetOrCreatePersonaResponse> {
|
|
20
|
+
/**
|
|
21
|
+
* @generated from field: uniswap.platformservice.v1.PersonaScore persona = 1;
|
|
22
|
+
*/
|
|
23
|
+
persona?: PersonaScore;
|
|
24
|
+
constructor(data?: PartialMessage<GetOrCreatePersonaResponse>);
|
|
25
|
+
static readonly runtime: typeof proto3;
|
|
26
|
+
static readonly typeName = "uniswap.platformservice.v1.GetOrCreatePersonaResponse";
|
|
27
|
+
static readonly fields: FieldList;
|
|
28
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrCreatePersonaResponse;
|
|
29
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrCreatePersonaResponse;
|
|
30
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrCreatePersonaResponse;
|
|
31
|
+
static equals(a: GetOrCreatePersonaResponse | PlainMessage<GetOrCreatePersonaResponse> | undefined, b: GetOrCreatePersonaResponse | PlainMessage<GetOrCreatePersonaResponse> | undefined): boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Request to update persona information
|
|
35
|
+
*
|
|
36
|
+
* @generated from message uniswap.platformservice.v1.UpgradePersonaRequest
|
|
37
|
+
*/
|
|
38
|
+
export declare class UpgradePersonaRequest extends Message<UpgradePersonaRequest> {
|
|
39
|
+
/**
|
|
40
|
+
* Note: all other data should be in the header
|
|
41
|
+
*
|
|
42
|
+
* @generated from field: string persona_id = 1;
|
|
43
|
+
*/
|
|
44
|
+
personaId: string;
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: string wallet_addr = 2;
|
|
47
|
+
*/
|
|
48
|
+
walletAddr: string;
|
|
49
|
+
constructor(data?: PartialMessage<UpgradePersonaRequest>);
|
|
50
|
+
static readonly runtime: typeof proto3;
|
|
51
|
+
static readonly typeName = "uniswap.platformservice.v1.UpgradePersonaRequest";
|
|
52
|
+
static readonly fields: FieldList;
|
|
53
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpgradePersonaRequest;
|
|
54
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpgradePersonaRequest;
|
|
55
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpgradePersonaRequest;
|
|
56
|
+
static equals(a: UpgradePersonaRequest | PlainMessage<UpgradePersonaRequest> | undefined, b: UpgradePersonaRequest | PlainMessage<UpgradePersonaRequest> | undefined): boolean;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Response for persona update
|
|
60
|
+
*
|
|
61
|
+
* @generated from message uniswap.platformservice.v1.UpgradePersonaResponse
|
|
62
|
+
*/
|
|
63
|
+
export declare class UpgradePersonaResponse extends Message<UpgradePersonaResponse> {
|
|
64
|
+
constructor(data?: PartialMessage<UpgradePersonaResponse>);
|
|
65
|
+
static readonly runtime: typeof proto3;
|
|
66
|
+
static readonly typeName = "uniswap.platformservice.v1.UpgradePersonaResponse";
|
|
67
|
+
static readonly fields: FieldList;
|
|
68
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpgradePersonaResponse;
|
|
69
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpgradePersonaResponse;
|
|
70
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpgradePersonaResponse;
|
|
71
|
+
static equals(a: UpgradePersonaResponse | PlainMessage<UpgradePersonaResponse> | undefined, b: UpgradePersonaResponse | PlainMessage<UpgradePersonaResponse> | undefined): boolean;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Represents a persona with its score
|
|
75
|
+
*
|
|
76
|
+
* @generated from message uniswap.platformservice.v1.PersonaScore
|
|
77
|
+
*/
|
|
78
|
+
export declare class PersonaScore extends Message<PersonaScore> {
|
|
79
|
+
/**
|
|
80
|
+
* @generated from field: string persona_id = 1;
|
|
81
|
+
*/
|
|
82
|
+
personaId: string;
|
|
83
|
+
/**
|
|
84
|
+
* @generated from field: int32 score = 2;
|
|
85
|
+
*/
|
|
86
|
+
score: number;
|
|
87
|
+
constructor(data?: PartialMessage<PersonaScore>);
|
|
88
|
+
static readonly runtime: typeof proto3;
|
|
89
|
+
static readonly typeName = "uniswap.platformservice.v1.PersonaScore";
|
|
90
|
+
static readonly fields: FieldList;
|
|
91
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PersonaScore;
|
|
92
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PersonaScore;
|
|
93
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PersonaScore;
|
|
94
|
+
static equals(a: PersonaScore | PlainMessage<PersonaScore> | undefined, b: PersonaScore | PlainMessage<PersonaScore> | undefined): boolean;
|
|
95
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/platformservice/v1/personaService.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.GetOrCreatePersonaRequest
|
|
8
|
+
*/
|
|
9
|
+
export class GetOrCreatePersonaRequest extends Message {
|
|
10
|
+
constructor(data) {
|
|
11
|
+
super();
|
|
12
|
+
proto3.util.initPartial(data, this);
|
|
13
|
+
}
|
|
14
|
+
static fromBinary(bytes, options) {
|
|
15
|
+
return new GetOrCreatePersonaRequest().fromBinary(bytes, options);
|
|
16
|
+
}
|
|
17
|
+
static fromJson(jsonValue, options) {
|
|
18
|
+
return new GetOrCreatePersonaRequest().fromJson(jsonValue, options);
|
|
19
|
+
}
|
|
20
|
+
static fromJsonString(jsonString, options) {
|
|
21
|
+
return new GetOrCreatePersonaRequest().fromJsonString(jsonString, options);
|
|
22
|
+
}
|
|
23
|
+
static equals(a, b) {
|
|
24
|
+
return proto3.util.equals(GetOrCreatePersonaRequest, a, b);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
GetOrCreatePersonaRequest.runtime = proto3;
|
|
28
|
+
GetOrCreatePersonaRequest.typeName = "uniswap.platformservice.v1.GetOrCreatePersonaRequest";
|
|
29
|
+
GetOrCreatePersonaRequest.fields = proto3.util.newFieldList(() => []);
|
|
30
|
+
/**
|
|
31
|
+
* @generated from message uniswap.platformservice.v1.GetOrCreatePersonaResponse
|
|
32
|
+
*/
|
|
33
|
+
export class GetOrCreatePersonaResponse extends Message {
|
|
34
|
+
constructor(data) {
|
|
35
|
+
super();
|
|
36
|
+
proto3.util.initPartial(data, this);
|
|
37
|
+
}
|
|
38
|
+
static fromBinary(bytes, options) {
|
|
39
|
+
return new GetOrCreatePersonaResponse().fromBinary(bytes, options);
|
|
40
|
+
}
|
|
41
|
+
static fromJson(jsonValue, options) {
|
|
42
|
+
return new GetOrCreatePersonaResponse().fromJson(jsonValue, options);
|
|
43
|
+
}
|
|
44
|
+
static fromJsonString(jsonString, options) {
|
|
45
|
+
return new GetOrCreatePersonaResponse().fromJsonString(jsonString, options);
|
|
46
|
+
}
|
|
47
|
+
static equals(a, b) {
|
|
48
|
+
return proto3.util.equals(GetOrCreatePersonaResponse, a, b);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
GetOrCreatePersonaResponse.runtime = proto3;
|
|
52
|
+
GetOrCreatePersonaResponse.typeName = "uniswap.platformservice.v1.GetOrCreatePersonaResponse";
|
|
53
|
+
GetOrCreatePersonaResponse.fields = proto3.util.newFieldList(() => [
|
|
54
|
+
{ no: 1, name: "persona", kind: "message", T: PersonaScore },
|
|
55
|
+
]);
|
|
56
|
+
/**
|
|
57
|
+
* Request to update persona information
|
|
58
|
+
*
|
|
59
|
+
* @generated from message uniswap.platformservice.v1.UpgradePersonaRequest
|
|
60
|
+
*/
|
|
61
|
+
export class UpgradePersonaRequest extends Message {
|
|
62
|
+
constructor(data) {
|
|
63
|
+
super();
|
|
64
|
+
/**
|
|
65
|
+
* Note: all other data should be in the header
|
|
66
|
+
*
|
|
67
|
+
* @generated from field: string persona_id = 1;
|
|
68
|
+
*/
|
|
69
|
+
this.personaId = "";
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: string wallet_addr = 2;
|
|
72
|
+
*/
|
|
73
|
+
this.walletAddr = "";
|
|
74
|
+
proto3.util.initPartial(data, this);
|
|
75
|
+
}
|
|
76
|
+
static fromBinary(bytes, options) {
|
|
77
|
+
return new UpgradePersonaRequest().fromBinary(bytes, options);
|
|
78
|
+
}
|
|
79
|
+
static fromJson(jsonValue, options) {
|
|
80
|
+
return new UpgradePersonaRequest().fromJson(jsonValue, options);
|
|
81
|
+
}
|
|
82
|
+
static fromJsonString(jsonString, options) {
|
|
83
|
+
return new UpgradePersonaRequest().fromJsonString(jsonString, options);
|
|
84
|
+
}
|
|
85
|
+
static equals(a, b) {
|
|
86
|
+
return proto3.util.equals(UpgradePersonaRequest, a, b);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
UpgradePersonaRequest.runtime = proto3;
|
|
90
|
+
UpgradePersonaRequest.typeName = "uniswap.platformservice.v1.UpgradePersonaRequest";
|
|
91
|
+
UpgradePersonaRequest.fields = proto3.util.newFieldList(() => [
|
|
92
|
+
{ no: 1, name: "persona_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
93
|
+
{ no: 2, name: "wallet_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
94
|
+
]);
|
|
95
|
+
/**
|
|
96
|
+
* Response for persona update
|
|
97
|
+
*
|
|
98
|
+
* @generated from message uniswap.platformservice.v1.UpgradePersonaResponse
|
|
99
|
+
*/
|
|
100
|
+
export class UpgradePersonaResponse extends Message {
|
|
101
|
+
constructor(data) {
|
|
102
|
+
super();
|
|
103
|
+
proto3.util.initPartial(data, this);
|
|
104
|
+
}
|
|
105
|
+
static fromBinary(bytes, options) {
|
|
106
|
+
return new UpgradePersonaResponse().fromBinary(bytes, options);
|
|
107
|
+
}
|
|
108
|
+
static fromJson(jsonValue, options) {
|
|
109
|
+
return new UpgradePersonaResponse().fromJson(jsonValue, options);
|
|
110
|
+
}
|
|
111
|
+
static fromJsonString(jsonString, options) {
|
|
112
|
+
return new UpgradePersonaResponse().fromJsonString(jsonString, options);
|
|
113
|
+
}
|
|
114
|
+
static equals(a, b) {
|
|
115
|
+
return proto3.util.equals(UpgradePersonaResponse, a, b);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
UpgradePersonaResponse.runtime = proto3;
|
|
119
|
+
UpgradePersonaResponse.typeName = "uniswap.platformservice.v1.UpgradePersonaResponse";
|
|
120
|
+
UpgradePersonaResponse.fields = proto3.util.newFieldList(() => []);
|
|
121
|
+
/**
|
|
122
|
+
* Represents a persona with its score
|
|
123
|
+
*
|
|
124
|
+
* @generated from message uniswap.platformservice.v1.PersonaScore
|
|
125
|
+
*/
|
|
126
|
+
export class PersonaScore extends Message {
|
|
127
|
+
constructor(data) {
|
|
128
|
+
super();
|
|
129
|
+
/**
|
|
130
|
+
* @generated from field: string persona_id = 1;
|
|
131
|
+
*/
|
|
132
|
+
this.personaId = "";
|
|
133
|
+
/**
|
|
134
|
+
* @generated from field: int32 score = 2;
|
|
135
|
+
*/
|
|
136
|
+
this.score = 0;
|
|
137
|
+
proto3.util.initPartial(data, this);
|
|
138
|
+
}
|
|
139
|
+
static fromBinary(bytes, options) {
|
|
140
|
+
return new PersonaScore().fromBinary(bytes, options);
|
|
141
|
+
}
|
|
142
|
+
static fromJson(jsonValue, options) {
|
|
143
|
+
return new PersonaScore().fromJson(jsonValue, options);
|
|
144
|
+
}
|
|
145
|
+
static fromJsonString(jsonString, options) {
|
|
146
|
+
return new PersonaScore().fromJsonString(jsonString, options);
|
|
147
|
+
}
|
|
148
|
+
static equals(a, b) {
|
|
149
|
+
return proto3.util.equals(PersonaScore, a, b);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
PersonaScore.runtime = proto3;
|
|
153
|
+
PersonaScore.typeName = "uniswap.platformservice.v1.PersonaScore";
|
|
154
|
+
PersonaScore.fields = proto3.util.newFieldList(() => [
|
|
155
|
+
{ no: 1, name: "persona_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
156
|
+
{ no: 2, name: "score", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
157
|
+
]);
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
+
import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
|
|
3
|
+
/**
|
|
4
|
+
* typically utilized by Entry Gateway for inspecting the validity of a session
|
|
5
|
+
*
|
|
6
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.IntrospectSession
|
|
7
|
+
*/
|
|
8
|
+
export declare const introspectSession: {
|
|
9
|
+
readonly localName: "introspectSession";
|
|
10
|
+
readonly name: "IntrospectSession";
|
|
11
|
+
readonly kind: MethodKind.Unary;
|
|
12
|
+
readonly I: typeof IntrospectSessionRequest;
|
|
13
|
+
readonly O: typeof IntrospectSessionResponse;
|
|
14
|
+
readonly service: {
|
|
15
|
+
readonly typeName: "uniswap.platformservice.v1.SessionService";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* used by client for initializing a session
|
|
20
|
+
*
|
|
21
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.InitSession
|
|
22
|
+
*/
|
|
23
|
+
export declare const initSession: {
|
|
24
|
+
readonly localName: "initSession";
|
|
25
|
+
readonly name: "InitSession";
|
|
26
|
+
readonly kind: MethodKind.Unary;
|
|
27
|
+
readonly I: typeof InitSessionRequest;
|
|
28
|
+
readonly O: typeof InitSessionResponse;
|
|
29
|
+
readonly service: {
|
|
30
|
+
readonly typeName: "uniswap.platformservice.v1.SessionService";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* used by client to request a challenge
|
|
35
|
+
*
|
|
36
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.Challenge
|
|
37
|
+
*/
|
|
38
|
+
export declare const challenge: {
|
|
39
|
+
readonly localName: "challenge";
|
|
40
|
+
readonly name: "Challenge";
|
|
41
|
+
readonly kind: MethodKind.Unary;
|
|
42
|
+
readonly I: typeof ChallengeRequest;
|
|
43
|
+
readonly O: typeof ChallengeResponse;
|
|
44
|
+
readonly service: {
|
|
45
|
+
readonly typeName: "uniswap.platformservice.v1.SessionService";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* a universal method for all types of bot detection mechanism
|
|
50
|
+
*
|
|
51
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.Verify
|
|
52
|
+
*/
|
|
53
|
+
export declare const verify: {
|
|
54
|
+
readonly localName: "verify";
|
|
55
|
+
readonly name: "Verify";
|
|
56
|
+
readonly kind: MethodKind.Unary;
|
|
57
|
+
readonly I: typeof VerifyRequest;
|
|
58
|
+
readonly O: typeof VerifyResponse;
|
|
59
|
+
readonly service: {
|
|
60
|
+
readonly typeName: "uniswap.platformservice.v1.SessionService";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* delete a certain session. For example, on app uninstall
|
|
65
|
+
*
|
|
66
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.DeleteSession
|
|
67
|
+
*/
|
|
68
|
+
export declare const deleteSession: {
|
|
69
|
+
readonly localName: "deleteSession";
|
|
70
|
+
readonly name: "DeleteSession";
|
|
71
|
+
readonly kind: MethodKind.Unary;
|
|
72
|
+
readonly I: typeof DeleteSessionRequest;
|
|
73
|
+
readonly O: typeof DeleteSessionResponse;
|
|
74
|
+
readonly service: {
|
|
75
|
+
readonly typeName: "uniswap.platformservice.v1.SessionService";
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Update request. We intend this to be generic.
|
|
80
|
+
*
|
|
81
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.UpdateSession
|
|
82
|
+
*/
|
|
83
|
+
export declare const updateSession: {
|
|
84
|
+
readonly localName: "updateSession";
|
|
85
|
+
readonly name: "UpdateSession";
|
|
86
|
+
readonly kind: MethodKind.Unary;
|
|
87
|
+
readonly I: typeof UpdateSessionRequest;
|
|
88
|
+
readonly O: typeof UpdateSessionResponse;
|
|
89
|
+
readonly service: {
|
|
90
|
+
readonly typeName: "uniswap.platformservice.v1.SessionService";
|
|
91
|
+
};
|
|
92
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/platformservice/v1/sessionService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
+
import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* typically utilized by Entry Gateway for inspecting the validity of a session
|
|
9
|
+
*
|
|
10
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.IntrospectSession
|
|
11
|
+
*/
|
|
12
|
+
export const introspectSession = {
|
|
13
|
+
localName: "introspectSession",
|
|
14
|
+
name: "IntrospectSession",
|
|
15
|
+
kind: MethodKind.Unary,
|
|
16
|
+
I: IntrospectSessionRequest,
|
|
17
|
+
O: IntrospectSessionResponse,
|
|
18
|
+
service: {
|
|
19
|
+
typeName: "uniswap.platformservice.v1.SessionService"
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* used by client for initializing a session
|
|
24
|
+
*
|
|
25
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.InitSession
|
|
26
|
+
*/
|
|
27
|
+
export const initSession = {
|
|
28
|
+
localName: "initSession",
|
|
29
|
+
name: "InitSession",
|
|
30
|
+
kind: MethodKind.Unary,
|
|
31
|
+
I: InitSessionRequest,
|
|
32
|
+
O: InitSessionResponse,
|
|
33
|
+
service: {
|
|
34
|
+
typeName: "uniswap.platformservice.v1.SessionService"
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* used by client to request a challenge
|
|
39
|
+
*
|
|
40
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.Challenge
|
|
41
|
+
*/
|
|
42
|
+
export const challenge = {
|
|
43
|
+
localName: "challenge",
|
|
44
|
+
name: "Challenge",
|
|
45
|
+
kind: MethodKind.Unary,
|
|
46
|
+
I: ChallengeRequest,
|
|
47
|
+
O: ChallengeResponse,
|
|
48
|
+
service: {
|
|
49
|
+
typeName: "uniswap.platformservice.v1.SessionService"
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* a universal method for all types of bot detection mechanism
|
|
54
|
+
*
|
|
55
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.Verify
|
|
56
|
+
*/
|
|
57
|
+
export const verify = {
|
|
58
|
+
localName: "verify",
|
|
59
|
+
name: "Verify",
|
|
60
|
+
kind: MethodKind.Unary,
|
|
61
|
+
I: VerifyRequest,
|
|
62
|
+
O: VerifyResponse,
|
|
63
|
+
service: {
|
|
64
|
+
typeName: "uniswap.platformservice.v1.SessionService"
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* delete a certain session. For example, on app uninstall
|
|
69
|
+
*
|
|
70
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.DeleteSession
|
|
71
|
+
*/
|
|
72
|
+
export const deleteSession = {
|
|
73
|
+
localName: "deleteSession",
|
|
74
|
+
name: "DeleteSession",
|
|
75
|
+
kind: MethodKind.Unary,
|
|
76
|
+
I: DeleteSessionRequest,
|
|
77
|
+
O: DeleteSessionResponse,
|
|
78
|
+
service: {
|
|
79
|
+
typeName: "uniswap.platformservice.v1.SessionService"
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Update request. We intend this to be generic.
|
|
84
|
+
*
|
|
85
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.UpdateSession
|
|
86
|
+
*/
|
|
87
|
+
export const updateSession = {
|
|
88
|
+
localName: "updateSession",
|
|
89
|
+
name: "UpdateSession",
|
|
90
|
+
kind: MethodKind.Unary,
|
|
91
|
+
I: UpdateSessionRequest,
|
|
92
|
+
O: UpdateSessionResponse,
|
|
93
|
+
service: {
|
|
94
|
+
typeName: "uniswap.platformservice.v1.SessionService"
|
|
95
|
+
}
|
|
96
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
|
|
2
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from service uniswap.platformservice.v1.SessionService
|
|
5
|
+
*/
|
|
6
|
+
export declare const SessionService: {
|
|
7
|
+
readonly typeName: "uniswap.platformservice.v1.SessionService";
|
|
8
|
+
readonly methods: {
|
|
9
|
+
/**
|
|
10
|
+
* typically utilized by Entry Gateway for inspecting the validity of a session
|
|
11
|
+
*
|
|
12
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.IntrospectSession
|
|
13
|
+
*/
|
|
14
|
+
readonly introspectSession: {
|
|
15
|
+
readonly name: "IntrospectSession";
|
|
16
|
+
readonly I: typeof IntrospectSessionRequest;
|
|
17
|
+
readonly O: typeof IntrospectSessionResponse;
|
|
18
|
+
readonly kind: MethodKind.Unary;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* used by client for initializing a session
|
|
22
|
+
*
|
|
23
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.InitSession
|
|
24
|
+
*/
|
|
25
|
+
readonly initSession: {
|
|
26
|
+
readonly name: "InitSession";
|
|
27
|
+
readonly I: typeof InitSessionRequest;
|
|
28
|
+
readonly O: typeof InitSessionResponse;
|
|
29
|
+
readonly kind: MethodKind.Unary;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* used by client to request a challenge
|
|
33
|
+
*
|
|
34
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.Challenge
|
|
35
|
+
*/
|
|
36
|
+
readonly challenge: {
|
|
37
|
+
readonly name: "Challenge";
|
|
38
|
+
readonly I: typeof ChallengeRequest;
|
|
39
|
+
readonly O: typeof ChallengeResponse;
|
|
40
|
+
readonly kind: MethodKind.Unary;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* a universal method for all types of bot detection mechanism
|
|
44
|
+
*
|
|
45
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.Verify
|
|
46
|
+
*/
|
|
47
|
+
readonly verify: {
|
|
48
|
+
readonly name: "Verify";
|
|
49
|
+
readonly I: typeof VerifyRequest;
|
|
50
|
+
readonly O: typeof VerifyResponse;
|
|
51
|
+
readonly kind: MethodKind.Unary;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* delete a certain session. For example, on app uninstall
|
|
55
|
+
*
|
|
56
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.DeleteSession
|
|
57
|
+
*/
|
|
58
|
+
readonly deleteSession: {
|
|
59
|
+
readonly name: "DeleteSession";
|
|
60
|
+
readonly I: typeof DeleteSessionRequest;
|
|
61
|
+
readonly O: typeof DeleteSessionResponse;
|
|
62
|
+
readonly kind: MethodKind.Unary;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Update request. We intend this to be generic.
|
|
66
|
+
*
|
|
67
|
+
* @generated from rpc uniswap.platformservice.v1.SessionService.UpdateSession
|
|
68
|
+
*/
|
|
69
|
+
readonly updateSession: {
|
|
70
|
+
readonly name: "UpdateSession";
|
|
71
|
+
readonly I: typeof UpdateSessionRequest;
|
|
72
|
+
readonly O: typeof UpdateSessionResponse;
|
|
73
|
+
readonly kind: MethodKind.Unary;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|