@uniswap/client-platform-service 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (19) hide show
  1. package/dist/uniswap/platformservice/v1/organizationService-OrganizationService_connectquery.d.ts +18 -0
  2. package/dist/uniswap/platformservice/v1/organizationService-OrganizationService_connectquery.js +22 -0
  3. package/dist/uniswap/platformservice/v1/organizationService_connect.d.ts +22 -0
  4. package/dist/uniswap/platformservice/v1/organizationService_connect.js +26 -0
  5. package/dist/uniswap/platformservice/v1/organizationService_pb.d.ts +32 -0
  6. package/dist/uniswap/platformservice/v1/organizationService_pb.js +59 -0
  7. package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.d.ts +44 -1
  8. package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.js +44 -1
  9. package/dist/uniswap/platformservice/v1/personaService_connect.d.ts +32 -1
  10. package/dist/uniswap/platformservice/v1/personaService_connect.js +32 -1
  11. package/dist/uniswap/platformservice/v1/personaService_pb.d.ts +150 -0
  12. package/dist/uniswap/platformservice/v1/personaService_pb.js +230 -0
  13. package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.d.ts +34 -2
  14. package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.js +34 -2
  15. package/dist/uniswap/platformservice/v1/sessionService_connect.d.ts +26 -2
  16. package/dist/uniswap/platformservice/v1/sessionService_connect.js +26 -2
  17. package/dist/uniswap/platformservice/v1/sessionService_pb.d.ts +145 -14
  18. package/dist/uniswap/platformservice/v1/sessionService_pb.js +189 -23
  19. package/package.json +1 -1
@@ -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(() => []);
@@ -1,5 +1,5 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
2
+ import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, GetChallengeTypesRequest, GetChallengeTypesResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, SignoutRequest, SignoutResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
3
3
  /**
4
4
  * typically utilized by Entry Gateway for inspecting the validity of a session
5
5
  *
@@ -30,6 +30,21 @@ export declare const initSession: {
30
30
  readonly typeName: "uniswap.platformservice.v1.SessionService";
31
31
  };
32
32
  };
33
+ /**
34
+ * return a list of possible challenge types
35
+ *
36
+ * @generated from rpc uniswap.platformservice.v1.SessionService.GetChallengeTypes
37
+ */
38
+ export declare const getChallengeTypes: {
39
+ readonly localName: "getChallengeTypes";
40
+ readonly name: "GetChallengeTypes";
41
+ readonly kind: MethodKind.Unary;
42
+ readonly I: typeof GetChallengeTypesRequest;
43
+ readonly O: typeof GetChallengeTypesResponse;
44
+ readonly service: {
45
+ readonly typeName: "uniswap.platformservice.v1.SessionService";
46
+ };
47
+ };
33
48
  /**
34
49
  * used by client to request a challenge
35
50
  *
@@ -46,7 +61,8 @@ export declare const challenge: {
46
61
  };
47
62
  };
48
63
  /**
49
- * a universal method for all types of bot detection mechanism
64
+ * a universal method for all challenge types (auth and bot detection)
65
+ * OauthVerify is implemented separately as a pure GET endpoint, which proxy request to Verify POST locally.
50
66
  *
51
67
  * @generated from rpc uniswap.platformservice.v1.SessionService.Verify
52
68
  */
@@ -90,3 +106,19 @@ export declare const updateSession: {
90
106
  readonly typeName: "uniswap.platformservice.v1.SessionService";
91
107
  };
92
108
  };
