@uniswap/client-platform-service 0.0.39 → 0.0.40
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/organizationService_pb.d.ts +28 -0
- package/dist/uniswap/platformservice/v1/organizationService_pb.js +37 -0
- package/dist/uniswap/platformservice/v1/userService_pb.d.ts +14 -0
- package/dist/uniswap/platformservice/v1/userService_pb.js +3 -0
- package/package.json +1 -1
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
3
|
import { ApiKeyDataStruct } from "./apiKeyService_pb.js";
|
|
4
|
+
/**
|
|
5
|
+
* Role of a member within their organization. OWNER is the founding user: a
|
|
6
|
+
* super-admin other admins cannot remove or demote.
|
|
7
|
+
*
|
|
8
|
+
* @generated from enum uniswap.platformservice.v1.OrgRole
|
|
9
|
+
*/
|
|
10
|
+
export declare enum OrgRole {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: ORG_ROLE_UNSPECIFIED = 0;
|
|
13
|
+
*/
|
|
14
|
+
UNSPECIFIED = 0,
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: ORG_ROLE_OWNER = 1;
|
|
17
|
+
*/
|
|
18
|
+
OWNER = 1,
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: ORG_ROLE_ADMIN = 2;
|
|
21
|
+
*/
|
|
22
|
+
ADMIN = 2,
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: ORG_ROLE_EDITOR = 3;
|
|
25
|
+
*/
|
|
26
|
+
EDITOR = 3,
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: ORG_ROLE_VIEWER = 4;
|
|
29
|
+
*/
|
|
30
|
+
VIEWER = 4
|
|
31
|
+
}
|
|
4
32
|
/**
|
|
5
33
|
* @generated from message uniswap.platformservice.v1.OrganizationServiceError
|
|
6
34
|
*/
|
|
@@ -4,6 +4,43 @@
|
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
6
|
import { ApiKeyDataStruct } from "./apiKeyService_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* Role of a member within their organization. OWNER is the founding user: a
|
|
9
|
+
* super-admin other admins cannot remove or demote.
|
|
10
|
+
*
|
|
11
|
+
* @generated from enum uniswap.platformservice.v1.OrgRole
|
|
12
|
+
*/
|
|
13
|
+
export var OrgRole;
|
|
14
|
+
(function (OrgRole) {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: ORG_ROLE_UNSPECIFIED = 0;
|
|
17
|
+
*/
|
|
18
|
+
OrgRole[OrgRole["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: ORG_ROLE_OWNER = 1;
|
|
21
|
+
*/
|
|
22
|
+
OrgRole[OrgRole["OWNER"] = 1] = "OWNER";
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: ORG_ROLE_ADMIN = 2;
|
|
25
|
+
*/
|
|
26
|
+
OrgRole[OrgRole["ADMIN"] = 2] = "ADMIN";
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: ORG_ROLE_EDITOR = 3;
|
|
29
|
+
*/
|
|
30
|
+
OrgRole[OrgRole["EDITOR"] = 3] = "EDITOR";
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum value: ORG_ROLE_VIEWER = 4;
|
|
33
|
+
*/
|
|
34
|
+
OrgRole[OrgRole["VIEWER"] = 4] = "VIEWER";
|
|
35
|
+
})(OrgRole || (OrgRole = {}));
|
|
36
|
+
// Retrieve enum metadata with: proto3.getEnumType(OrgRole)
|
|
37
|
+
proto3.util.setEnumType(OrgRole, "uniswap.platformservice.v1.OrgRole", [
|
|
38
|
+
{ no: 0, name: "ORG_ROLE_UNSPECIFIED" },
|
|
39
|
+
{ no: 1, name: "ORG_ROLE_OWNER" },
|
|
40
|
+
{ no: 2, name: "ORG_ROLE_ADMIN" },
|
|
41
|
+
{ no: 3, name: "ORG_ROLE_EDITOR" },
|
|
42
|
+
{ no: 4, name: "ORG_ROLE_VIEWER" },
|
|
43
|
+
]);
|
|
7
44
|
/**
|
|
8
45
|
* @generated from message uniswap.platformservice.v1.OrganizationServiceError
|
|
9
46
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
import { OrgRole } from "./organizationService_pb.js";
|
|
3
4
|
/**
|
|
4
5
|
* @generated from message uniswap.platformservice.v1.UserServiceError
|
|
5
6
|
*/
|
|
@@ -198,6 +199,12 @@ export declare class User extends Message<User> {
|
|
|
198
199
|
* @generated from field: repeated uniswap.platformservice.v1.Agreement agreements = 5;
|
|
199
200
|
*/
|
|
200
201
|
agreements: Agreement[];
|
|
202
|
+
/**
|
|
203
|
+
* Role within the organization; absent when the user has no org.
|
|
204
|
+
*
|
|
205
|
+
* @generated from field: optional uniswap.platformservice.v1.OrgRole role = 6;
|
|
206
|
+
*/
|
|
207
|
+
role?: OrgRole;
|
|
201
208
|
constructor(data?: PartialMessage<User>);
|
|
202
209
|
static readonly runtime: typeof proto3;
|
|
203
210
|
static readonly typeName = "uniswap.platformservice.v1.User";
|
|
@@ -356,6 +363,13 @@ export declare class InternalModifyUserRequest extends Message<InternalModifyUse
|
|
|
356
363
|
* @generated from field: optional string org_id = 1;
|
|
357
364
|
*/
|
|
358
365
|
orgId?: string;
|
|
366
|
+
/**
|
|
367
|
+
* Role stored with the membership; set alongside org_id (the org creator
|
|
368
|
+
* becomes OWNER). Absent leaves the stored role untouched.
|
|
369
|
+
*
|
|
370
|
+
* @generated from field: optional uniswap.platformservice.v1.OrgRole role = 2;
|
|
371
|
+
*/
|
|
372
|
+
role?: OrgRole;
|
|
359
373
|
constructor(data?: PartialMessage<InternalModifyUserRequest>);
|
|
360
374
|
static readonly runtime: typeof proto3;
|
|
361
375
|
static readonly typeName = "uniswap.platformservice.v1.InternalModifyUserRequest";
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
import { OrgRole } from "./organizationService_pb.js";
|
|
6
7
|
/**
|
|
7
8
|
* @generated from message uniswap.platformservice.v1.UserServiceError
|
|
8
9
|
*/
|
|
@@ -297,6 +298,7 @@ User.fields = proto3.util.newFieldList(() => [
|
|
|
297
298
|
{ no: 3, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
298
299
|
{ no: 4, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
299
300
|
{ no: 5, name: "agreements", kind: "message", T: Agreement, repeated: true },
|
|
301
|
+
{ no: 6, name: "role", kind: "enum", T: proto3.getEnumType(OrgRole), opt: true },
|
|
300
302
|
]);
|
|
301
303
|
/**
|
|
302
304
|
* Response for get user
|
|
@@ -531,6 +533,7 @@ InternalModifyUserRequest.runtime = proto3;
|
|
|
531
533
|
InternalModifyUserRequest.typeName = "uniswap.platformservice.v1.InternalModifyUserRequest";
|
|
532
534
|
InternalModifyUserRequest.fields = proto3.util.newFieldList(() => [
|
|
533
535
|
{ no: 1, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
536
|
+
{ no: 2, name: "role", kind: "enum", T: proto3.getEnumType(OrgRole), opt: true },
|
|
534
537
|
]);
|
|
535
538
|
/**
|
|
536
539
|
* @generated from message uniswap.platformservice.v1.InternalModifyUserResponse
|