@uniswap/client-platform-service 0.0.7 → 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.
@@ -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
+ };
@@ -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
+ }
@@ -155,3 +155,233 @@ PersonaScore.fields = proto3.util.newFieldList(() => [
155
155
  { no: 1, name: "persona_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
156
156
  { no: 2, name: "score", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
157
157
  ]);
158
+ /**
159
+ * Represents an agreement
160
+ *
161
+ * @generated from message uniswap.platformservice.v1.Agreement
162
+ */
163
+ export class Agreement extends Message {
164
+ constructor(data) {
165
+ super();
166
+ /**
167
+ * @generated from field: string name = 1;
168
+ */
169
+ this.name = "";
170
+ /**
171
+ * @generated from field: string version = 2;
172
+ */
173
+ this.version = "";
174
+ /**
175
+ * @generated from field: bool agreed = 3;
176
+ */
177
+ this.agreed = false;
178
+ proto3.util.initPartial(data, this);
179
+ }
180
+ static fromBinary(bytes, options) {
181
+ return new Agreement().fromBinary(bytes, options);
182
+ }
183
+ static fromJson(jsonValue, options) {
184
+ return new Agreement().fromJson(jsonValue, options);
185
+ }
186
+ static fromJsonString(jsonString, options) {
187
+ return new Agreement().fromJsonString(jsonString, options);
188
+ }
189
+ static equals(a, b) {
190
+ return proto3.util.equals(Agreement, a, b);
191
+ }
192
+ }
193
+ Agreement.runtime = proto3;
194
+ Agreement.typeName = "uniswap.platformservice.v1.Agreement";
195
+ Agreement.fields = proto3.util.newFieldList(() => [
196
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
197
+ { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
198
+ { no: 3, name: "agreed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
199
+ ]);
200
+ /**
201
+ * Request to modify an existing persona
202
+ *
203
+ * @generated from message uniswap.platformservice.v1.ModifyPersonaRequest
204
+ */
205
+ export class ModifyPersonaRequest extends Message {
206
+ constructor(data) {
207
+ super();
208
+ proto3.util.initPartial(data, this);
209
+ }
210
+ static fromBinary(bytes, options) {
211
+ return new ModifyPersonaRequest().fromBinary(bytes, options);
212
+ }
213
+ static fromJson(jsonValue, options) {
214
+ return new ModifyPersonaRequest().fromJson(jsonValue, options);
215
+ }
216
+ static fromJsonString(jsonString, options) {
217
+ return new ModifyPersonaRequest().fromJsonString(jsonString, options);
218
+ }
219
+ static equals(a, b) {
220
+ return proto3.util.equals(ModifyPersonaRequest, a, b);
221
+ }
222
+ }
223
+ ModifyPersonaRequest.runtime = proto3;
224
+ ModifyPersonaRequest.typeName = "uniswap.platformservice.v1.ModifyPersonaRequest";
225
+ ModifyPersonaRequest.fields = proto3.util.newFieldList(() => [
226
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
227
+ { no: 2, name: "agreement", kind: "message", T: Agreement, opt: true },
228
+ ]);
229
+ /**
230
+ * Response for modify persona
231
+ *
232
+ * @generated from message uniswap.platformservice.v1.ModifyPersonaResponse
233
+ */
234
+ export class ModifyPersonaResponse extends Message {
235
+ constructor(data) {
236
+ super();
237
+ proto3.util.initPartial(data, this);
238
+ }
239
+ static fromBinary(bytes, options) {
240
+ return new ModifyPersonaResponse().fromBinary(bytes, options);
241
+ }
242
+ static fromJson(jsonValue, options) {
243
+ return new ModifyPersonaResponse().fromJson(jsonValue, options);
244
+ }
245
+ static fromJsonString(jsonString, options) {
246
+ return new ModifyPersonaResponse().fromJsonString(jsonString, options);
247
+ }
248
+ static equals(a, b) {
249
+ return proto3.util.equals(ModifyPersonaResponse, a, b);
250
+ }
251
+ }
252
+ ModifyPersonaResponse.runtime = proto3;
253
+ ModifyPersonaResponse.typeName = "uniswap.platformservice.v1.ModifyPersonaResponse";
254
+ ModifyPersonaResponse.fields = proto3.util.newFieldList(() => []);
255
+ /**
256
+ * Request to get a persona
257
+ *
258
+ * @generated from message uniswap.platformservice.v1.GetAccountRequest
259
+ */
260
+ export class GetAccountRequest extends Message {
261
+ constructor(data) {
262
+ super();
263
+ proto3.util.initPartial(data, this);
264
+ }
265
+ static fromBinary(bytes, options) {
266
+ return new GetAccountRequest().fromBinary(bytes, options);
267
+ }
268
+ static fromJson(jsonValue, options) {
269
+ return new GetAccountRequest().fromJson(jsonValue, options);
270
+ }
271
+ static fromJsonString(jsonString, options) {
272
+ return new GetAccountRequest().fromJsonString(jsonString, options);
273
+ }
274
+ static equals(a, b) {
275
+ return proto3.util.equals(GetAccountRequest, a, b);
276
+ }
277
+ }
278
+ GetAccountRequest.runtime = proto3;
279
+ GetAccountRequest.typeName = "uniswap.platformservice.v1.GetAccountRequest";
280
+ GetAccountRequest.fields = proto3.util.newFieldList(() => []);
281
+ /**
282
+ * @generated from message uniswap.platformservice.v1.Persona
283
+ */
284
+ export class Persona extends Message {
285
+ constructor(data) {
286
+ super();
287
+ proto3.util.initPartial(data, this);
288
+ }
289
+ static fromBinary(bytes, options) {
290
+ return new Persona().fromBinary(bytes, options);
291
+ }
292
+ static fromJson(jsonValue, options) {
293
+ return new Persona().fromJson(jsonValue, options);
294
+ }
295
+ static fromJsonString(jsonString, options) {
296
+ return new Persona().fromJsonString(jsonString, options);
297
+ }
298
+ static equals(a, b) {
299
+ return proto3.util.equals(Persona, a, b);
300
+ }
301
+ }
302
+ Persona.runtime = proto3;
303
+ Persona.typeName = "uniswap.platformservice.v1.Persona";
304
+ Persona.fields = proto3.util.newFieldList(() => [
305
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
306
+ { no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
307
+ ]);
308
+ /**
309
+ * TODO: Populate account information, including persona data, api keys, organization info all toghther.
310
+ *
311
+ * @generated from message uniswap.platformservice.v1.GetAccountResponse
312
+ */
313
+ export class GetAccountResponse extends Message {
314
+ constructor(data) {
315
+ super();
316
+ proto3.util.initPartial(data, this);
317
+ }
318
+ static fromBinary(bytes, options) {
319
+ return new GetAccountResponse().fromBinary(bytes, options);
320
+ }
321
+ static fromJson(jsonValue, options) {
322
+ return new GetAccountResponse().fromJson(jsonValue, options);
323
+ }
324
+ static fromJsonString(jsonString, options) {
325
+ return new GetAccountResponse().fromJsonString(jsonString, options);
326
+ }
327
+ static equals(a, b) {
328
+ return proto3.util.equals(GetAccountResponse, a, b);
329
+ }
330
+ }
331
+ GetAccountResponse.runtime = proto3;
332
+ GetAccountResponse.typeName = "uniswap.platformservice.v1.GetAccountResponse";
333
+ GetAccountResponse.fields = proto3.util.newFieldList(() => [
334
+ { no: 1, name: "persona", kind: "message", T: Persona },
335
+ ]);
336
+ /**
337
+ * Request to delete a persona
338
+ *
339
+ * @generated from message uniswap.platformservice.v1.DeletePersonaRequest
340
+ */
341
+ export class DeletePersonaRequest extends Message {
342
+ constructor(data) {
343
+ super();
344
+ proto3.util.initPartial(data, this);
345
+ }
346
+ static fromBinary(bytes, options) {
347
+ return new DeletePersonaRequest().fromBinary(bytes, options);
348
+ }
349
+ static fromJson(jsonValue, options) {
350
+ return new DeletePersonaRequest().fromJson(jsonValue, options);
351
+ }
352
+ static fromJsonString(jsonString, options) {
353
+ return new DeletePersonaRequest().fromJsonString(jsonString, options);
354
+ }
355
+ static equals(a, b) {
356
+ return proto3.util.equals(DeletePersonaRequest, a, b);
357
+ }
358
+ }
359
+ DeletePersonaRequest.runtime = proto3;
360
+ DeletePersonaRequest.typeName = "uniswap.platformservice.v1.DeletePersonaRequest";
361
+ DeletePersonaRequest.fields = proto3.util.newFieldList(() => []);
362
+ /**
363
+ * Response for delete persona
364
+ *
365
+ * @generated from message uniswap.platformservice.v1.DeletePersonaResponse
366
+ */
367
+ export class DeletePersonaResponse extends Message {
368
+ constructor(data) {
369
+ super();
370
+ proto3.util.initPartial(data, this);
371
+ }
372
+ static fromBinary(bytes, options) {
373
+ return new DeletePersonaResponse().fromBinary(bytes, options);
374
+ }
375
+ static fromJson(jsonValue, options) {
376
+ return new DeletePersonaResponse().fromJson(jsonValue, options);
377
+ }
378
+ static fromJsonString(jsonString, options) {
379
+ return new DeletePersonaResponse().fromJsonString(jsonString, options);
380
+ }
381
+ static equals(a, b) {
382
+ return proto3.util.equals(DeletePersonaResponse, a, b);
383
+ }
384
+ }
385
+ DeletePersonaResponse.runtime = proto3;
386
+ DeletePersonaResponse.typeName = "uniswap.platformservice.v1.DeletePersonaResponse";
387
+ DeletePersonaResponse.fields = proto3.util.newFieldList(() => []);
@@ -183,12 +183,6 @@ export declare class ChallengeRequest extends Message<ChallengeRequest> {
183
183
  * @generated from field: optional string identifier = 2;
184
184
  */
185
185
  identifier?: string;
186
- /**
187
- * Post login redirect URL
188
- *
189
- * @generated from field: optional string redirect_url = 3;
190
- */
191
- redirectUrl?: string;
192
186
  constructor(data?: PartialMessage<ChallengeRequest>);
193
187
  static readonly runtime: typeof proto3;
194
188
  static readonly typeName = "uniswap.platformservice.v1.ChallengeRequest";
@@ -281,11 +275,9 @@ export declare class VerifyResponse extends Message<VerifyResponse> {
281
275
  */
282
276
  waitSeconds?: number;
283
277
  /**
284
- * OAuth redirect URL (for OAuth login flow)
285
- *
286
- * @generated from field: optional string redirect_url = 3;
278
+ * @generated from field: optional uniswap.platformservice.v1.UserInfo user_info = 3;
287
279
  */
288
- redirectUrl?: string;
280
+ userInfo?: UserInfo;
289
281
  constructor(data?: PartialMessage<VerifyResponse>);
290
282
  static readonly runtime: typeof proto3;
291
283
  static readonly typeName = "uniswap.platformservice.v1.VerifyResponse";
@@ -295,6 +287,27 @@ export declare class VerifyResponse extends Message<VerifyResponse> {
295
287
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyResponse;
296
288
  static equals(a: VerifyResponse | PlainMessage<VerifyResponse> | undefined, b: VerifyResponse | PlainMessage<VerifyResponse> | undefined): boolean;
297
289
  }
290
+ /**
291
+ * @generated from message uniswap.platformservice.v1.UserInfo
292
+ */
293
+ export declare class UserInfo extends Message<UserInfo> {
294
+ /**
295
+ * @generated from field: optional string name = 1;
296
+ */
297
+ name?: string;
298
+ /**
299
+ * @generated from field: optional string email = 2;
300
+ */
301
+ email?: string;
302
+ constructor(data?: PartialMessage<UserInfo>);
303
+ static readonly runtime: typeof proto3;
304
+ static readonly typeName = "uniswap.platformservice.v1.UserInfo";
305
+ static readonly fields: FieldList;
306
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserInfo;
307
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserInfo;
308
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserInfo;
309
+ static equals(a: UserInfo | PlainMessage<UserInfo> | undefined, b: UserInfo | PlainMessage<UserInfo> | undefined): boolean;
310
+ }
298
311
  /**
299
312
  * @generated from message uniswap.platformservice.v1.DeleteSessionRequest
300
313
  */
@@ -273,7 +273,6 @@ ChallengeRequest.typeName = "uniswap.platformservice.v1.ChallengeRequest";
273
273
  ChallengeRequest.fields = proto3.util.newFieldList(() => [
274
274
  { no: 1, name: "challenge_type", kind: "enum", T: proto3.getEnumType(ChallengeType), opt: true },
275
275
  { 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
276
  ]);
278
277
  /**
279
278
  * @generated from message uniswap.platformservice.v1.ChallengeResponse
@@ -396,7 +395,34 @@ VerifyResponse.typeName = "uniswap.platformservice.v1.VerifyResponse";
396
395
  VerifyResponse.fields = proto3.util.newFieldList(() => [
397
396
  { no: 1, name: "retry", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
398
397
  { no: 2, name: "wait_seconds", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
399
- { no: 3, name: "redirect_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
398
+ { no: 3, name: "user_info", kind: "message", T: UserInfo, opt: true },
399
+ ]);
400
+ /**
401
+ * @generated from message uniswap.platformservice.v1.UserInfo
402
+ */
403
+ export class UserInfo extends Message {
404
+ constructor(data) {
405
+ super();
406
+ proto3.util.initPartial(data, this);
407
+ }
408
+ static fromBinary(bytes, options) {
409
+ return new UserInfo().fromBinary(bytes, options);
410
+ }
411
+ static fromJson(jsonValue, options) {
412
+ return new UserInfo().fromJson(jsonValue, options);
413
+ }
414
+ static fromJsonString(jsonString, options) {
415
+ return new UserInfo().fromJsonString(jsonString, options);
416
+ }
417
+ static equals(a, b) {
418
+ return proto3.util.equals(UserInfo, a, b);
419
+ }
420
+ }
421
+ UserInfo.runtime = proto3;
422
+ UserInfo.typeName = "uniswap.platformservice.v1.UserInfo";
423
+ UserInfo.fields = proto3.util.newFieldList(() => [
424
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
425
+ { no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
400
426
  ]);
401
427
  /**
402
428
  * @generated from message uniswap.platformservice.v1.DeleteSessionRequest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-platform-service",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },