@uniswap/client-platform-service 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/uniswap/platformservice/v1/apiKeyService-ApiKeyService_connectquery.js +1 -1
  2. package/dist/uniswap/platformservice/v1/apiKeyService_connect.js +1 -1
  3. package/dist/uniswap/platformservice/v1/apiKeyService_pb.d.ts +8 -0
  4. package/dist/uniswap/platformservice/v1/apiKeyService_pb.js +7 -1
  5. package/dist/uniswap/platformservice/v1/organizationService-OrganizationService_connectquery.d.ts +14 -1
  6. package/dist/uniswap/platformservice/v1/organizationService-OrganizationService_connectquery.js +15 -2
  7. package/dist/uniswap/platformservice/v1/organizationService_connect.d.ts +10 -1
  8. package/dist/uniswap/platformservice/v1/organizationService_connect.js +11 -2
  9. package/dist/uniswap/platformservice/v1/organizationService_pb.d.ts +42 -0
  10. package/dist/uniswap/platformservice/v1/organizationService_pb.js +70 -1
  11. package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.d.ts +2 -43
  12. package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.js +3 -44
  13. package/dist/uniswap/platformservice/v1/personaService_connect.d.ts +2 -31
  14. package/dist/uniswap/platformservice/v1/personaService_connect.js +3 -32
  15. package/dist/uniswap/platformservice/v1/personaService_pb.d.ts +0 -150
  16. package/dist/uniswap/platformservice/v1/personaService_pb.js +1 -231
  17. package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.d.ts +2 -18
  18. package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.js +3 -19
  19. package/dist/uniswap/platformservice/v1/sessionService_connect.d.ts +2 -14
  20. package/dist/uniswap/platformservice/v1/sessionService_connect.js +3 -15
  21. package/dist/uniswap/platformservice/v1/sessionService_pb.d.ts +8 -28
  22. package/dist/uniswap/platformservice/v1/sessionService_pb.js +9 -50
  23. package/dist/uniswap/platformservice/v1/userService-UserService_connectquery.d.ts +73 -0
  24. package/dist/uniswap/platformservice/v1/userService-UserService_connectquery.js +77 -0
  25. package/dist/uniswap/platformservice/v1/userService_connect.d.ts +61 -0
  26. package/dist/uniswap/platformservice/v1/userService_connect.js +65 -0
  27. package/dist/uniswap/platformservice/v1/userService_pb.d.ts +261 -0
  28. package/dist/uniswap/platformservice/v1/userService_pb.js +382 -0
  29. package/dist/uniswap/platformservice/v1/workerService-WorkerService_connectquery.js +1 -1
  30. package/dist/uniswap/platformservice/v1/workerService_connect.js +1 -1
  31. package/dist/uniswap/platformservice/v1/workerService_pb.js +1 -1
  32. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file uniswap/platformservice/v1/sessionService.proto (package uniswap.platformservice.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -438,7 +438,7 @@ export class VerifyFailure extends Message {
438
438
  */
439
439
  this.reason = VerifyFailure_Reason.UNSPECIFIED;
440
440
  /**
441
- * human-friendly message
441
+ * human-friendly message, includes provider type for mismatch errors
442
442
  *
443
443
  * @generated from field: string message = 2;
444
444
  */
@@ -492,6 +492,12 @@ export var VerifyFailure_Reason;
492
492
  * @generated from enum value: REASON_IVALID_CHALLENGE = 3;
493
493
  */
494
494
  VerifyFailure_Reason[VerifyFailure_Reason["IVALID_CHALLENGE"] = 3] = "IVALID_CHALLENGE";
495
+ /**
496
+ * email linked to different auth provider
497
+ *
498
+ * @generated from enum value: REASON_PROVIDER_MISMATCH = 4;
499
+ */
500
+ VerifyFailure_Reason[VerifyFailure_Reason["PROVIDER_MISMATCH"] = 4] = "PROVIDER_MISMATCH";
495
501
  })(VerifyFailure_Reason || (VerifyFailure_Reason = {}));
496
502
  // Retrieve enum metadata with: proto3.getEnumType(VerifyFailure_Reason)
