@uniswap/client-platform-service 0.0.1

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.
@@ -0,0 +1,67 @@
1
+ import { MethodKind } from "@bufbuild/protobuf";
2
+ import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
3
+ /**
4
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.Introspect
5
+ */
6
+ export declare const introspect: {
7
+ readonly localName: "introspect";
8
+ readonly name: "Introspect";
9
+ readonly kind: MethodKind.Unary;
10
+ readonly I: typeof IntrospectRequest;
11
+ readonly O: typeof IntrospectResponse;
12
+ readonly service: {
13
+ readonly typeName: "uniswap.apiKeyService.v1.ApiKeyService";
14
+ };
15
+ };
16
+ /**
17
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.CreateApiKey
18
+ */
19
+ export declare const createApiKey: {
20
+ readonly localName: "createApiKey";
21
+ readonly name: "CreateApiKey";
22
+ readonly kind: MethodKind.Unary;
23
+ readonly I: typeof CreateApiKeyRequest;
24
+ readonly O: typeof CreateApiKeyResponse;
25
+ readonly service: {
26
+ readonly typeName: "uniswap.apiKeyService.v1.ApiKeyService";
27
+ };
28
+ };
29
+ /**
30
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.ModifyApiKey
31
+ */
32
+ export declare const modifyApiKey: {
33
+ readonly localName: "modifyApiKey";
34
+ readonly name: "ModifyApiKey";
35
+ readonly kind: MethodKind.Unary;
36
+ readonly I: typeof ModifyApiKeyRequest;
37
+ readonly O: typeof ModifyApiKeyResponse;
38
+ readonly service: {
39
+ readonly typeName: "uniswap.apiKeyService.v1.ApiKeyService";
40
+ };
41
+ };
42
+ /**
43
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.DeleteApiKey
44
+ */
45
+ export declare const deleteApiKey: {
46
+ readonly localName: "deleteApiKey";
47
+ readonly name: "DeleteApiKey";
48
+ readonly kind: MethodKind.Unary;
49
+ readonly I: typeof DeleteApiKeyRequest;
50
+ readonly O: typeof DeleteApiKeyResponse;
51
+ readonly service: {
52
+ readonly typeName: "uniswap.apiKeyService.v1.ApiKeyService";
53
+ };
54
+ };
55
+ /**
56
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.ListApiKeys
57
+ */
58
+ export declare const listApiKeys: {
59
+ readonly localName: "listApiKeys";
60
+ readonly name: "ListApiKeys";
61
+ readonly kind: MethodKind.Unary;
62
+ readonly I: typeof ListApiKeyRequest;
63
+ readonly O: typeof ListApiKeyResponse;
64
+ readonly service: {
65
+ readonly typeName: "uniswap.apiKeyService.v1.ApiKeyService";
66
+ };
67
+ };
@@ -0,0 +1,71 @@
1
+ // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
2
+ // @generated from file uniswap/apiKeyService/v1/apiKeyService.proto (package uniswap.apiKeyService.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { MethodKind } from "@bufbuild/protobuf";
6
+ import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
7
+ /**
8
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.Introspect
9
+ */
10
+ export const introspect = {
11
+ localName: "introspect",
12
+ name: "Introspect",
13
+ kind: MethodKind.Unary,
14
+ I: IntrospectRequest,
15
+ O: IntrospectResponse,
16
+ service: {
17
+ typeName: "uniswap.apiKeyService.v1.ApiKeyService"
18
+ }
19
+ };
20
+ /**
21
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.CreateApiKey
22
+ */
23
+ export const createApiKey = {
24
+ localName: "createApiKey",
25
+ name: "CreateApiKey",
26
+ kind: MethodKind.Unary,
27
+ I: CreateApiKeyRequest,
28
+ O: CreateApiKeyResponse,
29
+ service: {
30
+ typeName: "uniswap.apiKeyService.v1.ApiKeyService"
31
+ }
32
+ };
33
+ /**
34
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.ModifyApiKey
35
+ */
36
+ export const modifyApiKey = {
37
+ localName: "modifyApiKey",
38
+ name: "ModifyApiKey",
39
+ kind: MethodKind.Unary,
40
+ I: ModifyApiKeyRequest,
41
+ O: ModifyApiKeyResponse,
42
+ service: {
43
+ typeName: "uniswap.apiKeyService.v1.ApiKeyService"
44
+ }
45
+ };
46
+ /**
47
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.DeleteApiKey
48
+ */
49
+ export const deleteApiKey = {
50
+ localName: "deleteApiKey",
51
+ name: "DeleteApiKey",
52
+ kind: MethodKind.Unary,
53
+ I: DeleteApiKeyRequest,
54
+ O: DeleteApiKeyResponse,
55
+ service: {
56
+ typeName: "uniswap.apiKeyService.v1.ApiKeyService"
57
+ }
58
+ };
59
+ /**
60
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.ListApiKeys
61
+ */
62
+ export const listApiKeys = {
63
+ localName: "listApiKeys",
64
+ name: "ListApiKeys",
65
+ kind: MethodKind.Unary,
66
+ I: ListApiKeyRequest,
67
+ O: ListApiKeyResponse,
68
+ service: {
69
+ typeName: "uniswap.apiKeyService.v1.ApiKeyService"
70
+ }
71
+ };
@@ -0,0 +1,57 @@
1
+ import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
2
+ import { MethodKind } from "@bufbuild/protobuf";
3
+ /**
4
+ * Service definition
5
+ *
6
+ * @generated from service uniswap.apiKeyService.v1.ApiKeyService
7
+ */
8
+ export declare const ApiKeyService: {
9
+ readonly typeName: "uniswap.apiKeyService.v1.ApiKeyService";
10
+ readonly methods: {
11
+ /**
12
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.Introspect
13
+ */
14
+ readonly introspect: {
15
+ readonly name: "Introspect";
16
+ readonly I: typeof IntrospectRequest;
17
+ readonly O: typeof IntrospectResponse;
18
+ readonly kind: MethodKind.Unary;
19
+ };
20
+ /**
21
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.CreateApiKey
22
+ */
23
+ readonly createApiKey: {
24
+ readonly name: "CreateApiKey";
25
+ readonly I: typeof CreateApiKeyRequest;
26
+ readonly O: typeof CreateApiKeyResponse;
27
+ readonly kind: MethodKind.Unary;
28
+ };
29
+ /**
30
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.ModifyApiKey
31
+ */
32
+ readonly modifyApiKey: {
33
+ readonly name: "ModifyApiKey";
34
+ readonly I: typeof ModifyApiKeyRequest;
35
+ readonly O: typeof ModifyApiKeyResponse;
36
+ readonly kind: MethodKind.Unary;
37
+ };
38
+ /**
39
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.DeleteApiKey
40
+ */
41
+ readonly deleteApiKey: {
42
+ readonly name: "DeleteApiKey";
43
+ readonly I: typeof DeleteApiKeyRequest;
44
+ readonly O: typeof DeleteApiKeyResponse;
45
+ readonly kind: MethodKind.Unary;
46
+ };
47
+ /**
48
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.ListApiKeys
49
+ */
50
+ readonly listApiKeys: {
51
+ readonly name: "ListApiKeys";
52
+ readonly I: typeof ListApiKeyRequest;
53
+ readonly O: typeof ListApiKeyResponse;
54
+ readonly kind: MethodKind.Unary;
55
+ };
56
+ };
57
+ };
@@ -0,0 +1,61 @@
1
+ // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
2
+ // @generated from file uniswap/apiKeyService/v1/apiKeyService.proto (package uniswap.apiKeyService.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { CreateApiKeyRequest, CreateApiKeyResponse, DeleteApiKeyRequest, DeleteApiKeyResponse, IntrospectRequest, IntrospectResponse, ListApiKeyRequest, ListApiKeyResponse, ModifyApiKeyRequest, ModifyApiKeyResponse } from "./apiKeyService_pb.js";
6
+ import { MethodKind } from "@bufbuild/protobuf";
7
+ /**
8
+ * Service definition
9
+ *
10
+ * @generated from service uniswap.apiKeyService.v1.ApiKeyService
11
+ */
12
+ export const ApiKeyService = {
13
+ typeName: "uniswap.apiKeyService.v1.ApiKeyService",
14
+ methods: {
15
+ /**
16
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.Introspect
17
+ */
18
+ introspect: {
19
+ name: "Introspect",
20
+ I: IntrospectRequest,
21
+ O: IntrospectResponse,
22
+ kind: MethodKind.Unary,
23
+ },
24
+ /**
25
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.CreateApiKey
26
+ */
27
+ createApiKey: {
28
+ name: "CreateApiKey",
29
+ I: CreateApiKeyRequest,
30
+ O: CreateApiKeyResponse,
31
+ kind: MethodKind.Unary,
32
+ },
33
+ /**
34
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.ModifyApiKey
35
+ */
36
+ modifyApiKey: {
37
+ name: "ModifyApiKey",
38
+ I: ModifyApiKeyRequest,
39
+ O: ModifyApiKeyResponse,
40
+ kind: MethodKind.Unary,
41
+ },
42
+ /**
43
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.DeleteApiKey
44
+ */
45
+ deleteApiKey: {
46
+ name: "DeleteApiKey",
47
+ I: DeleteApiKeyRequest,
48
+ O: DeleteApiKeyResponse,
49
+ kind: MethodKind.Unary,
50
+ },
51
+ /**
52
+ * @generated from rpc uniswap.apiKeyService.v1.ApiKeyService.ListApiKeys
53
+ */
54
+ listApiKeys: {
55
+ name: "ListApiKeys",
56
+ I: ListApiKeyRequest,
57
+ O: ListApiKeyResponse,
58
+ kind: MethodKind.Unary,
59
+ },
60
+ }
61
+ };
@@ -0,0 +1,270 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
3
+ /**
4
+ * Rate limit configuration
5
+ *
6
+ * @generated from message uniswap.apiKeyService.v1.RateLimitConfig
7
+ */
8
+ export declare class RateLimitConfig extends Message<RateLimitConfig> {
9
+ /**
10
+ * period_ms defines the time window in milliseconds for the rate limit
11
+ * For example: 60000 means a 1-minute window
12
+ * If you want to limit "X requests per minute", set this to 60000
13
+ *
14
+ * @generated from field: int32 period_ms = 1;
15
+ */
16
+ periodMs: number;
17
+ /**
18
+ * units defines the number of requests allowed per time period
19
+ * For example: if period_ms=60000 and units=100, this means
20
+ * the user can make 100 requests every minute
21
+ *
22
+ * @generated from field: int32 units = 2;
23
+ */
24
+ units: number;
25
+ /**
26
+ * capacity defines the maximum number of requests that can be made at once
27
+ * This acts as a hard limit on burst requests
28
+ * For example: if capacity=200, even if the user hasn't made requests for a while,
29
+ * they can't make more than 200 requests at once
30
+ *
31
+ * @generated from field: int32 capacity = 3;
32
+ */
33
+ capacity: number;
34
+ constructor(data?: PartialMessage<RateLimitConfig>);
35
+ static readonly runtime: typeof proto3;
36
+ static readonly typeName = "uniswap.apiKeyService.v1.RateLimitConfig";
37
+ static readonly fields: FieldList;
38
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RateLimitConfig;
39
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RateLimitConfig;
40
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RateLimitConfig;
41
+ static equals(a: RateLimitConfig | PlainMessage<RateLimitConfig> | undefined, b: RateLimitConfig | PlainMessage<RateLimitConfig> | undefined): boolean;
42
+ }
43
+ /**
44
+ * Introspect request/response
45
+ *
46
+ * @generated from message uniswap.apiKeyService.v1.IntrospectRequest
47
+ */
48
+ export declare class IntrospectRequest extends Message<IntrospectRequest> {
49
+ /**
50
+ * @generated from field: string api_key = 1;
51
+ */
52
+ apiKey: string;
53
+ constructor(data?: PartialMessage<IntrospectRequest>);
54
+ static readonly runtime: typeof proto3;
55
+ static readonly typeName = "uniswap.apiKeyService.v1.IntrospectRequest";
56
+ static readonly fields: FieldList;
57
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IntrospectRequest;
58
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IntrospectRequest;
59
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IntrospectRequest;
60
+ static equals(a: IntrospectRequest | PlainMessage<IntrospectRequest> | undefined, b: IntrospectRequest | PlainMessage<IntrospectRequest> | undefined): boolean;
61
+ }
62
+ /**
63
+ * @generated from message uniswap.apiKeyService.v1.IntrospectResponse
64
+ */
65
+ export declare class IntrospectResponse extends Message<IntrospectResponse> {
66
+ constructor(data?: PartialMessage<IntrospectResponse>);
67
+ static readonly runtime: typeof proto3;
68
+ static readonly typeName = "uniswap.apiKeyService.v1.IntrospectResponse";
69
+ static readonly fields: FieldList;
70
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IntrospectResponse;
71
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IntrospectResponse;
72
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IntrospectResponse;
73
+ static equals(a: IntrospectResponse | PlainMessage<IntrospectResponse> | undefined, b: IntrospectResponse | PlainMessage<IntrospectResponse> | undefined): boolean;
74
+ }
75
+ /**
76
+ * Create API Key request/response
77
+ *
78
+ * @generated from message uniswap.apiKeyService.v1.CreateApiKeyRequest
79
+ */
80
+ export declare class CreateApiKeyRequest extends Message<CreateApiKeyRequest> {
81
+ /**
82
+ * @generated from field: string user_id = 1;
83
+ */
84
+ userId: string;
85
+ /**
86
+ * @generated from field: optional uniswap.apiKeyService.v1.RateLimitConfig rate_limit_config = 2;
87
+ */
88
+ rateLimitConfig?: RateLimitConfig;
89
+ constructor(data?: PartialMessage<CreateApiKeyRequest>);
90
+ static readonly runtime: typeof proto3;
91
+ static readonly typeName = "uniswap.apiKeyService.v1.CreateApiKeyRequest";
92
+ static readonly fields: FieldList;
93
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateApiKeyRequest;
94
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateApiKeyRequest;
95
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateApiKeyRequest;
96
+ static equals(a: CreateApiKeyRequest | PlainMessage<CreateApiKeyRequest> | undefined, b: CreateApiKeyRequest | PlainMessage<CreateApiKeyRequest> | undefined): boolean;
97
+ }
98
+ /**
99
+ * @generated from message uniswap.apiKeyService.v1.CreateApiKeyResponse
100
+ */
101
+ export declare class CreateApiKeyResponse extends Message<CreateApiKeyResponse> {
102
+ /**
103
+ * @generated from field: string api_key = 3;
104
+ */
105
+ apiKey: string;
106
+ constructor(data?: PartialMessage<CreateApiKeyResponse>);
107
+ static readonly runtime: typeof proto3;
108
+ static readonly typeName = "uniswap.apiKeyService.v1.CreateApiKeyResponse";
109
+ static readonly fields: FieldList;
110
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateApiKeyResponse;
111
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateApiKeyResponse;
112
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateApiKeyResponse;
113
+ static equals(a: CreateApiKeyResponse | PlainMessage<CreateApiKeyResponse> | undefined, b: CreateApiKeyResponse | PlainMessage<CreateApiKeyResponse> | undefined): boolean;
114
+ }
115
+ /**
116
+ * @generated from message uniswap.apiKeyService.v1.ModificationData
117
+ */
118
+ export declare class ModificationData extends Message<ModificationData> {
119
+ /**
120
+ * @generated from field: optional uniswap.apiKeyService.v1.RateLimitConfig rate_limit_config = 2;
121
+ */
122
+ rateLimitConfig?: RateLimitConfig;
123
+ constructor(data?: PartialMessage<ModificationData>);
124
+ static readonly runtime: typeof proto3;
125
+ static readonly typeName = "uniswap.apiKeyService.v1.ModificationData";
126
+ static readonly fields: FieldList;
127
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModificationData;
128
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModificationData;
129
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModificationData;
130
+ static equals(a: ModificationData | PlainMessage<ModificationData> | undefined, b: ModificationData | PlainMessage<ModificationData> | undefined): boolean;
131
+ }
132
+ /**
133
+ * Modify API Key request/response
134
+ *
135
+ * @generated from message uniswap.apiKeyService.v1.ModifyApiKeyRequest
136
+ */
137
+ export declare class ModifyApiKeyRequest extends Message<ModifyApiKeyRequest> {
138
+ /**
139
+ * we are using hashed api key because during list operation, user will only see hashed api key
140
+ *
141
+ * @generated from field: string identifier = 1;
142
+ */
143
+ identifier: string;
144
+ /**
145
+ * @generated from field: uniswap.apiKeyService.v1.ModificationData modification_data = 2;
146
+ */
147
+ modificationData?: ModificationData;
148
+ constructor(data?: PartialMessage<ModifyApiKeyRequest>);
149
+ static readonly runtime: typeof proto3;
150
+ static readonly typeName = "uniswap.apiKeyService.v1.ModifyApiKeyRequest";
151
+ static readonly fields: FieldList;
152
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModifyApiKeyRequest;
153
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModifyApiKeyRequest;
154
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModifyApiKeyRequest;
155
+ static equals(a: ModifyApiKeyRequest | PlainMessage<ModifyApiKeyRequest> | undefined, b: ModifyApiKeyRequest | PlainMessage<ModifyApiKeyRequest> | undefined): boolean;
156
+ }
157
+ /**
158
+ * @generated from message uniswap.apiKeyService.v1.ModifyApiKeyResponse
159
+ */
160
+ export declare class ModifyApiKeyResponse extends Message<ModifyApiKeyResponse> {
161
+ constructor(data?: PartialMessage<ModifyApiKeyResponse>);
162
+ static readonly runtime: typeof proto3;
163
+ static readonly typeName = "uniswap.apiKeyService.v1.ModifyApiKeyResponse";
164
+ static readonly fields: FieldList;
165
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModifyApiKeyResponse;
166
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModifyApiKeyResponse;
167
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModifyApiKeyResponse;
168
+ static equals(a: ModifyApiKeyResponse | PlainMessage<ModifyApiKeyResponse> | undefined, b: ModifyApiKeyResponse | PlainMessage<ModifyApiKeyResponse> | undefined): boolean;
169
+ }
170
+ /**
171
+ * Delete API Key request/response
172
+ *
173
+ * @generated from message uniswap.apiKeyService.v1.DeleteApiKeyRequest
174
+ */
175
+ export declare class DeleteApiKeyRequest extends Message<DeleteApiKeyRequest> {
176
+ /**
177
+ * we are using hashed api key because during list operation, user will only see hashed api key
178
+ *
179
+ * @generated from field: string identifier = 1;
180
+ */
181
+ identifier: string;
182
+ constructor(data?: PartialMessage<DeleteApiKeyRequest>);
183
+ static readonly runtime: typeof proto3;
184
+ static readonly typeName = "uniswap.apiKeyService.v1.DeleteApiKeyRequest";
185
+ static readonly fields: FieldList;
186
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteApiKeyRequest;
187
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteApiKeyRequest;
188
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteApiKeyRequest;
189
+ static equals(a: DeleteApiKeyRequest | PlainMessage<DeleteApiKeyRequest> | undefined, b: DeleteApiKeyRequest | PlainMessage<DeleteApiKeyRequest> | undefined): boolean;
190
+ }
191
+ /**
192
+ * @generated from message uniswap.apiKeyService.v1.DeleteApiKeyResponse
193
+ */
194
+ export declare class DeleteApiKeyResponse extends Message<DeleteApiKeyResponse> {
195
+ constructor(data?: PartialMessage<DeleteApiKeyResponse>);
196
+ static readonly runtime: typeof proto3;
197
+ static readonly typeName = "uniswap.apiKeyService.v1.DeleteApiKeyResponse";
198
+ static readonly fields: FieldList;
199
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteApiKeyResponse;
200
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteApiKeyResponse;
201
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteApiKeyResponse;
202
+ static equals(a: DeleteApiKeyResponse | PlainMessage<DeleteApiKeyResponse> | undefined, b: DeleteApiKeyResponse | PlainMessage<DeleteApiKeyResponse> | undefined): boolean;
203
+ }
204
+ /**
205
+ * @generated from message uniswap.apiKeyService.v1.ApiKeyDataStruct
206
+ */
207
+ export declare class ApiKeyDataStruct extends Message<ApiKeyDataStruct> {
208
+ /**
209
+ * @generated from field: string user_id = 1;
210
+ */
211
+ userId: string;
212
+ /**
213
+ * @generated from field: string hashed_api_key = 2;
214
+ */
215
+ hashedApiKey: string;
216
+ /**
217
+ * @generated from field: uniswap.apiKeyService.v1.RateLimitConfig rate_limit_config = 3;
218
+ */
219
+ rateLimitConfig?: RateLimitConfig;
220
+ /**
221
+ * @generated from field: google.protobuf.Timestamp last_modified_at = 4;
222
+ */
223
+ lastModifiedAt?: Timestamp;
224
+ /**
225
+ * @generated from field: google.protobuf.Timestamp creation_time = 5;
226
+ */
227
+ creationTime?: Timestamp;
228
+ constructor(data?: PartialMessage<ApiKeyDataStruct>);
229
+ static readonly runtime: typeof proto3;
230
+ static readonly typeName = "uniswap.apiKeyService.v1.ApiKeyDataStruct";
231
+ static readonly fields: FieldList;
232
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApiKeyDataStruct;
233
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApiKeyDataStruct;
234
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApiKeyDataStruct;
235
+ static equals(a: ApiKeyDataStruct | PlainMessage<ApiKeyDataStruct> | undefined, b: ApiKeyDataStruct | PlainMessage<ApiKeyDataStruct> | undefined): boolean;
236
+ }
237
+ /**
238
+ * @generated from message uniswap.apiKeyService.v1.ListApiKeyRequest
239
+ */
240
+ export declare class ListApiKeyRequest extends Message<ListApiKeyRequest> {
241
+ /**
242
+ * @generated from field: string user_id = 1;
243
+ */
244
+ userId: string;
245
+ constructor(data?: PartialMessage<ListApiKeyRequest>);
246
+ static readonly runtime: typeof proto3;
247
+ static readonly typeName = "uniswap.apiKeyService.v1.ListApiKeyRequest";
248
+ static readonly fields: FieldList;
249
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListApiKeyRequest;
250
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListApiKeyRequest;
251
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListApiKeyRequest;
252
+ static equals(a: ListApiKeyRequest | PlainMessage<ListApiKeyRequest> | undefined, b: ListApiKeyRequest | PlainMessage<ListApiKeyRequest> | undefined): boolean;
253
+ }
254
+ /**
255
+ * @generated from message uniswap.apiKeyService.v1.ListApiKeyResponse
256
+ */
257
+ export declare class ListApiKeyResponse extends Message<ListApiKeyResponse> {
258
+ /**
259
+ * @generated from field: repeated uniswap.apiKeyService.v1.ApiKeyDataStruct api_key_data_list = 1;
260
+ */
261
+ apiKeyDataList: ApiKeyDataStruct[];
262
+ constructor(data?: PartialMessage<ListApiKeyResponse>);
263
+ static readonly runtime: typeof proto3;
264
+ static readonly typeName = "uniswap.apiKeyService.v1.ListApiKeyResponse";
265
+ static readonly fields: FieldList;
266
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListApiKeyResponse;
267
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListApiKeyResponse;
268
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListApiKeyResponse;
269
+ static equals(a: ListApiKeyResponse | PlainMessage<ListApiKeyResponse> | undefined, b: ListApiKeyResponse | PlainMessage<ListApiKeyResponse> | undefined): boolean;
270
+ }
@@ -0,0 +1,420 @@
1
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2
+ // @generated from file uniswap/apiKeyService/v1/apiKeyService.proto (package uniswap.apiKeyService.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
6
+ /**
7
+ * Rate limit configuration
8
+ *
9
+ * @generated from message uniswap.apiKeyService.v1.RateLimitConfig
10
+ */
11
+ export class RateLimitConfig extends Message {
12
+ constructor(data) {
13
+ super();
14
+ /**
15
+ * period_ms defines the time window in milliseconds for the rate limit
16
+ * For example: 60000 means a 1-minute window
17
+ * If you want to limit "X requests per minute", set this to 60000
18
+ *
19
+ * @generated from field: int32 period_ms = 1;
20
+ */
21
+ this.periodMs = 0;
22
+ /**
23
+ * units defines the number of requests allowed per time period
24
+ * For example: if period_ms=60000 and units=100, this means
25
+ * the user can make 100 requests every minute
26
+ *
27
+ * @generated from field: int32 units = 2;
28
+ */
29
+ this.units = 0;
30
+ /**
31
+ * capacity defines the maximum number of requests that can be made at once
32
+ * This acts as a hard limit on burst requests
33
+ * For example: if capacity=200, even if the user hasn't made requests for a while,
34
+ * they can't make more than 200 requests at once
35
+ *
36
+ * @generated from field: int32 capacity = 3;
37
+ */
38
+ this.capacity = 0;
39
+ proto3.util.initPartial(data, this);
40
+ }
41
+ static fromBinary(bytes, options) {
42
+ return new RateLimitConfig().fromBinary(bytes, options);
43
+ }
44
+ static fromJson(jsonValue, options) {
45
+ return new RateLimitConfig().fromJson(jsonValue, options);
46
+ }
47
+ static fromJsonString(jsonString, options) {
48
+ return new RateLimitConfig().fromJsonString(jsonString, options);
49
+ }
50
+ static equals(a, b) {
51
+ return proto3.util.equals(RateLimitConfig, a, b);
52
+ }
53
+ }
54
+ RateLimitConfig.runtime = proto3;
55
+ RateLimitConfig.typeName = "uniswap.apiKeyService.v1.RateLimitConfig";
56
+ RateLimitConfig.fields = proto3.util.newFieldList(() => [
57
+ { no: 1, name: "period_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
58
+ { no: 2, name: "units", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
59
+ { no: 3, name: "capacity", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
60
+ ]);
61
+ /**
62
+ * Introspect request/response
63
+ *
64
+ * @generated from message uniswap.apiKeyService.v1.IntrospectRequest
65
+ */
66
+ export class IntrospectRequest extends Message {
67
+ constructor(data) {
68
+ super();
69
+ /**
70
+ * @generated from field: string api_key = 1;
71
+ */
72
+ this.apiKey = "";
73
+ proto3.util.initPartial(data, this);
74
+ }
75
+ static fromBinary(bytes, options) {
76
+ return new IntrospectRequest().fromBinary(bytes, options);
77
+ }
78
+ static fromJson(jsonValue, options) {
79
+ return new IntrospectRequest().fromJson(jsonValue, options);
80
+ }
81
+ static fromJsonString(jsonString, options) {
82
+ return new IntrospectRequest().fromJsonString(jsonString, options);
83
+ }
84
+ static equals(a, b) {
85
+ return proto3.util.equals(IntrospectRequest, a, b);
86
+ }
87
+ }
88
+ IntrospectRequest.runtime = proto3;
89
+ IntrospectRequest.typeName = "uniswap.apiKeyService.v1.IntrospectRequest";
90
+ IntrospectRequest.fields = proto3.util.newFieldList(() => [
91
+ { no: 1, name: "api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
92
+ ]);
93
+ /**
94
+ * @generated from message uniswap.apiKeyService.v1.IntrospectResponse
95
+ */
96
+ export class IntrospectResponse extends Message {
97
+ constructor(data) {
98
+ super();
99
+ proto3.util.initPartial(data, this);
100
+ }
101
+ static fromBinary(bytes, options) {
102
+ return new IntrospectResponse().fromBinary(bytes, options);
103
+ }
104
+ static fromJson(jsonValue, options) {
105
+ return new IntrospectResponse().fromJson(jsonValue, options);
106
+ }
107
+ static fromJsonString(jsonString, options) {
108
+ return new IntrospectResponse().fromJsonString(jsonString, options);
109
+ }
110
+ static equals(a, b) {
111
+ return proto3.util.equals(IntrospectResponse, a, b);
112
+ }
113
+ }
114
+ IntrospectResponse.runtime = proto3;
115
+ IntrospectResponse.typeName = "uniswap.apiKeyService.v1.IntrospectResponse";
116
+ IntrospectResponse.fields = proto3.util.newFieldList(() => []);
117
+ /**
118
+ * Create API Key request/response
119
+ *
120
+ * @generated from message uniswap.apiKeyService.v1.CreateApiKeyRequest
121
+ */
122
+ export class CreateApiKeyRequest extends Message {
123
+ constructor(data) {
124
+ super();
125
+ /**
126
+ * @generated from field: string user_id = 1;
127
+ */
128
+ this.userId = "";
129
+ proto3.util.initPartial(data, this);
130
+ }
131
+ static fromBinary(bytes, options) {
132
+ return new CreateApiKeyRequest().fromBinary(bytes, options);
133
+ }
134
+ static fromJson(jsonValue, options) {
135
+ return new CreateApiKeyRequest().fromJson(jsonValue, options);
136
+ }
137
+ static fromJsonString(jsonString, options) {
138
+ return new CreateApiKeyRequest().fromJsonString(jsonString, options);
139
+ }
140
+ static equals(a, b) {
141
+ return proto3.util.equals(CreateApiKeyRequest, a, b);
142
+ }
143
+ }
144
+ CreateApiKeyRequest.runtime = proto3;
145
+ CreateApiKeyRequest.typeName = "uniswap.apiKeyService.v1.CreateApiKeyRequest";
146
+ CreateApiKeyRequest.fields = proto3.util.newFieldList(() => [
147
+ { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
148
+ { no: 2, name: "rate_limit_config", kind: "message", T: RateLimitConfig, opt: true },
149
+ ]);
150
+ /**
151
+ * @generated from message uniswap.apiKeyService.v1.CreateApiKeyResponse
152
+ */
153
+ export class CreateApiKeyResponse extends Message {
154
+ constructor(data) {
155
+ super();
156
+ /**
157
+ * @generated from field: string api_key = 3;
158
+ */
159
+ this.apiKey = "";
160
+ proto3.util.initPartial(data, this);
161
+ }
162
+ static fromBinary(bytes, options) {
163
+ return new CreateApiKeyResponse().fromBinary(bytes, options);
164
+ }
165
+ static fromJson(jsonValue, options) {
166
+ return new CreateApiKeyResponse().fromJson(jsonValue, options);
167
+ }
168
+ static fromJsonString(jsonString, options) {
169
+ return new CreateApiKeyResponse().fromJsonString(jsonString, options);
170
+ }
171
+ static equals(a, b) {
172
+ return proto3.util.equals(CreateApiKeyResponse, a, b);
173
+ }
174
+ }
175
+ CreateApiKeyResponse.runtime = proto3;
176
+ CreateApiKeyResponse.typeName = "uniswap.apiKeyService.v1.CreateApiKeyResponse";
177
+ CreateApiKeyResponse.fields = proto3.util.newFieldList(() => [
178
+ { no: 3, name: "api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
179
+ ]);
180
+ /**
181
+ * @generated from message uniswap.apiKeyService.v1.ModificationData
182
+ */
183
+ export class ModificationData extends Message {
184
+ constructor(data) {
185
+ super();
186
+ proto3.util.initPartial(data, this);
187
+ }
188
+ static fromBinary(bytes, options) {
189
+ return new ModificationData().fromBinary(bytes, options);
190
+ }
191
+ static fromJson(jsonValue, options) {
192
+ return new ModificationData().fromJson(jsonValue, options);
193
+ }
194
+ static fromJsonString(jsonString, options) {
195
+ return new ModificationData().fromJsonString(jsonString, options);
196
+ }
197
+ static equals(a, b) {
198
+ return proto3.util.equals(ModificationData, a, b);
199
+ }
200
+ }
201
+ ModificationData.runtime = proto3;
202
+ ModificationData.typeName = "uniswap.apiKeyService.v1.ModificationData";
203
+ ModificationData.fields = proto3.util.newFieldList(() => [
204
+ { no: 2, name: "rate_limit_config", kind: "message", T: RateLimitConfig, opt: true },
205
+ ]);
206
+ /**
207
+ * Modify API Key request/response
208
+ *
209
+ * @generated from message uniswap.apiKeyService.v1.ModifyApiKeyRequest
210
+ */
211
+ export class ModifyApiKeyRequest extends Message {
212
+ constructor(data) {
213
+ super();
214
+ /**
215
+ * we are using hashed api key because during list operation, user will only see hashed api key
216
+ *
217
+ * @generated from field: string identifier = 1;
218
+ */
219
+ this.identifier = "";
220
+ proto3.util.initPartial(data, this);
221
+ }
222
+ static fromBinary(bytes, options) {
223
+ return new ModifyApiKeyRequest().fromBinary(bytes, options);
224
+ }
225
+ static fromJson(jsonValue, options) {
226
+ return new ModifyApiKeyRequest().fromJson(jsonValue, options);
227
+ }
228
+ static fromJsonString(jsonString, options) {
229
+ return new ModifyApiKeyRequest().fromJsonString(jsonString, options);
230
+ }
231
+ static equals(a, b) {
232
+ return proto3.util.equals(ModifyApiKeyRequest, a, b);
233
+ }
234
+ }
235
+ ModifyApiKeyRequest.runtime = proto3;
236
+ ModifyApiKeyRequest.typeName = "uniswap.apiKeyService.v1.ModifyApiKeyRequest";
237
+ ModifyApiKeyRequest.fields = proto3.util.newFieldList(() => [
238
+ { no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
239
+ { no: 2, name: "modification_data", kind: "message", T: ModificationData },
240
+ ]);
241
+ /**
242
+ * @generated from message uniswap.apiKeyService.v1.ModifyApiKeyResponse
243
+ */
244
+ export class ModifyApiKeyResponse extends Message {
245
+ constructor(data) {
246
+ super();
247
+ proto3.util.initPartial(data, this);
248
+ }
249
+ static fromBinary(bytes, options) {
250
+ return new ModifyApiKeyResponse().fromBinary(bytes, options);
251
+ }
252
+ static fromJson(jsonValue, options) {
253
+ return new ModifyApiKeyResponse().fromJson(jsonValue, options);
254
+ }
255
+ static fromJsonString(jsonString, options) {
256
+ return new ModifyApiKeyResponse().fromJsonString(jsonString, options);
257
+ }
258
+ static equals(a, b) {
259
+ return proto3.util.equals(ModifyApiKeyResponse, a, b);
260
+ }
261
+ }
262
+ ModifyApiKeyResponse.runtime = proto3;
263
+ ModifyApiKeyResponse.typeName = "uniswap.apiKeyService.v1.ModifyApiKeyResponse";
264
+ ModifyApiKeyResponse.fields = proto3.util.newFieldList(() => []);
265
+ /**
266
+ * Delete API Key request/response
267
+ *
268
+ * @generated from message uniswap.apiKeyService.v1.DeleteApiKeyRequest
269
+ */
270
+ export class DeleteApiKeyRequest extends Message {
271
+ constructor(data) {
272
+ super();
273
+ /**
274
+ * we are using hashed api key because during list operation, user will only see hashed api key
275
+ *
276
+ * @generated from field: string identifier = 1;
277
+ */
278
+ this.identifier = "";
279
+ proto3.util.initPartial(data, this);
280
+ }
281
+ static fromBinary(bytes, options) {
282
+ return new DeleteApiKeyRequest().fromBinary(bytes, options);
283
+ }
284
+ static fromJson(jsonValue, options) {
285
+ return new DeleteApiKeyRequest().fromJson(jsonValue, options);
286
+ }
287
+ static fromJsonString(jsonString, options) {
288
+ return new DeleteApiKeyRequest().fromJsonString(jsonString, options);
289
+ }
290
+ static equals(a, b) {
291
+ return proto3.util.equals(DeleteApiKeyRequest, a, b);
292
+ }
293
+ }
294
+ DeleteApiKeyRequest.runtime = proto3;
295
+ DeleteApiKeyRequest.typeName = "uniswap.apiKeyService.v1.DeleteApiKeyRequest";
296
+ DeleteApiKeyRequest.fields = proto3.util.newFieldList(() => [
297
+ { no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
298
+ ]);
299
+ /**
300
+ * @generated from message uniswap.apiKeyService.v1.DeleteApiKeyResponse
301
+ */
302
+ export class DeleteApiKeyResponse extends Message {
303
+ constructor(data) {
304
+ super();
305
+ proto3.util.initPartial(data, this);
306
+ }
307
+ static fromBinary(bytes, options) {
308
+ return new DeleteApiKeyResponse().fromBinary(bytes, options);
309
+ }
310
+ static fromJson(jsonValue, options) {
311
+ return new DeleteApiKeyResponse().fromJson(jsonValue, options);
312
+ }
313
+ static fromJsonString(jsonString, options) {
314
+ return new DeleteApiKeyResponse().fromJsonString(jsonString, options);
315
+ }
316
+ static equals(a, b) {
317
+ return proto3.util.equals(DeleteApiKeyResponse, a, b);
318
+ }
319
+ }
320
+ DeleteApiKeyResponse.runtime = proto3;
321
+ DeleteApiKeyResponse.typeName = "uniswap.apiKeyService.v1.DeleteApiKeyResponse";
322
+ DeleteApiKeyResponse.fields = proto3.util.newFieldList(() => []);
323
+ /**
324
+ * @generated from message uniswap.apiKeyService.v1.ApiKeyDataStruct
325
+ */
326
+ export class ApiKeyDataStruct extends Message {
327
+ constructor(data) {
328
+ super();
329
+ /**
330
+ * @generated from field: string user_id = 1;
331
+ */
332
+ this.userId = "";
333
+ /**
334
+ * @generated from field: string hashed_api_key = 2;
335
+ */
336
+ this.hashedApiKey = "";
337
+ proto3.util.initPartial(data, this);
338
+ }
339
+ static fromBinary(bytes, options) {
340
+ return new ApiKeyDataStruct().fromBinary(bytes, options);
341
+ }
342
+ static fromJson(jsonValue, options) {
343
+ return new ApiKeyDataStruct().fromJson(jsonValue, options);
344
+ }
345
+ static fromJsonString(jsonString, options) {
346
+ return new ApiKeyDataStruct().fromJsonString(jsonString, options);
347
+ }
348
+ static equals(a, b) {
349
+ return proto3.util.equals(ApiKeyDataStruct, a, b);
350
+ }
351
+ }
352
+ ApiKeyDataStruct.runtime = proto3;
353
+ ApiKeyDataStruct.typeName = "uniswap.apiKeyService.v1.ApiKeyDataStruct";
354
+ ApiKeyDataStruct.fields = proto3.util.newFieldList(() => [
355
+ { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
356
+ { no: 2, name: "hashed_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
357
+ { no: 3, name: "rate_limit_config", kind: "message", T: RateLimitConfig },
358
+ { no: 4, name: "last_modified_at", kind: "message", T: Timestamp },
359
+ { no: 5, name: "creation_time", kind: "message", T: Timestamp },
360
+ ]);
361
+ /**
362
+ * @generated from message uniswap.apiKeyService.v1.ListApiKeyRequest
363
+ */
364
+ export class ListApiKeyRequest extends Message {
365
+ constructor(data) {
366
+ super();
367
+ /**
368
+ * @generated from field: string user_id = 1;
369
+ */
370
+ this.userId = "";
371
+ proto3.util.initPartial(data, this);
372
+ }
373
+ static fromBinary(bytes, options) {
374
+ return new ListApiKeyRequest().fromBinary(bytes, options);
375
+ }
376
+ static fromJson(jsonValue, options) {
377
+ return new ListApiKeyRequest().fromJson(jsonValue, options);
378
+ }
379
+ static fromJsonString(jsonString, options) {
380
+ return new ListApiKeyRequest().fromJsonString(jsonString, options);
381
+ }
382
+ static equals(a, b) {
383
+ return proto3.util.equals(ListApiKeyRequest, a, b);
384
+ }
385
+ }
386
+ ListApiKeyRequest.runtime = proto3;
387
+ ListApiKeyRequest.typeName = "uniswap.apiKeyService.v1.ListApiKeyRequest";
388
+ ListApiKeyRequest.fields = proto3.util.newFieldList(() => [
389
+ { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
390
+ ]);
391
+ /**
392
+ * @generated from message uniswap.apiKeyService.v1.ListApiKeyResponse
393
+ */
394
+ export class ListApiKeyResponse extends Message {
395
+ constructor(data) {
396
+ super();
397
+ /**
398
+ * @generated from field: repeated uniswap.apiKeyService.v1.ApiKeyDataStruct api_key_data_list = 1;
399
+ */
400
+ this.apiKeyDataList = [];
401
+ proto3.util.initPartial(data, this);
402
+ }
403
+ static fromBinary(bytes, options) {
404
+ return new ListApiKeyResponse().fromBinary(bytes, options);
405
+ }
406
+ static fromJson(jsonValue, options) {
407
+ return new ListApiKeyResponse().fromJson(jsonValue, options);
408
+ }
409
+ static fromJsonString(jsonString, options) {
410
+ return new ListApiKeyResponse().fromJsonString(jsonString, options);
411
+ }
412
+ static equals(a, b) {
413
+ return proto3.util.equals(ListApiKeyResponse, a, b);
414
+ }
415
+ }
416
+ ListApiKeyResponse.runtime = proto3;
417
+ ListApiKeyResponse.typeName = "uniswap.apiKeyService.v1.ListApiKeyResponse";
418
+ ListApiKeyResponse.fields = proto3.util.newFieldList(() => [
419
+ { no: 1, name: "api_key_data_list", kind: "message", T: ApiKeyDataStruct, repeated: true },
420
+ ]);
package/package.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@uniswap/client-platform-service",
3
+ "version": "0.0.1",
4
+ "publishConfig": {
5
+ "access": "restricted"
6
+ },
7
+ "files": [
8
+ "dist"
9
+ ]
10
+ }