@uniswap/client-platform-service 0.0.11 → 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.
- package/dist/uniswap/platformservice/v1/apiKeyService-ApiKeyService_connectquery.d.ts +14 -1
- package/dist/uniswap/platformservice/v1/apiKeyService-ApiKeyService_connectquery.js +14 -1
- package/dist/uniswap/platformservice/v1/apiKeyService_connect.d.ts +10 -1
- package/dist/uniswap/platformservice/v1/apiKeyService_connect.js +10 -1
- package/dist/uniswap/platformservice/v1/apiKeyService_pb.d.ts +55 -15
- package/dist/uniswap/platformservice/v1/apiKeyService_pb.js +83 -20
- package/dist/uniswap/platformservice/v1/organizationService_pb.d.ts +6 -0
- package/dist/uniswap/platformservice/v1/organizationService_pb.js +1 -0
- package/dist/uniswap/platformservice/v1/sessionService_pb.d.ts +117 -3
- package/dist/uniswap/platformservice/v1/sessionService_pb.js +139 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
|
|
2
|
+
import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc uniswap.platformservice.v1.ApiKeyService.Introspect
|
|
5
5
|
*/
|
|
@@ -26,6 +26,19 @@ export declare const createApiKey: {
|
|
|
26
26
|
readonly typeName: "uniswap.platformservice.v1.ApiKeyService";
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* @generated from rpc uniswap.platformservice.v1.ApiKeyService.InternalCreateApiKey
|
|
31
|
+
*/
|
|
32
|
+
export declare const internalCreateApiKey: {
|
|
33
|
+
readonly localName: "internalCreateApiKey";
|
|
34
|
+
readonly name: "InternalCreateApiKey";
|
|
35
|
+
readonly kind: MethodKind.Unary;
|
|
36
|
+
readonly I: typeof InternalCreateApiKeyRequest;
|
|
37
|
+
readonly O: typeof InternalCreateApiKeyResponse;
|
|
38
|
+
readonly service: {
|
|
39
|
+
readonly typeName: "uniswap.platformservice.v1.ApiKeyService";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
29
42
|
/**
|
|
30
43
|
* @generated from rpc uniswap.platformservice.v1.ApiKeyService.ModifyApiKey
|
|
31
44
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
|
|
6
|
+
import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc uniswap.platformservice.v1.ApiKeyService.Introspect
|
|
9
9
|
*/
|
|
@@ -30,6 +30,19 @@ export const createApiKey = {
|
|
|
30
30
|
typeName: "uniswap.platformservice.v1.ApiKeyService"
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc uniswap.platformservice.v1.ApiKeyService.InternalCreateApiKey
|
|
35
|
+
*/
|
|
36
|
+
export const internalCreateApiKey = {
|
|
37
|
+
localName: "internalCreateApiKey",
|
|
38
|
+
name: "InternalCreateApiKey",
|
|
39
|
+
kind: MethodKind.Unary,
|
|
40
|
+
I: InternalCreateApiKeyRequest,
|
|
41
|
+
O: InternalCreateApiKeyResponse,
|
|
42
|
+
service: {
|
|
43
|
+
typeName: "uniswap.platformservice.v1.ApiKeyService"
|
|
44
|
+
}
|
|
45
|
+
};
|
|
33
46
|
/**
|
|
34
47
|
* @generated from rpc uniswap.platformservice.v1.ApiKeyService.ModifyApiKey
|
|
35
48
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
|
|
1
|
+
import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* Service definition
|
|
@@ -26,6 +26,15 @@ export declare const ApiKeyService: {
|
|
|
26
26
|
readonly O: typeof CreateApiKeyResponse;
|
|
27
27
|
readonly kind: MethodKind.Unary;
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* @generated from rpc uniswap.platformservice.v1.ApiKeyService.InternalCreateApiKey
|
|
31
|
+
*/
|
|
32
|
+
readonly internalCreateApiKey: {
|
|
33
|
+
readonly name: "InternalCreateApiKey";
|
|
34
|
+
readonly I: typeof InternalCreateApiKeyRequest;
|
|
35
|
+
readonly O: typeof InternalCreateApiKeyResponse;
|
|
36
|
+
readonly kind: MethodKind.Unary;
|
|
37
|
+
};
|
|
29
38
|
/**
|
|
30
39
|
* @generated from rpc uniswap.platformservice.v1.ApiKeyService.ModifyApiKey
|
|
31
40
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file uniswap/platformservice/v1/apiKeyService.proto (package uniswap.platformservice.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
|
|
5
|
+
import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* Service definition
|
|
@@ -30,6 +30,15 @@ export const ApiKeyService = {
|
|
|
30
30
|
O: CreateApiKeyResponse,
|
|
31
31
|
kind: MethodKind.Unary,
|
|
32
32
|
},
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc uniswap.platformservice.v1.ApiKeyService.InternalCreateApiKey
|
|
35
|
+
*/
|
|
36
|
+
internalCreateApiKey: {
|
|
37
|
+
name: "InternalCreateApiKey",
|
|
38
|
+
I: InternalCreateApiKeyRequest,
|
|
39
|
+
O: InternalCreateApiKeyResponse,
|
|
40
|
+
kind: MethodKind.Unary,
|
|
41
|
+
},
|
|
33
42
|
/**
|
|
34
43
|
* @generated from rpc uniswap.platformservice.v1.ApiKeyService.ModifyApiKey
|
|
35
44
|
*/
|
|
@@ -75,6 +75,10 @@ export declare class IntrospectResponse extends Message<IntrospectResponse> {
|
|
|
75
75
|
* @generated from field: string user_id = 3;
|
|
76
76
|
*/
|
|
77
77
|
userId: string;
|
|
78
|
+
/**
|
|
79
|
+
* @generated from field: string organization_id = 4;
|
|
80
|
+
*/
|
|
81
|
+
organizationId: string;
|
|
78
82
|
constructor(data?: PartialMessage<IntrospectResponse>);
|
|
79
83
|
static readonly runtime: typeof proto3;
|
|
80
84
|
static readonly typeName = "uniswap.platformservice.v1.IntrospectResponse";
|
|
@@ -91,15 +95,11 @@ export declare class IntrospectResponse extends Message<IntrospectResponse> {
|
|
|
91
95
|
*/
|
|
92
96
|
export declare class CreateApiKeyRequest extends Message<CreateApiKeyRequest> {
|
|
93
97
|
/**
|
|
94
|
-
* @generated from field: string
|
|
95
|
-
*/
|
|
96
|
-
userId: string;
|
|
97
|
-
/**
|
|
98
|
-
* @generated from field: string name = 2;
|
|
98
|
+
* @generated from field: string name = 1;
|
|
99
99
|
*/
|
|
100
100
|
name: string;
|
|
101
101
|
/**
|
|
102
|
-
* @generated from field: optional uniswap.platformservice.v1.RateLimitConfig rate_limit_config =
|
|
102
|
+
* @generated from field: optional uniswap.platformservice.v1.RateLimitConfig rate_limit_config = 2;
|
|
103
103
|
*/
|
|
104
104
|
rateLimitConfig?: RateLimitConfig;
|
|
105
105
|
constructor(data?: PartialMessage<CreateApiKeyRequest>);
|
|
@@ -233,10 +233,6 @@ export declare class DeleteApiKeyResponse extends Message<DeleteApiKeyResponse>
|
|
|
233
233
|
* @generated from message uniswap.platformservice.v1.ApiKeyDataStruct
|
|
234
234
|
*/
|
|
235
235
|
export declare class ApiKeyDataStruct extends Message<ApiKeyDataStruct> {
|
|
236
|
-
/**
|
|
237
|
-
* @generated from field: string user_id = 1;
|
|
238
|
-
*/
|
|
239
|
-
userId: string;
|
|
240
236
|
/**
|
|
241
237
|
* @generated from field: optional string organization_id = 2;
|
|
242
238
|
*/
|
|
@@ -283,11 +279,7 @@ export declare class ApiKeyDataStruct extends Message<ApiKeyDataStruct> {
|
|
|
283
279
|
*/
|
|
284
280
|
export declare class ListApiKeyRequest extends Message<ListApiKeyRequest> {
|
|
285
281
|
/**
|
|
286
|
-
* @generated from field:
|
|
287
|
-
*/
|
|
288
|
-
userId: string;
|
|
289
|
-
/**
|
|
290
|
-
* @generated from field: bool include_raw_keys = 2;
|
|
282
|
+
* @generated from field: bool include_raw_keys = 1;
|
|
291
283
|
*/
|
|
292
284
|
includeRawKeys: boolean;
|
|
293
285
|
constructor(data?: PartialMessage<ListApiKeyRequest>);
|
|
@@ -316,3 +308,51 @@ export declare class ListApiKeyResponse extends Message<ListApiKeyResponse> {
|
|
|
316
308
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListApiKeyResponse;
|
|
317
309
|
static equals(a: ListApiKeyResponse | PlainMessage<ListApiKeyResponse> | undefined, b: ListApiKeyResponse | PlainMessage<ListApiKeyResponse> | undefined): boolean;
|
|
318
310
|
}
|
|
311
|
+
/**
|
|
312
|
+
* Internal Create API Key request/response (VPN-restricted admin endpoint)
|
|
313
|
+
*
|
|
314
|
+
* @generated from message uniswap.platformservice.v1.InternalCreateApiKeyRequest
|
|
315
|
+
*/
|
|
316
|
+
export declare class InternalCreateApiKeyRequest extends Message<InternalCreateApiKeyRequest> {
|
|
317
|
+
/**
|
|
318
|
+
* @generated from field: string organization_id = 1;
|
|
319
|
+
*/
|
|
320
|
+
organizationId: string;
|
|
321
|
+
/**
|
|
322
|
+
* @generated from field: string name = 2;
|
|
323
|
+
*/
|
|
324
|
+
name: string;
|
|
325
|
+
/**
|
|
326
|
+
* @generated from field: optional uniswap.platformservice.v1.RateLimitConfig rate_limit_config = 3;
|
|
327
|
+
*/
|
|
328
|
+
rateLimitConfig?: RateLimitConfig;
|
|
329
|
+
constructor(data?: PartialMessage<InternalCreateApiKeyRequest>);
|
|
330
|
+
static readonly runtime: typeof proto3;
|
|
331
|
+
static readonly typeName = "uniswap.platformservice.v1.InternalCreateApiKeyRequest";
|
|
332
|
+
static readonly fields: FieldList;
|
|
333
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InternalCreateApiKeyRequest;
|
|
334
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InternalCreateApiKeyRequest;
|
|
335
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InternalCreateApiKeyRequest;
|
|
336
|
+
static equals(a: InternalCreateApiKeyRequest | PlainMessage<InternalCreateApiKeyRequest> | undefined, b: InternalCreateApiKeyRequest | PlainMessage<InternalCreateApiKeyRequest> | undefined): boolean;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* @generated from message uniswap.platformservice.v1.InternalCreateApiKeyResponse
|
|
340
|
+
*/
|
|
341
|
+
export declare class InternalCreateApiKeyResponse extends Message<InternalCreateApiKeyResponse> {
|
|
342
|
+
/**
|
|
343
|
+
* @generated from field: string id = 1;
|
|
344
|
+
*/
|
|
345
|
+
id: string;
|
|
346
|
+
/**
|
|
347
|
+
* @generated from field: string wrapped_id = 2;
|
|
348
|
+
*/
|
|
349
|
+
wrappedId: string;
|
|
350
|
+
constructor(data?: PartialMessage<InternalCreateApiKeyResponse>);
|
|
351
|
+
static readonly runtime: typeof proto3;
|
|
352
|
+
static readonly typeName = "uniswap.platformservice.v1.InternalCreateApiKeyResponse";
|
|
353
|
+
static readonly fields: FieldList;
|
|
354
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InternalCreateApiKeyResponse;
|
|
355
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InternalCreateApiKeyResponse;
|
|
356
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InternalCreateApiKeyResponse;
|
|
357
|
+
static equals(a: InternalCreateApiKeyResponse | PlainMessage<InternalCreateApiKeyResponse> | undefined, b: InternalCreateApiKeyResponse | PlainMessage<InternalCreateApiKeyResponse> | undefined): boolean;
|
|
358
|
+
}
|
|
@@ -108,6 +108,10 @@ export class IntrospectResponse extends Message {
|
|
|
108
108
|
* @generated from field: string user_id = 3;
|
|
109
109
|
*/
|
|
110
110
|
this.userId = "";
|
|
111
|
+
/**
|
|
112
|
+
* @generated from field: string organization_id = 4;
|
|
113
|
+
*/
|
|
114
|
+
this.organizationId = "";
|
|
111
115
|
proto3.util.initPartial(data, this);
|
|
112
116
|
}
|
|
113
117
|
static fromBinary(bytes, options) {
|
|
@@ -129,6 +133,7 @@ IntrospectResponse.fields = proto3.util.newFieldList(() => [
|
|
|
129
133
|
{ no: 1, name: "wrapped_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
130
134
|
{ no: 2, name: "result", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
131
135
|
{ no: 3, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
136
|
+
{ no: 4, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
132
137
|
]);
|
|
133
138
|
/**
|
|
134
139
|
* Create API Key request/response
|
|
@@ -139,11 +144,7 @@ export class CreateApiKeyRequest extends Message {
|
|
|
139
144
|
constructor(data) {
|
|
140
145
|
super();
|
|
141
146
|
/**
|
|
142
|
-
* @generated from field: string
|
|
143
|
-
*/
|
|
144
|
-
this.userId = "";
|
|
145
|
-
/**
|
|
146
|
-
* @generated from field: string name = 2;
|
|
147
|
+
* @generated from field: string name = 1;
|
|
147
148
|
*/
|
|
148
149
|
this.name = "";
|
|
149
150
|
proto3.util.initPartial(data, this);
|
|
@@ -164,9 +165,8 @@ export class CreateApiKeyRequest extends Message {
|
|
|
164
165
|
CreateApiKeyRequest.runtime = proto3;
|
|
165
166
|
CreateApiKeyRequest.typeName = "uniswap.platformservice.v1.CreateApiKeyRequest";
|
|
166
167
|
CreateApiKeyRequest.fields = proto3.util.newFieldList(() => [
|
|
167
|
-
{ no: 1, name: "
|
|
168
|
-
{ no: 2, name: "
|
|
169
|
-
{ no: 3, name: "rate_limit_config", kind: "message", T: RateLimitConfig, opt: true },
|
|
168
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
169
|
+
{ no: 2, name: "rate_limit_config", kind: "message", T: RateLimitConfig, opt: true },
|
|
170
170
|
]);
|
|
171
171
|
/**
|
|
172
172
|
* @generated from message uniswap.platformservice.v1.CreateApiKeyResponse
|
|
@@ -354,10 +354,6 @@ DeleteApiKeyResponse.fields = proto3.util.newFieldList(() => []);
|
|
|
354
354
|
export class ApiKeyDataStruct extends Message {
|
|
355
355
|
constructor(data) {
|
|
356
356
|
super();
|
|
357
|
-
/**
|
|
358
|
-
* @generated from field: string user_id = 1;
|
|
359
|
-
*/
|
|
360
|
-
this.userId = "";
|
|
361
357
|
/**
|
|
362
358
|
* @generated from field: string hashed_api_key = 3;
|
|
363
359
|
*/
|
|
@@ -388,7 +384,6 @@ export class ApiKeyDataStruct extends Message {
|
|
|
388
384
|
ApiKeyDataStruct.runtime = proto3;
|
|
389
385
|
ApiKeyDataStruct.typeName = "uniswap.platformservice.v1.ApiKeyDataStruct";
|
|
390
386
|
ApiKeyDataStruct.fields = proto3.util.newFieldList(() => [
|
|
391
|
-
{ no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
392
387
|
{ no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
393
388
|
{ no: 3, name: "hashed_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
394
389
|
{ no: 4, name: "raw_key", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
@@ -405,11 +400,7 @@ export class ListApiKeyRequest extends Message {
|
|
|
405
400
|
constructor(data) {
|
|
406
401
|
super();
|
|
407
402
|
/**
|
|
408
|
-
* @generated from field:
|
|
409
|
-
*/
|
|
410
|
-
this.userId = "";
|
|
411
|
-
/**
|
|
412
|
-
* @generated from field: bool include_raw_keys = 2;
|
|
403
|
+
* @generated from field: bool include_raw_keys = 1;
|
|
413
404
|
*/
|
|
414
405
|
this.includeRawKeys = false;
|
|
415
406
|
proto3.util.initPartial(data, this);
|
|
@@ -430,8 +421,7 @@ export class ListApiKeyRequest extends Message {
|
|
|
430
421
|
ListApiKeyRequest.runtime = proto3;
|
|
431
422
|
ListApiKeyRequest.typeName = "uniswap.platformservice.v1.ListApiKeyRequest";
|
|
432
423
|
ListApiKeyRequest.fields = proto3.util.newFieldList(() => [
|
|
433
|
-
{ no: 1, name: "
|
|
434
|
-
{ no: 2, name: "include_raw_keys", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
424
|
+
{ no: 1, name: "include_raw_keys", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
435
425
|
]);
|
|
436
426
|
/**
|
|
437
427
|
* @generated from message uniswap.platformservice.v1.ListApiKeyResponse
|
|
@@ -463,3 +453,76 @@ ListApiKeyResponse.typeName = "uniswap.platformservice.v1.ListApiKeyResponse";
|
|
|
463
453
|
ListApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
464
454
|
{ no: 1, name: "api_key_data_list", kind: "message", T: ApiKeyDataStruct, repeated: true },
|
|
465
455
|
]);
|
|
456
|
+
/**
|
|
457
|
+
* Internal Create API Key request/response (VPN-restricted admin endpoint)
|
|
458
|
+
*
|
|
459
|
+
* @generated from message uniswap.platformservice.v1.InternalCreateApiKeyRequest
|
|
460
|
+
*/
|
|
461
|
+
export class InternalCreateApiKeyRequest extends Message {
|
|
462
|
+
constructor(data) {
|
|
463
|
+
super();
|
|
464
|
+
/**
|
|
465
|
+
* @generated from field: string organization_id = 1;
|
|
466
|
+
*/
|
|
467
|
+
this.organizationId = "";
|
|
468
|
+
/**
|
|
469
|
+
* @generated from field: string name = 2;
|
|
470
|
+
*/
|
|
471
|
+
this.name = "";
|
|
472
|
+
proto3.util.initPartial(data, this);
|
|
473
|
+
}
|
|
474
|
+
static fromBinary(bytes, options) {
|
|
475
|
+
return new InternalCreateApiKeyRequest().fromBinary(bytes, options);
|
|
476
|
+
}
|
|
477
|
+
static fromJson(jsonValue, options) {
|
|
478
|
+
return new InternalCreateApiKeyRequest().fromJson(jsonValue, options);
|
|
479
|
+
}
|
|
480
|
+
static fromJsonString(jsonString, options) {
|
|
481
|
+
return new InternalCreateApiKeyRequest().fromJsonString(jsonString, options);
|
|
482
|
+
}
|
|
483
|
+
static equals(a, b) {
|
|
484
|
+
return proto3.util.equals(InternalCreateApiKeyRequest, a, b);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
InternalCreateApiKeyRequest.runtime = proto3;
|
|
488
|
+
InternalCreateApiKeyRequest.typeName = "uniswap.platformservice.v1.InternalCreateApiKeyRequest";
|
|
489
|
+
InternalCreateApiKeyRequest.fields = proto3.util.newFieldList(() => [
|
|
490
|
+
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
491
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
492
|
+
{ no: 3, name: "rate_limit_config", kind: "message", T: RateLimitConfig, opt: true },
|
|
493
|
+
]);
|
|
494
|
+
/**
|
|
495
|
+
* @generated from message uniswap.platformservice.v1.InternalCreateApiKeyResponse
|
|
496
|
+
*/
|
|
497
|
+
export class InternalCreateApiKeyResponse extends Message {
|
|
498
|
+
constructor(data) {
|
|
499
|
+
super();
|
|
500
|
+
/**
|
|
501
|
+
* @generated from field: string id = 1;
|
|
502
|
+
*/
|
|
503
|
+
this.id = "";
|
|
504
|
+
/**
|
|
505
|
+
* @generated from field: string wrapped_id = 2;
|
|
506
|
+
*/
|
|
507
|
+
this.wrappedId = "";
|
|
508
|
+
proto3.util.initPartial(data, this);
|
|
509
|
+
}
|
|
510
|
+
static fromBinary(bytes, options) {
|
|
511
|
+
return new InternalCreateApiKeyResponse().fromBinary(bytes, options);
|
|
512
|
+
}
|
|
513
|
+
static fromJson(jsonValue, options) {
|
|
514
|
+
return new InternalCreateApiKeyResponse().fromJson(jsonValue, options);
|
|
515
|
+
}
|
|
516
|
+
static fromJsonString(jsonString, options) {
|
|
517
|
+
return new InternalCreateApiKeyResponse().fromJsonString(jsonString, options);
|
|
518
|
+
}
|
|
519
|
+
static equals(a, b) {
|
|
520
|
+
return proto3.util.equals(InternalCreateApiKeyResponse, a, b);
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
InternalCreateApiKeyResponse.runtime = proto3;
|
|
524
|
+
InternalCreateApiKeyResponse.typeName = "uniswap.platformservice.v1.InternalCreateApiKeyResponse";
|
|
525
|
+
InternalCreateApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
526
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
527
|
+
{ no: 2, name: "wrapped_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
528
|
+
]);
|
|
@@ -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
|
]);
|
|
@@ -33,9 +33,9 @@ export declare enum ChallengeType {
|
|
|
33
33
|
*/
|
|
34
34
|
GITHUB = 5,
|
|
35
35
|
/**
|
|
36
|
-
* @generated from enum value:
|
|
36
|
+
* @generated from enum value: CHALLENGE_TYPE_EMAIL = 6;
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
EMAIL = 6
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* @generated from message uniswap.platformservice.v1.IntrospectSessionRequest
|
|
@@ -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";
|
|
@@ -37,9 +37,9 @@ export var ChallengeType;
|
|
|
37
37
|
*/
|
|
38
38
|
ChallengeType[ChallengeType["GITHUB"] = 5] = "GITHUB";
|
|
39
39
|
/**
|
|
40
|
-
* @generated from enum value:
|
|
40
|
+
* @generated from enum value: CHALLENGE_TYPE_EMAIL = 6;
|
|
41
41
|
*/
|
|
42
|
-
ChallengeType[ChallengeType["
|
|
42
|
+
ChallengeType[ChallengeType["EMAIL"] = 6] = "EMAIL";
|
|
43
43
|
})(ChallengeType || (ChallengeType = {}));
|
|
44
44
|
// Retrieve enum metadata with: proto3.getEnumType(ChallengeType)
|
|
45
45
|
proto3.util.setEnumType(ChallengeType, "uniswap.platformservice.v1.ChallengeType", [
|
|
@@ -49,7 +49,7 @@ proto3.util.setEnumType(ChallengeType, "uniswap.platformservice.v1.ChallengeType
|
|
|
49
49
|
{ no: 3, name: "CHALLENGE_TYPE_GOOGLE" },
|
|
50
50
|
{ no: 4, name: "CHALLENGE_TYPE_SLACK" },
|
|
51
51
|
{ no: 5, name: "CHALLENGE_TYPE_GITHUB" },
|
|
52
|
-
{ no: 6, name: "
|
|
52
|
+
{ no: 6, name: "CHALLENGE_TYPE_EMAIL" },
|
|
53
53
|
]);
|
|
54
54
|
/**
|
|
55
55
|
* @generated from message uniswap.platformservice.v1.IntrospectSessionRequest
|
|
@@ -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
|