@uniswap/client-platform-service 0.0.12 → 0.0.14

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.
@@ -1,5 +1,28 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
3
+ /**
4
+ * API Key Tier
5
+ *
6
+ * @generated from enum uniswap.platformservice.v1.ApiKeyTier
7
+ */
8
+ export declare enum ApiKeyTier {
9
+ /**
10
+ * @generated from enum value: API_KEY_TIER_UNSPECIFIED = 0;
11
+ */
12
+ UNSPECIFIED = 0,
13
+ /**
14
+ * @generated from enum value: API_KEY_TIER_INTERNAL = 1;
15
+ */
16
+ INTERNAL = 1,
17
+ /**
18
+ * @generated from enum value: API_KEY_TIER_PARTNER = 2;
19
+ */
20
+ PARTNER = 2,
21
+ /**
22
+ * @generated from enum value: API_KEY_TIER_DEV_PORTAL = 3;
23
+ */
24
+ DEV_PORTAL = 3
25
+ }
3
26
  /**
4
27
  * Rate limit configuration
5
28
  *
@@ -79,6 +102,10 @@ export declare class IntrospectResponse extends Message<IntrospectResponse> {
79
102
  * @generated from field: string organization_id = 4;
80
103
  */
81
104
  organizationId: string;
105
+ /**
106
+ * @generated from field: string analytics_id = 5;
107
+ */
108
+ analyticsId: string;
82
109
  constructor(data?: PartialMessage<IntrospectResponse>);
83
110
  static readonly runtime: typeof proto3;
84
111
  static readonly typeName = "uniswap.platformservice.v1.IntrospectResponse";
@@ -326,6 +353,10 @@ export declare class InternalCreateApiKeyRequest extends Message<InternalCreateA
326
353
  * @generated from field: optional uniswap.platformservice.v1.RateLimitConfig rate_limit_config = 3;
327
354
  */
328
355
  rateLimitConfig?: RateLimitConfig;
356
+ /**
357
+ * @generated from field: uniswap.platformservice.v1.ApiKeyTier tier = 4;
358
+ */
359
+ tier: ApiKeyTier;
329
360
  constructor(data?: PartialMessage<InternalCreateApiKeyRequest>);
330
361
  static readonly runtime: typeof proto3;
331
362
  static readonly typeName = "uniswap.platformservice.v1.InternalCreateApiKeyRequest";
@@ -3,6 +3,37 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
6
+ /**
7
+ * API Key Tier
8
+ *
9
+ * @generated from enum uniswap.platformservice.v1.ApiKeyTier
10
+ */
11
+ export var ApiKeyTier;
12
+ (function (ApiKeyTier) {
13
+ /**
14
+ * @generated from enum value: API_KEY_TIER_UNSPECIFIED = 0;
15
+ */
16
+ ApiKeyTier[ApiKeyTier["UNSPECIFIED"] = 0] = "UNSPECIFIED";
17
+ /**
18
+ * @generated from enum value: API_KEY_TIER_INTERNAL = 1;
19
+ */
20
+ ApiKeyTier[ApiKeyTier["INTERNAL"] = 1] = "INTERNAL";
21
+ /**
22
+ * @generated from enum value: API_KEY_TIER_PARTNER = 2;
23
+ */
24
+ ApiKeyTier[ApiKeyTier["PARTNER"] = 2] = "PARTNER";
25
+ /**
26
+ * @generated from enum value: API_KEY_TIER_DEV_PORTAL = 3;
27
+ */
28
+ ApiKeyTier[ApiKeyTier["DEV_PORTAL"] = 3] = "DEV_PORTAL";
29
+ })(ApiKeyTier || (ApiKeyTier = {}));
30
+ // Retrieve enum metadata with: proto3.getEnumType(ApiKeyTier)
31
+ proto3.util.setEnumType(ApiKeyTier, "uniswap.platformservice.v1.ApiKeyTier", [
32
+ { no: 0, name: "API_KEY_TIER_UNSPECIFIED" },
33
+ { no: 1, name: "API_KEY_TIER_INTERNAL" },
34
+ { no: 2, name: "API_KEY_TIER_PARTNER" },
35
+ { no: 3, name: "API_KEY_TIER_DEV_PORTAL" },
36
+ ]);
6
37
  /**
7
38
  * Rate limit configuration
8
39
  *
@@ -112,6 +143,10 @@ export class IntrospectResponse extends Message {
112
143
  * @generated from field: string organization_id = 4;
113
144
  */
