@uniswap/client-platform-service 0.0.5 → 0.0.7

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 (27) hide show
  1. package/dist/uniswap/platformservice/v1/apiKeyService_pb.d.ts +5 -1
  2. package/dist/uniswap/platformservice/v1/apiKeyService_pb.js +7 -2
  3. package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.d.ts +28 -0
  4. package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.js +32 -0
  5. package/dist/uniswap/platformservice/v1/personaService_connect.d.ts +28 -0
  6. package/dist/uniswap/platformservice/v1/personaService_connect.js +32 -0
  7. package/dist/uniswap/platformservice/v1/personaService_pb.d.ts +95 -0
  8. package/dist/uniswap/platformservice/v1/personaService_pb.js +157 -0
  9. package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.d.ts +124 -0
  10. package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.js +128 -0
  11. package/dist/uniswap/platformservice/v1/sessionService_connect.d.ts +100 -0
  12. package/dist/uniswap/platformservice/v1/sessionService_connect.js +104 -0
  13. package/dist/uniswap/platformservice/v1/sessionService_pb.d.ts +379 -0
  14. package/dist/uniswap/platformservice/v1/sessionService_pb.js +550 -0
  15. package/dist/uniswap/platformservice/v1/workerService-WorkerService_connectquery.d.ts +14 -1
  16. package/dist/uniswap/platformservice/v1/workerService-WorkerService_connectquery.js +14 -1
  17. package/dist/uniswap/platformservice/v1/workerService_connect.d.ts +10 -1
  18. package/dist/uniswap/platformservice/v1/workerService_connect.js +10 -1
  19. package/dist/uniswap/platformservice/v1/workerService_pb.d.ts +88 -0
  20. package/dist/uniswap/platformservice/v1/workerService_pb.js +128 -0
  21. package/package.json +1 -1
  22. package/dist/uniswap/sessionservice/v1/sessionService-SessionService_connectquery.d.ts +0 -77
  23. package/dist/uniswap/sessionservice/v1/sessionService-SessionService_connectquery.js +0 -81
  24. package/dist/uniswap/sessionservice/v1/sessionService_connect.d.ts +0 -65
  25. package/dist/uniswap/sessionservice/v1/sessionService_connect.js +0 -69
  26. package/dist/uniswap/sessionservice/v1/sessionService_pb.d.ts +0 -205
  27. package/dist/uniswap/sessionservice/v1/sessionService_pb.js +0 -328
@@ -0,0 +1,100 @@
1
+ import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, GetChallengeTypesRequest, GetChallengeTypesResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, SignoutRequest, SignoutResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
2
+ import { MethodKind } from "@bufbuild/protobuf";
3
+ /**
4
+ * @generated from service uniswap.platformservice.v1.SessionService
5
+ */
6
+ export declare const SessionService: {
7
+ readonly typeName: "uniswap.platformservice.v1.SessionService";
8
+ readonly methods: {
9
+ /**
10
+ * typically utilized by Entry Gateway for inspecting the validity of a session
11
+ *
12
+ * @generated from rpc uniswap.platformservice.v1.SessionService.IntrospectSession
13
+ */
14
+ readonly introspectSession: {
15
+ readonly name: "IntrospectSession";
16
+ readonly I: typeof IntrospectSessionRequest;
17
+ readonly O: typeof IntrospectSessionResponse;
18
+ readonly kind: MethodKind.Unary;
19
+ };
20
+ /**
21
+ * used by client for initializing a session
22
+ *
23
+ * @generated from rpc uniswap.platformservice.v1.SessionService.InitSession
24
+ */
25
+ readonly initSession: {
26
+ readonly name: "InitSession";
27
+ readonly I: typeof InitSessionRequest;
28
+ readonly O: typeof InitSessionResponse;
29
+ readonly kind: MethodKind.Unary;
30
+ };
31
+ /**
32
+ * return a list of possible challenge types
33
+ *
34
+ * @generated from rpc uniswap.platformservice.v1.SessionService.GetChallengeTypes
35
+ */
36
+ readonly getChallengeTypes: {
37
+ readonly name: "GetChallengeTypes";
38
+ readonly I: typeof GetChallengeTypesRequest;
39
+ readonly O: typeof GetChallengeTypesResponse;
40
+ readonly kind: MethodKind.Unary;
41
+ };
42
+ /**
43
+ * used by client to request a challenge
44
+ *
45
+ * @generated from rpc uniswap.platformservice.v1.SessionService.Challenge
46
+ */
47
+ readonly challenge: {
48
+ readonly name: "Challenge";
49
+ readonly I: typeof ChallengeRequest;
50
+ readonly O: typeof ChallengeResponse;
51
+ readonly kind: MethodKind.Unary;
52
+ };
53
+ /**
54
+ * a universal method for all challenge types (auth and bot detection)
55
+ * OauthVerify is implemented separately as a pure GET endpoint, which proxy request to Verify POST locally.
56
+ *
57
+ * @generated from rpc uniswap.platformservice.v1.SessionService.Verify
58
+ */
59
+ readonly verify: {
60
+ readonly name: "Verify";
61
+ readonly I: typeof VerifyRequest;
62
+ readonly O: typeof VerifyResponse;
63
+ readonly kind: MethodKind.Unary;
64
+ };
65
+ /**
66
+ * delete a certain session. For example, on app uninstall
67
+ *
68
+ * @generated from rpc uniswap.platformservice.v1.SessionService.DeleteSession
69
+ */
70
+ readonly deleteSession: {
71
+ readonly name: "DeleteSession";
72
+ readonly I: typeof DeleteSessionRequest;
73
+ readonly O: typeof DeleteSessionResponse;
74
+ readonly kind: MethodKind.Unary;
75
+ };
76
+ /**
77
+ * Update request. We intend this to be generic.
78
+ *
79
+ * @generated from rpc uniswap.platformservice.v1.SessionService.UpdateSession
80
+ */
81
+ readonly updateSession: {
82
+ readonly name: "UpdateSession";
83
+ readonly I: typeof UpdateSessionRequest;
84
+ readonly O: typeof UpdateSessionResponse;
85
+ readonly kind: MethodKind.Unary;
86
+ };
87
+ /**
88
+ * 1. Sign out user and clear authenticated session,
89
+ * 2. Rotate with a brand new session
90
+ *
91
+ * @generated from rpc uniswap.platformservice.v1.SessionService.Signout
92
+ */
93
+ readonly signout: {
94
+ readonly name: "Signout";
95
+ readonly I: typeof SignoutRequest;
96
+ readonly O: typeof SignoutResponse;
97
+ readonly kind: MethodKind.Unary;
98
+ };
99
+ };
100
+ };
@@ -0,0 +1,104 @@
1
+ // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
2
+ // @generated from file uniswap/platformservice/v1/sessionService.proto (package uniswap.platformservice.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, GetChallengeTypesRequest, GetChallengeTypesResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, SignoutRequest, SignoutResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
6
+ import { MethodKind } from "@bufbuild/protobuf";
7
+ /**
8
+ * @generated from service uniswap.platformservice.v1.SessionService
9
+ */
10
+ export const SessionService = {
11
+ typeName: "uniswap.platformservice.v1.SessionService",
12
+ methods: {
13
+ /**
14
+ * typically utilized by Entry Gateway for inspecting the validity of a session
15
+ *
16
+ * @generated from rpc uniswap.platformservice.v1.SessionService.IntrospectSession
17
+ */
18
+ introspectSession: {
19
+ name: "IntrospectSession",
20
+ I: IntrospectSessionRequest,
21
+ O: IntrospectSessionResponse,
22
+ kind: MethodKind.Unary,
23
+ },
24
+ /**
25
+ * used by client for initializing a session
26
+ *
27
+ * @generated from rpc uniswap.platformservice.v1.SessionService.InitSession
28
+ */
29
+ initSession: {
30
+ name: "InitSession",
31
+ I: InitSessionRequest,
32
+ O: InitSessionResponse,
33
+ kind: MethodKind.Unary,
34
+ },
35
+ /**
36
+ * return a list of possible challenge types
37
+ *
38
+ * @generated from rpc uniswap.platformservice.v1.SessionService.GetChallengeTypes
39
+ */
40
+ getChallengeTypes: {
41
+ name: "GetChallengeTypes",
42
+ I: GetChallengeTypesRequest,
43
+ O: GetChallengeTypesResponse,
44
+ kind: MethodKind.Unary,
45
+ },
46
+ /**
47
+ * used by client to request a challenge
48
+ *
49
+ * @generated from rpc uniswap.platformservice.v1.SessionService.Challenge
50
+ */
51
+ challenge: {
52
+ name: "Challenge",
53
+ I: ChallengeRequest,
54
+ O: ChallengeResponse,
55
+ kind: MethodKind.Unary,
56
+ },
57
+ /**
58
+ * a universal method for all challenge types (auth and bot detection)
59
+ * OauthVerify is implemented separately as a pure GET endpoint, which proxy request to Verify POST locally.
60
+ *
61
+ * @generated from rpc uniswap.platformservice.v1.SessionService.Verify
62
+ */
63
+ verify: {
64
+ name: "Verify",
65
+ I: VerifyRequest,
66
+ O: VerifyResponse,
67
+ kind: MethodKind.Unary,
68
+ },
69
+ /**
70
+ * delete a certain session. For example, on app uninstall
71
+ *
72
+ * @generated from rpc uniswap.platformservice.v1.SessionService.DeleteSession
73
+ */
74
+ deleteSession: {
75
+ name: "DeleteSession",
76
+ I: DeleteSessionRequest,
77
+ O: DeleteSessionResponse,
78
+ kind: MethodKind.Unary,
79
+ },
80
+ /**
81
+ * Update request. We intend this to be generic.
82
+ *
83
+ * @generated from rpc uniswap.platformservice.v1.SessionService.UpdateSession
84
+ */
85
+ updateSession: {
86
+ name: "UpdateSession",
87
+ I: UpdateSessionRequest,
88
+ O: UpdateSessionResponse,
89
+ kind: MethodKind.Unary,
90
+ },
91
+ /**
92
+ * 1. Sign out user and clear authenticated session,
93
+ * 2. Rotate with a brand new session
94
+ *
95
+ * @generated from rpc uniswap.platformservice.v1.SessionService.Signout
96
+ */
97
+ signout: {
98
+ name: "Signout",
99
+ I: SignoutRequest,
100
+ O: SignoutResponse,
101
+ kind: MethodKind.Unary,
102
+ },
103
+ }
104
+ };
@@ -0,0 +1,379 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ /**
4
+ * @generated from enum uniswap.platformservice.v1.ChallengeType
5
+ */
6
+ export declare enum ChallengeType {
7
+ /**
8
+ * Bot detection mechanisms
9
+ *
10
+ * @generated from enum value: CHALLENGE_TYPE_UNSPECIFIED = 0;
11
+ */
12
+ UNSPECIFIED = 0,
13
+ /**
14
+ * @generated from enum value: CHALLENGE_TYPE_TURNSTILE = 1;
15
+ */
16
+ TURNSTILE = 1,
17
+ /**
18
+ * @generated from enum value: CHALLENGE_TYPE_HASHCASH = 2;
19
+ */
20
+ HASHCASH = 2,
21
+ /**
22
+ * Login Authentication
23
+ *
24
+ * @generated from enum value: CHALLENGE_TYPE_GOOGLE = 3;
25
+ */
26
+ GOOGLE = 3,
27
+ /**
28
+ * @generated from enum value: CHALLENGE_TYPE_SLACK = 4;
29
+ */
30
+ SLACK = 4,
31
+ /**
32
+ * @generated from enum value: CHALLENGE_TYPE_GITHUB = 5;
33
+ */
34
+ GITHUB = 5,
35
+ /**
36
+ * @generated from enum value: CHALLENGE_TYPE_MAIL = 6;
37
+ */
38
+ MAIL = 6
39
+ }
40
+ /**
41
+ * @generated from message uniswap.platformservice.v1.IntrospectSessionRequest
42
+ */
43
+ export declare class IntrospectSessionRequest extends Message<IntrospectSessionRequest> {
44
+ /**
45
+ * only Entry Gate way will call, therefore in the request body
46
+ *
47
+ * @generated from field: string session_id = 1;
48
+ */
49
+ sessionId: string;
50
+ constructor(data?: PartialMessage<IntrospectSessionRequest>);
51
+ static readonly runtime: typeof proto3;
52
+ static readonly typeName = "uniswap.platformservice.v1.IntrospectSessionRequest";
53
+ static readonly fields: FieldList;
54
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IntrospectSessionRequest;
55
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IntrospectSessionRequest;
56
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IntrospectSessionRequest;
57
+ static equals(a: IntrospectSessionRequest | PlainMessage<IntrospectSessionRequest> | undefined, b: IntrospectSessionRequest | PlainMessage<IntrospectSessionRequest> | undefined): boolean;
58
+ }
59
+ /**
60
+ * @generated from message uniswap.platformservice.v1.IntrospectSessionResponse
61
+ */
62
+ export declare class IntrospectSessionResponse extends Message<IntrospectSessionResponse> {
63
+ /**
64
+ * @generated from field: string wrapped_id = 1;
65
+ */
66
+ wrappedId: string;
67
+ /**
68
+ * @generated from field: bool result = 2;
69
+ */
70
+ result: boolean;
71
+ /**
72
+ * string user_id = 3; // will add back when user_id is available
73
+ *
74
+ * @generated from field: int32 score = 4;
75
+ */
76
+ score: number;
77
+ /**
78
+ * @generated from field: string persona_id = 5;
79
+ */
80
+ personaId: string;
81
+ constructor(data?: PartialMessage<IntrospectSessionResponse>);
82
+ static readonly runtime: typeof proto3;
83
+ static readonly typeName = "uniswap.platformservice.v1.IntrospectSessionResponse";
84
+ static readonly fields: FieldList;
85
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IntrospectSessionResponse;
86
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IntrospectSessionResponse;
87
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IntrospectSessionResponse;
88
+ static equals(a: IntrospectSessionResponse | PlainMessage<IntrospectSessionResponse> | undefined, b: IntrospectSessionResponse | PlainMessage<IntrospectSessionResponse> | undefined): boolean;
89
+ }
90
+ /**
91
+ * @generated from message uniswap.platformservice.v1.InitSessionRequest
92
+ */
93
+ export declare class InitSessionRequest extends Message<InitSessionRequest> {
94
+ constructor(data?: PartialMessage<InitSessionRequest>);
95
+ static readonly runtime: typeof proto3;
96
+ static readonly typeName = "uniswap.platformservice.v1.InitSessionRequest";
97
+ static readonly fields: FieldList;
98
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InitSessionRequest;
99
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InitSessionRequest;
100
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InitSessionRequest;
101
+ static equals(a: InitSessionRequest | PlainMessage<InitSessionRequest> | undefined, b: InitSessionRequest | PlainMessage<InitSessionRequest> | undefined): boolean;
102
+ }
103
+ /**
104
+ * @generated from message uniswap.platformservice.v1.InitSessionResponse
105
+ */
106
+ export declare class InitSessionResponse extends Message<InitSessionResponse> {
107
+ /**
108
+ * for web, it is in the cookie, for mobile + extension, it is in the body
109
+ *
110
+ * @generated from field: optional string session_id = 1;
111
+ */
112
+ sessionId?: string;
113
+ /**
114
+ * for web, it is in the cookie, for mobile + extension, it is in the body
115
+ *
116
+ * @generated from field: optional string device_id = 2;
117
+ */
118
+ deviceId?: string;
119
+ /**
120
+ * @generated from field: bool need_challenge = 3;
121
+ */
122
+ needChallenge: boolean;
123
+ /**
124
+ * extra information in json client needs to know to complete the bot detection mechanism
125
+ *
126
+ * @generated from field: map<string, string> extra = 4;
127
+ */
128
+ extra: {
129
+ [key: string]: string;
130
+ };
131
+ constructor(data?: PartialMessage<InitSessionResponse>);
132
+ static readonly runtime: typeof proto3;
133
+ static readonly typeName = "uniswap.platformservice.v1.InitSessionResponse";
134
+ static readonly fields: FieldList;
135
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InitSessionResponse;
136
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InitSessionResponse;
137
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InitSessionResponse;
138
+ static equals(a: InitSessionResponse | PlainMessage<InitSessionResponse> | undefined, b: InitSessionResponse | PlainMessage<InitSessionResponse> | undefined): boolean;
139
+ }
140
+ /**
141
+ * @generated from message uniswap.platformservice.v1.GetChallengeTypesRequest
142
+ */
143
+ export declare class GetChallengeTypesRequest extends Message<GetChallengeTypesRequest> {
144
+ constructor(data?: PartialMessage<GetChallengeTypesRequest>);
145
+ static readonly runtime: typeof proto3;
146
+ static readonly typeName = "uniswap.platformservice.v1.GetChallengeTypesRequest";
147
+ static readonly fields: FieldList;
148
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetChallengeTypesRequest;
149
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetChallengeTypesRequest;
150
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetChallengeTypesRequest;
151
+ static equals(a: GetChallengeTypesRequest | PlainMessage<GetChallengeTypesRequest> | undefined, b: GetChallengeTypesRequest | PlainMessage<GetChallengeTypesRequest> | undefined): boolean;
152
+ }
153
+ /**
154
+ * @generated from message uniswap.platformservice.v1.GetChallengeTypesResponse
155
+ */
156
+ export declare class GetChallengeTypesResponse extends Message<GetChallengeTypesResponse> {
157
+ /**
158
+ * @generated from field: repeated uniswap.platformservice.v1.ChallengeType challenge_types = 1;
159
+ */
160
+ challengeTypes: ChallengeType[];
161
+ constructor(data?: PartialMessage<GetChallengeTypesResponse>);
162
+ static readonly runtime: typeof proto3;
163
+ static readonly typeName = "uniswap.platformservice.v1.GetChallengeTypesResponse";
164
+ static readonly fields: FieldList;
165
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetChallengeTypesResponse;
166
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetChallengeTypesResponse;
167
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetChallengeTypesResponse;
168
+ static equals(a: GetChallengeTypesResponse | PlainMessage<GetChallengeTypesResponse> | undefined, b: GetChallengeTypesResponse | PlainMessage<GetChallengeTypesResponse> | undefined): boolean;
169
+ }
170
+ /**
171
+ * @generated from message uniswap.platformservice.v1.ChallengeRequest
172
+ */
173
+ export declare class ChallengeRequest extends Message<ChallengeRequest> {
174
+ /**
175
+ * Challenge type (auth provider or bot detection). If not set, server decides
176
+ *
177
+ * @generated from field: optional uniswap.platformservice.v1.ChallengeType challenge_type = 1;
178
+ */
179
+ challengeType?: ChallengeType;
180
+ /**
181
+ * Email address (required when type=PROVIDER_EMAIL)
182
+ *
183
+ * @generated from field: optional string identifier = 2;
184
+ */
185
+ identifier?: string;
186
+ /**
187
+ * Post login redirect URL
188
+ *
189
+ * @generated from field: optional string redirect_url = 3;
190
+ */
191
+ redirectUrl?: string;
192
+ constructor(data?: PartialMessage<ChallengeRequest>);
193
+ static readonly runtime: typeof proto3;
194
+ static readonly typeName = "uniswap.platformservice.v1.ChallengeRequest";
195
+ static readonly fields: FieldList;
196
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChallengeRequest;
197
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChallengeRequest;
198
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChallengeRequest;
199
+ static equals(a: ChallengeRequest | PlainMessage<ChallengeRequest> | undefined, b: ChallengeRequest | PlainMessage<ChallengeRequest> | undefined): boolean;
200
+ }
201
+ /**
202
+ * @generated from message uniswap.platformservice.v1.ChallengeResponse
203
+ */
204
+ export declare class ChallengeResponse extends Message<ChallengeResponse> {
205
+ /**
206
+ * @generated from field: string challenge_id = 1;
207
+ */
208
+ challengeId: string;
209
+ /**
210
+ * The challenge type being enforced for
211
+ *
212
+ * @generated from field: uniswap.platformservice.v1.ChallengeType challenge_type = 2;
213
+ */
214
+ challengeType: ChallengeType;
215
+ /**
216
+ * Extra data for challenge (e.g., hashcash difficulty, turnstile site key)
217
+ *
218
+ * @generated from field: map<string, string> extra = 3;
219
+ */
220
+ extra: {
221
+ [key: string]: string;
222
+ };
223
+ /**
224
+ * OAuth authorization URL (for OAuth)
225
+ *
226
+ * @generated from field: optional string authorize_url = 4;
227
+ */
228
+ authorizeUrl?: string;
229
+ constructor(data?: PartialMessage<ChallengeResponse>);
230
+ static readonly runtime: typeof proto3;
231
+ static readonly typeName = "uniswap.platformservice.v1.ChallengeResponse";
232
+ static readonly fields: FieldList;
233
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChallengeResponse;
234
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChallengeResponse;
235
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChallengeResponse;
236
+ static equals(a: ChallengeResponse | PlainMessage<ChallengeResponse> | undefined, b: ChallengeResponse | PlainMessage<ChallengeResponse> | undefined): boolean;
237
+ }
238
+ /**
239
+ * @generated from message uniswap.platformservice.v1.VerifyRequest
240
+ */
241
+ export declare class VerifyRequest extends Message<VerifyRequest> {
242
+ /**
243
+ * Bot detection token, hashcash solution, or OTP code. Oauth code == solution.
244
+ *
245
+ * @generated from field: string solution = 1;
246
+ */
247
+ solution: string;
248
+ /**
249
+ * Oauth state = challenge_id
250
+ *
251
+ * @generated from field: string challenge_id = 2;
252
+ */
253
+ challengeId: string;
254
+ /**
255
+ * Challenge type (must match the one used in Challenge). If not set, server infers from challenge_id
256
+ *
257
+ * @generated from field: uniswap.platformservice.v1.ChallengeType type = 3;
258
+ */
259
+ type: ChallengeType;
260
+ constructor(data?: PartialMessage<VerifyRequest>);
261
+ static readonly runtime: typeof proto3;
262
+ static readonly typeName = "uniswap.platformservice.v1.VerifyRequest";
263
+ static readonly fields: FieldList;
264
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyRequest;
265
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyRequest;
266
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyRequest;
267
+ static equals(a: VerifyRequest | PlainMessage<VerifyRequest> | undefined, b: VerifyRequest | PlainMessage<VerifyRequest> | undefined): boolean;
268
+ }
269
+ /**
270
+ * @generated from message uniswap.platformservice.v1.VerifyResponse
271
+ */
272
+ export declare class VerifyResponse extends Message<VerifyResponse> {
273
+ /**
274
+ * @generated from field: bool retry = 1;
275
+ */
276
+ retry: boolean;
277
+ /**
278
+ * seconds to wait before resend (for email+OTP)
279
+ *
280
+ * @generated from field: optional int32 wait_seconds = 2;
281
+ */
282
+ waitSeconds?: number;
283
+ /**
284
+ * OAuth redirect URL (for OAuth login flow)
285
+ *
286
+ * @generated from field: optional string redirect_url = 3;
287
+ */
288
+ redirectUrl?: string;
289
+ constructor(data?: PartialMessage<VerifyResponse>);
290
+ static readonly runtime: typeof proto3;
291
+ static readonly typeName = "uniswap.platformservice.v1.VerifyResponse";
292
+ static readonly fields: FieldList;
293
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyResponse;
294
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyResponse;
295
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyResponse;
296
+ static equals(a: VerifyResponse | PlainMessage<VerifyResponse> | undefined, b: VerifyResponse | PlainMessage<VerifyResponse> | undefined): boolean;
297
+ }
298
+ /**
299
+ * @generated from message uniswap.platformservice.v1.DeleteSessionRequest
300
+ */
301
+ export declare class DeleteSessionRequest extends Message<DeleteSessionRequest> {
302
+ constructor(data?: PartialMessage<DeleteSessionRequest>);
303
+ static readonly runtime: typeof proto3;
304
+ static readonly typeName = "uniswap.platformservice.v1.DeleteSessionRequest";
305
+ static readonly fields: FieldList;
306
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteSessionRequest;
307
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteSessionRequest;
308
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteSessionRequest;
309
+ static equals(a: DeleteSessionRequest | PlainMessage<DeleteSessionRequest> | undefined, b: DeleteSessionRequest | PlainMessage<DeleteSessionRequest> | undefined): boolean;
310
+ }
311
+ /**
312
+ * @generated from message uniswap.platformservice.v1.DeleteSessionResponse
313
+ */
314
+ export declare class DeleteSessionResponse extends Message<DeleteSessionResponse> {
315
+ constructor(data?: PartialMessage<DeleteSessionResponse>);
316
+ static readonly runtime: typeof proto3;
317
+ static readonly typeName = "uniswap.platformservice.v1.DeleteSessionResponse";
318
+ static readonly fields: FieldList;
319
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteSessionResponse;
320
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteSessionResponse;
321
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteSessionResponse;
322
+ static equals(a: DeleteSessionResponse | PlainMessage<DeleteSessionResponse> | undefined, b: DeleteSessionResponse | PlainMessage<DeleteSessionResponse> | undefined): boolean;
323
+ }
324
+ /**
325
+ * @generated from message uniswap.platformservice.v1.UpdateSessionRequest
326
+ */
327
+ export declare class UpdateSessionRequest extends Message<UpdateSessionRequest> {
328
+ /**
329
+ * @generated from field: string wallet_addr = 1;
330
+ */
331
+ walletAddr: string;
332
+ constructor(data?: PartialMessage<UpdateSessionRequest>);
333
+ static readonly runtime: typeof proto3;
334
+ static readonly typeName = "uniswap.platformservice.v1.UpdateSessionRequest";
335
+ static readonly fields: FieldList;
336
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateSessionRequest;
337
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateSessionRequest;
338
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateSessionRequest;
339
+ static equals(a: UpdateSessionRequest | PlainMessage<UpdateSessionRequest> | undefined, b: UpdateSessionRequest | PlainMessage<UpdateSessionRequest> | undefined): boolean;
340
+ }
341
+ /**
342
+ * @generated from message uniswap.platformservice.v1.UpdateSessionResponse
343
+ */
344
+ export declare class UpdateSessionResponse extends Message<UpdateSessionResponse> {
345
+ constructor(data?: PartialMessage<UpdateSessionResponse>);
346
+ static readonly runtime: typeof proto3;
347
+ static readonly typeName = "uniswap.platformservice.v1.UpdateSessionResponse";
348
+ static readonly fields: FieldList;
349
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateSessionResponse;
350
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateSessionResponse;
351
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateSessionResponse;
352
+ static equals(a: UpdateSessionResponse | PlainMessage<UpdateSessionResponse> | undefined, b: UpdateSessionResponse | PlainMessage<UpdateSessionResponse> | undefined): boolean;
353
+ }
354
+ /**
355
+ * @generated from message uniswap.platformservice.v1.SignoutRequest
356
+ */
357
+ export declare class SignoutRequest extends Message<SignoutRequest> {
358
+ constructor(data?: PartialMessage<SignoutRequest>);
359
+ static readonly runtime: typeof proto3;
360
+ static readonly typeName = "uniswap.platformservice.v1.SignoutRequest";
361
+ static readonly fields: FieldList;
362
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignoutRequest;
363
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignoutRequest;
364
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignoutRequest;
365
+ static equals(a: SignoutRequest | PlainMessage<SignoutRequest> | undefined, b: SignoutRequest | PlainMessage<SignoutRequest> | undefined): boolean;
366
+ }
367
+ /**
368
+ * @generated from message uniswap.platformservice.v1.SignoutResponse
369
+ */
370
+ export declare class SignoutResponse extends Message<SignoutResponse> {
371
+ constructor(data?: PartialMessage<SignoutResponse>);
372
+ static readonly runtime: typeof proto3;
373
+ static readonly typeName = "uniswap.platformservice.v1.SignoutResponse";
374
+ static readonly fields: FieldList;
375
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignoutResponse;
376
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignoutResponse;
377
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignoutResponse;
378
+ static equals(a: SignoutResponse | PlainMessage<SignoutResponse> | undefined, b: SignoutResponse | PlainMessage<SignoutResponse> | undefined): boolean;
379
+ }