@uniswap/client-platform-service 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/uniswap/platformservice/v1/organizationService-OrganizationService_connectquery.d.ts +18 -0
- package/dist/uniswap/platformservice/v1/organizationService-OrganizationService_connectquery.js +22 -0
- package/dist/uniswap/platformservice/v1/organizationService_connect.d.ts +22 -0
- package/dist/uniswap/platformservice/v1/organizationService_connect.js +26 -0
- package/dist/uniswap/platformservice/v1/organizationService_pb.d.ts +32 -0
- package/dist/uniswap/platformservice/v1/organizationService_pb.js +59 -0
- package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.d.ts +44 -1
- package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.js +44 -1
- package/dist/uniswap/platformservice/v1/personaService_connect.d.ts +32 -1
- package/dist/uniswap/platformservice/v1/personaService_connect.js +32 -1
- package/dist/uniswap/platformservice/v1/personaService_pb.d.ts +150 -0
- package/dist/uniswap/platformservice/v1/personaService_pb.js +230 -0
- package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.d.ts +34 -2
- package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.js +34 -2
- package/dist/uniswap/platformservice/v1/sessionService_connect.d.ts +26 -2
- package/dist/uniswap/platformservice/v1/sessionService_connect.js +26 -2
- package/dist/uniswap/platformservice/v1/sessionService_pb.d.ts +145 -14
- package/dist/uniswap/platformservice/v1/sessionService_pb.js +189 -23
- package/package.json +1 -1
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
|
};
|
|
@@ -93,3 +93,153 @@ export declare class PersonaScore extends Message<PersonaScore> {
|
|
|
93
93
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PersonaScore;
|
|
94
94
|
static equals(a: PersonaScore | PlainMessage<PersonaScore> | undefined, b: PersonaScore | PlainMessage<PersonaScore> | undefined): boolean;
|
|
95
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* Represents an agreement
|
|
98
|
+
*
|
|
99
|
+
* @generated from message uniswap.platformservice.v1.Agreement
|
|
100
|
+
*/
|
|
101
|
+
export declare class Agreement extends Message<Agreement> {
|
|
102
|
+
/**
|
|
103
|
+
* @generated from field: string name = 1;
|
|
104
|
+
*/
|
|
105
|
+
name: string;
|
|
106
|
+
/**
|
|
107
|
+
* @generated from field: string version = 2;
|
|
108
|
+
*/
|
|
109
|
+
version: string;
|
|
110
|
+
/**
|
|
111
|
+
* @generated from field: bool agreed = 3;
|
|
112
|
+
*/
|
|
113
|
+
agreed: boolean;
|
|
114
|
+
constructor(data?: PartialMessage<Agreement>);
|
|
115
|
+
static readonly runtime: typeof proto3;
|
|
116
|
+
static readonly typeName = "uniswap.platformservice.v1.Agreement";
|
|
117
|
+
static readonly fields: FieldList;
|
|
118
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Agreement;
|
|
119
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Agreement;
|
|
120
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Agreement;
|
|
121
|
+
static equals(a: Agreement | PlainMessage<Agreement> | undefined, b: Agreement | PlainMessage<Agreement> | undefined): boolean;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Request to modify an existing persona
|
|
125
|
+
*
|
|
126
|
+
* @generated from message uniswap.platformservice.v1.ModifyPersonaRequest
|
|
127
|
+
*/
|
|
128
|
+
export declare class ModifyPersonaRequest extends Message<ModifyPersonaRequest> {
|
|
129
|
+
/**
|
|
130
|
+
* @generated from field: optional string name = 1;
|
|
131
|
+
*/
|
|
132
|
+
name?: string;
|
|
133
|
+
/**
|
|
134
|
+
* @generated from field: optional uniswap.platformservice.v1.Agreement agreement = 2;
|
|
135
|
+
*/
|
|
136
|
+
agreement?: Agreement;
|
|
137
|
+
constructor(data?: PartialMessage<ModifyPersonaRequest>);
|
|
138
|
+
static readonly runtime: typeof proto3;
|
|
139
|
+
static readonly typeName = "uniswap.platformservice.v1.ModifyPersonaRequest";
|
|
140
|
+
static readonly fields: FieldList;
|
|
141
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModifyPersonaRequest;
|
|
142
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModifyPersonaRequest;
|
|
143
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModifyPersonaRequest;
|
|
144
|
+
static equals(a: ModifyPersonaRequest | PlainMessage<ModifyPersonaRequest> | undefined, b: ModifyPersonaRequest | PlainMessage<ModifyPersonaRequest> | undefined): boolean;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Response for modify persona
|
|
148
|
+
*
|
|
149
|
+
* @generated from message uniswap.platformservice.v1.ModifyPersonaResponse
|
|
150
|
+
*/
|
|
151
|
+
export declare class ModifyPersonaResponse extends Message<ModifyPersonaResponse> {
|
|
152
|
+
constructor(data?: PartialMessage<ModifyPersonaResponse>);
|
|
153
|
+
static readonly runtime: typeof proto3;
|
|
154
|
+
static readonly typeName = "uniswap.platformservice.v1.ModifyPersonaResponse";
|
|
155
|
+
static readonly fields: FieldList;
|
|
156
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModifyPersonaResponse;
|
|
157
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModifyPersonaResponse;
|
|
158
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModifyPersonaResponse;
|
|
159
|
+
static equals(a: ModifyPersonaResponse | PlainMessage<ModifyPersonaResponse> | undefined, b: ModifyPersonaResponse | PlainMessage<ModifyPersonaResponse> | undefined): boolean;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Request to get a persona
|
|
163
|
+
*
|
|
164
|
+
* @generated from message uniswap.platformservice.v1.GetAccountRequest
|
|
165
|
+
*/
|
|
166
|
+
export declare class GetAccountRequest extends Message<GetAccountRequest> {
|
|
167
|
+
constructor(data?: PartialMessage<GetAccountRequest>);
|
|
168
|
+
static readonly runtime: typeof proto3;
|
|
169
|
+
static readonly typeName = "uniswap.platformservice.v1.GetAccountRequest";
|
|
170
|
+
static readonly fields: FieldList;
|
|
171
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAccountRequest;
|
|
172
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAccountRequest;
|
|
173
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAccountRequest;
|
|
174
|
+
static equals(a: GetAccountRequest | PlainMessage<GetAccountRequest> | undefined, b: GetAccountRequest | PlainMessage<GetAccountRequest> | undefined): boolean;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @generated from message uniswap.platformservice.v1.Persona
|
|
178
|
+
*/
|
|
179
|
+
export declare class Persona extends Message<Persona> {
|
|
180
|
+
/**
|
|
181
|
+
* @generated from field: optional string name = 1;
|
|
182
|
+
*/
|
|
183
|
+
name?: string;
|
|
184
|
+
/**
|
|
185
|
+
* @generated from field: optional string email = 2;
|
|
186
|
+
*/
|
|
187
|
+
email?: string;
|
|
188
|
+
constructor(data?: PartialMessage<Persona>);
|
|
189
|
+
static readonly runtime: typeof proto3;
|
|
190
|
+
static readonly typeName = "uniswap.platformservice.v1.Persona";
|
|
191
|
+
static readonly fields: FieldList;
|
|
192
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Persona;
|
|
193
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Persona;
|
|
194
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Persona;
|
|
195
|
+
static equals(a: Persona | PlainMessage<Persona> | undefined, b: Persona | PlainMessage<Persona> | undefined): boolean;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* TODO: Populate account information, including persona data, api keys, organization info all toghther.
|
|
199
|
+
*
|
|
200
|
+
* @generated from message uniswap.platformservice.v1.GetAccountResponse
|
|
201
|
+
*/
|
|
202
|
+
export declare class GetAccountResponse extends Message<GetAccountResponse> {
|
|
203
|
+
/**
|
|
204
|
+
* @generated from field: uniswap.platformservice.v1.Persona persona = 1;
|
|
205
|
+
*/
|
|
206
|
+
persona?: Persona;
|
|
207
|
+
constructor(data?: PartialMessage<GetAccountResponse>);
|
|
208
|
+
static readonly runtime: typeof proto3;
|
|
209
|
+
static readonly typeName = "uniswap.platformservice.v1.GetAccountResponse";
|
|
210
|
+
static readonly fields: FieldList;
|
|
211
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAccountResponse;
|
|
212
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAccountResponse;
|
|
213
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAccountResponse;
|
|
214
|
+
static equals(a: GetAccountResponse | PlainMessage<GetAccountResponse> | undefined, b: GetAccountResponse | PlainMessage<GetAccountResponse> | undefined): boolean;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Request to delete a persona
|
|
218
|
+
*
|
|
219
|
+
* @generated from message uniswap.platformservice.v1.DeletePersonaRequest
|
|
220
|
+
*/
|
|
221
|
+
export declare class DeletePersonaRequest extends Message<DeletePersonaRequest> {
|
|
222
|
+
constructor(data?: PartialMessage<DeletePersonaRequest>);
|
|
223
|
+
static readonly runtime: typeof proto3;
|
|
224
|
+
static readonly typeName = "uniswap.platformservice.v1.DeletePersonaRequest";
|
|
225
|
+
static readonly fields: FieldList;
|
|
226
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeletePersonaRequest;
|
|
227
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeletePersonaRequest;
|
|
228
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeletePersonaRequest;
|
|
229
|
+
static equals(a: DeletePersonaRequest | PlainMessage<DeletePersonaRequest> | undefined, b: DeletePersonaRequest | PlainMessage<DeletePersonaRequest> | undefined): boolean;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Response for delete persona
|
|
233
|
+
*
|
|
234
|
+
* @generated from message uniswap.platformservice.v1.DeletePersonaResponse
|
|
235
|
+
*/
|
|
236
|
+
export declare class DeletePersonaResponse extends Message<DeletePersonaResponse> {
|
|
237
|
+
constructor(data?: PartialMessage<DeletePersonaResponse>);
|
|
238
|
+
static readonly runtime: typeof proto3;
|
|
239
|
+
static readonly typeName = "uniswap.platformservice.v1.DeletePersonaResponse";
|
|
240
|
+
static readonly fields: FieldList;
|
|
241
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeletePersonaResponse;
|
|
242
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeletePersonaResponse;
|
|
243
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeletePersonaResponse;
|
|
244
|
+
static equals(a: DeletePersonaResponse | PlainMessage<DeletePersonaResponse> | undefined, b: DeletePersonaResponse | PlainMessage<DeletePersonaResponse> | undefined): boolean;
|
|
245
|
+
}
|