497
503
  proto3.util.setEnumType(VerifyFailure_Reason, "uniswap.platformservice.v1.VerifyFailure.Reason", [
@@ -499,6 +505,7 @@ proto3.util.setEnumType(VerifyFailure_Reason, "uniswap.platformservice.v1.Verify
499
505
  { no: 1, name: "REASON_INVALID_SOLUTION" },
500
506
  { no: 2, name: "REASON_EMAIL_NOT_VERIFIED" },
501
507
  { no: 3, name: "REASON_IVALID_CHALLENGE" },
508
+ { no: 4, name: "REASON_PROVIDER_MISMATCH" },
502
509
  ]);
503
510
  /**
504
511
  * @generated from message uniswap.platformservice.v1.VerifyResponse
@@ -563,54 +570,6 @@ UserInfo.fields = proto3.util.newFieldList(() => [
563
570
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
564
571
  { no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
565
572
  ]);
566
- /**
567
- * @generated from message uniswap.platformservice.v1.DeleteSessionRequest
568
- */
569
- export class DeleteSessionRequest extends Message {
570
- constructor(data) {
571
- super();
572
- proto3.util.initPartial(data, this);
573
- }
574
- static fromBinary(bytes, options) {
575
- return new DeleteSessionRequest().fromBinary(bytes, options);
576
- }
577
- static fromJson(jsonValue, options) {
578
- return new DeleteSessionRequest().fromJson(jsonValue, options);
579
- }
580
- static fromJsonString(jsonString, options) {
581
- return new DeleteSessionRequest().fromJsonString(jsonString, options);
582
- }
583
- static equals(a, b) {
584
- return proto3.util.equals(DeleteSessionRequest, a, b);
585
- }
586
- }
587
- DeleteSessionRequest.runtime = proto3;
588
- DeleteSessionRequest.typeName = "uniswap.platformservice.v1.DeleteSessionRequest";
589
- DeleteSessionRequest.fields = proto3.util.newFieldList(() => []);
590
- /**
591
- * @generated from message uniswap.platformservice.v1.DeleteSessionResponse
592
- */
593
- export class DeleteSessionResponse extends Message {
594
- constructor(data) {
595
- super();
596
- proto3.util.initPartial(data, this);
597
- }
598
- static fromBinary(bytes, options) {
599
- return new DeleteSessionResponse().fromBinary(bytes, options);
600
- }
601
- static fromJson(jsonValue, options) {
602
- return new DeleteSessionResponse().fromJson(jsonValue, options);
603
- }
604
- static fromJsonString(jsonString, options) {
605
- return new DeleteSessionResponse().fromJsonString(jsonString, options);
606
- }
607
- static equals(a, b) {
608
- return proto3.util.equals(DeleteSessionResponse, a, b);
609
- }
610
- }
611
- DeleteSessionResponse.runtime = proto3;
612
- DeleteSessionResponse.typeName = "uniswap.platformservice.v1.DeleteSessionResponse";
613
- DeleteSessionResponse.fields = proto3.util.newFieldList(() => []);
614
573
  /**
615
574
  * @generated from message uniswap.platformservice.v1.UpdateSessionRequest
616
575
  */
@@ -0,0 +1,73 @@
1
+ import { MethodKind } from "@bufbuild/protobuf";
2
+ import { CreateUserRequest, CreateUserResponse, DeleteUserRequest, DeleteUserResponse, GetUserByEmailRequest, GetUserByEmailResponse, GetUserRequest, GetUserResponse, ModifyUserRequest, ModifyUserResponse } from "./userService_pb.js";
3
+ /**
4
+ * External facing & Authed endpoints - get UserID directly through ctx.auth.userID header
5
+ *
6
+ * @generated from rpc uniswap.platformservice.v1.UserService.CreateUser
7
+ */
8
+ export declare const createUser: {
9
+ readonly localName: "createUser";
10
+ readonly name: "CreateUser";
11
+ readonly kind: MethodKind.Unary;
12
+ readonly I: typeof CreateUserRequest;
13
+ readonly O: typeof CreateUserResponse;
14
+ readonly service: {
15
+ readonly typeName: "uniswap.platformservice.v1.UserService";
16
+ };
17
+ };
18
+ /**
19
+ * @generated from rpc uniswap.platformservice.v1.UserService.ModifyUser
20
+ */
21
+ export declare const modifyUser: {
22
+ readonly localName: "modifyUser";
23
+ readonly name: "ModifyUser";
24
+ readonly kind: MethodKind.Unary;
25
+ readonly I: typeof ModifyUserRequest;
26
+ readonly O: typeof ModifyUserResponse;
27
+ readonly service: {
28
+ readonly typeName: "uniswap.platformservice.v1.UserService";
29
+ };
30
+ };
31
+ /**
32
+ * Gets current user details and session info
33
+ *
34
+ * @generated from rpc uniswap.platformservice.v1.UserService.GetUser
35
+ */
36
+ export declare const getUser: {
37
+ readonly localName: "getUser";
38
+ readonly name: "GetUser";
39
+ readonly kind: MethodKind.Unary;
40
+ readonly I: typeof GetUserRequest;
41
+ readonly O: typeof GetUserResponse;
42
+ readonly service: {
43
+ readonly typeName: "uniswap.platformservice.v1.UserService";
44
+ };
45
+ };
46
+ /**
47
+ * @generated from rpc uniswap.platformservice.v1.UserService.DeleteUser
48
+ */
49
+ export declare const deleteUser: {
50
+ readonly localName: "deleteUser";
51
+ readonly name: "DeleteUser";
52
+ readonly kind: MethodKind.Unary;
53
+ readonly I: typeof DeleteUserRequest;
54
+ readonly O: typeof DeleteUserResponse;
55
+ readonly service: {
56
+ readonly typeName: "uniswap.platformservice.v1.UserService";
57
+ };
58
+ };
59
+ /**
60
+ * Internal service-to-service endpoint - get user by email
61
+ *
62
+ * @generated from rpc uniswap.platformservice.v1.UserService.GetUserByEmail
63
+ */
64
+ export declare const getUserByEmail: {
65
+ readonly localName: "getUserByEmail";
66
+ readonly name: "GetUserByEmail";
67
+ readonly kind: MethodKind.Unary;
68
+ readonly I: typeof GetUserByEmailRequest;
69
+ readonly O: typeof GetUserByEmailResponse;
70
+ readonly service: {
71
+ readonly typeName: "uniswap.platformservice.v1.UserService";
72
+ };
73
+ };
@@ -0,0 +1,77 @@
1
+ // @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
2
+ // @generated from file uniswap/platformservice/v1/userService.proto (package uniswap.platformservice.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { MethodKind } from "@bufbuild/protobuf";
6
+ import { CreateUserRequest, CreateUserResponse, DeleteUserRequest, DeleteUserResponse, GetUserByEmailRequest, GetUserByEmailResponse, GetUserRequest, GetUserResponse, ModifyUserRequest, ModifyUserResponse } from "./userService_pb.js";
7
+ /**
8
+ * External facing & Authed endpoints - get UserID directly through ctx.auth.userID header
9
+ *
10
+ * @generated from rpc uniswap.platformservice.v1.UserService.CreateUser
11
+ */
12
+ export const createUser = {
13
+ localName: "createUser",
14
+ name: "CreateUser",
15
+ kind: MethodKind.Unary,
16
+ I: CreateUserRequest,
17
+ O: CreateUserResponse,
18
+ service: {
19
+ typeName: "uniswap.platformservice.v1.UserService"
20
+ }
21
+ };
22
+ /**
23
+ * @generated from rpc uniswap.platformservice.v1.UserService.ModifyUser
24
+ */
25
+ export const modifyUser = {
26
+ localName: "modifyUser",
27
+ name: "ModifyUser",
28
+ kind: MethodKind.Unary,
29
+ I: ModifyUserRequest,
30
+ O: ModifyUserResponse,
31
+ service: {
32
+ typeName: "uniswap.platformservice.v1.UserService"
33
+ }
34
+ };
35
+ /**
36
+ * Gets current user details and session info
37
+ *
38
+ * @generated from rpc uniswap.platformservice.v1.UserService.GetUser
39
+ */
40
+ export const getUser = {
41
+ localName: "getUser",
42
+ name: "GetUser",
43
+ kind: MethodKind.Unary,
44
+ I: GetUserRequest,
45
+ O: GetUserResponse,
46
+ service: {
47
+ typeName: "uniswap.platformservice.v1.UserService"
48
+ }
49
+ };
50
+ /**
51
+ * @generated from rpc uniswap.platformservice.v1.UserService.DeleteUser
52
+ */
53
+ export const deleteUser = {
54
+ localName: "deleteUser",
55
+ name: "DeleteUser",
56
+ kind: MethodKind.Unary,
57
+ I: DeleteUserRequest,
58
+ O: DeleteUserResponse,
59
+ service: {
60
+ typeName: "uniswap.platformservice.v1.UserService"
61
+ }
62
+ };
63
+ /**
64
+ * Internal service-to-service endpoint - get user by email
65
+ *
66
+ * @generated from rpc uniswap.platformservice.v1.UserService.GetUserByEmail
67
+ */
68
+ export const getUserByEmail = {
69
+ localName: "getUserByEmail",
70
+ name: "GetUserByEmail",
71
+ kind: MethodKind.Unary,
72
+ I: GetUserByEmailRequest,
73
+ O: GetUserByEmailResponse,
74
+ service: {
75
+ typeName: "uniswap.platformservice.v1.UserService"
76
+ }
77
+ };
@@ -0,0 +1,61 @@
1
+ import { CreateUserRequest, CreateUserResponse, DeleteUserRequest, DeleteUserResponse, GetUserByEmailRequest, GetUserByEmailResponse, GetUserRequest, GetUserResponse, ModifyUserRequest, ModifyUserResponse } from "./userService_pb.js";
2
+ import { MethodKind } from "@bufbuild/protobuf";
3
+ /**
4
+ * @generated from service uniswap.platformservice.v1.UserService
5
+ */
6
+ export declare const UserService: {
7
+ readonly typeName: "uniswap.platformservice.v1.UserService";
8
+ readonly methods: {
9
+ /**
10
+ * External facing & Authed endpoints - get UserID directly through ctx.auth.userID header
11
+ *
12
+ * @generated from rpc uniswap.platformservice.v1.UserService.CreateUser
13
+ */
14
+ readonly createUser: {
15
+ readonly name: "CreateUser";
16
+ readonly I: typeof CreateUserRequest;
17
+ readonly O: typeof CreateUserResponse;
18
+ readonly kind: MethodKind.Unary;
19
+ };
20
+ /**
21
+ * @generated from rpc uniswap.platformservice.v1.UserService.ModifyUser
22
+ */
23
+ readonly modifyUser: {
24
+ readonly name: "ModifyUser";
25
+ readonly I: typeof ModifyUserRequest;
26
+ readonly O: typeof ModifyUserResponse;
27
+ readonly kind: MethodKind.Unary;
28
+ };
29
+ /**
30
+ * Gets current user details and session info
31
+ *
32
+ * @generated from rpc uniswap.platformservice.v1.UserService.GetUser
33
+ */
34
+ readonly getUser: {
35
+ readonly name: "GetUser";
36
+ readonly I: typeof GetUserRequest;
37
+ readonly O: typeof GetUserResponse;
38
+ readonly kind: MethodKind.Unary;
39
+ };
40
+ /**
41
+ * @generated from rpc uniswap.platformservice.v1.UserService.DeleteUser
42
+ */
43
+ readonly deleteUser: {
44
+ readonly name: "DeleteUser";
45
+ readonly I: typeof DeleteUserRequest;
46
+ readonly O: typeof DeleteUserResponse;
47
+ readonly kind: MethodKind.Unary;
48
+ };
49
+ /**
50
+ * Internal service-to-service endpoint - get user by email
51
+ *
52
+ * @generated from rpc uniswap.platformservice.v1.UserService.GetUserByEmail
53
+ */
54
+ readonly getUserByEmail: {
55
+ readonly name: "GetUserByEmail";
56
+ readonly I: typeof GetUserByEmailRequest;
57
+ readonly O: typeof GetUserByEmailResponse;
58
+ readonly kind: MethodKind.Unary;
59
+ };
60
+ };
61
+ };
@@ -0,0 +1,65 @@
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
+ // @generated from file uniswap/platformservice/v1/userService.proto (package uniswap.platformservice.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { CreateUserRequest, CreateUserResponse, DeleteUserRequest, DeleteUserResponse, GetUserByEmailRequest, GetUserByEmailResponse, GetUserRequest, GetUserResponse, ModifyUserRequest, ModifyUserResponse } from "./userService_pb.js";
6
+ import { MethodKind } from "@bufbuild/protobuf";
7
+ /**
8
+ * @generated from service uniswap.platformservice.v1.UserService
9
+ */
10
+ export const UserService = {
11
+ typeName: "uniswap.platformservice.v1.UserService",
12
+ methods: {
13
+ /**
14
+ * External facing & Authed endpoints - get UserID directly through ctx.auth.userID header
15
+ *
16
+ * @generated from rpc uniswap.platformservice.v1.UserService.CreateUser
17
+ */
18
+ createUser: {
19
+ name: "CreateUser",
20
+ I: CreateUserRequest,
21
+ O: CreateUserResponse,
22
+ kind: MethodKind.Unary,
23
+ },
24
+ /**
25
+ * @generated from rpc uniswap.platformservice.v1.UserService.ModifyUser
26
+ */
27
+ modifyUser: {
28
+ name: "ModifyUser",
29
+ I: ModifyUserRequest,
30
+ O: ModifyUserResponse,
31
+ kind: MethodKind.Unary,
32
+ },
33
+ /**
34
+ * Gets current user details and session info
35
+ *
36
+ * @generated from rpc uniswap.platformservice.v1.UserService.GetUser
37
+ */
38
+ getUser: {
39
+ name: "GetUser",
40
+ I: GetUserRequest,
41
+ O: GetUserResponse,
42
+ kind: MethodKind.Unary,
43
+ },
44
+ /**
45
+ * @generated from rpc uniswap.platformservice.v1.UserService.DeleteUser
46
+ */
47
+ deleteUser: {
48
+ name: "DeleteUser",
49
+ I: DeleteUserRequest,
50
+ O: DeleteUserResponse,
51
+ kind: MethodKind.Unary,
52
+ },
53
+ /**
54
+ * Internal service-to-service endpoint - get user by email
55
+ *
56
+ * @generated from rpc uniswap.platformservice.v1.UserService.GetUserByEmail
57
+ */
58
+ getUserByEmail: {
59
+ name: "GetUserByEmail",
60
+ I: GetUserByEmailRequest,
61
+ O: GetUserByEmailResponse,
62
+ kind: MethodKind.Unary,
63
+ },
64
+ }
65
+ };
@@ -0,0 +1,261 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ /**
4
+ * Represents an agreement
5
+ *
6
+ * @generated from message uniswap.platformservice.v1.Agreement
7
+ */
8
+ export declare class Agreement extends Message<Agreement> {
9
+ /**
10
+ * @generated from field: string name = 1;
11
+ */
12
+ name: string;
13
+ /**
14
+ * @generated from field: string version = 2;
15
+ */
16
+ version: string;
17
+ /**
18
+ * Timestamp when the user agreed (milliseconds since epoch). If present and non-zero, the user has agreed.
19
+ *
20
+ * @generated from field: optional int64 agreed_at = 3;
21
+ */
22
+ agreedAt?: bigint;
23
+ constructor(data?: PartialMessage<Agreement>);
24
+ static readonly runtime: typeof proto3;
25
+ static readonly typeName = "uniswap.platformservice.v1.Agreement";
26
+ static readonly fields: FieldList;
27
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Agreement;
28
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Agreement;
29
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Agreement;
30
+ static equals(a: Agreement | PlainMessage<Agreement> | undefined, b: Agreement | PlainMessage<Agreement> | undefined): boolean;
31
+ }
32
+ /**
33
+ * Request to create a new user
34
+ *
35
+ * @generated from message uniswap.platformservice.v1.CreateUserRequest
36
+ */
37
+ export declare class CreateUserRequest extends Message<CreateUserRequest> {
38
+ /**
39
+ * User's email address (required)
40
+ *
41
+ * @generated from field: string email = 1;
42
+ */
43
+ email: string;
44
+ constructor(data?: PartialMessage<CreateUserRequest>);
45
+ static readonly runtime: typeof proto3;
46
+ static readonly typeName = "uniswap.platformservice.v1.CreateUserRequest";
47
+ static readonly fields: FieldList;
48
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserRequest;
49
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserRequest;
50
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserRequest;
51
+ static equals(a: CreateUserRequest | PlainMessage<CreateUserRequest> | undefined, b: CreateUserRequest | PlainMessage<CreateUserRequest> | undefined): boolean;
52
+ }
53
+ /**
54
+ * Response for create user
55
+ *
56
+ * @generated from message uniswap.platformservice.v1.CreateUserResponse
57
+ */
58
+ export declare class CreateUserResponse extends Message<CreateUserResponse> {
59
+ /**
60
+ * @generated from field: string user_id = 1;
61
+ */
62
+ userId: string;
63
+ constructor(data?: PartialMessage<CreateUserResponse>);
64
+ static readonly runtime: typeof proto3;
65
+ static readonly typeName = "uniswap.platformservice.v1.CreateUserResponse";
66
+ static readonly fields: FieldList;
67
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserResponse;
68
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserResponse;
69
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserResponse;
70
+ static equals(a: CreateUserResponse | PlainMessage<CreateUserResponse> | undefined, b: CreateUserResponse | PlainMessage<CreateUserResponse> | undefined): boolean;
71
+ }
72
+ /**
73
+ * Request to modify an existing user
74
+ *
75
+ * @generated from message uniswap.platformservice.v1.ModifyUserRequest
76
+ */
77
+ export declare class ModifyUserRequest extends Message<ModifyUserRequest> {
78
+ /**
79
+ * @generated from field: optional string name = 1;
80
+ */
81
+ name?: string;
82
+ /**
83
+ * Multiple agreements can be updated at once
84
+ *
85
+ * @generated from field: repeated uniswap.platformservice.v1.Agreement agreements = 2;
86
+ */
87
+ agreements: Agreement[];
88
+ /**
89
+ * Organization ID (optional, for linking user to org)
90
+ *
91
+ * @generated from field: optional string org_id = 3;
92
+ */
93
+ orgId?: string;
94
+ constructor(data?: PartialMessage<ModifyUserRequest>);
95
+ static readonly runtime: typeof proto3;
96
+ static readonly typeName = "uniswap.platformservice.v1.ModifyUserRequest";
97
+ static readonly fields: FieldList;
98
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModifyUserRequest;
99
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModifyUserRequest;
100
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModifyUserRequest;
101
+ static equals(a: ModifyUserRequest | PlainMessage<ModifyUserRequest> | undefined, b: ModifyUserRequest | PlainMessage<ModifyUserRequest> | undefined): boolean;
102
+ }
103
+ /**
104
+ * Response for modify user
105
+ *
106
+ * @generated from message uniswap.platformservice.v1.ModifyUserResponse
107
+ */
108
+ export declare class ModifyUserResponse extends Message<ModifyUserResponse> {
109
+ constructor(data?: PartialMessage<ModifyUserResponse>);
110
+ static readonly runtime: typeof proto3;
111
+ static readonly typeName = "uniswap.platformservice.v1.ModifyUserResponse";
112
+ static readonly fields: FieldList;
113
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModifyUserResponse;
114
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModifyUserResponse;
115
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModifyUserResponse;
116
+ static equals(a: ModifyUserResponse | PlainMessage<ModifyUserResponse> | undefined, b: ModifyUserResponse | PlainMessage<ModifyUserResponse> | undefined): boolean;
117
+ }
118
+ /**
119
+ * Request to get user details
120
+ *
121
+ * @generated from message uniswap.platformservice.v1.GetUserRequest
122
+ */
123
+ export declare class GetUserRequest extends Message<GetUserRequest> {
124
+ constructor(data?: PartialMessage<GetUserRequest>);
125
+ static readonly runtime: typeof proto3;
126
+ static readonly typeName = "uniswap.platformservice.v1.GetUserRequest";
127
+ static readonly fields: FieldList;
128
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserRequest;
129
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserRequest;
130
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserRequest;
131
+ static equals(a: GetUserRequest | PlainMessage<GetUserRequest> | undefined, b: GetUserRequest | PlainMessage<GetUserRequest> | undefined): boolean;
132
+ }
133
+ /**
134
+ * Represents a user's basic information
135
+ *
136
+ * @generated from message uniswap.platformservice.v1.User
137
+ */
138
+ export declare class User extends Message<User> {
139
+ /**
140
+ * @generated from field: string user_id = 1;
141
+ */
142
+ userId: string;
143
+ /**
144
+ * @generated from field: optional string name = 2;
145
+ */
146
+ name?: string;
147
+ /**
148
+ * @generated from field: optional string email = 3;
149
+ */
150
+ email?: string;
151
+ /**
152
+ * @generated from field: optional string org_id = 4;
153
+ */
154
+ orgId?: string;
155
+ /**
156
+ * User's agreements to terms, policies, etc.
157
+ *
158
+ * @generated from field: repeated uniswap.platformservice.v1.Agreement agreements = 5;
159
+ */
160
+ agreements: Agreement[];
161
+ constructor(data?: PartialMessage<User>);
162
+ static readonly runtime: typeof proto3;
163
+ static readonly typeName = "uniswap.platformservice.v1.User";
164
+ static readonly fields: FieldList;
165
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): User;
166
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): User;
167
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): User;
168
+ static equals(a: User | PlainMessage<User> | undefined, b: User | PlainMessage<User> | undefined): boolean;
169
+ }
170
+ /**
171
+ * Response for get user
172
+ *
173
+ * @generated from message uniswap.platformservice.v1.GetUserResponse
174
+ */
175
+ export declare class GetUserResponse extends Message<GetUserResponse> {
176
+ /**
177
+ * @generated from field: uniswap.platformservice.v1.User user = 1;
178
+ */
179
+ user?: User;
180
+ constructor(data?: PartialMessage<GetUserResponse>);
181
+ static readonly runtime: typeof proto3;
182
+ static readonly typeName = "uniswap.platformservice.v1.GetUserResponse";
183
+ static readonly fields: FieldList;
184
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserResponse;
185
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserResponse;
186
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserResponse;
187
+ static equals(a: GetUserResponse | PlainMessage<GetUserResponse> | undefined, b: GetUserResponse | PlainMessage<GetUserResponse> | undefined): boolean;
188
+ }
189
+ /**
190
+ * Request to delete a user account
191
+ *
192
+ * @generated from message uniswap.platformservice.v1.DeleteUserRequest
193
+ */
194
+ export declare class DeleteUserRequest extends Message<DeleteUserRequest> {
195
+ constructor(data?: PartialMessage<DeleteUserRequest>);
196
+ static readonly runtime: typeof proto3;
197
+ static readonly typeName = "uniswap.platformservice.v1.DeleteUserRequest";
198
+ static readonly fields: FieldList;
199
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserRequest;
200
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserRequest;
201
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserRequest;
202
+ static equals(a: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined, b: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined): boolean;
203
+ }
204
+ /**
205
+ * Response for delete user
206
+ *
207
+ * @generated from message uniswap.platformservice.v1.DeleteUserResponse
208
+ */
209
+ export declare class DeleteUserResponse extends Message<DeleteUserResponse> {
210
+ constructor(data?: PartialMessage<DeleteUserResponse>);
211
+ static readonly runtime: typeof proto3;
212
+ static readonly typeName = "uniswap.platformservice.v1.DeleteUserResponse";
213
+ static readonly fields: FieldList;
214
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserResponse;
215
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserResponse;
216
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserResponse;
217
+ static equals(a: DeleteUserResponse | PlainMessage<DeleteUserResponse> | undefined, b: DeleteUserResponse | PlainMessage<DeleteUserResponse> | undefined): boolean;
218
+ }
219
+ /**
220
+ * Request to get user by email
221
+ *
222
+ * @generated from message uniswap.platformservice.v1.GetUserByEmailRequest
223
+ */
224
+ export declare class GetUserByEmailRequest extends Message<GetUserByEmailRequest> {
225
+ /**
226
+ * User's email address
227
+ *
228
+ * @generated from field: string email = 1;
229
+ */
230
+ email: string;
231
+ constructor(data?: PartialMessage<GetUserByEmailRequest>);
232
+ static readonly runtime: typeof proto3;
233
+ static readonly typeName = "uniswap.platformservice.v1.GetUserByEmailRequest";
234
+ static readonly fields: FieldList;
235
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserByEmailRequest;
236
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserByEmailRequest;
237
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserByEmailRequest;
238
+ static equals(a: GetUserByEmailRequest | PlainMessage<GetUserByEmailRequest> | undefined, b: GetUserByEmailRequest | PlainMessage<GetUserByEmailRequest> | undefined): boolean;
239
+ }
240
+ /**
241
+ * Response for get user by email
242
+ * Throws NotFound if user does not exist
243
+ *
244
+ * @generated from message uniswap.platformservice.v1.GetUserByEmailResponse
245
+ */
246
+ export declare class GetUserByEmailResponse extends Message<GetUserByEmailResponse> {
247
+ /**
248
+ * User details
249
+ *
250
+ * @generated from field: uniswap.platformservice.v1.User user = 1;
251
+ */
252
+ user?: User;
253
+ constructor(data?: PartialMessage<GetUserByEmailResponse>);
254
+ static readonly runtime: typeof proto3;
255
+ static readonly typeName = "uniswap.platformservice.v1.GetUserByEmailResponse";
256
+ static readonly fields: FieldList;
257
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserByEmailResponse;
258
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserByEmailResponse;
259
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserByEmailResponse;
260
+ static equals(a: GetUserByEmailResponse | PlainMessage<GetUserByEmailResponse> | undefined, b: GetUserByEmailResponse | PlainMessage<GetUserByEmailResponse> | undefined): boolean;
261
+ }