@uniswap/client-platform-service 0.0.11 → 0.0.12

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