@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
@@ -97,153 +97,3 @@ export declare class PersonaScore extends Message<PersonaScore> {
97
97
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PersonaScore;
98
98
  static equals(a: PersonaScore | PlainMessage<PersonaScore> | undefined, b: PersonaScore | PlainMessage<PersonaScore> | undefined): boolean;
99
99
  }
100
- /**
101
- * Represents an agreement
102
- *
103
- * @generated from message uniswap.platformservice.v1.Agreement
104
- */
105
- export declare class Agreement extends Message<Agreement> {
106
- /**
107
- * @generated from field: string name = 1;
108
- */
109
- name: string;
110
- /**
111
- * @generated from field: string version = 2;
112
- */
113
- version: string;
114
- /**
115
- * @generated from field: bool agreed = 3;
116
- */
117
- agreed: boolean;
118
- constructor(data?: PartialMessage<Agreement>);
119
- static readonly runtime: typeof proto3;
120
- static readonly typeName = "uniswap.platformservice.v1.Agreement";
121
- static readonly fields: FieldList;
122
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Agreement;
123
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Agreement;
124
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Agreement;
125
- static equals(a: Agreement | PlainMessage<Agreement> | undefined, b: Agreement | PlainMessage<Agreement> | undefined): boolean;
126
- }
127
- /**
128
- * Request to modify an existing persona
129
- *
130
- * @generated from message uniswap.platformservice.v1.ModifyPersonaRequest
131
- */
132
- export declare class ModifyPersonaRequest extends Message<ModifyPersonaRequest> {
133
- /**
134
- * @generated from field: optional string name = 1;
135
- */
136
- name?: string;
137
- /**
138
- * @generated from field: optional uniswap.platformservice.v1.Agreement agreement = 2;
139
- */
140
- agreement?: Agreement;
141
- constructor(data?: PartialMessage<ModifyPersonaRequest>);
142
- static readonly runtime: typeof proto3;
143
- static readonly typeName = "uniswap.platformservice.v1.ModifyPersonaRequest";
144
- static readonly fields: FieldList;
145
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModifyPersonaRequest;
146
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModifyPersonaRequest;
147
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModifyPersonaRequest;
148
- static equals(a: ModifyPersonaRequest | PlainMessage<ModifyPersonaRequest> | undefined, b: ModifyPersonaRequest | PlainMessage<ModifyPersonaRequest> | undefined): boolean;
149
- }
150
- /**
151
- * Response for modify persona
152
- *
153
- * @generated from message uniswap.platformservice.v1.ModifyPersonaResponse
154
- */
155
- export declare class ModifyPersonaResponse extends Message<ModifyPersonaResponse> {
156
- constructor(data?: PartialMessage<ModifyPersonaResponse>);
157
- static readonly runtime: typeof proto3;
158
- static readonly typeName = "uniswap.platformservice.v1.ModifyPersonaResponse";
159
- static readonly fields: FieldList;
160
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModifyPersonaResponse;
161
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModifyPersonaResponse;
162
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModifyPersonaResponse;
163
- static equals(a: ModifyPersonaResponse | PlainMessage<ModifyPersonaResponse> | undefined, b: ModifyPersonaResponse | PlainMessage<ModifyPersonaResponse> | undefined): boolean;
164
- }
165
- /**
166
- * Request to get a persona
167
- *
168
- * @generated from message uniswap.platformservice.v1.GetAccountRequest
169
- */
170
- export declare class GetAccountRequest extends Message<GetAccountRequest> {
171
- constructor(data?: PartialMessage<GetAccountRequest>);
172
- static readonly runtime: typeof proto3;
173
- static readonly typeName = "uniswap.platformservice.v1.GetAccountRequest";
174
- static readonly fields: FieldList;
175
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAccountRequest;
176
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAccountRequest;
177
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAccountRequest;
178
- static equals(a: GetAccountRequest | PlainMessage<GetAccountRequest> | undefined, b: GetAccountRequest | PlainMessage<GetAccountRequest> | undefined): boolean;
179
- }
180
- /**
181
- * @generated from message uniswap.platformservice.v1.Persona
182
- */
183
- export declare class Persona extends Message<Persona> {
184
- /**
185
- * @generated from field: optional string name = 1;
186
- */
187
- name?: string;
188
- /**
189
- * @generated from field: optional string email = 2;
190
- */
191
- email?: string;
192
- constructor(data?: PartialMessage<Persona>);
193
- static readonly runtime: typeof proto3;
194
- static readonly typeName = "uniswap.platformservice.v1.Persona";
195
- static readonly fields: FieldList;
196
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Persona;
197
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Persona;
198
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Persona;
199
- static equals(a: Persona | PlainMessage<Persona> | undefined, b: Persona | PlainMessage<Persona> | undefined): boolean;
200
- }
201
- /**
202
- * TODO: Populate account information, including persona data, api keys, organization info all toghther.
203
- *
204
- * @generated from message uniswap.platformservice.v1.GetAccountResponse
205
- */
206
- export declare class GetAccountResponse extends Message<GetAccountResponse> {
207
- /**
208
- * @generated from field: uniswap.platformservice.v1.Persona persona = 1;
209
- */
210
- persona?: Persona;
211
- constructor(data?: PartialMessage<GetAccountResponse>);
212
- static readonly runtime: typeof proto3;
213
- static readonly typeName = "uniswap.platformservice.v1.GetAccountResponse";
214
- static readonly fields: FieldList;
215
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAccountResponse;
216
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAccountResponse;
217
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAccountResponse;
218
- static equals(a: GetAccountResponse | PlainMessage<GetAccountResponse> | undefined, b: GetAccountResponse | PlainMessage<GetAccountResponse> | undefined): boolean;
219
- }
220
- /**
221
- * Request to delete a persona
222
- *
223
- * @generated from message uniswap.platformservice.v1.DeletePersonaRequest
224
- */
225
- export declare class DeletePersonaRequest extends Message<DeletePersonaRequest> {
226
- constructor(data?: PartialMessage<DeletePersonaRequest>);
227
- static readonly runtime: typeof proto3;
228
- static readonly typeName = "uniswap.platformservice.v1.DeletePersonaRequest";
229
- static readonly fields: FieldList;
230
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeletePersonaRequest;
231
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeletePersonaRequest;
232
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeletePersonaRequest;
233
- static equals(a: DeletePersonaRequest | PlainMessage<DeletePersonaRequest> | undefined, b: DeletePersonaRequest | PlainMessage<DeletePersonaRequest> | undefined): boolean;
234
- }
235
- /**
236
- * Response for delete persona
237
- *
238
- * @generated from message uniswap.platformservice.v1.DeletePersonaResponse
239
- */
240
- export declare class DeletePersonaResponse extends Message<DeletePersonaResponse> {
241
- constructor(data?: PartialMessage<DeletePersonaResponse>);
242
- static readonly runtime: typeof proto3;
243
- static readonly typeName = "uniswap.platformservice.v1.DeletePersonaResponse";
244
- static readonly fields: FieldList;
245
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeletePersonaResponse;
246
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeletePersonaResponse;
247
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeletePersonaResponse;
248
- static equals(a: DeletePersonaResponse | PlainMessage<DeletePersonaResponse> | undefined, b: DeletePersonaResponse | PlainMessage<DeletePersonaResponse> | undefined): boolean;
249
- }
@@ -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/personaService.proto (package uniswap.platformservice.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -161,233 +161,3 @@ PersonaScore.fields = proto3.util.newFieldList(() => [
161
161
  { no: 1, name: "persona_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
162
162
  { no: 2, name: "score", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
163
163
  ]);
164
- /**
165
- * Represents an agreement
166
- *
167
- * @generated from message uniswap.platformservice.v1.Agreement
168
- */
169
- export class Agreement extends Message {
170
- constructor(data) {
171
- super();
172
- /**
173
- * @generated from field: string name = 1;
174
- */
175
- this.name = "";
176
- /**
177
- * @generated from field: string version = 2;
178
- */
179
- this.version = "";
180
- /**
181
- * @generated from field: bool agreed = 3;
182
- */
183
- this.agreed = false;
184
- proto3.util.initPartial(data, this);
185
- }
186
- static fromBinary(bytes, options) {
187
- return new Agreement().fromBinary(bytes, options);
188
- }
189
- static fromJson(jsonValue, options) {
190
- return new Agreement().fromJson(jsonValue, options);
191
- }
192
- static fromJsonString(jsonString, options) {
193
- return new Agreement().fromJsonString(jsonString, options);
194
- }
195
- static equals(a, b) {
196
- return proto3.util.equals(Agreement, a, b);
197
- }
198
- }
199
- Agreement.runtime = proto3;
200
- Agreement.typeName = "uniswap.platformservice.v1.Agreement";
201
- Agreement.fields = proto3.util.newFieldList(() => [
202
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
203
- { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
204
- { no: 3, name: "agreed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
205
- ]);
206
- /**
207
- * Request to modify an existing persona
208
- *
209
- * @generated from message uniswap.platformservice.v1.ModifyPersonaRequest
210
- */
211
- export class ModifyPersonaRequest extends Message {
212
- constructor(data) {
213
- super();
214
- proto3.util.initPartial(data, this);
215
- }
216
- static fromBinary(bytes, options) {
217
- return new ModifyPersonaRequest().fromBinary(bytes, options);
218
- }
219
- static fromJson(jsonValue, options) {
220
- return new ModifyPersonaRequest().fromJson(jsonValue, options);
221
- }
222
- static fromJsonString(jsonString, options) {
223
- return new ModifyPersonaRequest().fromJsonString(jsonString, options);
224
- }
225
- static equals(a, b) {
226
- return proto3.util.equals(ModifyPersonaRequest, a, b);
227
- }
228
- }
229
- ModifyPersonaRequest.runtime = proto3;
230
- ModifyPersonaRequest.typeName = "uniswap.platformservice.v1.ModifyPersonaRequest";
231
- ModifyPersonaRequest.fields = proto3.util.newFieldList(() => [
232
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
233
- { no: 2, name: "agreement", kind: "message", T: Agreement, opt: true },
234
- ]);
235
- /**
236
- * Response for modify persona
237
- *
238
- * @generated from message uniswap.platformservice.v1.ModifyPersonaResponse
239
- */
240
- export class ModifyPersonaResponse extends Message {
241
- constructor(data) {
242
- super();
243
- proto3.util.initPartial(data, this);
244
- }
245
- static fromBinary(bytes, options) {
246
- return new ModifyPersonaResponse().fromBinary(bytes, options);
247
- }
248
- static fromJson(jsonValue, options) {
249
- return new ModifyPersonaResponse().fromJson(jsonValue, options);
250
- }
251
- static fromJsonString(jsonString, options) {
252
- return new ModifyPersonaResponse().fromJsonString(jsonString, options);
253
- }
254
- static equals(a, b) {
255
- return proto3.util.equals(ModifyPersonaResponse, a, b);
256
- }
257
- }
258
- ModifyPersonaResponse.runtime = proto3;
259
- ModifyPersonaResponse.typeName = "uniswap.platformservice.v1.ModifyPersonaResponse";
260
- ModifyPersonaResponse.fields = proto3.util.newFieldList(() => []);
261
- /**
262
- * Request to get a persona
263
- *
264
- * @generated from message uniswap.platformservice.v1.GetAccountRequest
265
- */
266
- export class GetAccountRequest extends Message {
267
- constructor(data) {
268
- super();
269
- proto3.util.initPartial(data, this);
270
- }
271
- static fromBinary(bytes, options) {
272
- return new GetAccountRequest().fromBinary(bytes, options);
273
- }
274
- static fromJson(jsonValue, options) {
275
- return new GetAccountRequest().fromJson(jsonValue, options);
276
- }
277
- static fromJsonString(jsonString, options) {
278
- return new GetAccountRequest().fromJsonString(jsonString, options);
279
- }
280
- static equals(a, b) {
281
- return proto3.util.equals(GetAccountRequest, a, b);
282
- }
283
- }
284
- GetAccountRequest.runtime = proto3;
285
- GetAccountRequest.typeName = "uniswap.platformservice.v1.GetAccountRequest";
286
- GetAccountRequest.fields = proto3.util.newFieldList(() => []);
287
- /**
288
- * @generated from message uniswap.platformservice.v1.Persona
289
- */
290
- export class Persona extends Message {
291
- constructor(data) {
292
- super();
293
- proto3.util.initPartial(data, this);
294
- }
295
- static fromBinary(bytes, options) {
296
- return new Persona().fromBinary(bytes, options);
297
- }
298
- static fromJson(jsonValue, options) {
299
- return new Persona().fromJson(jsonValue, options);
300
- }
301
- static fromJsonString(jsonString, options) {
302
- return new Persona().fromJsonString(jsonString, options);
303
- }
304
- static equals(a, b) {
305
- return proto3.util.equals(Persona, a, b);
306
- }
307
- }
308
- Persona.runtime = proto3;
309
- Persona.typeName = "uniswap.platformservice.v1.Persona";
310
- Persona.fields = proto3.util.newFieldList(() => [
311
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
312
- { no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
313
- ]);
314
- /**
315
- * TODO: Populate account information, including persona data, api keys, organization info all toghther.
316
- *
317
- * @generated from message uniswap.platformservice.v1.GetAccountResponse
318
- */
319
- export class GetAccountResponse extends Message {
320
- constructor(data) {
321
- super();
322
- proto3.util.initPartial(data, this);
323
- }
324
- static fromBinary(bytes, options) {
325
- return new GetAccountResponse().fromBinary(bytes, options);
326
- }
327
- static fromJson(jsonValue, options) {
328
- return new GetAccountResponse().fromJson(jsonValue, options);
329
- }
330
- static fromJsonString(jsonString, options) {
331
- return new GetAccountResponse().fromJsonString(jsonString, options);
332
- }
333
- static equals(a, b) {
334
- return proto3.util.equals(GetAccountResponse, a, b);
335
- }
336
- }
337
- GetAccountResponse.runtime = proto3;
338
- GetAccountResponse.typeName = "uniswap.platformservice.v1.GetAccountResponse";
339
- GetAccountResponse.fields = proto3.util.newFieldList(() => [
340
- { no: 1, name: "persona", kind: "message", T: Persona },
341
- ]);
342
- /**
343
- * Request to delete a persona
344
- *
345
- * @generated from message uniswap.platformservice.v1.DeletePersonaRequest
346
- */
347
- export class DeletePersonaRequest extends Message {
348
- constructor(data) {
349
- super();
350
- proto3.util.initPartial(data, this);
351
- }
352
- static fromBinary(bytes, options) {
353
- return new DeletePersonaRequest().fromBinary(bytes, options);
354
- }
355
- static fromJson(jsonValue, options) {
356
- return new DeletePersonaRequest().fromJson(jsonValue, options);
357
- }
358
- static fromJsonString(jsonString, options) {
359
- return new DeletePersonaRequest().fromJsonString(jsonString, options);
360
- }
361
- static equals(a, b) {
362
- return proto3.util.equals(DeletePersonaRequest, a, b);
363
- }
364
- }
365
- DeletePersonaRequest.runtime = proto3;
366
- DeletePersonaRequest.typeName = "uniswap.platformservice.v1.DeletePersonaRequest";
367
- DeletePersonaRequest.fields = proto3.util.newFieldList(() => []);
368
- /**
369
- * Response for delete persona
370
- *
371
- * @generated from message uniswap.platformservice.v1.DeletePersonaResponse
372
- */
373
- export class DeletePersonaResponse extends Message {
374
- constructor(data) {
375
- super();
376
- proto3.util.initPartial(data, this);
377
- }
378
- static fromBinary(bytes, options) {
379
- return new DeletePersonaResponse().fromBinary(bytes, options);
380
- }
381
- static fromJson(jsonValue, options) {
382
- return new DeletePersonaResponse().fromJson(jsonValue, options);
383
- }
384
- static fromJsonString(jsonString, options) {
385
- return new DeletePersonaResponse().fromJsonString(jsonString, options);
386
- }
387
- static equals(a, b) {
388
- return proto3.util.equals(DeletePersonaResponse, a, b);
389
- }
390
- }
391
- DeletePersonaResponse.runtime = proto3;
392
- DeletePersonaResponse.typeName = "uniswap.platformservice.v1.DeletePersonaResponse";
393
- DeletePersonaResponse.fields = proto3.util.newFieldList(() => []);
@@ -1,5 +1,5 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, GetChallengeTypesRequest, GetChallengeTypesResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, SignoutRequest, SignoutResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
2
+ import { ChallengeRequest, ChallengeResponse, 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
  *
@@ -76,21 +76,6 @@ export declare const verify: {
76
76
  readonly typeName: "uniswap.platformservice.v1.SessionService";
77
77
  };
78
78
  };
79
- /**
80
- * delete a certain session. For example, on app uninstall
81
- *
82
- * @generated from rpc uniswap.platformservice.v1.SessionService.DeleteSession
83
- */
84
- export declare const deleteSession: {
85
- readonly localName: "deleteSession";
86
- readonly name: "DeleteSession";
87
- readonly kind: MethodKind.Unary;
88
- readonly I: typeof DeleteSessionRequest;
89
- readonly O: typeof DeleteSessionResponse;
90
- readonly service: {
91
- readonly typeName: "uniswap.platformservice.v1.SessionService";
92
- };
93
- };
94
79
  /**
95
80
  * Update request. We intend this to be generic.
96
81
  *
@@ -107,8 +92,7 @@ export declare const updateSession: {
107
92
  };
108
93
  };
109
94
  /**
110
- * 1. Sign out user and clear authenticated session,
111
- * 2. Rotate with a brand new session
95
+ * Sign out user and clear authenticated session
112
96
  *
113
97
  * @generated from rpc uniswap.platformservice.v1.SessionService.Signout
114
98
  */
@@ -1,9 +1,9 @@
1
- // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-query v1.4.2 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
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, GetChallengeTypesRequest, GetChallengeTypesResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, SignoutRequest, SignoutResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
6
+ import { ChallengeRequest, ChallengeResponse, 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
  *
@@ -80,21 +80,6 @@ export const verify = {
80
80
  typeName: "uniswap.platformservice.v1.SessionService"
81
81
  }
82
82
  };
83
- /**
84
- * delete a certain session. For example, on app uninstall
85
- *
86
- * @generated from rpc uniswap.platformservice.v1.SessionService.DeleteSession
87
- */
88
- export const deleteSession = {
89
- localName: "deleteSession",
90
- name: "DeleteSession",
91
- kind: MethodKind.Unary,
92
- I: DeleteSessionRequest,
93
- O: DeleteSessionResponse,
94
- service: {
95
- typeName: "uniswap.platformservice.v1.SessionService"
96
- }
97
- };
98
83
  /**
99
84
  * Update request. We intend this to be generic.
100
85
  *
@@ -111,8 +96,7 @@ export const updateSession = {
111
96
  }
112
97
  };
113
98
  /**
114
- * 1. Sign out user and clear authenticated session,
115
- * 2. Rotate with a brand new session
99
+ * Sign out user and clear authenticated session
116
100
  *
117
101
  * @generated from rpc uniswap.platformservice.v1.SessionService.Signout
118
102
  */
@@ -1,4 +1,4 @@
1
- import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, GetChallengeTypesRequest, GetChallengeTypesResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, SignoutRequest, SignoutResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
1
+ import { ChallengeRequest, ChallengeResponse, 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
@@ -62,17 +62,6 @@ export declare const SessionService: {
62
62
  readonly O: typeof VerifyResponse;
63
63
  readonly kind: MethodKind.Unary;
64
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
65
  /**
77
66
  * Update request. We intend this to be generic.
78
67
  *
@@ -85,8 +74,7 @@ export declare const SessionService: {
85
74
  readonly kind: MethodKind.Unary;
86
75
  };
87
76
  /**
88
- * 1. Sign out user and clear authenticated session,
89
- * 2. Rotate with a brand new session
77
+ * Sign out user and clear authenticated session
90
78
  *
91
79
  * @generated from rpc uniswap.platformservice.v1.SessionService.Signout
92
80
  */
@@ -1,8 +1,8 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 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
5
- import { ChallengeRequest, ChallengeResponse, DeleteSessionRequest, DeleteSessionResponse, GetChallengeTypesRequest, GetChallengeTypesResponse, InitSessionRequest, InitSessionResponse, IntrospectSessionRequest, IntrospectSessionResponse, SignoutRequest, SignoutResponse, UpdateSessionRequest, UpdateSessionResponse, VerifyRequest, VerifyResponse } from "./sessionService_pb.js";
5
+ import { ChallengeRequest, ChallengeResponse, 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
@@ -66,17 +66,6 @@ export const SessionService = {
66
66
  O: VerifyResponse,
67
67
  kind: MethodKind.Unary,
68
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
69
  /**
81
70
  * Update request. We intend this to be generic.
82
71
  *
@@ -89,8 +78,7 @@ export const SessionService = {
89
78
  kind: MethodKind.Unary,
90
79
  },
91
80
  /**
92
- * 1. Sign out user and clear authenticated session,
93
- * 2. Rotate with a brand new session
81
+ * Sign out user and clear authenticated session
94
82
  *
95
83
  * @generated from rpc uniswap.platformservice.v1.SessionService.Signout
96
84
  */
@@ -305,7 +305,7 @@ export declare class VerifyFailure extends Message<VerifyFailure> {
305
305
  */
306
306
  reason: VerifyFailure_Reason;
307
307
  /**
308
- * human-friendly message
308
+ * human-friendly message, includes provider type for mismatch errors
309
309
  *
310
310
  * @generated from field: string message = 2;
311
311
  */
@@ -350,7 +350,13 @@ export declare enum VerifyFailure_Reason {
350
350
  *
351
351
  * @generated from enum value: REASON_IVALID_CHALLENGE = 3;
352
352
  */
353
- IVALID_CHALLENGE = 3
353
+ IVALID_CHALLENGE = 3,
354
+ /**
355
+ * email linked to different auth provider
356
+ *
357
+ * @generated from enum value: REASON_PROVIDER_MISMATCH = 4;
358
+ */
359
+ PROVIDER_MISMATCH = 4
354
360
  }
355
361
  /**
356
362
  * @generated from message uniswap.platformservice.v1.VerifyResponse
@@ -409,32 +415,6 @@ export declare class UserInfo extends Message<UserInfo> {
409
415
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserInfo;
410
416
  static equals(a: UserInfo | PlainMessage<UserInfo> | undefined, b: UserInfo | PlainMessage<UserInfo> | undefined): boolean;
411
417
  }
412
- /**
413
- * @generated from message uniswap.platformservice.v1.DeleteSessionRequest
414
- */
415
- export declare class DeleteSessionRequest extends Message<DeleteSessionRequest> {
416
- constructor(data?: PartialMessage<DeleteSessionRequest>);
417
- static readonly runtime: typeof proto3;
418
- static readonly typeName = "uniswap.platformservice.v1.DeleteSessionRequest";
419
- static readonly fields: FieldList;
420
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteSessionRequest;
421
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteSessionRequest;
422
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteSessionRequest;
423
- static equals(a: DeleteSessionRequest | PlainMessage<DeleteSessionRequest> | undefined, b: DeleteSessionRequest | PlainMessage<DeleteSessionRequest> | undefined): boolean;
424
- }
425
- /**
426
- * @generated from message uniswap.platformservice.v1.DeleteSessionResponse
427
- */
428
- export declare class DeleteSessionResponse extends Message<DeleteSessionResponse> {
429
- constructor(data?: PartialMessage<DeleteSessionResponse>);
430
- static readonly runtime: typeof proto3;
431
- static readonly typeName = "uniswap.platformservice.v1.DeleteSessionResponse";
432
- static readonly fields: FieldList;
433
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteSessionResponse;
434
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteSessionResponse;
435
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteSessionResponse;
436
- static equals(a: DeleteSessionResponse | PlainMessage<DeleteSessionResponse> | undefined, b: DeleteSessionResponse | PlainMessage<DeleteSessionResponse> | undefined): boolean;
437
- }
438
418
  /**
439
419
  * @generated from message uniswap.platformservice.v1.UpdateSessionRequest
440
420
  */