114
145
  this.organizationId = "";
146
+ /**
147
+ * @generated from field: string analytics_id = 5;
148
+ */
149
+ this.analyticsId = "";
115
150
  proto3.util.initPartial(data, this);
116
151
  }
117
152
  static fromBinary(bytes, options) {
@@ -134,6 +169,7 @@ IntrospectResponse.fields = proto3.util.newFieldList(() => [
134
169
  { no: 2, name: "result", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
135
170
  { no: 3, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
136
171
  { no: 4, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
172
+ { no: 5, name: "analytics_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
137
173
  ]);
138
174
  /**
139
175
  * Create API Key request/response
@@ -469,6 +505,10 @@ export class InternalCreateApiKeyRequest extends Message {
469
505
  * @generated from field: string name = 2;
470
506
  */
471
507
  this.name = "";
508
+ /**
509
+ * @generated from field: uniswap.platformservice.v1.ApiKeyTier tier = 4;
510
+ */
511
+ this.tier = ApiKeyTier.UNSPECIFIED;
472
512
  proto3.util.initPartial(data, this);
473
513
  }
474
514
  static fromBinary(bytes, options) {
@@ -490,6 +530,7 @@ InternalCreateApiKeyRequest.fields = proto3.util.newFieldList(() => [
490
530
  { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
491
531
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
492
532
  { no: 3, name: "rate_limit_config", kind: "message", T: RateLimitConfig, opt: true },
533
+ { no: 4, name: "tier", kind: "enum", T: proto3.getEnumType(ApiKeyTier) },
493
534
  ]);
494
535
  /**
495
536
  * @generated from message uniswap.platformservice.v1.InternalCreateApiKeyResponse
@@ -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,117 @@ 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
+ }
297
+ /**
298
+ * Challenge failure reasons
299
+ *
300
+ * @generated from message uniswap.platformservice.v1.ChallengeFailure
301
+ */
302
+ export declare class ChallengeFailure extends Message<ChallengeFailure> {
303
+ /**
304
+ * @generated from field: uniswap.platformservice.v1.ChallengeFailure.Reason reason = 1;
305
+ */
306
+ reason: ChallengeFailure_Reason;
307
+ constructor(data?: PartialMessage<ChallengeFailure>);
308
+ static readonly runtime: typeof proto3;
309
+ static readonly typeName = "uniswap.platformservice.v1.ChallengeFailure";
310
+ static readonly fields: FieldList;
311
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChallengeFailure;
312
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChallengeFailure;
313
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChallengeFailure;
314
+ static equals(a: ChallengeFailure | PlainMessage<ChallengeFailure> | undefined, b: ChallengeFailure | PlainMessage<ChallengeFailure> | undefined): boolean;
315
+ }
316
+ /**
317
+ * @generated from enum uniswap.platformservice.v1.ChallengeFailure.Reason
318
+ */
319
+ export declare enum ChallengeFailure_Reason {
320
+ /**
321
+ * @generated from enum value: REASON_UNSPECIFIED = 0;
322
+ */
323
+ UNSPECIFIED = 0,
324
+ /**
325
+ * Session must pass bot detection first (score < 60)
326
+ *
327
+ * @generated from enum value: REASON_BOT_DETECTION_REQUIRED = 1;
328
+ */
329
+ BOT_DETECTION_REQUIRED = 1
330
+ }
220
331
  /**
221
332
  * @generated from message uniswap.platformservice.v1.ChallengeResponse
222
333
  */
@@ -232,13 +343,50 @@ export declare class ChallengeResponse extends Message<ChallengeResponse> {
232
343
  */
233
344
  challengeType: ChallengeType;
234
345
  /**
346
+ * DEPRECATED: Use challenge_data instead
347
+ *
235
348
  * Extra data for challenge (e.g., hashcash difficulty, turnstile site key)
236
349
  *
237
- * @generated from field: map<string, string> extra = 3;
350
+ * @generated from field: map<string, string> extra = 3 [deprecated = true];
351
+ * @deprecated
238
352
  */
239
353
  extra: {
240
354
  [key: string]: string;
241
355
  };
356
+ /**
357
+ * Type-safe challenge-specific data
358
+ *
359
+ * @generated from oneof uniswap.platformservice.v1.ChallengeResponse.challenge_data
360
+ */
361
+ challengeData: {
362
+ /**
363
+ * @generated from field: uniswap.platformservice.v1.TurnstileData turnstile = 4;
364
+ */
365
+ value: TurnstileData;
366
+ case: "turnstile";
367
+ } | {
368
+ /**
369
+ * @generated from field: uniswap.platformservice.v1.HashCashData hashcash = 5;
370
+ */
371
+ value: HashCashData;
372
+ case: "hashcash";
373
+ } | {
374
+ /**
375
+ * @generated from field: uniswap.platformservice.v1.GitHubData github = 6;
376
+ */
377
+ value: GitHubData;
378
+ case: "github";
379
+ } | {
380
+ case: undefined;
381
+ value?: undefined;
382
+ };
383
+ /**
384
+ * Present only when challenge request fails
385
+ * When failure is set, other fields (challenge_id, challenge_type, challenge_data) are not populated
386
+ *
387
+ * @generated from field: optional uniswap.platformservice.v1.ChallengeFailure failure = 7;
388
+ */
389
+ failure?: ChallengeFailure;
242
390
  constructor(data?: PartialMessage<ChallengeResponse>);
243
391
  static readonly runtime: typeof proto3;
244
392
  static readonly typeName = "uniswap.platformservice.v1.ChallengeResponse";
@@ -385,6 +533,13 @@ export declare class VerifyResponse extends Message<VerifyResponse> {
385
533
  case: undefined;
386
534
  value?: undefined;
387
535
  };
536
+ /**
537
+ * New session ID after rotation (only set for OAuth authentication on mobile/extension)
538
+ * For web clients, this is set via Set-Cookie header instead
539
+ *
540
+ * @generated from field: optional string new_session_id = 4;
541
+ */
542
+ newSessionId?: string;
388
543
  constructor(data?: PartialMessage<VerifyResponse>);
389
544
  static readonly runtime: typeof proto3;
390
545
  static readonly typeName = "uniswap.platformservice.v1.VerifyResponse";
@@ -311,6 +311,181 @@ 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
+ ]);
436
+ /**
437
+ * Challenge failure reasons
438
+ *
439
+ * @generated from message uniswap.platformservice.v1.ChallengeFailure
440
+ */
441
+ export class ChallengeFailure extends Message {
442
+ constructor(data) {
443
+ super();
444
+ /**
445
+ * @generated from field: uniswap.platformservice.v1.ChallengeFailure.Reason reason = 1;
446
+ */
447
+ this.reason = ChallengeFailure_Reason.UNSPECIFIED;
448
+ proto3.util.initPartial(data, this);
449
+ }
450
+ static fromBinary(bytes, options) {
451
+ return new ChallengeFailure().fromBinary(bytes, options);
452
+ }
453
+ static fromJson(jsonValue, options) {
454
+ return new ChallengeFailure().fromJson(jsonValue, options);
455
+ }
456
+ static fromJsonString(jsonString, options) {
457
+ return new ChallengeFailure().fromJsonString(jsonString, options);
458
+ }
459
+ static equals(a, b) {
460
+ return proto3.util.equals(ChallengeFailure, a, b);
461
+ }
462
+ }
463
+ ChallengeFailure.runtime = proto3;
464
+ ChallengeFailure.typeName = "uniswap.platformservice.v1.ChallengeFailure";
465
+ ChallengeFailure.fields = proto3.util.newFieldList(() => [
466
+ { no: 1, name: "reason", kind: "enum", T: proto3.getEnumType(ChallengeFailure_Reason) },
467
+ ]);
468
+ /**
469
+ * @generated from enum uniswap.platformservice.v1.ChallengeFailure.Reason
470
+ */
471
+ export var ChallengeFailure_Reason;
472
+ (function (ChallengeFailure_Reason) {
473
+ /**
474
+ * @generated from enum value: REASON_UNSPECIFIED = 0;
475
+ */
476
+ ChallengeFailure_Reason[ChallengeFailure_Reason["UNSPECIFIED"] = 0] = "UNSPECIFIED";
477
+ /**
478
+ * Session must pass bot detection first (score < 60)
479
+ *
480
+ * @generated from enum value: REASON_BOT_DETECTION_REQUIRED = 1;
481
+ */
482
+ ChallengeFailure_Reason[ChallengeFailure_Reason["BOT_DETECTION_REQUIRED"] = 1] = "BOT_DETECTION_REQUIRED";
483
+ })(ChallengeFailure_Reason || (ChallengeFailure_Reason = {}));
484
+ // Retrieve enum metadata with: proto3.getEnumType(ChallengeFailure_Reason)
485
+ proto3.util.setEnumType(ChallengeFailure_Reason, "uniswap.platformservice.v1.ChallengeFailure.Reason", [
486
+ { no: 0, name: "REASON_UNSPECIFIED" },
487
+ { no: 1, name: "REASON_BOT_DETECTION_REQUIRED" },
488
+ ]);
314
489
  /**
315
490
  * @generated from message uniswap.platformservice.v1.ChallengeResponse
316
491
  */
@@ -328,11 +503,20 @@ export class ChallengeResponse extends Message {
328
503
  */
329
504
  this.challengeType = ChallengeType.UNSPECIFIED;
330
505
  /**
506
+ * DEPRECATED: Use challenge_data instead
507
+ *
331
508
  * Extra data for challenge (e.g., hashcash difficulty, turnstile site key)
332
509
  *
333
- * @generated from field: map<string, string> extra = 3;
510
+ * @generated from field: map<string, string> extra = 3 [deprecated = true];
511
+ * @deprecated
334
512
  */
335
513
  this.extra = {};
514
+ /**
515
+ * Type-safe challenge-specific data
516
+ *
517
+ * @generated from oneof uniswap.platformservice.v1.ChallengeResponse.challenge_data
518
+ */
519
+ this.challengeData = { case: undefined };
336
520
  proto3.util.initPartial(data, this);
337
521
  }
338
522
  static fromBinary(bytes, options) {
@@ -354,6 +538,10 @@ ChallengeResponse.fields = proto3.util.newFieldList(() => [
354
538
  { no: 1, name: "challenge_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
355
539
  { no: 2, name: "challenge_type", kind: "enum", T: proto3.getEnumType(ChallengeType) },
356
540
  { no: 3, name: "extra", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
541
+ { no: 4, name: "turnstile", kind: "message", T: TurnstileData, oneof: "challenge_data" },
542
+ { no: 5, name: "hashcash", kind: "message", T: HashCashData, oneof: "challenge_data" },
543
+ { no: 6, name: "github", kind: "message", T: GitHubData, oneof: "challenge_data" },
544
+ { no: 7, name: "failure", kind: "message", T: ChallengeFailure, opt: true },
357
545
  ]);
358
546
  /**
359
547
  * @generated from message uniswap.platformservice.v1.VerifyRequest
@@ -542,6 +730,7 @@ VerifyResponse.fields = proto3.util.newFieldList(() => [
542
730
  { no: 1, name: "retry", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
543
731
  { no: 2, name: "success", kind: "message", T: VerifySuccess, oneof: "outcome" },
544
732
  { no: 3, name: "failure", kind: "message", T: VerifyFailure, oneof: "outcome" },
733
+ { no: 4, name: "new_session_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
545
734
  ]);
546
735
  /**
547
736
  * @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.14",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },