@uniswap/client-platform-service 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) 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 +92 -0
  10. package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.js +96 -0
  11. package/dist/uniswap/platformservice/v1/sessionService_connect.d.ts +76 -0
  12. package/dist/uniswap/platformservice/v1/sessionService_connect.js +80 -0
  13. package/dist/uniswap/platformservice/v1/sessionService_pb.d.ts +261 -0
  14. package/dist/uniswap/platformservice/v1/sessionService_pb.js +410 -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
@@ -0,0 +1,80 @@
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, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, 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
+ * used by client to request a challenge
37
+ *
38
+ * @generated from rpc uniswap.platformservice.v1.SessionService.Challenge
39
+ */
40
+ challenge: {
41
+ name: "Challenge",
42
+ I: ChallengeRequest,
43
+ O: ChallengeResponse,
44
+ kind: MethodKind.Unary,
45
+ },
46
+ /**
47
+ * a universal method for all types of bot detection mechanism
48
+ *
49
+ * @generated from rpc uniswap.platformservice.v1.SessionService.Verify
50
+ */
51
+ verify: {
52
+ name: "Verify",
53
+ I: VerifyRequest,
54
+ O: VerifyResponse,
55
+ kind: MethodKind.Unary,
56
+ },
57
+ /**
58
+ * delete a certain session. For example, on app uninstall
59
+ *
60
+ * @generated from rpc uniswap.platformservice.v1.SessionService.DeleteSession
61
+ */
62
+ deleteSession: {
63
+ name: "DeleteSession",
64
+ I: DeleteSessionRequest,
65
+ O: DeleteSessionResponse,
66
+ kind: MethodKind.Unary,
67
+ },
68
+ /**
69
+ * Update request. We intend this to be generic.
70
+ *
71
+ * @generated from rpc uniswap.platformservice.v1.SessionService.UpdateSession
72
+ */
73
+ updateSession: {
74
+ name: "UpdateSession",
75
+ I: UpdateSessionRequest,
76
+ O: UpdateSessionResponse,
77
+ kind: MethodKind.Unary,
78
+ },
79
+ }
80
+ };
@@ -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
+ * @generated from enum uniswap.platformservice.v1.BotDetectionType
5
+ */
6
+ export declare enum BotDetectionType {
7
+ /**
8
+ * @generated from enum value: BOT_DETECTION_NONE = 0;
9
+ */
10
+ BOT_DETECTION_NONE = 0,
11
+ /**
12
+ * @generated from enum value: BOT_DETECTION_TURNSTILE = 1;
13
+ */
14
+ BOT_DETECTION_TURNSTILE = 1,
15
+ /**
16
+ * client should receive challenge in the format of json
17
+ *
18
+ * @generated from enum value: BOT_DETECTION_HASHCASH = 2;
19
+ */
20
+ BOT_DETECTION_HASHCASH = 2
21
+ }
22
+ /**
23
+ * @generated from message uniswap.platformservice.v1.IntrospectSessionRequest
24
+ */
25
+ export declare class IntrospectSessionRequest extends Message<IntrospectSessionRequest> {
26
+ /**
27
+ * only Entry Gate way will call, therefore in the request body
28
+ *
29
+ * @generated from field: string session_id = 1;
30
+ */
31
+ sessionId: string;
32
+ constructor(data?: PartialMessage<IntrospectSessionRequest>);
33
+ static readonly runtime: typeof proto3;
34
+ static readonly typeName = "uniswap.platformservice.v1.IntrospectSessionRequest";
35
+ static readonly fields: FieldList;
36
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IntrospectSessionRequest;
37
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IntrospectSessionRequest;
38
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IntrospectSessionRequest;
39
+ static equals(a: IntrospectSessionRequest | PlainMessage<IntrospectSessionRequest> | undefined, b: IntrospectSessionRequest | PlainMessage<IntrospectSessionRequest> | undefined): boolean;
40
+ }
41
+ /**
42
+ * @generated from message uniswap.platformservice.v1.IntrospectSessionResponse
43
+ */
44
+ export declare class IntrospectSessionResponse extends Message<IntrospectSessionResponse> {
45
+ /**
46
+ * @generated from field: string wrapped_id = 1;
47
+ */
48
+ wrappedId: string;
49
+ /**
50
+ * @generated from field: bool result = 2;
51
+ */
52
+ result: boolean;
53
+ /**
54
+ * string user_id = 3; // will add back when user_id is available
55
+ *
56
+ * @generated from field: int32 score = 4;
57
+ */
58
+ score: number;
59
+ /**
60
+ * @generated from field: string persona_id = 5;
61
+ */
62
+ personaId: string;
63
+ constructor(data?: PartialMessage<IntrospectSessionResponse>);
64
+ static readonly runtime: typeof proto3;
65
+ static readonly typeName = "uniswap.platformservice.v1.IntrospectSessionResponse";
66
+ static readonly fields: FieldList;
67
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IntrospectSessionResponse;
68
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IntrospectSessionResponse;
69
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IntrospectSessionResponse;
70
+ static equals(a: IntrospectSessionResponse | PlainMessage<IntrospectSessionResponse> | undefined, b: IntrospectSessionResponse | PlainMessage<IntrospectSessionResponse> | undefined): boolean;
71
+ }
72
+ /**
73
+ * @generated from message uniswap.platformservice.v1.InitSessionRequest
74
+ */
75
+ export declare class InitSessionRequest extends Message<InitSessionRequest> {
76
+ constructor(data?: PartialMessage<InitSessionRequest>);
77
+ static readonly runtime: typeof proto3;
78
+ static readonly typeName = "uniswap.platformservice.v1.InitSessionRequest";
79
+ static readonly fields: FieldList;
80
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InitSessionRequest;
81
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InitSessionRequest;
82
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InitSessionRequest;
83
+ static equals(a: InitSessionRequest | PlainMessage<InitSessionRequest> | undefined, b: InitSessionRequest | PlainMessage<InitSessionRequest> | undefined): boolean;
84
+ }
85
+ /**
86
+ * @generated from message uniswap.platformservice.v1.InitSessionResponse
87
+ */
88
+ export declare class InitSessionResponse extends Message<InitSessionResponse> {
89
+ /**
90
+ * for web, it is in the cookie, for mobile + extension, it is in the body
91
+ *
92
+ * @generated from field: optional string session_id = 1;
93
+ */
94
+ sessionId?: string;
95
+ /**
96
+ * for web, it is in the cookie, for mobile + extension, it is in the body
97
+ *
98
+ * @generated from field: optional string device_id = 2;
99
+ */
100
+ deviceId?: string;
101
+ /**
102
+ * @generated from field: bool need_challenge = 3;
103
+ */
104
+ needChallenge: boolean;
105
+ /**
106
+ * extra information in json client needs to know to complete the bot detection mechanism
107
+ *
108
+ * @generated from field: map<string, string> extra = 4;
109
+ */
110
+ extra: {
111
+ [key: string]: string;
112
+ };
113
+ constructor(data?: PartialMessage<InitSessionResponse>);
114
+ static readonly runtime: typeof proto3;
115
+ static readonly typeName = "uniswap.platformservice.v1.InitSessionResponse";
116
+ static readonly fields: FieldList;
117
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InitSessionResponse;
118
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InitSessionResponse;
119
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InitSessionResponse;
120
+ static equals(a: InitSessionResponse | PlainMessage<InitSessionResponse> | undefined, b: InitSessionResponse | PlainMessage<InitSessionResponse> | undefined): boolean;
121
+ }
122
+ /**
123
+ * @generated from message uniswap.platformservice.v1.ChallengeRequest
124
+ */
125
+ export declare class ChallengeRequest extends Message<ChallengeRequest> {
126
+ constructor(data?: PartialMessage<ChallengeRequest>);
127
+ static readonly runtime: typeof proto3;
128
+ static readonly typeName = "uniswap.platformservice.v1.ChallengeRequest";
129
+ static readonly fields: FieldList;
130
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChallengeRequest;
131
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChallengeRequest;
132
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChallengeRequest;
133
+ static equals(a: ChallengeRequest | PlainMessage<ChallengeRequest> | undefined, b: ChallengeRequest | PlainMessage<ChallengeRequest> | undefined): boolean;
134
+ }
135
+ /**
136
+ * @generated from message uniswap.platformservice.v1.ChallengeResponse
137
+ */
138
+ export declare class ChallengeResponse extends Message<ChallengeResponse> {
139
+ /**
140
+ * @generated from field: string challenge_id = 1;
141
+ */
142
+ challengeId: string;
143
+ /**
144
+ * the bot detection mechanism client should use
145
+ *
146
+ * @generated from field: uniswap.platformservice.v1.BotDetectionType bot_detection_type = 2;
147
+ */
148
+ botDetectionType: BotDetectionType;
149
+ /**
150
+ * contains extra data for challenge data
151
+ *
152
+ * @generated from field: map<string, string> extra = 3;
153
+ */
154
+ extra: {
155
+ [key: string]: string;
156
+ };
157
+ constructor(data?: PartialMessage<ChallengeResponse>);
158
+ static readonly runtime: typeof proto3;
159
+ static readonly typeName = "uniswap.platformservice.v1.ChallengeResponse";
160
+ static readonly fields: FieldList;
161
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChallengeResponse;
162
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChallengeResponse;
163
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChallengeResponse;
164
+ static equals(a: ChallengeResponse | PlainMessage<ChallengeResponse> | undefined, b: ChallengeResponse | PlainMessage<ChallengeResponse> | undefined): boolean;
165
+ }
166
+ /**
167
+ * @generated from message uniswap.platformservice.v1.VerifyRequest
168
+ */
169
+ export declare class VerifyRequest extends Message<VerifyRequest> {
170
+ /**
171
+ * e.g., bot detection token or hashcash solution
172
+ *
173
+ * @generated from field: string solution = 1;
174
+ */
175
+ solution: string;
176
+ /**
177
+ * @generated from field: string challenge_id = 2;
178
+ */
179
+ challengeId: string;
180
+ constructor(data?: PartialMessage<VerifyRequest>);
181
+ static readonly runtime: typeof proto3;
182
+ static readonly typeName = "uniswap.platformservice.v1.VerifyRequest";
183
+ static readonly fields: FieldList;
184
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyRequest;
185
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyRequest;
186
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyRequest;
187
+ static equals(a: VerifyRequest | PlainMessage<VerifyRequest> | undefined, b: VerifyRequest | PlainMessage<VerifyRequest> | undefined): boolean;
188
+ }
189
+ /**
190
+ * @generated from message uniswap.platformservice.v1.VerifyResponse
191
+ */
192
+ export declare class VerifyResponse extends Message<VerifyResponse> {
193
+ /**
194
+ * @generated from field: bool retry = 1;
195
+ */
196
+ retry: boolean;
197
+ constructor(data?: PartialMessage<VerifyResponse>);
198
+ static readonly runtime: typeof proto3;
199
+ static readonly typeName = "uniswap.platformservice.v1.VerifyResponse";
200
+ static readonly fields: FieldList;
201
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyResponse;
202
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyResponse;
203
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyResponse;
204
+ static equals(a: VerifyResponse | PlainMessage<VerifyResponse> | undefined, b: VerifyResponse | PlainMessage<VerifyResponse> | undefined): boolean;
205
+ }
206
+ /**
207
+ * @generated from message uniswap.platformservice.v1.DeleteSessionRequest
208
+ */
209
+ export declare class DeleteSessionRequest extends Message<DeleteSessionRequest> {
210
+ constructor(data?: PartialMessage<DeleteSessionRequest>);
211
+ static readonly runtime: typeof proto3;
212
+ static readonly typeName = "uniswap.platformservice.v1.DeleteSessionRequest";
213
+ static readonly fields: FieldList;
214
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteSessionRequest;
215
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteSessionRequest;
216
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteSessionRequest;
217
+ static equals(a: DeleteSessionRequest | PlainMessage<DeleteSessionRequest> | undefined, b: DeleteSessionRequest | PlainMessage<DeleteSessionRequest> | undefined): boolean;
218
+ }
219
+ /**
220
+ * @generated from message uniswap.platformservice.v1.DeleteSessionResponse
221
+ */
222
+ export declare class DeleteSessionResponse extends Message<DeleteSessionResponse> {
223
+ constructor(data?: PartialMessage<DeleteSessionResponse>);
224
+ static readonly runtime: typeof proto3;
225
+ static readonly typeName = "uniswap.platformservice.v1.DeleteSessionResponse";
226
+ static readonly fields: FieldList;
227
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteSessionResponse;
228
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteSessionResponse;
229
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteSessionResponse;
230
+ static equals(a: DeleteSessionResponse | PlainMessage<DeleteSessionResponse> | undefined, b: DeleteSessionResponse | PlainMessage<DeleteSessionResponse> | undefined): boolean;
231
+ }
232
+ /**
233
+ * @generated from message uniswap.platformservice.v1.UpdateSessionRequest
234
+ */
235
+ export declare class UpdateSessionRequest extends Message<UpdateSessionRequest> {
236
+ /**
237
+ * @generated from field: string wallet_addr = 1;
238
+ */
239
+ walletAddr: string;
240
+ constructor(data?: PartialMessage<UpdateSessionRequest>);
241
+ static readonly runtime: typeof proto3;
242
+ static readonly typeName = "uniswap.platformservice.v1.UpdateSessionRequest";
243
+ static readonly fields: FieldList;
244
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateSessionRequest;
245
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateSessionRequest;
246
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateSessionRequest;
247
+ static equals(a: UpdateSessionRequest | PlainMessage<UpdateSessionRequest> | undefined, b: UpdateSessionRequest | PlainMessage<UpdateSessionRequest> | undefined): boolean;
248
+ }
249
+ /**
250
+ * @generated from message uniswap.platformservice.v1.UpdateSessionResponse
251
+ */
252
+ export declare class UpdateSessionResponse extends Message<UpdateSessionResponse> {
253
+ constructor(data?: PartialMessage<UpdateSessionResponse>);
254
+ static readonly runtime: typeof proto3;
255
+ static readonly typeName = "uniswap.platformservice.v1.UpdateSessionResponse";
256
+ static readonly fields: FieldList;
257
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateSessionResponse;
258
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateSessionResponse;
259
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateSessionResponse;
260
+ static equals(a: UpdateSessionResponse | PlainMessage<UpdateSessionResponse> | undefined, b: UpdateSessionResponse | PlainMessage<UpdateSessionResponse> | undefined): boolean;
261
+ }