109
+ /**
110
+ * 1. Sign out user and clear authenticated session,
111
+ * 2. Rotate with a brand new session
112
+ *
113
+ * @generated from rpc uniswap.platformservice.v1.SessionService.Signout
114
+ */
115
+ export declare const signout: {
116
+ readonly localName: "signout";
117
+ readonly name: "Signout";
118
+ readonly kind: MethodKind.Unary;
119
+ readonly I: typeof SignoutRequest;
120
+ readonly O: typeof SignoutResponse;
121
+ readonly service: {
122
+ readonly typeName: "uniswap.platformservice.v1.SessionService";
123
+ };
124
+ };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
6
+ import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, GetChallengeTypesRequest, GetChallengeTypesResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, SignoutRequest, SignoutResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
7
7
  /**
8
8
  * typically utilized by Entry Gateway for inspecting the validity of a session
9
9
  *
@@ -34,6 +34,21 @@ export const initSession = {
34
34
  typeName: "uniswap.platformservice.v1.SessionService"
35
35
  }
36
36
  };
37
+ /**
38
+ * return a list of possible challenge types
39
+ *
40
+ * @generated from rpc uniswap.platformservice.v1.SessionService.GetChallengeTypes
41
+ */
42
+ export const getChallengeTypes = {
43
+ localName: "getChallengeTypes",
44
+ name: "GetChallengeTypes",
45
+ kind: MethodKind.Unary,
46
+ I: GetChallengeTypesRequest,
47
+ O: GetChallengeTypesResponse,
48
+ service: {
49
+ typeName: "uniswap.platformservice.v1.SessionService"
50
+ }
51
+ };
37
52
  /**
38
53
  * used by client to request a challenge
39
54
  *
@@ -50,7 +65,8 @@ export const challenge = {
50
65
  }
51
66
  };
52
67
  /**
53
- * a universal method for all types of bot detection mechanism
68
+ * a universal method for all challenge types (auth and bot detection)
69
+ * OauthVerify is implemented separately as a pure GET endpoint, which proxy request to Verify POST locally.
54
70
  *
55
71
  * @generated from rpc uniswap.platformservice.v1.SessionService.Verify
56
72
  */
@@ -94,3 +110,19 @@ export const updateSession = {
94
110
  typeName: "uniswap.platformservice.v1.SessionService"
95
111
  }
96
112
  };
113
+ /**
114
+ * 1. Sign out user and clear authenticated session,
115
+ * 2. Rotate with a brand new session
116
+ *
117
+ * @generated from rpc uniswap.platformservice.v1.SessionService.Signout
118
+ */
119
+ export const signout = {
120
+ localName: "signout",
121
+ name: "Signout",
122
+ kind: MethodKind.Unary,
123
+ I: SignoutRequest,
124
+ O: SignoutResponse,
125
+ service: {
126
+ typeName: "uniswap.platformservice.v1.SessionService"
127
+ }
128
+ };
@@ -1,4 +1,4 @@
1
- import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
1
+ import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, GetChallengeTypesRequest, GetChallengeTypesResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, SignoutRequest, SignoutResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service uniswap.platformservice.v1.SessionService
@@ -28,6 +28,17 @@ export declare const SessionService: {
28
28
  readonly O: typeof InitSessionResponse;
29
29
  readonly kind: MethodKind.Unary;
30
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
+ };
31
42
  /**
32
43
  * used by client to request a challenge
33
44
  *
@@ -40,7 +51,8 @@ export declare const SessionService: {
40
51
  readonly kind: MethodKind.Unary;
41
52
  };
42
53
  /**
43
- * a universal method for all types of bot detection mechanism
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.
44
56
  *
45
57
  * @generated from rpc uniswap.platformservice.v1.SessionService.Verify
46
58
  */
@@ -72,5 +84,17 @@ export declare const SessionService: {
72
84
  readonly O: typeof UpdateSessionResponse;
73
85
  readonly kind: MethodKind.Unary;
74
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
+ };
75
99
  };
76
100
  };
@@ -2,7 +2,7 @@
2
2
  // @generated from file uniswap/platformservice/v1/sessionService.proto (package uniswap.platformservice.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
5
+ import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, GetChallengeTypesRequest, GetChallengeTypesResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, SignoutRequest, SignoutResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service uniswap.platformservice.v1.SessionService
@@ -32,6 +32,17 @@ export const SessionService = {
32
32
  O: InitSessionResponse,
33
33
  kind: MethodKind.Unary,
34
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
+ },
35
46
  /**
36
47
  * used by client to request a challenge
37
48
  *
@@ -44,7 +55,8 @@ export const SessionService = {
44
55
  kind: MethodKind.Unary,
45
56
  },
46
57
  /**
47
- * a universal method for all types of bot detection mechanism
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.
48
60
  *
49
61
  * @generated from rpc uniswap.platformservice.v1.SessionService.Verify
50
62
  */
@@ -76,5 +88,17 @@ export const SessionService = {
76
88
  O: UpdateSessionResponse,
77
89
  kind: MethodKind.Unary,
78
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
+ },
79
103
  }
80
104
  };