@uniswap/client-platform-service 0.0.41 → 0.0.43

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.
@@ -2,8 +2,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
3
  import { ApiKeyDataStruct } from "./apiKeyService_pb.js";
4
4
  /**
5
- * Role of a member within their organization. OWNER is the founding user: a
6
- * super-admin other admins cannot remove or demote.
5
+ * Role of a member within their organization. The founding user is an ADMIN.
7
6
  *
8
7
  * @generated from enum uniswap.platformservice.v1.OrgRole
9
8
  */
@@ -12,10 +11,6 @@ export declare enum OrgRole {
12
11
  * @generated from enum value: ORG_ROLE_UNSPECIFIED = 0;
13
12
  */
14
13
  UNSPECIFIED = 0,
15
- /**
16
- * @generated from enum value: ORG_ROLE_OWNER = 1;
17
- */
18
- OWNER = 1,
19
14
  /**
20
15
  * @generated from enum value: ORG_ROLE_ADMIN = 2;
21
16
  */
@@ -115,13 +110,7 @@ export declare enum OrganizationServiceError_Code {
115
110
  */
116
111
  CANNOT_MODIFY_SELF = 12,
117
112
  /**
118
- * the owner's role is immutable; only the owner removes the owner
119
- *
120
- * @generated from enum value: CANNOT_MODIFY_OWNER = 13;
121
- */
122
- CANNOT_MODIFY_OWNER = 13,
123
- /**
124
- * role missing, unknown, or OWNER (not assignable)
113
+ * role missing or unknown
125
114
  *
126
115
  * @generated from enum value: INVALID_ROLE = 14;
127
116
  */
@@ -220,7 +209,7 @@ export declare class UpdateOrganizationMemberRoleRequest extends Message<UpdateO
220
209
  */
221
210
  userId: string;
222
211
  /**
223
- * ADMIN, EDITOR, or VIEWER; OWNER is not assignable
212
+ * ADMIN, EDITOR, or VIEWER
224
213
  *
225
214
  * @generated from field: uniswap.platformservice.v1.OrgRole role = 2;
226
215
  */
@@ -5,8 +5,7 @@
5
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
6
  import { ApiKeyDataStruct } from "./apiKeyService_pb.js";
7
7
  /**
8
- * Role of a member within their organization. OWNER is the founding user: a
9
- * super-admin other admins cannot remove or demote.
8
+ * Role of a member within their organization. The founding user is an ADMIN.
10
9
  *
11
10
  * @generated from enum uniswap.platformservice.v1.OrgRole
12
11
  */
@@ -16,10 +15,6 @@ export var OrgRole;
16
15
  * @generated from enum value: ORG_ROLE_UNSPECIFIED = 0;
17
16
  */
18
17
  OrgRole[OrgRole["UNSPECIFIED"] = 0] = "UNSPECIFIED";
19
- /**
20
- * @generated from enum value: ORG_ROLE_OWNER = 1;
21
- */
22
- OrgRole[OrgRole["OWNER"] = 1] = "OWNER";
23
18
  /**
24
19
  * @generated from enum value: ORG_ROLE_ADMIN = 2;
25
20
  */
@@ -36,7 +31,6 @@ export var OrgRole;
36
31
  // Retrieve enum metadata with: proto3.getEnumType(OrgRole)
37
32
  proto3.util.setEnumType(OrgRole, "uniswap.platformservice.v1.OrgRole", [
38
33
  { no: 0, name: "ORG_ROLE_UNSPECIFIED" },
39
- { no: 1, name: "ORG_ROLE_OWNER" },
40
34
  { no: 2, name: "ORG_ROLE_ADMIN" },
41
35
  { no: 3, name: "ORG_ROLE_EDITOR" },
42
36
  { no: 4, name: "ORG_ROLE_VIEWER" },
@@ -141,13 +135,7 @@ export var OrganizationServiceError_Code;
141
135
  */
142
136
  OrganizationServiceError_Code[OrganizationServiceError_Code["CANNOT_MODIFY_SELF"] = 12] = "CANNOT_MODIFY_SELF";
143
137
  /**
144
- * the owner's role is immutable; only the owner removes the owner
145
- *
146
- * @generated from enum value: CANNOT_MODIFY_OWNER = 13;
147
- */
148
- OrganizationServiceError_Code[OrganizationServiceError_Code["CANNOT_MODIFY_OWNER"] = 13] = "CANNOT_MODIFY_OWNER";
149
- /**
150
- * role missing, unknown, or OWNER (not assignable)
138
+ * role missing or unknown
151
139
  *
152
140
  * @generated from enum value: INVALID_ROLE = 14;
153
141
  */
@@ -174,7 +162,6 @@ proto3.util.setEnumType(OrganizationServiceError_Code, "uniswap.platformservice.
174
162
  { no: 10, name: "INVITE_EMAIL_MISMATCH" },
175
163
  { no: 11, name: "LAST_ADMIN" },
176
164
  { no: 12, name: "CANNOT_MODIFY_SELF" },
177
- { no: 13, name: "CANNOT_MODIFY_OWNER" },
178
165
  { no: 14, name: "INVALID_ROLE" },
179
166
  { no: 15, name: "INVALID_EMAIL" },
180
167
  ]);
@@ -306,7 +293,7 @@ export class UpdateOrganizationMemberRoleRequest extends Message {
306
293
  */
307
294
  this.userId = "";
308
295
  /**
309
- * ADMIN, EDITOR, or VIEWER; OWNER is not assignable
296
+ * ADMIN, EDITOR, or VIEWER
310
297
  *
311
298
  * @generated from field: uniswap.platformservice.v1.OrgRole role = 2;
312
299
  */
@@ -1,7 +1,13 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
2
  import { CreateUserRequest, CreateUserResponse, DeleteUserRequest, DeleteUserResponse, GetUserByEmailRequest, GetUserByEmailResponse, GetUserRequest, GetUserResponse, InternalDeleteUserRequest, InternalDeleteUserResponse, InternalModifyUserRequest, InternalModifyUserResponse, ModifyUserRequest, ModifyUserResponse } from "./userService_pb.js";
3
3
  /**
4
- * External facing & Authed endpoints - get UserID directly through ctx.auth.userID header
4
+ * Internal endpoint - create a user row from a verified OAuth identity
5
+ * (not exposed via EGW). Called in-process by SessionServiceBL.verify()
6
+ * after the OAuth login succeeds; it trusts its caller and authorizes
7
+ * nothing itself, so the row is written from the email alone. Routing it
8
+ * is unauthenticated account creation plus an email-enumeration oracle:
9
+ * routing is the only barrier, and entry-gateway-go's routes_test.go pins
10
+ * it unrouted.
5
11
  *
6
12
  * @generated from rpc uniswap.platformservice.v1.UserService.CreateUser
7
13
  */
@@ -16,6 +22,8 @@ export declare const createUser: {
16
22
  };
17
23
  };
18
24
  /**
25
+ * External facing & Authed endpoints - get UserID directly through ctx.auth.userID header
26
+ *
19
27
  * @generated from rpc uniswap.platformservice.v1.UserService.ModifyUser
20
28
  */
21
29
  export declare const modifyUser: {
@@ -5,7 +5,13 @@
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
6
  import { CreateUserRequest, CreateUserResponse, DeleteUserRequest, DeleteUserResponse, GetUserByEmailRequest, GetUserByEmailResponse, GetUserRequest, GetUserResponse, InternalDeleteUserRequest, InternalDeleteUserResponse, InternalModifyUserRequest, InternalModifyUserResponse, ModifyUserRequest, ModifyUserResponse } from "./userService_pb.js";
7
7
  /**
8
- * External facing & Authed endpoints - get UserID directly through ctx.auth.userID header
8
+ * Internal endpoint - create a user row from a verified OAuth identity
9
+ * (not exposed via EGW). Called in-process by SessionServiceBL.verify()
10
+ * after the OAuth login succeeds; it trusts its caller and authorizes
11
+ * nothing itself, so the row is written from the email alone. Routing it
12
+ * is unauthenticated account creation plus an email-enumeration oracle:
13
+ * routing is the only barrier, and entry-gateway-go's routes_test.go pins
14
+ * it unrouted.
9
15
  *
10
16
  * @generated from rpc uniswap.platformservice.v1.UserService.CreateUser
11
17
  */
@@ -20,6 +26,8 @@ export const createUser = {
20
26
  }
21
27
  };
22
28
  /**
29
+ * External facing & Authed endpoints - get UserID directly through ctx.auth.userID header
30
+ *
23
31
  * @generated from rpc uniswap.platformservice.v1.UserService.ModifyUser
24
32
  */
25
33
  export const modifyUser = {
@@ -7,7 +7,13 @@ export declare const UserService: {
7
7
  readonly typeName: "uniswap.platformservice.v1.UserService";
8
8
  readonly methods: {
9
9
  /**
10
- * External facing & Authed endpoints - get UserID directly through ctx.auth.userID header
10
+ * Internal endpoint - create a user row from a verified OAuth identity
11
+ * (not exposed via EGW). Called in-process by SessionServiceBL.verify()
12
+ * after the OAuth login succeeds; it trusts its caller and authorizes
13
+ * nothing itself, so the row is written from the email alone. Routing it
14
+ * is unauthenticated account creation plus an email-enumeration oracle:
15
+ * routing is the only barrier, and entry-gateway-go's routes_test.go pins
16
+ * it unrouted.
11
17
  *
12
18
  * @generated from rpc uniswap.platformservice.v1.UserService.CreateUser
13
19
  */
@@ -18,6 +24,8 @@ export declare const UserService: {
18
24
  readonly kind: MethodKind.Unary;
19
25
  };
20
26
  /**
27
+ * External facing & Authed endpoints - get UserID directly through ctx.auth.userID header
28
+ *
21
29
  * @generated from rpc uniswap.platformservice.v1.UserService.ModifyUser
22
30
  */
23
31
  readonly modifyUser: {
@@ -11,7 +11,13 @@ export const UserService = {
11
11
  typeName: "uniswap.platformservice.v1.UserService",
12
12
  methods: {
13
13
  /**
14
- * External facing & Authed endpoints - get UserID directly through ctx.auth.userID header
14
+ * Internal endpoint - create a user row from a verified OAuth identity
15
+ * (not exposed via EGW). Called in-process by SessionServiceBL.verify()
16
+ * after the OAuth login succeeds; it trusts its caller and authorizes
17
+ * nothing itself, so the row is written from the email alone. Routing it
18
+ * is unauthenticated account creation plus an email-enumeration oracle:
19
+ * routing is the only barrier, and entry-gateway-go's routes_test.go pins
20
+ * it unrouted.
15
21
  *
16
22
  * @generated from rpc uniswap.platformservice.v1.UserService.CreateUser
17
23
  */
@@ -22,6 +28,8 @@ export const UserService = {
22
28
  kind: MethodKind.Unary,
23
29
  },
24
30
  /**
31
+ * External facing & Authed endpoints - get UserID directly through ctx.auth.userID header
32
+ *
25
33
  * @generated from rpc uniswap.platformservice.v1.UserService.ModifyUser
26
34
  */
27
35
  modifyUser: {
@@ -365,7 +365,7 @@ export declare class InternalModifyUserRequest extends Message<InternalModifyUse
365
365
  orgId?: string;
366
366
  /**
367
367
  * Role stored with the membership; set alongside org_id (the org creator
368
- * becomes OWNER). Absent leaves the stored role untouched.
368
+ * becomes ADMIN). Absent leaves the stored role untouched.
369
369
  *
370
370
  * @generated from field: optional uniswap.platformservice.v1.OrgRole role = 2;
371
371
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-platform-service",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },