@uniswap/client-platform-service 0.0.14 → 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 +67 -0
- package/dist/uniswap/platformservice/v1/apiKeyService_pb.js +80 -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/userService_pb.d.ts +58 -1
- package/dist/uniswap/platformservice/v1/userService_pb.js +68 -3
- package/package.json +1 -1
|
@@ -23,6 +23,55 @@ export declare enum ApiKeyTier {
|
|
|
23
23
|
*/
|
|
24
24
|
DEV_PORTAL = 3
|
|
25
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
|
+
}
|
|
26
75
|
/**
|
|
27
76
|
* Rate limit configuration
|
|
28
77
|
*
|
|
@@ -150,6 +199,12 @@ export declare class CreateApiKeyResponse extends Message<CreateApiKeyResponse>
|
|
|
150
199
|
* @generated from field: string wrapped_id = 2;
|
|
151
200
|
*/
|
|
152
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;
|
|
153
208
|
constructor(data?: PartialMessage<CreateApiKeyResponse>);
|
|
154
209
|
static readonly runtime: typeof proto3;
|
|
155
210
|
static readonly typeName = "uniswap.platformservice.v1.CreateApiKeyResponse";
|
|
@@ -213,6 +268,10 @@ export declare class ModifyApiKeyRequest extends Message<ModifyApiKeyRequest> {
|
|
|
213
268
|
* @generated from message uniswap.platformservice.v1.ModifyApiKeyResponse
|
|
214
269
|
*/
|
|
215
270
|
export declare class ModifyApiKeyResponse extends Message<ModifyApiKeyResponse> {
|
|
271
|
+
/**
|
|
272
|
+
* @generated from field: optional uniswap.platformservice.v1.ApiKeyServiceError error = 1;
|
|
273
|
+
*/
|
|
274
|
+
error?: ApiKeyServiceError;
|
|
216
275
|
constructor(data?: PartialMessage<ModifyApiKeyResponse>);
|
|
217
276
|
static readonly runtime: typeof proto3;
|
|
218
277
|
static readonly typeName = "uniswap.platformservice.v1.ModifyApiKeyResponse";
|
|
@@ -247,6 +306,10 @@ export declare class DeleteApiKeyRequest extends Message<DeleteApiKeyRequest> {
|
|
|
247
306
|
* @generated from message uniswap.platformservice.v1.DeleteApiKeyResponse
|
|
248
307
|
*/
|
|
249
308
|
export declare class DeleteApiKeyResponse extends Message<DeleteApiKeyResponse> {
|
|
309
|
+
/**
|
|
310
|
+
* @generated from field: optional uniswap.platformservice.v1.ApiKeyServiceError error = 1;
|
|
311
|
+
*/
|
|
312
|
+
error?: ApiKeyServiceError;
|
|
250
313
|
constructor(data?: PartialMessage<DeleteApiKeyResponse>);
|
|
251
314
|
static readonly runtime: typeof proto3;
|
|
252
315
|
static readonly typeName = "uniswap.platformservice.v1.DeleteApiKeyResponse";
|
|
@@ -326,6 +389,10 @@ export declare class ListApiKeyResponse extends Message<ListApiKeyResponse> {
|
|
|
326
389
|
* @generated from field: repeated uniswap.platformservice.v1.ApiKeyDataStruct api_key_data_list = 1;
|
|
327
390
|
*/
|
|
328
391
|
apiKeyDataList: ApiKeyDataStruct[];
|
|
392
|
+
/**
|
|
393
|
+
* @generated from field: optional uniswap.platformservice.v1.ApiKeyServiceError error = 2;
|
|
394
|
+
*/
|
|
395
|
+
error?: ApiKeyServiceError;
|
|
329
396
|
constructor(data?: PartialMessage<ListApiKeyResponse>);
|
|
330
397
|
static readonly runtime: typeof proto3;
|
|
331
398
|
static readonly typeName = "uniswap.platformservice.v1.ListApiKeyResponse";
|
|
@@ -34,6 +34,78 @@ proto3.util.setEnumType(ApiKeyTier, "uniswap.platformservice.v1.ApiKeyTier", [
|
|
|
34
34
|
{ no: 2, name: "API_KEY_TIER_PARTNER" },
|
|
35
35
|
{ no: 3, name: "API_KEY_TIER_DEV_PORTAL" },
|
|
36
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
|
+
]);
|
|
37
109
|
/**
|
|
38
110
|
* Rate limit configuration
|
|
39
111
|
*
|
|
@@ -238,6 +310,7 @@ CreateApiKeyResponse.typeName = "uniswap.platformservice.v1.CreateApiKeyResponse
|
|
|
238
310
|
CreateApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
239
311
|
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
240
312
|
{ no: 2, name: "wrapped_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
313
|
+
{ no: 3, name: "error", kind: "message", T: ApiKeyServiceError, opt: true },
|
|
241
314
|
]);
|
|
242
315
|
/**
|
|
243
316
|
* @generated from message uniswap.platformservice.v1.ModificationData
|
|
@@ -325,7 +398,9 @@ export class ModifyApiKeyResponse extends Message {
|
|
|
325
398
|
}
|
|
326
399
|
ModifyApiKeyResponse.runtime = proto3;
|
|
327
400
|
ModifyApiKeyResponse.typeName = "uniswap.platformservice.v1.ModifyApiKeyResponse";
|
|
328
|
-
ModifyApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
401
|
+
ModifyApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
402
|
+
{ no: 1, name: "error", kind: "message", T: ApiKeyServiceError, opt: true },
|
|
403
|
+
]);
|
|
329
404
|
/**
|
|
330
405
|
* Delete API Key request/response
|
|
331
406
|
*
|
|
@@ -383,7 +458,9 @@ export class DeleteApiKeyResponse extends Message {
|
|
|
383
458
|
}
|
|
384
459
|
DeleteApiKeyResponse.runtime = proto3;
|
|
385
460
|
DeleteApiKeyResponse.typeName = "uniswap.platformservice.v1.DeleteApiKeyResponse";
|
|
386
|
-
DeleteApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
461
|
+
DeleteApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
462
|
+
{ no: 1, name: "error", kind: "message", T: ApiKeyServiceError, opt: true },
|
|
463
|
+
]);
|
|
387
464
|
/**
|
|
388
465
|
* @generated from message uniswap.platformservice.v1.ApiKeyDataStruct
|
|
389
466
|
*/
|
|
@@ -488,6 +565,7 @@ ListApiKeyResponse.runtime = proto3;
|
|
|
488
565
|
ListApiKeyResponse.typeName = "uniswap.platformservice.v1.ListApiKeyResponse";
|
|
489
566
|
ListApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
490
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 },
|
|
491
569
|
]);
|
|
492
570
|
/**
|
|
493
571
|
* Internal Create API Key request/response (VPN-restricted admin endpoint)
|
|
@@ -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
|
]);
|
|
@@ -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
|
]);
|