@uniswap/client-platform-service 0.0.13 → 0.0.15
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_pb.d.ts +98 -0
- package/dist/uniswap/platformservice/v1/apiKeyService_pb.js +121 -2
- package/dist/uniswap/platformservice/v1/organizationService_pb.d.ts +54 -0
- package/dist/uniswap/platformservice/v1/organizationService_pb.js +73 -1
- package/dist/uniswap/platformservice/v1/sessionService_pb.d.ts +42 -1
- package/dist/uniswap/platformservice/v1/sessionService_pb.js +55 -1
- package/dist/uniswap/platformservice/v1/userService_pb.d.ts +58 -1
- package/dist/uniswap/platformservice/v1/userService_pb.js +68 -3
- package/package.json +1 -1
|
@@ -1,5 +1,77 @@
|
|
|
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
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Application error codes for the API Key service (dev portal / API clients).
|
|
28
|
+
* FE uses code only; no message field to avoid leaking sensitive information.
|
|
29
|
+
*
|
|
30
|
+
* @generated from message uniswap.platformservice.v1.ApiKeyServiceError
|
|
31
|
+
*/
|
|
32
|
+
export declare class ApiKeyServiceError extends Message<ApiKeyServiceError> {
|
|
33
|
+
/**
|
|
34
|
+
* @generated from field: uniswap.platformservice.v1.ApiKeyServiceError.Code code = 1;
|
|
35
|
+
*/
|
|
36
|
+
code: ApiKeyServiceError_Code;
|
|
37
|
+
constructor(data?: PartialMessage<ApiKeyServiceError>);
|
|
38
|
+
static readonly runtime: typeof proto3;
|
|
39
|
+
static readonly typeName = "uniswap.platformservice.v1.ApiKeyServiceError";
|
|
40
|
+
static readonly fields: FieldList;
|
|
41
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApiKeyServiceError;
|
|
42
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApiKeyServiceError;
|
|
43
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApiKeyServiceError;
|
|
44
|
+
static equals(a: ApiKeyServiceError | PlainMessage<ApiKeyServiceError> | undefined, b: ApiKeyServiceError | PlainMessage<ApiKeyServiceError> | undefined): boolean;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @generated from enum uniswap.platformservice.v1.ApiKeyServiceError.Code
|
|
48
|
+
*/
|
|
49
|
+
export declare enum ApiKeyServiceError_Code {
|
|
50
|
+
/**
|
|
51
|
+
* @generated from enum value: API_KEY_ERROR_UNSPECIFIED = 0;
|
|
52
|
+
*/
|
|
53
|
+
API_KEY_ERROR_UNSPECIFIED = 0,
|
|
54
|
+
/**
|
|
55
|
+
* @generated from enum value: INVALID_REQUEST = 1;
|
|
56
|
+
*/
|
|
57
|
+
INVALID_REQUEST = 1,
|
|
58
|
+
/**
|
|
59
|
+
* @generated from enum value: ORGANIZATION_KEY_LIMIT_REACHED = 10;
|
|
60
|
+
*/
|
|
61
|
+
ORGANIZATION_KEY_LIMIT_REACHED = 10,
|
|
62
|
+
/**
|
|
63
|
+
* @generated from enum value: UNAUTHORIZED_ACCESS = 11;
|
|
64
|
+
*/
|
|
65
|
+
UNAUTHORIZED_ACCESS = 11,
|
|
66
|
+
/**
|
|
67
|
+
* @generated from enum value: API_KEY_NOT_ACTIVE = 20;
|
|
68
|
+
*/
|
|
69
|
+
API_KEY_NOT_ACTIVE = 20,
|
|
70
|
+
/**
|
|
71
|
+
* @generated from enum value: API_KEY_NOT_FOUND = 40;
|
|
72
|
+
*/
|
|
73
|
+
API_KEY_NOT_FOUND = 40
|
|
74
|
+
}
|
|
3
75
|
/**
|
|
4
76
|
* Rate limit configuration
|
|
5
77
|
*
|
|
@@ -79,6 +151,10 @@ export declare class IntrospectResponse extends Message<IntrospectResponse> {
|
|
|
79
151
|
* @generated from field: string organization_id = 4;
|
|
80
152
|
*/
|
|
81
153
|
organizationId: string;
|
|
154
|
+
/**
|
|
155
|
+
* @generated from field: string analytics_id = 5;
|
|
156
|
+
*/
|
|
157
|
+
analyticsId: string;
|
|
82
158
|
constructor(data?: PartialMessage<IntrospectResponse>);
|
|
83
159
|
static readonly runtime: typeof proto3;
|
|
84
160
|
static readonly typeName = "uniswap.platformservice.v1.IntrospectResponse";
|
|
@@ -123,6 +199,12 @@ export declare class CreateApiKeyResponse extends Message<CreateApiKeyResponse>
|
|
|
123
199
|
* @generated from field: string wrapped_id = 2;
|
|
124
200
|
*/
|
|
125
201
|
wrappedId: string;
|
|
202
|
+
/**
|
|
203
|
+
* When set, request failed with this application error (frontend can parse directly).
|
|
204
|
+
*
|
|
205
|
+
* @generated from field: optional uniswap.platformservice.v1.ApiKeyServiceError error = 3;
|
|
206
|
+
*/
|
|
207
|
+
error?: ApiKeyServiceError;
|
|
126
208
|
constructor(data?: PartialMessage<CreateApiKeyResponse>);
|
|
127
209
|
static readonly runtime: typeof proto3;
|
|
128
210
|
static readonly typeName = "uniswap.platformservice.v1.CreateApiKeyResponse";
|
|
@@ -186,6 +268,10 @@ export declare class ModifyApiKeyRequest extends Message<ModifyApiKeyRequest> {
|
|
|
186
268
|
* @generated from message uniswap.platformservice.v1.ModifyApiKeyResponse
|
|
187
269
|
*/
|
|
188
270
|
export declare class ModifyApiKeyResponse extends Message<ModifyApiKeyResponse> {
|
|
271
|
+
/**
|
|
272
|
+
* @generated from field: optional uniswap.platformservice.v1.ApiKeyServiceError error = 1;
|
|
273
|
+
*/
|
|
274
|
+
error?: ApiKeyServiceError;
|
|
189
275
|
constructor(data?: PartialMessage<ModifyApiKeyResponse>);
|
|
190
276
|
static readonly runtime: typeof proto3;
|
|
191
277
|
static readonly typeName = "uniswap.platformservice.v1.ModifyApiKeyResponse";
|
|
@@ -220,6 +306,10 @@ export declare class DeleteApiKeyRequest extends Message<DeleteApiKeyRequest> {
|
|
|
220
306
|
* @generated from message uniswap.platformservice.v1.DeleteApiKeyResponse
|
|
221
307
|
*/
|
|
222
308
|
export declare class DeleteApiKeyResponse extends Message<DeleteApiKeyResponse> {
|
|
309
|
+
/**
|
|
310
|
+
* @generated from field: optional uniswap.platformservice.v1.ApiKeyServiceError error = 1;
|
|
311
|
+
*/
|
|
312
|
+
error?: ApiKeyServiceError;
|
|
223
313
|
constructor(data?: PartialMessage<DeleteApiKeyResponse>);
|
|
224
314
|
static readonly runtime: typeof proto3;
|
|
225
315
|
static readonly typeName = "uniswap.platformservice.v1.DeleteApiKeyResponse";
|
|
@@ -299,6 +389,10 @@ export declare class ListApiKeyResponse extends Message<ListApiKeyResponse> {
|
|
|
299
389
|
* @generated from field: repeated uniswap.platformservice.v1.ApiKeyDataStruct api_key_data_list = 1;
|
|
300
390
|
*/
|
|
301
391
|
apiKeyDataList: ApiKeyDataStruct[];
|
|
392
|
+
/**
|
|
393
|
+
* @generated from field: optional uniswap.platformservice.v1.ApiKeyServiceError error = 2;
|
|
394
|
+
*/
|
|
395
|
+
error?: ApiKeyServiceError;
|
|
302
396
|
constructor(data?: PartialMessage<ListApiKeyResponse>);
|
|
303
397
|
static readonly runtime: typeof proto3;
|
|
304
398
|
static readonly typeName = "uniswap.platformservice.v1.ListApiKeyResponse";
|
|
@@ -326,6 +420,10 @@ export declare class InternalCreateApiKeyRequest extends Message<InternalCreateA
|
|
|
326
420
|
* @generated from field: optional uniswap.platformservice.v1.RateLimitConfig rate_limit_config = 3;
|
|
327
421
|
*/
|
|
328
422
|
rateLimitConfig?: RateLimitConfig;
|
|
423
|
+
/**
|
|
424
|
+
* @generated from field: uniswap.platformservice.v1.ApiKeyTier tier = 4;
|
|
425
|
+
*/
|
|
426
|
+
tier: ApiKeyTier;
|
|
329
427
|
constructor(data?: PartialMessage<InternalCreateApiKeyRequest>);
|
|
330
428
|
static readonly runtime: typeof proto3;
|
|
331
429
|
static readonly typeName = "uniswap.platformservice.v1.InternalCreateApiKeyRequest";
|
|
@@ -3,6 +3,109 @@
|
|
|
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
|
+
]);
|
|
37
|
+
/**
|
|
38
|
+
* Application error codes for the API Key service (dev portal / API clients).
|
|
39
|
+
* FE uses code only; no message field to avoid leaking sensitive information.
|
|
40
|
+
*
|
|
41
|
+
* @generated from message uniswap.platformservice.v1.ApiKeyServiceError
|
|
42
|
+
*/
|
|
43
|
+
export class ApiKeyServiceError extends Message {
|
|
44
|
+
constructor(data) {
|
|
45
|
+
super();
|
|
46
|
+
/**
|
|
47
|
+
* @generated from field: uniswap.platformservice.v1.ApiKeyServiceError.Code code = 1;
|
|
48
|
+
*/
|
|
49
|
+
this.code = ApiKeyServiceError_Code.API_KEY_ERROR_UNSPECIFIED;
|
|
50
|
+
proto3.util.initPartial(data, this);
|
|
51
|
+
}
|
|
52
|
+
static fromBinary(bytes, options) {
|
|
53
|
+
return new ApiKeyServiceError().fromBinary(bytes, options);
|
|
54
|
+
}
|
|
55
|
+
static fromJson(jsonValue, options) {
|
|
56
|
+
return new ApiKeyServiceError().fromJson(jsonValue, options);
|
|
57
|
+
}
|
|
58
|
+
static fromJsonString(jsonString, options) {
|
|
59
|
+
return new ApiKeyServiceError().fromJsonString(jsonString, options);
|
|
60
|
+
}
|
|
61
|
+
static equals(a, b) {
|
|
62
|
+
return proto3.util.equals(ApiKeyServiceError, a, b);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
ApiKeyServiceError.runtime = proto3;
|
|
66
|
+
ApiKeyServiceError.typeName = "uniswap.platformservice.v1.ApiKeyServiceError";
|
|
67
|
+
ApiKeyServiceError.fields = proto3.util.newFieldList(() => [
|
|
68
|
+
{ no: 1, name: "code", kind: "enum", T: proto3.getEnumType(ApiKeyServiceError_Code) },
|
|
69
|
+
]);
|
|
70
|
+
/**
|
|
71
|
+
* @generated from enum uniswap.platformservice.v1.ApiKeyServiceError.Code
|
|
72
|
+
*/
|
|
73
|
+
export var ApiKeyServiceError_Code;
|
|
74
|
+
(function (ApiKeyServiceError_Code) {
|
|
75
|
+
/**
|
|
76
|
+
* @generated from enum value: API_KEY_ERROR_UNSPECIFIED = 0;
|
|
77
|
+
*/
|
|
78
|
+
ApiKeyServiceError_Code[ApiKeyServiceError_Code["API_KEY_ERROR_UNSPECIFIED"] = 0] = "API_KEY_ERROR_UNSPECIFIED";
|
|
79
|
+
/**
|
|
80
|
+
* @generated from enum value: INVALID_REQUEST = 1;
|
|
81
|
+
*/
|
|
82
|
+
ApiKeyServiceError_Code[ApiKeyServiceError_Code["INVALID_REQUEST"] = 1] = "INVALID_REQUEST";
|
|
83
|
+
/**
|
|
84
|
+
* @generated from enum value: ORGANIZATION_KEY_LIMIT_REACHED = 10;
|
|
85
|
+
*/
|
|
86
|
+
ApiKeyServiceError_Code[ApiKeyServiceError_Code["ORGANIZATION_KEY_LIMIT_REACHED"] = 10] = "ORGANIZATION_KEY_LIMIT_REACHED";
|
|
87
|
+
/**
|
|
88
|
+
* @generated from enum value: UNAUTHORIZED_ACCESS = 11;
|
|
89
|
+
*/
|
|
90
|
+
ApiKeyServiceError_Code[ApiKeyServiceError_Code["UNAUTHORIZED_ACCESS"] = 11] = "UNAUTHORIZED_ACCESS";
|
|
91
|
+
/**
|
|
92
|
+
* @generated from enum value: API_KEY_NOT_ACTIVE = 20;
|
|
93
|
+
*/
|
|
94
|
+
ApiKeyServiceError_Code[ApiKeyServiceError_Code["API_KEY_NOT_ACTIVE"] = 20] = "API_KEY_NOT_ACTIVE";
|
|
95
|
+
/**
|
|
96
|
+
* @generated from enum value: API_KEY_NOT_FOUND = 40;
|
|
97
|
+
*/
|
|
98
|
+
ApiKeyServiceError_Code[ApiKeyServiceError_Code["API_KEY_NOT_FOUND"] = 40] = "API_KEY_NOT_FOUND";
|
|
99
|
+
})(ApiKeyServiceError_Code || (ApiKeyServiceError_Code = {}));
|
|
100
|
+
// Retrieve enum metadata with: proto3.getEnumType(ApiKeyServiceError_Code)
|
|
101
|
+
proto3.util.setEnumType(ApiKeyServiceError_Code, "uniswap.platformservice.v1.ApiKeyServiceError.Code", [
|
|
102
|
+
{ no: 0, name: "API_KEY_ERROR_UNSPECIFIED" },
|
|
103
|
+
{ no: 1, name: "INVALID_REQUEST" },
|
|
104
|
+
{ no: 10, name: "ORGANIZATION_KEY_LIMIT_REACHED" },
|
|
105
|
+
{ no: 11, name: "UNAUTHORIZED_ACCESS" },
|
|
106
|
+
{ no: 20, name: "API_KEY_NOT_ACTIVE" },
|
|
107
|
+
{ no: 40, name: "API_KEY_NOT_FOUND" },
|
|
108
|
+
]);
|
|
6
109
|
/**
|
|
7
110
|
* Rate limit configuration
|
|
8
111
|
*
|
|
@@ -112,6 +215,10 @@ export class IntrospectResponse extends Message {
|
|
|
112
215
|
* @generated from field: string organization_id = 4;
|
|
113
216
|
*/
|
|
114
217
|
this.organizationId = "";
|
|
218
|
+
/**
|
|
219
|
+
* @generated from field: string analytics_id = 5;
|
|
220
|
+
*/
|
|
221
|
+
this.analyticsId = "";
|
|
115
222
|
proto3.util.initPartial(data, this);
|
|
116
223
|
}
|
|
117
224
|
static fromBinary(bytes, options) {
|
|
@@ -134,6 +241,7 @@ IntrospectResponse.fields = proto3.util.newFieldList(() => [
|
|
|
134
241
|
{ no: 2, name: "result", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
135
242
|
{ no: 3, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
136
243
|
{ no: 4, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
244
|
+
{ no: 5, name: "analytics_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
137
245
|
]);
|
|
138
246
|
/**
|
|
139
247
|
* Create API Key request/response
|
|
@@ -202,6 +310,7 @@ CreateApiKeyResponse.typeName = "uniswap.platformservice.v1.CreateApiKeyResponse
|
|
|
202
310
|
CreateApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
203
311
|
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
204
312
|
{ no: 2, name: "wrapped_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
313
|
+
{ no: 3, name: "error", kind: "message", T: ApiKeyServiceError, opt: true },
|
|
205
314
|
]);
|
|
206
315
|
/**
|
|
207
316
|
* @generated from message uniswap.platformservice.v1.ModificationData
|
|
@@ -289,7 +398,9 @@ export class ModifyApiKeyResponse extends Message {
|
|
|
289
398
|
}
|
|
290
399
|
ModifyApiKeyResponse.runtime = proto3;
|
|
291
400
|
ModifyApiKeyResponse.typeName = "uniswap.platformservice.v1.ModifyApiKeyResponse";
|
|
292
|
-
ModifyApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
401
|
+
ModifyApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
402
|
+
{ no: 1, name: "error", kind: "message", T: ApiKeyServiceError, opt: true },
|
|
403
|
+
]);
|
|
293
404
|
/**
|
|
294
405
|
* Delete API Key request/response
|
|
295
406
|
*
|
|
@@ -347,7 +458,9 @@ export class DeleteApiKeyResponse extends Message {
|
|
|
347
458
|
}
|
|
348
459
|
DeleteApiKeyResponse.runtime = proto3;
|
|
349
460
|
DeleteApiKeyResponse.typeName = "uniswap.platformservice.v1.DeleteApiKeyResponse";
|
|
350
|
-
DeleteApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
461
|
+
DeleteApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
462
|
+
{ no: 1, name: "error", kind: "message", T: ApiKeyServiceError, opt: true },
|
|
463
|
+
]);
|
|
351
464
|
/**
|
|
352
465
|
* @generated from message uniswap.platformservice.v1.ApiKeyDataStruct
|
|
353
466
|
*/
|
|
@@ -452,6 +565,7 @@ ListApiKeyResponse.runtime = proto3;
|
|
|
452
565
|
ListApiKeyResponse.typeName = "uniswap.platformservice.v1.ListApiKeyResponse";
|
|
453
566
|
ListApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
454
567
|
{ no: 1, name: "api_key_data_list", kind: "message", T: ApiKeyDataStruct, repeated: true },
|
|
568
|
+
{ no: 2, name: "error", kind: "message", T: ApiKeyServiceError, opt: true },
|
|
455
569
|
]);
|
|
456
570
|
/**
|
|
457
571
|
* Internal Create API Key request/response (VPN-restricted admin endpoint)
|
|
@@ -469,6 +583,10 @@ export class InternalCreateApiKeyRequest extends Message {
|
|
|
469
583
|
* @generated from field: string name = 2;
|
|
470
584
|
*/
|
|
471
585
|
this.name = "";
|
|
586
|
+
/**
|
|
587
|
+
* @generated from field: uniswap.platformservice.v1.ApiKeyTier tier = 4;
|
|
588
|
+
*/
|
|
589
|
+
this.tier = ApiKeyTier.UNSPECIFIED;
|
|
472
590
|
proto3.util.initPartial(data, this);
|
|
473
591
|
}
|
|
474
592
|
static fromBinary(bytes, options) {
|
|
@@ -490,6 +608,7 @@ InternalCreateApiKeyRequest.fields = proto3.util.newFieldList(() => [
|
|
|
490
608
|
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
491
609
|
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
492
610
|
{ no: 3, name: "rate_limit_config", kind: "message", T: RateLimitConfig, opt: true },
|
|
611
|
+
{ no: 4, name: "tier", kind: "enum", T: proto3.getEnumType(ApiKeyTier) },
|
|
493
612
|
]);
|
|
494
613
|
/**
|
|
495
614
|
* @generated from message uniswap.platformservice.v1.InternalCreateApiKeyResponse
|
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from message uniswap.platformservice.v1.OrganizationServiceError
|
|
5
|
+
*/
|
|
6
|
+
export declare class OrganizationServiceError extends Message<OrganizationServiceError> {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from field: uniswap.platformservice.v1.OrganizationServiceError.Code code = 1;
|
|
9
|
+
*/
|
|
10
|
+
code: OrganizationServiceError_Code;
|
|
11
|
+
constructor(data?: PartialMessage<OrganizationServiceError>);
|
|
12
|
+
static readonly runtime: typeof proto3;
|
|
13
|
+
static readonly typeName = "uniswap.platformservice.v1.OrganizationServiceError";
|
|
14
|
+
static readonly fields: FieldList;
|
|
15
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OrganizationServiceError;
|
|
16
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OrganizationServiceError;
|
|
17
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OrganizationServiceError;
|
|
18
|
+
static equals(a: OrganizationServiceError | PlainMessage<OrganizationServiceError> | undefined, b: OrganizationServiceError | PlainMessage<OrganizationServiceError> | undefined): boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum uniswap.platformservice.v1.OrganizationServiceError.Code
|
|
22
|
+
*/
|
|
23
|
+
export declare enum OrganizationServiceError_Code {
|
|
24
|
+
/**
|
|
25
|
+
* @generated from enum value: ORGANIZATION_ERROR_UNSPECIFIED = 0;
|
|
26
|
+
*/
|
|
27
|
+
ORGANIZATION_ERROR_UNSPECIFIED = 0,
|
|
28
|
+
/**
|
|
29
|
+
* @generated from enum value: USER_ALREADY_BELONGS_TO_ORGANIZATION = 1;
|
|
30
|
+
*/
|
|
31
|
+
USER_ALREADY_BELONGS_TO_ORGANIZATION = 1,
|
|
32
|
+
/**
|
|
33
|
+
* @generated from enum value: ORG_USER_ID_REQUIRED = 2;
|
|
34
|
+
*/
|
|
35
|
+
ORG_USER_ID_REQUIRED = 2,
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum value: ORG_USER_NOT_FOUND = 3;
|
|
38
|
+
*/
|
|
39
|
+
ORG_USER_NOT_FOUND = 3,
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum value: USER_HAS_NO_ORGANIZATION = 4;
|
|
42
|
+
*/
|
|
43
|
+
USER_HAS_NO_ORGANIZATION = 4,
|
|
44
|
+
/**
|
|
45
|
+
* @generated from enum value: ORGANIZATION_NOT_FOUND = 5;
|
|
46
|
+
*/
|
|
47
|
+
ORGANIZATION_NOT_FOUND = 5
|
|
48
|
+
}
|
|
3
49
|
/**
|
|
4
50
|
* @generated from message uniswap.platformservice.v1.CreateOrganizationRequest
|
|
5
51
|
*/
|
|
@@ -21,6 +67,10 @@ export declare class CreateOrganizationRequest extends Message<CreateOrganizatio
|
|
|
21
67
|
* @generated from message uniswap.platformservice.v1.CreateOrganizationResponse
|
|
22
68
|
*/
|
|
23
69
|
export declare class CreateOrganizationResponse extends Message<CreateOrganizationResponse> {
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: optional uniswap.platformservice.v1.OrganizationServiceError error = 1;
|
|
72
|
+
*/
|
|
73
|
+
error?: OrganizationServiceError;
|
|
24
74
|
constructor(data?: PartialMessage<CreateOrganizationResponse>);
|
|
25
75
|
static readonly runtime: typeof proto3;
|
|
26
76
|
static readonly typeName = "uniswap.platformservice.v1.CreateOrganizationResponse";
|
|
@@ -69,6 +119,10 @@ export declare class GetOrganizationResponse extends Message<GetOrganizationResp
|
|
|
69
119
|
* @generated from field: optional bool archived = 5;
|
|
70
120
|
*/
|
|
71
121
|
archived?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* @generated from field: optional uniswap.platformservice.v1.OrganizationServiceError error = 6;
|
|
124
|
+
*/
|
|
125
|
+
error?: OrganizationServiceError;
|
|
72
126
|
constructor(data?: PartialMessage<GetOrganizationResponse>);
|
|
73
127
|
static readonly runtime: typeof proto3;
|
|
74
128
|
static readonly typeName = "uniswap.platformservice.v1.GetOrganizationResponse";
|
|
@@ -3,6 +3,75 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from message uniswap.platformservice.v1.OrganizationServiceError
|
|
8
|
+
*/
|
|
9
|
+
export class OrganizationServiceError extends Message {
|
|
10
|
+
constructor(data) {
|
|
11
|
+
super();
|
|
12
|
+
/**
|
|
13
|
+
* @generated from field: uniswap.platformservice.v1.OrganizationServiceError.Code code = 1;
|
|
14
|
+
*/
|
|
15
|
+
this.code = OrganizationServiceError_Code.ORGANIZATION_ERROR_UNSPECIFIED;
|
|
16
|
+
proto3.util.initPartial(data, this);
|
|
17
|
+
}
|
|
18
|
+
static fromBinary(bytes, options) {
|
|
19
|
+
return new OrganizationServiceError().fromBinary(bytes, options);
|
|
20
|
+
}
|
|
21
|
+
static fromJson(jsonValue, options) {
|
|
22
|
+
return new OrganizationServiceError().fromJson(jsonValue, options);
|
|
23
|
+
}
|
|
24
|
+
static fromJsonString(jsonString, options) {
|
|
25
|
+
return new OrganizationServiceError().fromJsonString(jsonString, options);
|
|
26
|
+
}
|
|
27
|
+
static equals(a, b) {
|
|
28
|
+
return proto3.util.equals(OrganizationServiceError, a, b);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
OrganizationServiceError.runtime = proto3;
|
|
32
|
+
OrganizationServiceError.typeName = "uniswap.platformservice.v1.OrganizationServiceError";
|
|
33
|
+
OrganizationServiceError.fields = proto3.util.newFieldList(() => [
|
|
34
|
+
{ no: 1, name: "code", kind: "enum", T: proto3.getEnumType(OrganizationServiceError_Code) },
|
|
35
|
+
]);
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum uniswap.platformservice.v1.OrganizationServiceError.Code
|
|
38
|
+
*/
|
|
39
|
+
export var OrganizationServiceError_Code;
|
|
40
|
+
(function (OrganizationServiceError_Code) {
|
|
41
|
+
/**
|
|
42
|
+
* @generated from enum value: ORGANIZATION_ERROR_UNSPECIFIED = 0;
|
|
43
|
+
*/
|
|
44
|
+
OrganizationServiceError_Code[OrganizationServiceError_Code["ORGANIZATION_ERROR_UNSPECIFIED"] = 0] = "ORGANIZATION_ERROR_UNSPECIFIED";
|
|
45
|
+
/**
|
|
46
|
+
* @generated from enum value: USER_ALREADY_BELONGS_TO_ORGANIZATION = 1;
|
|
47
|
+
*/
|
|
48
|
+
OrganizationServiceError_Code[OrganizationServiceError_Code["USER_ALREADY_BELONGS_TO_ORGANIZATION"] = 1] = "USER_ALREADY_BELONGS_TO_ORGANIZATION";
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: ORG_USER_ID_REQUIRED = 2;
|
|
51
|
+
*/
|
|
52
|
+
OrganizationServiceError_Code[OrganizationServiceError_Code["ORG_USER_ID_REQUIRED"] = 2] = "ORG_USER_ID_REQUIRED";
|
|
53
|
+
/**
|
|
54
|
+
* @generated from enum value: ORG_USER_NOT_FOUND = 3;
|
|
55
|
+
*/
|
|
56
|
+
OrganizationServiceError_Code[OrganizationServiceError_Code["ORG_USER_NOT_FOUND"] = 3] = "ORG_USER_NOT_FOUND";
|
|
57
|
+
/**
|
|
58
|
+
* @generated from enum value: USER_HAS_NO_ORGANIZATION = 4;
|
|
59
|
+
*/
|
|
60
|
+
OrganizationServiceError_Code[OrganizationServiceError_Code["USER_HAS_NO_ORGANIZATION"] = 4] = "USER_HAS_NO_ORGANIZATION";
|
|
61
|
+
/**
|
|
62
|
+
* @generated from enum value: ORGANIZATION_NOT_FOUND = 5;
|
|
63
|
+
*/
|
|
64
|
+
OrganizationServiceError_Code[OrganizationServiceError_Code["ORGANIZATION_NOT_FOUND"] = 5] = "ORGANIZATION_NOT_FOUND";
|
|
65
|
+
})(OrganizationServiceError_Code || (OrganizationServiceError_Code = {}));
|
|
66
|
+
// Retrieve enum metadata with: proto3.getEnumType(OrganizationServiceError_Code)
|
|
67
|
+
proto3.util.setEnumType(OrganizationServiceError_Code, "uniswap.platformservice.v1.OrganizationServiceError.Code", [
|
|
68
|
+
{ no: 0, name: "ORGANIZATION_ERROR_UNSPECIFIED" },
|
|
69
|
+
{ no: 1, name: "USER_ALREADY_BELONGS_TO_ORGANIZATION" },
|
|
70
|
+
{ no: 2, name: "ORG_USER_ID_REQUIRED" },
|
|
71
|
+
{ no: 3, name: "ORG_USER_NOT_FOUND" },
|
|
72
|
+
{ no: 4, name: "USER_HAS_NO_ORGANIZATION" },
|
|
73
|
+
{ no: 5, name: "ORGANIZATION_NOT_FOUND" },
|
|
74
|
+
]);
|
|
6
75
|
/**
|
|
7
76
|
* @generated from message uniswap.platformservice.v1.CreateOrganizationRequest
|
|
8
77
|
*/
|
|
@@ -56,7 +125,9 @@ export class CreateOrganizationResponse extends Message {
|
|
|
56
125
|
}
|
|
57
126
|
CreateOrganizationResponse.runtime = proto3;
|
|
58
127
|
CreateOrganizationResponse.typeName = "uniswap.platformservice.v1.CreateOrganizationResponse";
|
|
59
|
-
CreateOrganizationResponse.fields = proto3.util.newFieldList(() => [
|
|
128
|
+
CreateOrganizationResponse.fields = proto3.util.newFieldList(() => [
|
|
129
|
+
{ no: 1, name: "error", kind: "message", T: OrganizationServiceError, opt: true },
|
|
130
|
+
]);
|
|
60
131
|
/**
|
|
61
132
|
* @generated from message uniswap.platformservice.v1.GetOrganizationRequest
|
|
62
133
|
*/
|
|
@@ -126,4 +197,5 @@ GetOrganizationResponse.fields = proto3.util.newFieldList(() => [
|
|
|
126
197
|
{ no: 3, name: "max_api_keys", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
127
198
|
{ no: 4, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
128
199
|
{ no: 5, name: "archived", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
200
|
+
{ no: 6, name: "error", kind: "message", T: OrganizationServiceError, opt: true },
|
|
129
201
|
]);
|
|
@@ -294,6 +294,40 @@ export declare class GitHubData extends Message<GitHubData> {
|
|
|
294
294
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GitHubData;
|
|
295
295
|
static equals(a: GitHubData | PlainMessage<GitHubData> | undefined, b: GitHubData | PlainMessage<GitHubData> | undefined): boolean;
|
|
296
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
|
+
}
|
|
297
331
|
/**
|
|
298
332
|
* @generated from message uniswap.platformservice.v1.ChallengeResponse
|
|
299
333
|
*/
|
|
@@ -320,7 +354,7 @@ export declare class ChallengeResponse extends Message<ChallengeResponse> {
|
|
|
320
354
|
[key: string]: string;
|
|
321
355
|
};
|
|
322
356
|
/**
|
|
323
|
-
*
|
|
357
|
+
* Type-safe challenge-specific data
|
|
324
358
|
*
|
|
325
359
|
* @generated from oneof uniswap.platformservice.v1.ChallengeResponse.challenge_data
|
|
326
360
|
*/
|
|
@@ -346,6 +380,13 @@ export declare class ChallengeResponse extends Message<ChallengeResponse> {
|
|
|
346
380
|
case: undefined;
|
|
347
381
|
value?: undefined;
|
|
348
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;
|
|
349
390
|
constructor(data?: PartialMessage<ChallengeResponse>);
|
|
350
391
|
static readonly runtime: typeof proto3;
|
|
351
392
|
static readonly typeName = "uniswap.platformservice.v1.ChallengeResponse";
|
|
@@ -433,6 +433,59 @@ GitHubData.typeName = "uniswap.platformservice.v1.GitHubData";
|
|
|
433
433
|
GitHubData.fields = proto3.util.newFieldList(() => [
|
|
434
434
|
{ no: 1, name: "authorize_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
435
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
|
+
]);
|
|
436
489
|
/**
|
|
437
490
|
* @generated from message uniswap.platformservice.v1.ChallengeResponse
|
|
438
491
|
*/
|
|
@@ -459,7 +512,7 @@ export class ChallengeResponse extends Message {
|
|
|
459
512
|
*/
|
|
460
513
|
this.extra = {};
|
|
461
514
|
/**
|
|
462
|
-
*
|
|
515
|
+
* Type-safe challenge-specific data
|
|
463
516
|
*
|
|
464
517
|
* @generated from oneof uniswap.platformservice.v1.ChallengeResponse.challenge_data
|
|
465
518
|
*/
|
|
@@ -488,6 +541,7 @@ ChallengeResponse.fields = proto3.util.newFieldList(() => [
|
|
|
488
541
|
{ no: 4, name: "turnstile", kind: "message", T: TurnstileData, oneof: "challenge_data" },
|
|
489
542
|
{ no: 5, name: "hashcash", kind: "message", T: HashCashData, oneof: "challenge_data" },
|
|
490
543
|
{ no: 6, name: "github", kind: "message", T: GitHubData, oneof: "challenge_data" },
|
|
544
|
+
{ no: 7, name: "failure", kind: "message", T: ChallengeFailure, opt: true },
|
|
491
545
|
]);
|
|
492
546
|
/**
|
|
493
547
|
* @generated from message uniswap.platformservice.v1.VerifyRequest
|
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from message uniswap.platformservice.v1.UserServiceError
|
|
5
|
+
*/
|
|
6
|
+
export declare class UserServiceError extends Message<UserServiceError> {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from field: uniswap.platformservice.v1.UserServiceError.Code code = 1;
|
|
9
|
+
*/
|
|
10
|
+
code: UserServiceError_Code;
|
|
11
|
+
constructor(data?: PartialMessage<UserServiceError>);
|
|
12
|
+
static readonly runtime: typeof proto3;
|
|
13
|
+
static readonly typeName = "uniswap.platformservice.v1.UserServiceError";
|
|
14
|
+
static readonly fields: FieldList;
|
|
15
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserServiceError;
|
|
16
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserServiceError;
|
|
17
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserServiceError;
|
|
18
|
+
static equals(a: UserServiceError | PlainMessage<UserServiceError> | undefined, b: UserServiceError | PlainMessage<UserServiceError> | undefined): boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum uniswap.platformservice.v1.UserServiceError.Code
|
|
22
|
+
*/
|
|
23
|
+
export declare enum UserServiceError_Code {
|
|
24
|
+
/**
|
|
25
|
+
* @generated from enum value: USER_ERROR_UNSPECIFIED = 0;
|
|
26
|
+
*/
|
|
27
|
+
USER_ERROR_UNSPECIFIED = 0,
|
|
28
|
+
/**
|
|
29
|
+
* @generated from enum value: EMAIL_INVALID = 1;
|
|
30
|
+
*/
|
|
31
|
+
EMAIL_INVALID = 1,
|
|
32
|
+
/**
|
|
33
|
+
* @generated from enum value: USER_ALREADY_EXISTS = 2;
|
|
34
|
+
*/
|
|
35
|
+
USER_ALREADY_EXISTS = 2,
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum value: USER_NOT_FOUND = 3;
|
|
38
|
+
*/
|
|
39
|
+
USER_NOT_FOUND = 3
|
|
40
|
+
}
|
|
3
41
|
/**
|
|
4
42
|
* Represents an agreement
|
|
5
43
|
*
|
|
@@ -60,6 +98,10 @@ export declare class CreateUserResponse extends Message<CreateUserResponse> {
|
|
|
60
98
|
* @generated from field: string user_id = 1;
|
|
61
99
|
*/
|
|
62
100
|
userId: string;
|
|
101
|
+
/**
|
|
102
|
+
* @generated from field: optional uniswap.platformservice.v1.UserServiceError error = 2;
|
|
103
|
+
*/
|
|
104
|
+
error?: UserServiceError;
|
|
63
105
|
constructor(data?: PartialMessage<CreateUserResponse>);
|
|
64
106
|
static readonly runtime: typeof proto3;
|
|
65
107
|
static readonly typeName = "uniswap.platformservice.v1.CreateUserResponse";
|
|
@@ -106,6 +148,10 @@ export declare class ModifyUserRequest extends Message<ModifyUserRequest> {
|
|
|
106
148
|
* @generated from message uniswap.platformservice.v1.ModifyUserResponse
|
|
107
149
|
*/
|
|
108
150
|
export declare class ModifyUserResponse extends Message<ModifyUserResponse> {
|
|
151
|
+
/**
|
|
152
|
+
* @generated from field: optional uniswap.platformservice.v1.UserServiceError error = 1;
|
|
153
|
+
*/
|
|
154
|
+
error?: UserServiceError;
|
|
109
155
|
constructor(data?: PartialMessage<ModifyUserResponse>);
|
|
110
156
|
static readonly runtime: typeof proto3;
|
|
111
157
|
static readonly typeName = "uniswap.platformservice.v1.ModifyUserResponse";
|
|
@@ -177,6 +223,10 @@ export declare class GetUserResponse extends Message<GetUserResponse> {
|
|
|
177
223
|
* @generated from field: uniswap.platformservice.v1.User user = 1;
|
|
178
224
|
*/
|
|
179
225
|
user?: User;
|
|
226
|
+
/**
|
|
227
|
+
* @generated from field: optional uniswap.platformservice.v1.UserServiceError error = 2;
|
|
228
|
+
*/
|
|
229
|
+
error?: UserServiceError;
|
|
180
230
|
constructor(data?: PartialMessage<GetUserResponse>);
|
|
181
231
|
static readonly runtime: typeof proto3;
|
|
182
232
|
static readonly typeName = "uniswap.platformservice.v1.GetUserResponse";
|
|
@@ -207,6 +257,10 @@ export declare class DeleteUserRequest extends Message<DeleteUserRequest> {
|
|
|
207
257
|
* @generated from message uniswap.platformservice.v1.DeleteUserResponse
|
|
208
258
|
*/
|
|
209
259
|
export declare class DeleteUserResponse extends Message<DeleteUserResponse> {
|
|
260
|
+
/**
|
|
261
|
+
* @generated from field: optional uniswap.platformservice.v1.UserServiceError error = 1;
|
|
262
|
+
*/
|
|
263
|
+
error?: UserServiceError;
|
|
210
264
|
constructor(data?: PartialMessage<DeleteUserResponse>);
|
|
211
265
|
static readonly runtime: typeof proto3;
|
|
212
266
|
static readonly typeName = "uniswap.platformservice.v1.DeleteUserResponse";
|
|
@@ -239,7 +293,6 @@ export declare class GetUserByEmailRequest extends Message<GetUserByEmailRequest
|
|
|
239
293
|
}
|
|
240
294
|
/**
|
|
241
295
|
* Response for get user by email
|
|
242
|
-
* Throws NotFound if user does not exist
|
|
243
296
|
*
|
|
244
297
|
* @generated from message uniswap.platformservice.v1.GetUserByEmailResponse
|
|
245
298
|
*/
|
|
@@ -250,6 +303,10 @@ export declare class GetUserByEmailResponse extends Message<GetUserByEmailRespon
|
|
|
250
303
|
* @generated from field: uniswap.platformservice.v1.User user = 1;
|
|
251
304
|
*/
|
|
252
305
|
user?: User;
|
|
306
|
+
/**
|
|
307
|
+
* @generated from field: optional uniswap.platformservice.v1.UserServiceError error = 2;
|
|
308
|
+
*/
|
|
309
|
+
error?: UserServiceError;
|
|
253
310
|
constructor(data?: PartialMessage<GetUserByEmailResponse>);
|
|
254
311
|
static readonly runtime: typeof proto3;
|
|
255
312
|
static readonly typeName = "uniswap.platformservice.v1.GetUserByEmailResponse";
|
|
@@ -3,6 +3,65 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from message uniswap.platformservice.v1.UserServiceError
|
|
8
|
+
*/
|
|
9
|
+
export class UserServiceError extends Message {
|
|
10
|
+
constructor(data) {
|
|
11
|
+
super();
|
|
12
|
+
/**
|
|
13
|
+
* @generated from field: uniswap.platformservice.v1.UserServiceError.Code code = 1;
|
|
14
|
+
*/
|
|
15
|
+
this.code = UserServiceError_Code.USER_ERROR_UNSPECIFIED;
|
|
16
|
+
proto3.util.initPartial(data, this);
|
|
17
|
+
}
|
|
18
|
+
static fromBinary(bytes, options) {
|
|
19
|
+
return new UserServiceError().fromBinary(bytes, options);
|
|
20
|
+
}
|
|
21
|
+
static fromJson(jsonValue, options) {
|
|
22
|
+
return new UserServiceError().fromJson(jsonValue, options);
|
|
23
|
+
}
|
|
24
|
+
static fromJsonString(jsonString, options) {
|
|
25
|
+
return new UserServiceError().fromJsonString(jsonString, options);
|
|
26
|
+
}
|
|
27
|
+
static equals(a, b) {
|
|
28
|
+
return proto3.util.equals(UserServiceError, a, b);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
UserServiceError.runtime = proto3;
|
|
32
|
+
UserServiceError.typeName = "uniswap.platformservice.v1.UserServiceError";
|
|
33
|
+
UserServiceError.fields = proto3.util.newFieldList(() => [
|
|
34
|
+
{ no: 1, name: "code", kind: "enum", T: proto3.getEnumType(UserServiceError_Code) },
|
|
35
|
+
]);
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum uniswap.platformservice.v1.UserServiceError.Code
|
|
38
|
+
*/
|
|
39
|
+
export var UserServiceError_Code;
|
|
40
|
+
(function (UserServiceError_Code) {
|
|
41
|
+
/**
|
|
42
|
+
* @generated from enum value: USER_ERROR_UNSPECIFIED = 0;
|
|
43
|
+
*/
|
|
44
|
+
UserServiceError_Code[UserServiceError_Code["USER_ERROR_UNSPECIFIED"] = 0] = "USER_ERROR_UNSPECIFIED";
|
|
45
|
+
/**
|
|
46
|
+
* @generated from enum value: EMAIL_INVALID = 1;
|
|
47
|
+
*/
|
|
48
|
+
UserServiceError_Code[UserServiceError_Code["EMAIL_INVALID"] = 1] = "EMAIL_INVALID";
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: USER_ALREADY_EXISTS = 2;
|
|
51
|
+
*/
|
|
52
|
+
UserServiceError_Code[UserServiceError_Code["USER_ALREADY_EXISTS"] = 2] = "USER_ALREADY_EXISTS";
|
|
53
|
+
/**
|
|
54
|
+
* @generated from enum value: USER_NOT_FOUND = 3;
|
|
55
|
+
*/
|
|
56
|
+
UserServiceError_Code[UserServiceError_Code["USER_NOT_FOUND"] = 3] = "USER_NOT_FOUND";
|
|
57
|
+
})(UserServiceError_Code || (UserServiceError_Code = {}));
|
|
58
|
+
// Retrieve enum metadata with: proto3.getEnumType(UserServiceError_Code)
|
|
59
|
+
proto3.util.setEnumType(UserServiceError_Code, "uniswap.platformservice.v1.UserServiceError.Code", [
|
|
60
|
+
{ no: 0, name: "USER_ERROR_UNSPECIFIED" },
|
|
61
|
+
{ no: 1, name: "EMAIL_INVALID" },
|
|
62
|
+
{ no: 2, name: "USER_ALREADY_EXISTS" },
|
|
63
|
+
{ no: 3, name: "USER_NOT_FOUND" },
|
|
64
|
+
]);
|
|
6
65
|
/**
|
|
7
66
|
* Represents an agreement
|
|
8
67
|
*
|
|
@@ -106,6 +165,7 @@ CreateUserResponse.runtime = proto3;
|
|
|
106
165
|
CreateUserResponse.typeName = "uniswap.platformservice.v1.CreateUserResponse";
|
|
107
166
|
CreateUserResponse.fields = proto3.util.newFieldList(() => [
|
|
108
167
|
{ no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
168
|
+
{ no: 2, name: "error", kind: "message", T: UserServiceError, opt: true },
|
|
109
169
|
]);
|
|
110
170
|
/**
|
|
111
171
|
* Request to modify an existing user
|
|
@@ -168,7 +228,9 @@ export class ModifyUserResponse extends Message {
|
|
|
168
228
|
}
|
|
169
229
|
ModifyUserResponse.runtime = proto3;
|
|
170
230
|
ModifyUserResponse.typeName = "uniswap.platformservice.v1.ModifyUserResponse";
|
|
171
|
-
ModifyUserResponse.fields = proto3.util.newFieldList(() => [
|
|
231
|
+
ModifyUserResponse.fields = proto3.util.newFieldList(() => [
|
|
232
|
+
{ no: 1, name: "error", kind: "message", T: UserServiceError, opt: true },
|
|
233
|
+
]);
|
|
172
234
|
/**
|
|
173
235
|
* Request to get user details
|
|
174
236
|
*
|
|
@@ -264,6 +326,7 @@ GetUserResponse.runtime = proto3;
|
|
|
264
326
|
GetUserResponse.typeName = "uniswap.platformservice.v1.GetUserResponse";
|
|
265
327
|
GetUserResponse.fields = proto3.util.newFieldList(() => [
|
|
266
328
|
{ no: 1, name: "user", kind: "message", T: User },
|
|
329
|
+
{ no: 2, name: "error", kind: "message", T: UserServiceError, opt: true },
|
|
267
330
|
]);
|
|
268
331
|
/**
|
|
269
332
|
* Request to delete a user account
|
|
@@ -316,7 +379,9 @@ export class DeleteUserResponse extends Message {
|
|
|
316
379
|
}
|
|
317
380
|
DeleteUserResponse.runtime = proto3;
|
|
318
381
|
DeleteUserResponse.typeName = "uniswap.platformservice.v1.DeleteUserResponse";
|
|
319
|
-
DeleteUserResponse.fields = proto3.util.newFieldList(() => [
|
|
382
|
+
DeleteUserResponse.fields = proto3.util.newFieldList(() => [
|
|
383
|
+
{ no: 1, name: "error", kind: "message", T: UserServiceError, opt: true },
|
|
384
|
+
]);
|
|
320
385
|
/**
|
|
321
386
|
* Request to get user by email
|
|
322
387
|
*
|
|
@@ -353,7 +418,6 @@ GetUserByEmailRequest.fields = proto3.util.newFieldList(() => [
|
|
|
353
418
|
]);
|
|
354
419
|
/**
|
|
355
420
|
* Response for get user by email
|
|
356
|
-
* Throws NotFound if user does not exist
|
|
357
421
|
*
|
|
358
422
|
* @generated from message uniswap.platformservice.v1.GetUserByEmailResponse
|
|
359
423
|
*/
|
|
@@ -379,4 +443,5 @@ GetUserByEmailResponse.runtime = proto3;
|
|
|
379
443
|
GetUserByEmailResponse.typeName = "uniswap.platformservice.v1.GetUserByEmailResponse";
|
|
380
444
|
GetUserByEmailResponse.fields = proto3.util.newFieldList(() => [
|
|
381
445
|
{ no: 1, name: "user", kind: "message", T: User },
|
|
446
|
+
{ no: 2, name: "error", kind: "message", T: UserServiceError, opt: true },
|
|
382
447
|
]);
|