@uniswap/client-platform-service 0.0.12 → 0.0.13

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.
@@ -63,6 +63,12 @@ export declare class GetOrganizationResponse extends Message<GetOrganizationResp
63
63
  * @generated from field: string created_at = 4;
64
64
  */
65
65
  createdAt: string;
66
+ /**
67
+ * True if organization has no more active users
68
+ *
69
+ * @generated from field: optional bool archived = 5;
70
+ */
71
+ archived?: boolean;
66
72
  constructor(data?: PartialMessage<GetOrganizationResponse>);
67
73
  static readonly runtime: typeof proto3;
68
74
  static readonly typeName = "uniswap.platformservice.v1.GetOrganizationResponse";
@@ -125,4 +125,5 @@ GetOrganizationResponse.fields = proto3.util.newFieldList(() => [
125
125
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
126
126
  { no: 3, name: "max_api_keys", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
127
127
  { no: 4, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
128
+ { no: 5, name: "archived", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
128
129
  ]);
@@ -217,6 +217,83 @@ export declare class ChallengeRequest extends Message<ChallengeRequest> {
217
217
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChallengeRequest;
218
218
  static equals(a: ChallengeRequest | PlainMessage<ChallengeRequest> | undefined, b: ChallengeRequest | PlainMessage<ChallengeRequest> | undefined): boolean;
219
219
  }
220
+ /**
221
+ * Challenge-specific data messages
222
+ *
223
+ * @generated from message uniswap.platformservice.v1.TurnstileData
224
+ */
225
+ export declare class TurnstileData extends Message<TurnstileData> {
226
+ /**
227
+ * @generated from field: string site_key = 1;
228
+ */
229
+ siteKey: string;
230
+ /**
231
+ * @generated from field: string action = 2;
232
+ */
233
+ action: string;
234
+ constructor(data?: PartialMessage<TurnstileData>);
235
+ static readonly runtime: typeof proto3;
236
+ static readonly typeName = "uniswap.platformservice.v1.TurnstileData";
237
+ static readonly fields: FieldList;
238
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TurnstileData;
239
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TurnstileData;
240
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TurnstileData;
241
+ static equals(a: TurnstileData | PlainMessage<TurnstileData> | undefined, b: TurnstileData | PlainMessage<TurnstileData> | undefined): boolean;
242
+ }
243
+ /**
244
+ * @generated from message uniswap.platformservice.v1.HashCashData
245
+ */
246
+ export declare class HashCashData extends Message<HashCashData> {
247
+ /**
248
+ * @generated from field: int32 difficulty = 1;
249
+ */
250
+ difficulty: number;
251
+ /**
252
+ * @generated from field: string subject = 2;
253
+ */
254
+ subject: string;
255
+ /**
256
+ * @generated from field: string algorithm = 3;
257
+ */
258
+ algorithm: string;
259
+ /**
260
+ * @generated from field: string nonce = 4;
261
+ */
262
+ nonce: string;
263
+ /**
264
+ * @generated from field: int32 max_proof_length = 5;
265
+ */
266
+ maxProofLength: number;
267
+ /**
268
+ * @generated from field: string verifier = 6;
269
+ */
270
+ verifier: string;
271
+ constructor(data?: PartialMessage<HashCashData>);
272
+ static readonly runtime: typeof proto3;
273
+ static readonly typeName = "uniswap.platformservice.v1.HashCashData";
274
+ static readonly fields: FieldList;
275
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HashCashData;
276
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HashCashData;
277
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HashCashData;
278
+ static equals(a: HashCashData | PlainMessage<HashCashData> | undefined, b: HashCashData | PlainMessage<HashCashData> | undefined): boolean;
279
+ }
280
+ /**
281
+ * @generated from message uniswap.platformservice.v1.GitHubData
282
+ */
283
+ export declare class GitHubData extends Message<GitHubData> {
284
+ /**
285
+ * @generated from field: string authorize_url = 1;
286
+ */
287
+ authorizeUrl: string;
288
+ constructor(data?: PartialMessage<GitHubData>);
289
+ static readonly runtime: typeof proto3;
290
+ static readonly typeName = "uniswap.platformservice.v1.GitHubData";
291
+ static readonly fields: FieldList;
292
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GitHubData;
293
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GitHubData;
294
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GitHubData;
295
+ static equals(a: GitHubData | PlainMessage<GitHubData> | undefined, b: GitHubData | PlainMessage<GitHubData> | undefined): boolean;
296
+ }
220
297
  /**
221
298
  * @generated from message uniswap.platformservice.v1.ChallengeResponse
222
299
  */
@@ -232,13 +309,43 @@ export declare class ChallengeResponse extends Message<ChallengeResponse> {
232
309
  */
233
310
  challengeType: ChallengeType;
234
311
  /**
312
+ * DEPRECATED: Use challenge_data instead
313
+ *
235
314
  * Extra data for challenge (e.g., hashcash difficulty, turnstile site key)
236
315
  *
237
- * @generated from field: map<string, string> extra = 3;
316
+ * @generated from field: map<string, string> extra = 3 [deprecated = true];
317
+ * @deprecated
238
318
  */
239
319
  extra: {
240
320
  [key: string]: string;
241
321
  };
322
+ /**
323
+ * NEW: Type-safe challenge-specific data
324
+ *
325
+ * @generated from oneof uniswap.platformservice.v1.ChallengeResponse.challenge_data
326
+ */
327
+ challengeData: {
328
+ /**
329
+ * @generated from field: uniswap.platformservice.v1.TurnstileData turnstile = 4;
330
+ */
331
+ value: TurnstileData;
332
+ case: "turnstile";
333
+ } | {
334
+ /**
335
+ * @generated from field: uniswap.platformservice.v1.HashCashData hashcash = 5;
336
+ */
337
+ value: HashCashData;
338
+ case: "hashcash";
339
+ } | {
340
+ /**
341
+ * @generated from field: uniswap.platformservice.v1.GitHubData github = 6;
342
+ */
343
+ value: GitHubData;
344
+ case: "github";
345
+ } | {
346
+ case: undefined;
347
+ value?: undefined;
348
+ };
242
349
  constructor(data?: PartialMessage<ChallengeResponse>);
243
350
  static readonly runtime: typeof proto3;
244
351
  static readonly typeName = "uniswap.platformservice.v1.ChallengeResponse";
@@ -385,6 +492,13 @@ export declare class VerifyResponse extends Message<VerifyResponse> {
385
492
  case: undefined;
386
493
  value?: undefined;
387
494
  };
495
+ /**
496
+ * New session ID after rotation (only set for OAuth authentication on mobile/extension)
497
+ * For web clients, this is set via Set-Cookie header instead
498
+ *
499
+ * @generated from field: optional string new_session_id = 4;
500
+ */
501
+ newSessionId?: string;
388
502
  constructor(data?: PartialMessage<VerifyResponse>);
389
503
  static readonly runtime: typeof proto3;
390
504
  static readonly typeName = "uniswap.platformservice.v1.VerifyResponse";
@@ -311,6 +311,128 @@ ChallengeRequest.fields = proto3.util.newFieldList(() => [
311
311
  { no: 1, name: "challenge_type", kind: "enum", T: proto3.getEnumType(ChallengeType), opt: true },
312
312
  { no: 2, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
313
313
  ]);
314
+ /**
315
+ * Challenge-specific data messages
316
+ *
317
+ * @generated from message uniswap.platformservice.v1.TurnstileData
318
+ */
319
+ export class TurnstileData extends Message {
320
+ constructor(data) {
321
+ super();
322
+ /**
323
+ * @generated from field: string site_key = 1;
324
+ */
325
+ this.siteKey = "";
326
+ /**
327
+ * @generated from field: string action = 2;
328
+ */
329
+ this.action = "";
330
+ proto3.util.initPartial(data, this);
331
+ }
332
+ static fromBinary(bytes, options) {
333
+ return new TurnstileData().fromBinary(bytes, options);
334
+ }
335
+ static fromJson(jsonValue, options) {
336
+ return new TurnstileData().fromJson(jsonValue, options);
337
+ }
338
+ static fromJsonString(jsonString, options) {
339
+ return new TurnstileData().fromJsonString(jsonString, options);
340
+ }
341
+ static equals(a, b) {
342
+ return proto3.util.equals(TurnstileData, a, b);
343
+ }
344
+ }
345
+ TurnstileData.runtime = proto3;
346
+ TurnstileData.typeName = "uniswap.platformservice.v1.TurnstileData";
347
+ TurnstileData.fields = proto3.util.newFieldList(() => [
348
+ { no: 1, name: "site_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
349
+ { no: 2, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ },
350
+ ]);
351
+ /**
352
+ * @generated from message uniswap.platformservice.v1.HashCashData
353
+ */
354
+ export class HashCashData extends Message {
355
+ constructor(data) {
356
+ super();
357
+ /**
358
+ * @generated from field: int32 difficulty = 1;
359
+ */
360
+ this.difficulty = 0;
361
+ /**
362
+ * @generated from field: string subject = 2;
363
+ */
364
+ this.subject = "";
365
+ /**
366
+ * @generated from field: string algorithm = 3;
367
+ */
368
+ this.algorithm = "";
369
+ /**
370
+ * @generated from field: string nonce = 4;
371
+ */
372
+ this.nonce = "";
373
+ /**
374
+ * @generated from field: int32 max_proof_length = 5;
375
+ */
376
+ this.maxProofLength = 0;
377
+ /**
378
+ * @generated from field: string verifier = 6;
379
+ */
380
+ this.verifier = "";
381
+ proto3.util.initPartial(data, this);
382
+ }
383
+ static fromBinary(bytes, options) {
384
+ return new HashCashData().fromBinary(bytes, options);
385
+ }
386
+ static fromJson(jsonValue, options) {
387
+ return new HashCashData().fromJson(jsonValue, options);
388
+ }
389
+ static fromJsonString(jsonString, options) {
390
+ return new HashCashData().fromJsonString(jsonString, options);
391
+ }
392
+ static equals(a, b) {
393
+ return proto3.util.equals(HashCashData, a, b);
394
+ }
395
+ }
396
+ HashCashData.runtime = proto3;
397
+ HashCashData.typeName = "uniswap.platformservice.v1.HashCashData";
398
+ HashCashData.fields = proto3.util.newFieldList(() => [
399
+ { no: 1, name: "difficulty", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
400
+ { no: 2, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
401
+ { no: 3, name: "algorithm", kind: "scalar", T: 9 /* ScalarType.STRING */ },
402
+ { no: 4, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ },
403
+ { no: 5, name: "max_proof_length", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
404
+ { no: 6, name: "verifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
405
+ ]);
406
+ /**
407
+ * @generated from message uniswap.platformservice.v1.GitHubData
408
+ */
409
+ export class GitHubData extends Message {
410
+ constructor(data) {
411
+ super();
412
+ /**
413
+ * @generated from field: string authorize_url = 1;
414
+ */
415
+ this.authorizeUrl = "";
416
+ proto3.util.initPartial(data, this);
417
+ }
418
+ static fromBinary(bytes, options) {
419
+ return new GitHubData().fromBinary(bytes, options);
420
+ }
421
+ static fromJson(jsonValue, options) {
422
+ return new GitHubData().fromJson(jsonValue, options);
423
+ }
424
+ static fromJsonString(jsonString, options) {
425
+ return new GitHubData().fromJsonString(jsonString, options);
426
+ }
427
+ static equals(a, b) {
428
+ return proto3.util.equals(GitHubData, a, b);
429
+ }
430
+ }
431
+ GitHubData.runtime = proto3;
432
+ GitHubData.typeName = "uniswap.platformservice.v1.GitHubData";
433
+ GitHubData.fields = proto3.util.newFieldList(() => [
434
+ { no: 1, name: "authorize_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
435
+ ]);
314
436
  /**
315
437
  * @generated from message uniswap.platformservice.v1.ChallengeResponse
316
438
  */
@@ -328,11 +450,20 @@ export class ChallengeResponse extends Message {
328
450
  */
329
451
  this.challengeType = ChallengeType.UNSPECIFIED;
330
452
  /**
453
+ * DEPRECATED: Use challenge_data instead
454
+ *
331
455
  * Extra data for challenge (e.g., hashcash difficulty, turnstile site key)
332
456
  *
333
- * @generated from field: map<string, string> extra = 3;
457
+ * @generated from field: map<string, string> extra = 3 [deprecated = true];
458
+ * @deprecated
334
459
  */
335
460
  this.extra = {};
461
+ /**
462
+ * NEW: Type-safe challenge-specific data
463
+ *
464
+ * @generated from oneof uniswap.platformservice.v1.ChallengeResponse.challenge_data
465
+ */
466
+ this.challengeData = { case: undefined };
336
467
  proto3.util.initPartial(data, this);
337
468
  }
338
469
  static fromBinary(bytes, options) {
@@ -354,6 +485,9 @@ ChallengeResponse.fields = proto3.util.newFieldList(() => [
354
485
  { no: 1, name: "challenge_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
355
486
  { no: 2, name: "challenge_type", kind: "enum", T: proto3.getEnumType(ChallengeType) },
356
487
  { no: 3, name: "extra", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
488
+ { no: 4, name: "turnstile", kind: "message", T: TurnstileData, oneof: "challenge_data" },
489
+ { no: 5, name: "hashcash", kind: "message", T: HashCashData, oneof: "challenge_data" },
490
+ { no: 6, name: "github", kind: "message", T: GitHubData, oneof: "challenge_data" },
357
491
  ]);
358
492
  /**
359
493
  * @generated from message uniswap.platformservice.v1.VerifyRequest
@@ -542,6 +676,7 @@ VerifyResponse.fields = proto3.util.newFieldList(() => [
542
676
  { no: 1, name: "retry", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
543
677
  { no: 2, name: "success", kind: "message", T: VerifySuccess, oneof: "outcome" },
544
678
  { no: 3, name: "failure", kind: "message", T: VerifyFailure, oneof: "outcome" },
679
+ { no: 4, name: "new_session_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
545
680
  ]);
546
681
  /**
547
682
  * @generated from message uniswap.platformservice.v1.UserInfo
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-platform-service",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },