@uniswap/client-platform-service 0.0.14 → 0.0.16
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 +117 -0
- package/dist/uniswap/platformservice/v1/apiKeyService_pb.js +151 -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 +9 -2
- package/dist/uniswap/platformservice/v1/sessionService_pb.js +4 -2
- 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,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
|
|
2
|
+
import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, InternalModifyApiKeyRequest, InternalModifyApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc uniswap.platformservice.v1.ApiKeyService.Introspect
|
|
5
5
|
*/
|
|
@@ -78,3 +78,16 @@ export declare const listApiKeys: {
|
|
|
78
78
|
readonly typeName: "uniswap.platformservice.v1.ApiKeyService";
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
|
+
/**
|
|
82
|
+
* @generated from rpc uniswap.platformservice.v1.ApiKeyService.InternalModifyApiKey
|
|
83
|
+
*/
|
|
84
|
+
export declare const internalModifyApiKey: {
|
|
85
|
+
readonly localName: "internalModifyApiKey";
|
|
86
|
+
readonly name: "InternalModifyApiKey";
|
|
87
|
+
readonly kind: MethodKind.Unary;
|
|
88
|
+
readonly I: typeof InternalModifyApiKeyRequest;
|
|
89
|
+
readonly O: typeof InternalModifyApiKeyResponse;
|
|
90
|
+
readonly service: {
|
|
91
|
+
readonly typeName: "uniswap.platformservice.v1.ApiKeyService";
|
|
92
|
+
};
|
|
93
|
+
};
|
|
@@ -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, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
|
|
6
|
+
import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, InternalModifyApiKeyRequest, InternalModifyApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc uniswap.platformservice.v1.ApiKeyService.Introspect
|
|
9
9
|
*/
|
|
@@ -82,3 +82,16 @@ export const listApiKeys = {
|
|
|
82
82
|
typeName: "uniswap.platformservice.v1.ApiKeyService"
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
+
/**
|
|
86
|
+
* @generated from rpc uniswap.platformservice.v1.ApiKeyService.InternalModifyApiKey
|
|
87
|
+
*/
|
|
88
|
+
export const internalModifyApiKey = {
|
|
89
|
+
localName: "internalModifyApiKey",
|
|
90
|
+
name: "InternalModifyApiKey",
|
|
91
|
+
kind: MethodKind.Unary,
|
|
92
|
+
I: InternalModifyApiKeyRequest,
|
|
93
|
+
O: InternalModifyApiKeyResponse,
|
|
94
|
+
service: {
|
|
95
|
+
typeName: "uniswap.platformservice.v1.ApiKeyService"
|
|
96
|
+
}
|
|
97
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
|
|
1
|
+
import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, InternalModifyApiKeyRequest, InternalModifyApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* Service definition
|
|
@@ -62,5 +62,14 @@ export declare const ApiKeyService: {
|
|
|
62
62
|
readonly O: typeof ListApiKeyResponse;
|
|
63
63
|
readonly kind: MethodKind.Unary;
|
|
64
64
|
};
|
|
65
|
+
/**
|
|
66
|
+
* @generated from rpc uniswap.platformservice.v1.ApiKeyService.InternalModifyApiKey
|
|
67
|
+
*/
|
|
68
|
+
readonly internalModifyApiKey: {
|
|
69
|
+
readonly name: "InternalModifyApiKey";
|
|
70
|
+
readonly I: typeof InternalModifyApiKeyRequest;
|
|
71
|
+
readonly O: typeof InternalModifyApiKeyResponse;
|
|
72
|
+
readonly kind: MethodKind.Unary;
|
|
73
|
+
};
|
|
65
74
|
};
|
|
66
75
|
};
|
|
@@ -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, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
|
|
5
|
+
import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, InternalCreateApiKeyRequest, InternalCreateApiKeyResponse, InternalModifyApiKeyRequest, InternalModifyApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* Service definition
|
|
@@ -66,5 +66,14 @@ export const ApiKeyService = {
|
|
|
66
66
|
O: ListApiKeyResponse,
|
|
67
67
|
kind: MethodKind.Unary,
|
|
68
68
|
},
|
|
69
|
+
/**
|
|
70
|
+
* @generated from rpc uniswap.platformservice.v1.ApiKeyService.InternalModifyApiKey
|
|
71
|
+
*/
|
|
72
|
+
internalModifyApiKey: {
|
|
73
|
+
name: "InternalModifyApiKey",
|
|
74
|
+
I: InternalModifyApiKeyRequest,
|
|
75
|
+
O: InternalModifyApiKeyResponse,
|
|
76
|
+
kind: MethodKind.Unary,
|
|
77
|
+
},
|
|
69
78
|
}
|
|
70
79
|
};
|
|
@@ -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
|
*
|
|
@@ -106,6 +155,10 @@ export declare class IntrospectResponse extends Message<IntrospectResponse> {
|
|
|
106
155
|
* @generated from field: string analytics_id = 5;
|
|
107
156
|
*/
|
|
108
157
|
analyticsId: string;
|
|
158
|
+
/**
|
|
159
|
+
* @generated from field: uniswap.platformservice.v1.ApiKeyTier tier = 6;
|
|
160
|
+
*/
|
|
161
|
+
tier: ApiKeyTier;
|
|
109
162
|
constructor(data?: PartialMessage<IntrospectResponse>);
|
|
110
163
|
static readonly runtime: typeof proto3;
|
|
111
164
|
static readonly typeName = "uniswap.platformservice.v1.IntrospectResponse";
|
|
@@ -150,6 +203,12 @@ export declare class CreateApiKeyResponse extends Message<CreateApiKeyResponse>
|
|
|
150
203
|
* @generated from field: string wrapped_id = 2;
|
|
151
204
|
*/
|
|
152
205
|
wrappedId: string;
|
|
206
|
+
/**
|
|
207
|
+
* When set, request failed with this application error (frontend can parse directly).
|
|
208
|
+
*
|
|
209
|
+
* @generated from field: optional uniswap.platformservice.v1.ApiKeyServiceError error = 3;
|
|
210
|
+
*/
|
|
211
|
+
error?: ApiKeyServiceError;
|
|
153
212
|
constructor(data?: PartialMessage<CreateApiKeyResponse>);
|
|
154
213
|
static readonly runtime: typeof proto3;
|
|
155
214
|
static readonly typeName = "uniswap.platformservice.v1.CreateApiKeyResponse";
|
|
@@ -213,6 +272,10 @@ export declare class ModifyApiKeyRequest extends Message<ModifyApiKeyRequest> {
|
|
|
213
272
|
* @generated from message uniswap.platformservice.v1.ModifyApiKeyResponse
|
|
214
273
|
*/
|
|
215
274
|
export declare class ModifyApiKeyResponse extends Message<ModifyApiKeyResponse> {
|
|
275
|
+
/**
|
|
276
|
+
* @generated from field: optional uniswap.platformservice.v1.ApiKeyServiceError error = 1;
|
|
277
|
+
*/
|
|
278
|
+
error?: ApiKeyServiceError;
|
|
216
279
|
constructor(data?: PartialMessage<ModifyApiKeyResponse>);
|
|
217
280
|
static readonly runtime: typeof proto3;
|
|
218
281
|
static readonly typeName = "uniswap.platformservice.v1.ModifyApiKeyResponse";
|
|
@@ -247,6 +310,10 @@ export declare class DeleteApiKeyRequest extends Message<DeleteApiKeyRequest> {
|
|
|
247
310
|
* @generated from message uniswap.platformservice.v1.DeleteApiKeyResponse
|
|
248
311
|
*/
|
|
249
312
|
export declare class DeleteApiKeyResponse extends Message<DeleteApiKeyResponse> {
|
|
313
|
+
/**
|
|
314
|
+
* @generated from field: optional uniswap.platformservice.v1.ApiKeyServiceError error = 1;
|
|
315
|
+
*/
|
|
316
|
+
error?: ApiKeyServiceError;
|
|
250
317
|
constructor(data?: PartialMessage<DeleteApiKeyResponse>);
|
|
251
318
|
static readonly runtime: typeof proto3;
|
|
252
319
|
static readonly typeName = "uniswap.platformservice.v1.DeleteApiKeyResponse";
|
|
@@ -326,6 +393,10 @@ export declare class ListApiKeyResponse extends Message<ListApiKeyResponse> {
|
|
|
326
393
|
* @generated from field: repeated uniswap.platformservice.v1.ApiKeyDataStruct api_key_data_list = 1;
|
|
327
394
|
*/
|
|
328
395
|
apiKeyDataList: ApiKeyDataStruct[];
|
|
396
|
+
/**
|
|
397
|
+
* @generated from field: optional uniswap.platformservice.v1.ApiKeyServiceError error = 2;
|
|
398
|
+
*/
|
|
399
|
+
error?: ApiKeyServiceError;
|
|
329
400
|
constructor(data?: PartialMessage<ListApiKeyResponse>);
|
|
330
401
|
static readonly runtime: typeof proto3;
|
|
331
402
|
static readonly typeName = "uniswap.platformservice.v1.ListApiKeyResponse";
|
|
@@ -387,3 +458,49 @@ export declare class InternalCreateApiKeyResponse extends Message<InternalCreate
|
|
|
387
458
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InternalCreateApiKeyResponse;
|
|
388
459
|
static equals(a: InternalCreateApiKeyResponse | PlainMessage<InternalCreateApiKeyResponse> | undefined, b: InternalCreateApiKeyResponse | PlainMessage<InternalCreateApiKeyResponse> | undefined): boolean;
|
|
389
460
|
}
|
|
461
|
+
/**
|
|
462
|
+
* Internal Modify API Key request/response (VPN-restricted admin endpoint)
|
|
463
|
+
*
|
|
464
|
+
* @generated from message uniswap.platformservice.v1.InternalModifyApiKeyRequest
|
|
465
|
+
*/
|
|
466
|
+
export declare class InternalModifyApiKeyRequest extends Message<InternalModifyApiKeyRequest> {
|
|
467
|
+
/**
|
|
468
|
+
* user email to look up their organization
|
|
469
|
+
*
|
|
470
|
+
* @generated from field: string email = 1;
|
|
471
|
+
*/
|
|
472
|
+
email: string;
|
|
473
|
+
/**
|
|
474
|
+
* api key name to identify the key within the org
|
|
475
|
+
*
|
|
476
|
+
* @generated from field: string api_key_name = 2;
|
|
477
|
+
*/
|
|
478
|
+
apiKeyName: string;
|
|
479
|
+
/**
|
|
480
|
+
* required
|
|
481
|
+
*
|
|
482
|
+
* @generated from field: uniswap.platformservice.v1.RateLimitConfig rate_limit_config = 3;
|
|
483
|
+
*/
|
|
484
|
+
rateLimitConfig?: RateLimitConfig;
|
|
485
|
+
constructor(data?: PartialMessage<InternalModifyApiKeyRequest>);
|
|
486
|
+
static readonly runtime: typeof proto3;
|
|
487
|
+
static readonly typeName = "uniswap.platformservice.v1.InternalModifyApiKeyRequest";
|
|
488
|
+
static readonly fields: FieldList;
|
|
489
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InternalModifyApiKeyRequest;
|
|
490
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InternalModifyApiKeyRequest;
|
|
491
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InternalModifyApiKeyRequest;
|
|
492
|
+
static equals(a: InternalModifyApiKeyRequest | PlainMessage<InternalModifyApiKeyRequest> | undefined, b: InternalModifyApiKeyRequest | PlainMessage<InternalModifyApiKeyRequest> | undefined): boolean;
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* @generated from message uniswap.platformservice.v1.InternalModifyApiKeyResponse
|
|
496
|
+
*/
|
|
497
|
+
export declare class InternalModifyApiKeyResponse extends Message<InternalModifyApiKeyResponse> {
|
|
498
|
+
constructor(data?: PartialMessage<InternalModifyApiKeyResponse>);
|
|
499
|
+
static readonly runtime: typeof proto3;
|
|
500
|
+
static readonly typeName = "uniswap.platformservice.v1.InternalModifyApiKeyResponse";
|
|
501
|
+
static readonly fields: FieldList;
|
|
502
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InternalModifyApiKeyResponse;
|
|
503
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InternalModifyApiKeyResponse;
|
|
504
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InternalModifyApiKeyResponse;
|
|
505
|
+
static equals(a: InternalModifyApiKeyResponse | PlainMessage<InternalModifyApiKeyResponse> | undefined, b: InternalModifyApiKeyResponse | PlainMessage<InternalModifyApiKeyResponse> | undefined): boolean;
|
|
506
|
+
}
|
|
@@ -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
|
*
|
|
@@ -147,6 +219,10 @@ export class IntrospectResponse extends Message {
|
|
|
147
219
|
* @generated from field: string analytics_id = 5;
|
|
148
220
|
*/
|
|
149
221
|
this.analyticsId = "";
|
|
222
|
+
/**
|
|
223
|
+
* @generated from field: uniswap.platformservice.v1.ApiKeyTier tier = 6;
|
|
224
|
+
*/
|
|
225
|
+
this.tier = ApiKeyTier.UNSPECIFIED;
|
|
150
226
|
proto3.util.initPartial(data, this);
|
|
151
227
|
}
|
|
152
228
|
static fromBinary(bytes, options) {
|
|
@@ -170,6 +246,7 @@ IntrospectResponse.fields = proto3.util.newFieldList(() => [
|
|
|
170
246
|
{ no: 3, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
171
247
|
{ no: 4, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
172
248
|
{ no: 5, name: "analytics_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
249
|
+
{ no: 6, name: "tier", kind: "enum", T: proto3.getEnumType(ApiKeyTier) },
|
|
173
250
|
]);
|
|
174
251
|
/**
|
|
175
252
|
* Create API Key request/response
|
|
@@ -238,6 +315,7 @@ CreateApiKeyResponse.typeName = "uniswap.platformservice.v1.CreateApiKeyResponse
|
|
|
238
315
|
CreateApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
239
316
|
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
240
317
|
{ no: 2, name: "wrapped_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
318
|
+
{ no: 3, name: "error", kind: "message", T: ApiKeyServiceError, opt: true },
|
|
241
319
|
]);
|
|
242
320
|
/**
|
|
243
321
|
* @generated from message uniswap.platformservice.v1.ModificationData
|
|
@@ -325,7 +403,9 @@ export class ModifyApiKeyResponse extends Message {
|
|
|
325
403
|
}
|
|
326
404
|
ModifyApiKeyResponse.runtime = proto3;
|
|
327
405
|
ModifyApiKeyResponse.typeName = "uniswap.platformservice.v1.ModifyApiKeyResponse";
|
|
328
|
-
ModifyApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
406
|
+
ModifyApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
407
|
+
{ no: 1, name: "error", kind: "message", T: ApiKeyServiceError, opt: true },
|
|
408
|
+
]);
|
|
329
409
|
/**
|
|
330
410
|
* Delete API Key request/response
|
|
331
411
|
*
|
|
@@ -383,7 +463,9 @@ export class DeleteApiKeyResponse extends Message {
|
|
|
383
463
|
}
|
|
384
464
|
DeleteApiKeyResponse.runtime = proto3;
|
|
385
465
|
DeleteApiKeyResponse.typeName = "uniswap.platformservice.v1.DeleteApiKeyResponse";
|
|
386
|
-
DeleteApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
466
|
+
DeleteApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
467
|
+
{ no: 1, name: "error", kind: "message", T: ApiKeyServiceError, opt: true },
|
|
468
|
+
]);
|
|
387
469
|
/**
|
|
388
470
|
* @generated from message uniswap.platformservice.v1.ApiKeyDataStruct
|
|
389
471
|
*/
|
|
@@ -488,6 +570,7 @@ ListApiKeyResponse.runtime = proto3;
|
|
|
488
570
|
ListApiKeyResponse.typeName = "uniswap.platformservice.v1.ListApiKeyResponse";
|
|
489
571
|
ListApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
490
572
|
{ no: 1, name: "api_key_data_list", kind: "message", T: ApiKeyDataStruct, repeated: true },
|
|
573
|
+
{ no: 2, name: "error", kind: "message", T: ApiKeyServiceError, opt: true },
|
|
491
574
|
]);
|
|
492
575
|
/**
|
|
493
576
|
* Internal Create API Key request/response (VPN-restricted admin endpoint)
|
|
@@ -567,3 +650,69 @@ InternalCreateApiKeyResponse.fields = proto3.util.newFieldList(() => [
|
|
|
567
650
|
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
568
651
|
{ no: 2, name: "wrapped_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
569
652
|
]);
|
|
653
|
+
/**
|
|
654
|
+
* Internal Modify API Key request/response (VPN-restricted admin endpoint)
|
|
655
|
+
*
|
|
656
|
+
* @generated from message uniswap.platformservice.v1.InternalModifyApiKeyRequest
|
|
657
|
+
*/
|
|
658
|
+
export class InternalModifyApiKeyRequest extends Message {
|
|
659
|
+
constructor(data) {
|
|
660
|
+
super();
|
|
661
|
+
/**
|
|
662
|
+
* user email to look up their organization
|
|
663
|
+
*
|
|
664
|
+
* @generated from field: string email = 1;
|
|
665
|
+
*/
|
|
666
|
+
this.email = "";
|
|
667
|
+
/**
|
|
668
|
+
* api key name to identify the key within the org
|
|
669
|
+
*
|
|
670
|
+
* @generated from field: string api_key_name = 2;
|
|
671
|
+
*/
|
|
672
|
+
this.apiKeyName = "";
|
|
673
|
+
proto3.util.initPartial(data, this);
|
|
674
|
+
}
|
|
675
|
+
static fromBinary(bytes, options) {
|
|
676
|
+
return new InternalModifyApiKeyRequest().fromBinary(bytes, options);
|
|
677
|
+
}
|
|
678
|
+
static fromJson(jsonValue, options) {
|
|
679
|
+
return new InternalModifyApiKeyRequest().fromJson(jsonValue, options);
|
|
680
|
+
}
|
|
681
|
+
static fromJsonString(jsonString, options) {
|
|
682
|
+
return new InternalModifyApiKeyRequest().fromJsonString(jsonString, options);
|
|
683
|
+
}
|
|
684
|
+
static equals(a, b) {
|
|
685
|
+
return proto3.util.equals(InternalModifyApiKeyRequest, a, b);
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
InternalModifyApiKeyRequest.runtime = proto3;
|
|
689
|
+
InternalModifyApiKeyRequest.typeName = "uniswap.platformservice.v1.InternalModifyApiKeyRequest";
|
|
690
|
+
InternalModifyApiKeyRequest.fields = proto3.util.newFieldList(() => [
|
|
691
|
+
{ no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
692
|
+
{ no: 2, name: "api_key_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
693
|
+
{ no: 3, name: "rate_limit_config", kind: "message", T: RateLimitConfig },
|
|
694
|
+
]);
|
|
695
|
+
/**
|
|
696
|
+
* @generated from message uniswap.platformservice.v1.InternalModifyApiKeyResponse
|
|
697
|
+
*/
|
|
698
|
+
export class InternalModifyApiKeyResponse extends Message {
|
|
699
|
+
constructor(data) {
|
|
700
|
+
super();
|
|
701
|
+
proto3.util.initPartial(data, this);
|
|
702
|
+
}
|
|
703
|
+
static fromBinary(bytes, options) {
|
|
704
|
+
return new InternalModifyApiKeyResponse().fromBinary(bytes, options);
|
|
705
|
+
}
|
|
706
|
+
static fromJson(jsonValue, options) {
|
|
707
|
+
return new InternalModifyApiKeyResponse().fromJson(jsonValue, options);
|
|
708
|
+
}
|
|
709
|
+
static fromJsonString(jsonString, options) {
|
|
710
|
+
return new InternalModifyApiKeyResponse().fromJsonString(jsonString, options);
|
|
711
|
+
}
|
|
712
|
+
static equals(a, b) {
|
|
713
|
+
return proto3.util.equals(InternalModifyApiKeyResponse, a, b);
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
InternalModifyApiKeyResponse.runtime = proto3;
|
|
717
|
+
InternalModifyApiKeyResponse.typeName = "uniswap.platformservice.v1.InternalModifyApiKeyResponse";
|
|
718
|
+
InternalModifyApiKeyResponse.fields = proto3.util.newFieldList(() => []);
|
|
@@ -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
|
]);
|
|
@@ -121,13 +121,20 @@ export declare class InitSessionResponse extends Message<InitSessionResponse> {
|
|
|
121
121
|
*/
|
|
122
122
|
needChallenge: boolean;
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* DEPRECATED: Use uniswap_identifier instead
|
|
125
125
|
*
|
|
126
|
-
* @generated from field: map<string, string> extra = 4;
|
|
126
|
+
* @generated from field: map<string, string> extra = 4 [deprecated = true];
|
|
127
|
+
* @deprecated
|
|
127
128
|
*/
|
|
128
129
|
extra: {
|
|
129
130
|
[key: string]: string;
|
|
130
131
|
};
|
|
132
|
+
/**
|
|
133
|
+
* The persona ID associated with this session (previously in extra["uniswapIdentifier"])
|
|
134
|
+
*
|
|
135
|
+
* @generated from field: optional string uniswap_identifier = 5;
|
|
136
|
+
*/
|
|
137
|
+
uniswapIdentifier?: string;
|
|
131
138
|
constructor(data?: PartialMessage<InitSessionResponse>);
|
|
132
139
|
static readonly runtime: typeof proto3;
|
|
133
140
|
static readonly typeName = "uniswap.platformservice.v1.InitSessionResponse";
|
|
@@ -165,9 +165,10 @@ export class InitSessionResponse extends Message {
|
|
|
165
165
|
*/
|
|
166
166
|
this.needChallenge = false;
|
|
167
167
|
/**
|
|
168
|
-
*
|
|
168
|
+
* DEPRECATED: Use uniswap_identifier instead
|
|
169
169
|
*
|
|
170
|
-
* @generated from field: map<string, string> extra = 4;
|
|
170
|
+
* @generated from field: map<string, string> extra = 4 [deprecated = true];
|
|
171
|
+
* @deprecated
|
|
171
172
|
*/
|
|
172
173
|
this.extra = {};
|
|
173
174
|
proto3.util.initPartial(data, this);
|
|
@@ -192,6 +193,7 @@ InitSessionResponse.fields = proto3.util.newFieldList(() => [
|
|
|
192
193
|
{ no: 2, name: "device_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
193
194
|
{ no: 3, name: "need_challenge", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
194
195
|
{ no: 4, name: "extra", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
196
|
+
{ no: 5, name: "uniswap_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
195
197
|
]);
|
|
196
198
|
/**
|
|
197
199
|
* @generated from message uniswap.platformservice.v1.GetChallengeTypesRequest
|
|
@@ -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
|
]);
|