@uniswap/client-platform-service 0.0.42 → 0.0.44

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.
@@ -75,6 +75,12 @@ export declare enum ApiKeyServiceError_Code {
75
75
  * @generated from enum value: UNAUTHORIZED_ACCESS = 11;
76
76
  */
77
77
  UNAUTHORIZED_ACCESS = 11,
78
+ /**
79
+ * caller is a Viewer; API keys are Admin/Editor only
80
+ *
81
+ * @generated from enum value: ROLE_PERMISSION_DENIED = 12;
82
+ */
83
+ ROLE_PERMISSION_DENIED = 12,
78
84
  /**
79
85
  * @generated from enum value: API_KEY_NOT_ACTIVE = 20;
80
86
  */
@@ -101,6 +101,12 @@ export var ApiKeyServiceError_Code;
101
101
  * @generated from enum value: UNAUTHORIZED_ACCESS = 11;
102
102
  */
103
103
  ApiKeyServiceError_Code[ApiKeyServiceError_Code["UNAUTHORIZED_ACCESS"] = 11] = "UNAUTHORIZED_ACCESS";
104
+ /**
105
+ * caller is a Viewer; API keys are Admin/Editor only
106
+ *
107
+ * @generated from enum value: ROLE_PERMISSION_DENIED = 12;
108
+ */
109
+ ApiKeyServiceError_Code[ApiKeyServiceError_Code["ROLE_PERMISSION_DENIED"] = 12] = "ROLE_PERMISSION_DENIED";
104
110
  /**
105
111
  * @generated from enum value: API_KEY_NOT_ACTIVE = 20;
106
112
  */
@@ -116,6 +122,7 @@ proto3.util.setEnumType(ApiKeyServiceError_Code, "uniswap.platformservice.v1.Api
116
122
  { no: 1, name: "INVALID_REQUEST" },
117
123
  { no: 10, name: "ORGANIZATION_KEY_LIMIT_REACHED" },
118
124
  { no: 11, name: "UNAUTHORIZED_ACCESS" },
125
+ { no: 12, name: "ROLE_PERMISSION_DENIED" },
119
126
  { no: 20, name: "API_KEY_NOT_ACTIVE" },
120
127
  { no: 40, name: "API_KEY_NOT_FOUND" },
121
128
  ]);
@@ -1,5 +1,5 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { AcceptOrganizationInviteRequest, AcceptOrganizationInviteResponse, CreateOrganizationInvitesRequest, CreateOrganizationInvitesResponse, CreateOrganizationRequest, CreateOrganizationResponse, GetMyPendingInviteRequest, GetMyPendingInviteResponse, GetOrganizationInviteRequest, GetOrganizationInviteResponse, GetOrganizationRequest, GetOrganizationResponse, InternalDeleteOrganizationRequest, InternalDeleteOrganizationResponse, InternalGetOrganizationRequest, InternalGetOrganizationResponse, InternalListOrganizationsRequest, InternalListOrganizationsResponse, InternalSetOrganizationCustomNameRequest, InternalSetOrganizationCustomNameResponse, ListOrganizationInvitesRequest, ListOrganizationInvitesResponse, ListOrganizationMembersRequest, ListOrganizationMembersResponse, RemoveOrganizationMemberRequest, RemoveOrganizationMemberResponse, ResendOrganizationInviteRequest, ResendOrganizationInviteResponse, RevokeOrganizationInviteRequest, RevokeOrganizationInviteResponse, UpdateOrganizationInviteRoleRequest, UpdateOrganizationInviteRoleResponse, UpdateOrganizationMemberRoleRequest, UpdateOrganizationMemberRoleResponse, UpdateOrganizationNameRequest, UpdateOrganizationNameResponse } from "./organizationService_pb.js";
2
+ import { AcceptOrganizationInviteRequest, AcceptOrganizationInviteResponse, CreateOrganizationInvitesRequest, CreateOrganizationInvitesResponse, CreateOrganizationRequest, CreateOrganizationResponse, GetMyPendingInviteRequest, GetMyPendingInviteResponse, GetOrganizationInviteRequest, GetOrganizationInviteResponse, GetOrganizationRequest, GetOrganizationResponse, InternalDeleteOrganizationRequest, InternalDeleteOrganizationResponse, InternalGetOrganizationRequest, InternalGetOrganizationResponse, InternalListOrganizationsRequest, InternalListOrganizationsResponse, InternalSetOrganizationCustomNameRequest, InternalSetOrganizationCustomNameResponse, ListOrganizationAuditLogsRequest, ListOrganizationAuditLogsResponse, ListOrganizationInvitesRequest, ListOrganizationInvitesResponse, ListOrganizationMembersRequest, ListOrganizationMembersResponse, RemoveOrganizationMemberRequest, RemoveOrganizationMemberResponse, ResendOrganizationInviteRequest, ResendOrganizationInviteResponse, RevokeOrganizationInviteRequest, RevokeOrganizationInviteResponse, UpdateOrganizationInviteRoleRequest, UpdateOrganizationInviteRoleResponse, UpdateOrganizationMemberRoleRequest, UpdateOrganizationMemberRoleResponse, UpdateOrganizationNameRequest, UpdateOrganizationNameResponse } from "./organizationService_pb.js";
3
3
  /**
4
4
  * authed toward user through egw
5
5
  * User who created the org is admin
@@ -85,6 +85,10 @@ export declare const internalSetOrganizationCustomName: {
85
85
  };
86
86
  /**
87
87
  * --- Team management (authed toward user through egw; admin-only unless noted) ---
88
+ * Readable by ANY member of the org, not only an Admin: the Team page is
89
+ * shown to every role, with a read-only table for Editors and Viewers.
90
+ * Scoped to the caller's own organization -- the request carries no org id
91
+ * and no target id, so there is nothing to point at another org.
88
92
  *
89
93
  * @generated from rpc uniswap.platformservice.v1.OrganizationService.ListOrganizationMembers
90
94
  */
@@ -255,3 +259,19 @@ export declare const getMyPendingInvite: {
255
259
  readonly typeName: "uniswap.platformservice.v1.OrganizationService";
256
260
  };
257
261
  };
262
+ /**
263
+ * --- Audit log (admin-only) ---
264
+ * What has happened in this org, newest first. Reads are never logged.
265
+ *
266
+ * @generated from rpc uniswap.platformservice.v1.OrganizationService.ListOrganizationAuditLogs
267
+ */
268
+ export declare const listOrganizationAuditLogs: {
269
+ readonly localName: "listOrganizationAuditLogs";
270
+ readonly name: "ListOrganizationAuditLogs";
271
+ readonly kind: MethodKind.Unary;
272
+ readonly I: typeof ListOrganizationAuditLogsRequest;
273
+ readonly O: typeof ListOrganizationAuditLogsResponse;
274
+ readonly service: {
275
+ readonly typeName: "uniswap.platformservice.v1.OrganizationService";
276
+ };
277
+ };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { AcceptOrganizationInviteRequest, AcceptOrganizationInviteResponse, CreateOrganizationInvitesRequest, CreateOrganizationInvitesResponse, CreateOrganizationRequest, CreateOrganizationResponse, GetMyPendingInviteRequest, GetMyPendingInviteResponse, GetOrganizationInviteRequest, GetOrganizationInviteResponse, GetOrganizationRequest, GetOrganizationResponse, InternalDeleteOrganizationRequest, InternalDeleteOrganizationResponse, InternalGetOrganizationRequest, InternalGetOrganizationResponse, InternalListOrganizationsRequest, InternalListOrganizationsResponse, InternalSetOrganizationCustomNameRequest, InternalSetOrganizationCustomNameResponse, ListOrganizationInvitesRequest, ListOrganizationInvitesResponse, ListOrganizationMembersRequest, ListOrganizationMembersResponse, RemoveOrganizationMemberRequest, RemoveOrganizationMemberResponse, ResendOrganizationInviteRequest, ResendOrganizationInviteResponse, RevokeOrganizationInviteRequest, RevokeOrganizationInviteResponse, UpdateOrganizationInviteRoleRequest, UpdateOrganizationInviteRoleResponse, UpdateOrganizationMemberRoleRequest, UpdateOrganizationMemberRoleResponse, UpdateOrganizationNameRequest, UpdateOrganizationNameResponse } from "./organizationService_pb.js";
6
+ import { AcceptOrganizationInviteRequest, AcceptOrganizationInviteResponse, CreateOrganizationInvitesRequest, CreateOrganizationInvitesResponse, CreateOrganizationRequest, CreateOrganizationResponse, GetMyPendingInviteRequest, GetMyPendingInviteResponse, GetOrganizationInviteRequest, GetOrganizationInviteResponse, GetOrganizationRequest, GetOrganizationResponse, InternalDeleteOrganizationRequest, InternalDeleteOrganizationResponse, InternalGetOrganizationRequest, InternalGetOrganizationResponse, InternalListOrganizationsRequest, InternalListOrganizationsResponse, InternalSetOrganizationCustomNameRequest, InternalSetOrganizationCustomNameResponse, ListOrganizationAuditLogsRequest, ListOrganizationAuditLogsResponse, ListOrganizationInvitesRequest, ListOrganizationInvitesResponse, ListOrganizationMembersRequest, ListOrganizationMembersResponse, RemoveOrganizationMemberRequest, RemoveOrganizationMemberResponse, ResendOrganizationInviteRequest, ResendOrganizationInviteResponse, RevokeOrganizationInviteRequest, RevokeOrganizationInviteResponse, UpdateOrganizationInviteRoleRequest, UpdateOrganizationInviteRoleResponse, UpdateOrganizationMemberRoleRequest, UpdateOrganizationMemberRoleResponse, UpdateOrganizationNameRequest, UpdateOrganizationNameResponse } from "./organizationService_pb.js";
7
7
  /**
8
8
  * authed toward user through egw
9
9
  * User who created the org is admin
@@ -89,6 +89,10 @@ export const internalSetOrganizationCustomName = {
89
89
  };
90
90
  /**
91
91
  * --- Team management (authed toward user through egw; admin-only unless noted) ---
92
+ * Readable by ANY member of the org, not only an Admin: the Team page is
93
+ * shown to every role, with a read-only table for Editors and Viewers.
94
+ * Scoped to the caller's own organization -- the request carries no org id
95
+ * and no target id, so there is nothing to point at another org.
92
96
  *
93
97
  * @generated from rpc uniswap.platformservice.v1.OrganizationService.ListOrganizationMembers
94
98
  */
@@ -259,3 +263,19 @@ export const getMyPendingInvite = {
259
263
  typeName: "uniswap.platformservice.v1.OrganizationService"
260
264
  }
261
265
  };
266
+ /**
267
+ * --- Audit log (admin-only) ---
268
+ * What has happened in this org, newest first. Reads are never logged.
269
+ *
270
+ * @generated from rpc uniswap.platformservice.v1.OrganizationService.ListOrganizationAuditLogs
271
+ */
272
+ export const listOrganizationAuditLogs = {
273
+ localName: "listOrganizationAuditLogs",
274
+ name: "ListOrganizationAuditLogs",
275
+ kind: MethodKind.Unary,
276
+ I: ListOrganizationAuditLogsRequest,
277
+ O: ListOrganizationAuditLogsResponse,
278
+ service: {
279
+ typeName: "uniswap.platformservice.v1.OrganizationService"
280
+ }
281
+ };
@@ -1,4 +1,4 @@
1
- import { AcceptOrganizationInviteRequest, AcceptOrganizationInviteResponse, CreateOrganizationInvitesRequest, CreateOrganizationInvitesResponse, CreateOrganizationRequest, CreateOrganizationResponse, GetMyPendingInviteRequest, GetMyPendingInviteResponse, GetOrganizationInviteRequest, GetOrganizationInviteResponse, GetOrganizationRequest, GetOrganizationResponse, InternalDeleteOrganizationRequest, InternalDeleteOrganizationResponse, InternalGetOrganizationRequest, InternalGetOrganizationResponse, InternalListOrganizationsRequest, InternalListOrganizationsResponse, InternalSetOrganizationCustomNameRequest, InternalSetOrganizationCustomNameResponse, ListOrganizationInvitesRequest, ListOrganizationInvitesResponse, ListOrganizationMembersRequest, ListOrganizationMembersResponse, RemoveOrganizationMemberRequest, RemoveOrganizationMemberResponse, ResendOrganizationInviteRequest, ResendOrganizationInviteResponse, RevokeOrganizationInviteRequest, RevokeOrganizationInviteResponse, UpdateOrganizationInviteRoleRequest, UpdateOrganizationInviteRoleResponse, UpdateOrganizationMemberRoleRequest, UpdateOrganizationMemberRoleResponse, UpdateOrganizationNameRequest, UpdateOrganizationNameResponse } from "./organizationService_pb.js";
1
+ import { AcceptOrganizationInviteRequest, AcceptOrganizationInviteResponse, CreateOrganizationInvitesRequest, CreateOrganizationInvitesResponse, CreateOrganizationRequest, CreateOrganizationResponse, GetMyPendingInviteRequest, GetMyPendingInviteResponse, GetOrganizationInviteRequest, GetOrganizationInviteResponse, GetOrganizationRequest, GetOrganizationResponse, InternalDeleteOrganizationRequest, InternalDeleteOrganizationResponse, InternalGetOrganizationRequest, InternalGetOrganizationResponse, InternalListOrganizationsRequest, InternalListOrganizationsResponse, InternalSetOrganizationCustomNameRequest, InternalSetOrganizationCustomNameResponse, ListOrganizationAuditLogsRequest, ListOrganizationAuditLogsResponse, ListOrganizationInvitesRequest, ListOrganizationInvitesResponse, ListOrganizationMembersRequest, ListOrganizationMembersResponse, RemoveOrganizationMemberRequest, RemoveOrganizationMemberResponse, ResendOrganizationInviteRequest, ResendOrganizationInviteResponse, RevokeOrganizationInviteRequest, RevokeOrganizationInviteResponse, UpdateOrganizationInviteRoleRequest, UpdateOrganizationInviteRoleResponse, UpdateOrganizationMemberRoleRequest, UpdateOrganizationMemberRoleResponse, UpdateOrganizationNameRequest, UpdateOrganizationNameResponse } from "./organizationService_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service uniswap.platformservice.v1.OrganizationService
@@ -67,6 +67,10 @@ export declare const OrganizationService: {
67
67
  };
68
68
  /**
69
69
  * --- Team management (authed toward user through egw; admin-only unless noted) ---
70
+ * Readable by ANY member of the org, not only an Admin: the Team page is
71
+ * shown to every role, with a read-only table for Editors and Viewers.
72
+ * Scoped to the caller's own organization -- the request carries no org id
73
+ * and no target id, so there is nothing to point at another org.
70
74
  *
71
75
  * @generated from rpc uniswap.platformservice.v1.OrganizationService.ListOrganizationMembers
72
76
  */
@@ -189,5 +193,17 @@ export declare const OrganizationService: {
189
193
  readonly O: typeof GetMyPendingInviteResponse;
190
194
  readonly kind: MethodKind.Unary;
191
195
  };
196
+ /**
197
+ * --- Audit log (admin-only) ---
198
+ * What has happened in this org, newest first. Reads are never logged.
199
+ *
200
+ * @generated from rpc uniswap.platformservice.v1.OrganizationService.ListOrganizationAuditLogs
201
+ */
202
+ readonly listOrganizationAuditLogs: {
203
+ readonly name: "ListOrganizationAuditLogs";
204
+ readonly I: typeof ListOrganizationAuditLogsRequest;
205
+ readonly O: typeof ListOrganizationAuditLogsResponse;
206
+ readonly kind: MethodKind.Unary;
207
+ };
192
208
  };
193
209
  };
@@ -2,7 +2,7 @@
2
2
  // @generated from file uniswap/platformservice/v1/organizationService.proto (package uniswap.platformservice.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { AcceptOrganizationInviteRequest, AcceptOrganizationInviteResponse, CreateOrganizationInvitesRequest, CreateOrganizationInvitesResponse, CreateOrganizationRequest, CreateOrganizationResponse, GetMyPendingInviteRequest, GetMyPendingInviteResponse, GetOrganizationInviteRequest, GetOrganizationInviteResponse, GetOrganizationRequest, GetOrganizationResponse, InternalDeleteOrganizationRequest, InternalDeleteOrganizationResponse, InternalGetOrganizationRequest, InternalGetOrganizationResponse, InternalListOrganizationsRequest, InternalListOrganizationsResponse, InternalSetOrganizationCustomNameRequest, InternalSetOrganizationCustomNameResponse, ListOrganizationInvitesRequest, ListOrganizationInvitesResponse, ListOrganizationMembersRequest, ListOrganizationMembersResponse, RemoveOrganizationMemberRequest, RemoveOrganizationMemberResponse, ResendOrganizationInviteRequest, ResendOrganizationInviteResponse, RevokeOrganizationInviteRequest, RevokeOrganizationInviteResponse, UpdateOrganizationInviteRoleRequest, UpdateOrganizationInviteRoleResponse, UpdateOrganizationMemberRoleRequest, UpdateOrganizationMemberRoleResponse, UpdateOrganizationNameRequest, UpdateOrganizationNameResponse } from "./organizationService_pb.js";
5
+ import { AcceptOrganizationInviteRequest, AcceptOrganizationInviteResponse, CreateOrganizationInvitesRequest, CreateOrganizationInvitesResponse, CreateOrganizationRequest, CreateOrganizationResponse, GetMyPendingInviteRequest, GetMyPendingInviteResponse, GetOrganizationInviteRequest, GetOrganizationInviteResponse, GetOrganizationRequest, GetOrganizationResponse, InternalDeleteOrganizationRequest, InternalDeleteOrganizationResponse, InternalGetOrganizationRequest, InternalGetOrganizationResponse, InternalListOrganizationsRequest, InternalListOrganizationsResponse, InternalSetOrganizationCustomNameRequest, InternalSetOrganizationCustomNameResponse, ListOrganizationAuditLogsRequest, ListOrganizationAuditLogsResponse, ListOrganizationInvitesRequest, ListOrganizationInvitesResponse, ListOrganizationMembersRequest, ListOrganizationMembersResponse, RemoveOrganizationMemberRequest, RemoveOrganizationMemberResponse, ResendOrganizationInviteRequest, ResendOrganizationInviteResponse, RevokeOrganizationInviteRequest, RevokeOrganizationInviteResponse, UpdateOrganizationInviteRoleRequest, UpdateOrganizationInviteRoleResponse, UpdateOrganizationMemberRoleRequest, UpdateOrganizationMemberRoleResponse, UpdateOrganizationNameRequest, UpdateOrganizationNameResponse } from "./organizationService_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service uniswap.platformservice.v1.OrganizationService
@@ -71,6 +71,10 @@ export const OrganizationService = {
71
71
  },
72
72
  /**
73
73
  * --- Team management (authed toward user through egw; admin-only unless noted) ---
74
+ * Readable by ANY member of the org, not only an Admin: the Team page is
75
+ * shown to every role, with a read-only table for Editors and Viewers.
76
+ * Scoped to the caller's own organization -- the request carries no org id
77
+ * and no target id, so there is nothing to point at another org.
74
78
  *
75
79
  * @generated from rpc uniswap.platformservice.v1.OrganizationService.ListOrganizationMembers
76
80
  */
@@ -193,5 +197,17 @@ export const OrganizationService = {
193
197
  O: GetMyPendingInviteResponse,
194
198
  kind: MethodKind.Unary,
195
199
  },
200
+ /**
201
+ * --- Audit log (admin-only) ---
202
+ * What has happened in this org, newest first. Reads are never logged.
203
+ *
204
+ * @generated from rpc uniswap.platformservice.v1.OrganizationService.ListOrganizationAuditLogs
205
+ */
206
+ listOrganizationAuditLogs: {
207
+ name: "ListOrganizationAuditLogs",
208
+ I: ListOrganizationAuditLogsRequest,
209
+ O: ListOrganizationAuditLogsResponse,
210
+ kind: MethodKind.Unary,
211
+ },
196
212
  }
197
213
  };
@@ -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
  */
@@ -29,6 +24,76 @@ export declare enum OrgRole {
29
24
  */
30
25
  VIEWER = 4
31
26
  }
27
+ /**
28
+ * What an audit entry records happening. The verb and its subject are one
29
+ * value rather than an (action, target_type) pair: the dev portal's filter
30
+ * dropdown is built from this enum, so a pair would let it offer combinations
31
+ * that no call site emits.
32
+ *
33
+ * @generated from enum uniswap.platformservice.v1.OrganizationAuditAction
34
+ */
35
+ export declare enum OrganizationAuditAction {
36
+ /**
37
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_UNSPECIFIED = 0;
38
+ */
39
+ UNSPECIFIED = 0,
40
+ /**
41
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_ORGANIZATION_CREATED = 1;
42
+ */
43
+ ORGANIZATION_CREATED = 1,
44
+ /**
45
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_ORGANIZATION_RENAMED = 2;
46
+ */
47
+ ORGANIZATION_RENAMED = 2,
48
+ /**
49
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_MEMBER_ROLE_CHANGED = 3;
50
+ */
51
+ MEMBER_ROLE_CHANGED = 3,
52
+ /**
53
+ * an admin removed someone else
54
+ *
55
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_MEMBER_REMOVED = 4;
56
+ */
57
+ MEMBER_REMOVED = 4,
58
+ /**
59
+ * a member removed themselves
60
+ *
61
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_MEMBER_LEFT = 5;
62
+ */
63
+ MEMBER_LEFT = 5,
64
+ /**
65
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_INVITE_CREATED = 6;
66
+ */
67
+ INVITE_CREATED = 6,
68
+ /**
69
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_INVITE_REVOKED = 7;
70
+ */
71
+ INVITE_REVOKED = 7,
72
+ /**
73
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_INVITE_RESENT = 8;
74
+ */
75
+ INVITE_RESENT = 8,
76
+ /**
77
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_INVITE_ROLE_CHANGED = 9;
78
+ */
79
+ INVITE_ROLE_CHANGED = 9,
80
+ /**
81
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_INVITE_ACCEPTED = 10;
82
+ */
83
+ INVITE_ACCEPTED = 10,
84
+ /**
85
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_API_KEY_CREATED = 11;
86
+ */
87
+ API_KEY_CREATED = 11,
88
+ /**
89
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_API_KEY_MODIFIED = 12;
90
+ */
91
+ API_KEY_MODIFIED = 12,
92
+ /**
93
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_API_KEY_DELETED = 13;
94
+ */
95
+ API_KEY_DELETED = 13
96
+ }
32
97
  /**
33
98
  * @generated from message uniswap.platformservice.v1.OrganizationServiceError
34
99
  */
@@ -115,13 +180,7 @@ export declare enum OrganizationServiceError_Code {
115
180
  */
116
181
  CANNOT_MODIFY_SELF = 12,
117
182
  /**
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)
183
+ * role missing or unknown
125
184
  *
126
185
  * @generated from enum value: INVALID_ROLE = 14;
127
186
  */
@@ -131,7 +190,25 @@ export declare enum OrganizationServiceError_Code {
131
190
  *
132
191
  * @generated from enum value: INVALID_EMAIL = 15;
133
192
  */
134
- INVALID_EMAIL = 15
193
+ INVALID_EMAIL = 15,
194
+ /**
195
+ * the caller's own role changed mid-request; re-read and retry
196
+ *
197
+ * @generated from enum value: ORG_ROLE_CHANGED = 16;
198
+ */
199
+ ORG_ROLE_CHANGED = 16,
200
+ /**
201
+ * the org's only member cannot leave; deletion goes through support
202
+ *
203
+ * @generated from enum value: LAST_MEMBER = 17;
204
+ */
205
+ LAST_MEMBER = 17,
206
+ /**
207
+ * the org is archived and accepts no writes
208
+ *
209
+ * @generated from enum value: ORGANIZATION_ARCHIVED = 18;
210
+ */
211
+ ORGANIZATION_ARCHIVED = 18
135
212
  }
136
213
  /**
137
214
  * @generated from message uniswap.platformservice.v1.OrganizationMember
@@ -220,7 +297,7 @@ export declare class UpdateOrganizationMemberRoleRequest extends Message<UpdateO
220
297
  */
221
298
  userId: string;
222
299
  /**
223
- * ADMIN, EDITOR, or VIEWER; OWNER is not assignable
300
+ * ADMIN, EDITOR, or VIEWER
224
301
  *
225
302
  * @generated from field: uniswap.platformservice.v1.OrgRole role = 2;
226
303
  */
@@ -654,6 +731,14 @@ export declare class AcceptOrganizationInviteRequest extends Message<AcceptOrgan
654
731
  * @generated from field: string code = 1;
655
732
  */
656
733
  code: string;
734
+ /**
735
+ * Optional: accept this specific invite instead of the newest pending one.
736
+ * With neither code nor invite_id, a member holding two pending invites joins
737
+ * whichever happens to be newest, which is not a choice they made.
738
+ *
739
+ * @generated from field: string invite_id = 2;
740
+ */
741
+ inviteId: string;
657
742
  constructor(data?: PartialMessage<AcceptOrganizationInviteRequest>);
658
743
  static readonly runtime: typeof proto3;
659
744
  static readonly typeName = "uniswap.platformservice.v1.AcceptOrganizationInviteRequest";
@@ -684,6 +769,105 @@ export declare class AcceptOrganizationInviteResponse extends Message<AcceptOrga
684
769
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AcceptOrganizationInviteResponse;
685
770
  static equals(a: AcceptOrganizationInviteResponse | PlainMessage<AcceptOrganizationInviteResponse> | undefined, b: AcceptOrganizationInviteResponse | PlainMessage<AcceptOrganizationInviteResponse> | undefined): boolean;
686
771
  }
772
+ /**
773
+ * @generated from message uniswap.platformservice.v1.OrganizationAuditEntry
774
+ */
775
+ export declare class OrganizationAuditEntry extends Message<OrganizationAuditEntry> {
776
+ /**
777
+ * @generated from field: string id = 1;
778
+ */
779
+ id: string;
780
+ /**
781
+ * ISO 8601
782
+ *
783
+ * @generated from field: string created_at = 2;
784
+ */
785
+ createdAt: string;
786
+ /**
787
+ * empty when the actor is not a member (support, automation)
788
+ *
789
+ * @generated from field: string actor_email = 3;
790
+ */
791
+ actorEmail: string;
792
+ /**
793
+ * @generated from field: uniswap.platformservice.v1.OrganizationAuditAction action = 4;
794
+ */
795
+ action: OrganizationAuditAction;
796
+ /**
797
+ * the member, invite or API key acted on; empty for org-level actions
798
+ *
799
+ * @generated from field: string target_id = 5;
800
+ */
801
+ targetId: string;
802
+ /**
803
+ * human-readable summary, rendered as-is by the dev portal
804
+ *
805
+ * @generated from field: string description = 6;
806
+ */
807
+ description: string;
808
+ constructor(data?: PartialMessage<OrganizationAuditEntry>);
809
+ static readonly runtime: typeof proto3;
810
+ static readonly typeName = "uniswap.platformservice.v1.OrganizationAuditEntry";
811
+ static readonly fields: FieldList;
812
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OrganizationAuditEntry;
813
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OrganizationAuditEntry;
814
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OrganizationAuditEntry;
815
+ static equals(a: OrganizationAuditEntry | PlainMessage<OrganizationAuditEntry> | undefined, b: OrganizationAuditEntry | PlainMessage<OrganizationAuditEntry> | undefined): boolean;
816
+ }
817
+ /**
818
+ * @generated from message uniswap.platformservice.v1.ListOrganizationAuditLogsRequest
819
+ */
820
+ export declare class ListOrganizationAuditLogsRequest extends Message<ListOrganizationAuditLogsRequest> {
821
+ /**
822
+ * pagination cursor (base64-encoded LastEvaluatedKey)
823
+ *
824
+ * @generated from field: string page_token = 1;
825
+ */
826
+ pageToken: string;
827
+ /**
828
+ * max items per page, default 100, at most 500
829
+ *
830
+ * @generated from field: int32 page_size = 2;
831
+ */
832
+ pageSize: number;
833
+ constructor(data?: PartialMessage<ListOrganizationAuditLogsRequest>);
834
+ static readonly runtime: typeof proto3;
835
+ static readonly typeName = "uniswap.platformservice.v1.ListOrganizationAuditLogsRequest";
836
+ static readonly fields: FieldList;
837
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationAuditLogsRequest;
838
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationAuditLogsRequest;
839
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationAuditLogsRequest;
840
+ static equals(a: ListOrganizationAuditLogsRequest | PlainMessage<ListOrganizationAuditLogsRequest> | undefined, b: ListOrganizationAuditLogsRequest | PlainMessage<ListOrganizationAuditLogsRequest> | undefined): boolean;
841
+ }
842
+ /**
843
+ * @generated from message uniswap.platformservice.v1.ListOrganizationAuditLogsResponse
844
+ */
845
+ export declare class ListOrganizationAuditLogsResponse extends Message<ListOrganizationAuditLogsResponse> {
846
+ /**
847
+ * newest first
848
+ *
849
+ * @generated from field: repeated uniswap.platformservice.v1.OrganizationAuditEntry entries = 1;
850
+ */
851
+ entries: OrganizationAuditEntry[];
852
+ /**
853
+ * empty string means no more pages
854
+ *
855
+ * @generated from field: string next_page_token = 2;
856
+ */
857
+ nextPageToken: string;
858
+ /**
859
+ * @generated from field: optional uniswap.platformservice.v1.OrganizationServiceError error = 3;
860
+ */
861
+ error?: OrganizationServiceError;
862
+ constructor(data?: PartialMessage<ListOrganizationAuditLogsResponse>);
863
+ static readonly runtime: typeof proto3;
864
+ static readonly typeName = "uniswap.platformservice.v1.ListOrganizationAuditLogsResponse";
865
+ static readonly fields: FieldList;
866
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationAuditLogsResponse;
867
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationAuditLogsResponse;
868
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationAuditLogsResponse;
869
+ static equals(a: ListOrganizationAuditLogsResponse | PlainMessage<ListOrganizationAuditLogsResponse> | undefined, b: ListOrganizationAuditLogsResponse | PlainMessage<ListOrganizationAuditLogsResponse> | undefined): boolean;
870
+ }
687
871
  /**
688
872
  * @generated from message uniswap.platformservice.v1.GetMyPendingInviteRequest
689
873
  */
@@ -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,11 +31,98 @@ 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" },
43
37
  ]);
38
+ /**
39
+ * What an audit entry records happening. The verb and its subject are one
40
+ * value rather than an (action, target_type) pair: the dev portal's filter
41
+ * dropdown is built from this enum, so a pair would let it offer combinations
42
+ * that no call site emits.
43
+ *
44
+ * @generated from enum uniswap.platformservice.v1.OrganizationAuditAction
45
+ */
46
+ export var OrganizationAuditAction;
47
+ (function (OrganizationAuditAction) {
48
+ /**
49
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_UNSPECIFIED = 0;
50
+ */
51
+ OrganizationAuditAction[OrganizationAuditAction["UNSPECIFIED"] = 0] = "UNSPECIFIED";
52
+ /**
53
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_ORGANIZATION_CREATED = 1;
54
+ */
55
+ OrganizationAuditAction[OrganizationAuditAction["ORGANIZATION_CREATED"] = 1] = "ORGANIZATION_CREATED";
56
+ /**
57
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_ORGANIZATION_RENAMED = 2;
58
+ */
59
+ OrganizationAuditAction[OrganizationAuditAction["ORGANIZATION_RENAMED"] = 2] = "ORGANIZATION_RENAMED";
60
+ /**
61
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_MEMBER_ROLE_CHANGED = 3;
62
+ */
63
+ OrganizationAuditAction[OrganizationAuditAction["MEMBER_ROLE_CHANGED"] = 3] = "MEMBER_ROLE_CHANGED";
64
+ /**
65
+ * an admin removed someone else
66
+ *
67
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_MEMBER_REMOVED = 4;
68
+ */
69
+ OrganizationAuditAction[OrganizationAuditAction["MEMBER_REMOVED"] = 4] = "MEMBER_REMOVED";
70
+ /**
71
+ * a member removed themselves
72
+ *
73
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_MEMBER_LEFT = 5;
74
+ */
75
+ OrganizationAuditAction[OrganizationAuditAction["MEMBER_LEFT"] = 5] = "MEMBER_LEFT";
76
+ /**
77
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_INVITE_CREATED = 6;
78
+ */
79
+ OrganizationAuditAction[OrganizationAuditAction["INVITE_CREATED"] = 6] = "INVITE_CREATED";
80
+ /**
81
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_INVITE_REVOKED = 7;
82
+ */
83
+ OrganizationAuditAction[OrganizationAuditAction["INVITE_REVOKED"] = 7] = "INVITE_REVOKED";
84
+ /**
85
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_INVITE_RESENT = 8;
86
+ */
87
+ OrganizationAuditAction[OrganizationAuditAction["INVITE_RESENT"] = 8] = "INVITE_RESENT";
88
+ /**
89
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_INVITE_ROLE_CHANGED = 9;
90
+ */
91
+ OrganizationAuditAction[OrganizationAuditAction["INVITE_ROLE_CHANGED"] = 9] = "INVITE_ROLE_CHANGED";
92
+ /**
93
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_INVITE_ACCEPTED = 10;
94
+ */
95
+ OrganizationAuditAction[OrganizationAuditAction["INVITE_ACCEPTED"] = 10] = "INVITE_ACCEPTED";
96
+ /**
97
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_API_KEY_CREATED = 11;
98
+ */
99
+ OrganizationAuditAction[OrganizationAuditAction["API_KEY_CREATED"] = 11] = "API_KEY_CREATED";
100
+ /**
101
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_API_KEY_MODIFIED = 12;
102
+ */
103
+ OrganizationAuditAction[OrganizationAuditAction["API_KEY_MODIFIED"] = 12] = "API_KEY_MODIFIED";
104
+ /**
105
+ * @generated from enum value: ORGANIZATION_AUDIT_ACTION_API_KEY_DELETED = 13;
106
+ */
107
+ OrganizationAuditAction[OrganizationAuditAction["API_KEY_DELETED"] = 13] = "API_KEY_DELETED";
108
+ })(OrganizationAuditAction || (OrganizationAuditAction = {}));
109
+ // Retrieve enum metadata with: proto3.getEnumType(OrganizationAuditAction)
110
+ proto3.util.setEnumType(OrganizationAuditAction, "uniswap.platformservice.v1.OrganizationAuditAction", [
111
+ { no: 0, name: "ORGANIZATION_AUDIT_ACTION_UNSPECIFIED" },
112
+ { no: 1, name: "ORGANIZATION_AUDIT_ACTION_ORGANIZATION_CREATED" },
113
+ { no: 2, name: "ORGANIZATION_AUDIT_ACTION_ORGANIZATION_RENAMED" },
114
+ { no: 3, name: "ORGANIZATION_AUDIT_ACTION_MEMBER_ROLE_CHANGED" },
115
+ { no: 4, name: "ORGANIZATION_AUDIT_ACTION_MEMBER_REMOVED" },
116
+ { no: 5, name: "ORGANIZATION_AUDIT_ACTION_MEMBER_LEFT" },
117
+ { no: 6, name: "ORGANIZATION_AUDIT_ACTION_INVITE_CREATED" },
118
+ { no: 7, name: "ORGANIZATION_AUDIT_ACTION_INVITE_REVOKED" },
119
+ { no: 8, name: "ORGANIZATION_AUDIT_ACTION_INVITE_RESENT" },
120
+ { no: 9, name: "ORGANIZATION_AUDIT_ACTION_INVITE_ROLE_CHANGED" },
121
+ { no: 10, name: "ORGANIZATION_AUDIT_ACTION_INVITE_ACCEPTED" },
122
+ { no: 11, name: "ORGANIZATION_AUDIT_ACTION_API_KEY_CREATED" },
123
+ { no: 12, name: "ORGANIZATION_AUDIT_ACTION_API_KEY_MODIFIED" },
124
+ { no: 13, name: "ORGANIZATION_AUDIT_ACTION_API_KEY_DELETED" },
125
+ ]);
44
126
  /**
45
127
  * @generated from message uniswap.platformservice.v1.OrganizationServiceError
46
128
  */
@@ -141,13 +223,7 @@ export var OrganizationServiceError_Code;
141
223
  */
142
224
  OrganizationServiceError_Code[OrganizationServiceError_Code["CANNOT_MODIFY_SELF"] = 12] = "CANNOT_MODIFY_SELF";
143
225
  /**
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)
226
+ * role missing or unknown
151
227
  *
152
228
  * @generated from enum value: INVALID_ROLE = 14;
153
229
  */
@@ -158,6 +234,24 @@ export var OrganizationServiceError_Code;
158
234
  * @generated from enum value: INVALID_EMAIL = 15;
159
235
  */
160
236
  OrganizationServiceError_Code[OrganizationServiceError_Code["INVALID_EMAIL"] = 15] = "INVALID_EMAIL";
237
+ /**
238
+ * the caller's own role changed mid-request; re-read and retry
239
+ *
240
+ * @generated from enum value: ORG_ROLE_CHANGED = 16;
241
+ */
242
+ OrganizationServiceError_Code[OrganizationServiceError_Code["ORG_ROLE_CHANGED"] = 16] = "ORG_ROLE_CHANGED";
243
+ /**
244
+ * the org's only member cannot leave; deletion goes through support
245
+ *
246
+ * @generated from enum value: LAST_MEMBER = 17;
247
+ */
248
+ OrganizationServiceError_Code[OrganizationServiceError_Code["LAST_MEMBER"] = 17] = "LAST_MEMBER";
249
+ /**
250
+ * the org is archived and accepts no writes
251
+ *
252
+ * @generated from enum value: ORGANIZATION_ARCHIVED = 18;
253
+ */
254
+ OrganizationServiceError_Code[OrganizationServiceError_Code["ORGANIZATION_ARCHIVED"] = 18] = "ORGANIZATION_ARCHIVED";
161
255
  })(OrganizationServiceError_Code || (OrganizationServiceError_Code = {}));
162
256
  // Retrieve enum metadata with: proto3.getEnumType(OrganizationServiceError_Code)
163
257
  proto3.util.setEnumType(OrganizationServiceError_Code, "uniswap.platformservice.v1.OrganizationServiceError.Code", [
@@ -174,9 +268,11 @@ proto3.util.setEnumType(OrganizationServiceError_Code, "uniswap.platformservice.
174
268
  { no: 10, name: "INVITE_EMAIL_MISMATCH" },
175
269
  { no: 11, name: "LAST_ADMIN" },
176
270
  { no: 12, name: "CANNOT_MODIFY_SELF" },
177
- { no: 13, name: "CANNOT_MODIFY_OWNER" },
178
271
  { no: 14, name: "INVALID_ROLE" },
179
272
  { no: 15, name: "INVALID_EMAIL" },
273
+ { no: 16, name: "ORG_ROLE_CHANGED" },
274
+ { no: 17, name: "LAST_MEMBER" },
275
+ { no: 18, name: "ORGANIZATION_ARCHIVED" },
180
276
  ]);
181
277
  /**
182
278
  * @generated from message uniswap.platformservice.v1.OrganizationMember
@@ -306,7 +402,7 @@ export class UpdateOrganizationMemberRoleRequest extends Message {
306
402
  */
307
403
  this.userId = "";
308
404
  /**
309
- * ADMIN, EDITOR, or VIEWER; OWNER is not assignable
405
+ * ADMIN, EDITOR, or VIEWER
310
406
  *
311
407
  * @generated from field: uniswap.platformservice.v1.OrgRole role = 2;
312
408
  */
@@ -977,6 +1073,14 @@ export class AcceptOrganizationInviteRequest extends Message {
977
1073
  * @generated from field: string code = 1;
978
1074
  */
979
1075
  this.code = "";
1076
+ /**
1077
+ * Optional: accept this specific invite instead of the newest pending one.
1078
+ * With neither code nor invite_id, a member holding two pending invites joins
1079
+ * whichever happens to be newest, which is not a choice they made.
1080
+ *
1081
+ * @generated from field: string invite_id = 2;
1082
+ */
1083
+ this.inviteId = "";
980
1084
  proto3.util.initPartial(data, this);
981
1085
  }
982
1086
  static fromBinary(bytes, options) {
@@ -996,6 +1100,7 @@ AcceptOrganizationInviteRequest.runtime = proto3;
996
1100
  AcceptOrganizationInviteRequest.typeName = "uniswap.platformservice.v1.AcceptOrganizationInviteRequest";
997
1101
  AcceptOrganizationInviteRequest.fields = proto3.util.newFieldList(() => [
998
1102
  { no: 1, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1103
+ { no: 2, name: "invite_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
999
1104
  ]);
1000
1105
  /**
1001
1106
  * @generated from message uniswap.platformservice.v1.AcceptOrganizationInviteResponse
@@ -1028,6 +1133,148 @@ AcceptOrganizationInviteResponse.fields = proto3.util.newFieldList(() => [
1028
1133
  { no: 1, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1029
1134
  { no: 2, name: "error", kind: "message", T: OrganizationServiceError, opt: true },
1030
1135
  ]);
1136
+ /**
1137
+ * @generated from message uniswap.platformservice.v1.OrganizationAuditEntry
1138
+ */
1139
+ export class OrganizationAuditEntry extends Message {
1140
+ constructor(data) {
1141
+ super();
1142
+ /**
1143
+ * @generated from field: string id = 1;
1144
+ */
1145
+ this.id = "";
1146
+ /**
1147
+ * ISO 8601
1148
+ *
1149
+ * @generated from field: string created_at = 2;
1150
+ */
1151
+ this.createdAt = "";
1152
+ /**
1153
+ * empty when the actor is not a member (support, automation)
1154
+ *
1155
+ * @generated from field: string actor_email = 3;
1156
+ */
1157
+ this.actorEmail = "";
1158
+ /**
1159
+ * @generated from field: uniswap.platformservice.v1.OrganizationAuditAction action = 4;
1160
+ */
1161
+ this.action = OrganizationAuditAction.UNSPECIFIED;
1162
+ /**
1163
+ * the member, invite or API key acted on; empty for org-level actions
1164
+ *
1165
+ * @generated from field: string target_id = 5;
1166
+ */
1167
+ this.targetId = "";
1168
+ /**
1169
+ * human-readable summary, rendered as-is by the dev portal
1170
+ *
1171
+ * @generated from field: string description = 6;
1172
+ */
1173
+ this.description = "";
1174
+ proto3.util.initPartial(data, this);
1175
+ }
1176
+ static fromBinary(bytes, options) {
1177
+ return new OrganizationAuditEntry().fromBinary(bytes, options);
1178
+ }
1179
+ static fromJson(jsonValue, options) {
1180
+ return new OrganizationAuditEntry().fromJson(jsonValue, options);
1181
+ }
1182
+ static fromJsonString(jsonString, options) {
1183
+ return new OrganizationAuditEntry().fromJsonString(jsonString, options);
1184
+ }
1185
+ static equals(a, b) {
1186
+ return proto3.util.equals(OrganizationAuditEntry, a, b);
1187
+ }
1188
+ }
1189
+ OrganizationAuditEntry.runtime = proto3;
1190
+ OrganizationAuditEntry.typeName = "uniswap.platformservice.v1.OrganizationAuditEntry";
1191
+ OrganizationAuditEntry.fields = proto3.util.newFieldList(() => [
1192
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1193
+ { no: 2, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1194
+ { no: 3, name: "actor_email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1195
+ { no: 4, name: "action", kind: "enum", T: proto3.getEnumType(OrganizationAuditAction) },
1196
+ { no: 5, name: "target_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1197
+ { no: 6, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1198
+ ]);
1199
+ /**
1200
+ * @generated from message uniswap.platformservice.v1.ListOrganizationAuditLogsRequest
1201
+ */
1202
+ export class ListOrganizationAuditLogsRequest extends Message {
1203
+ constructor(data) {
1204
+ super();
1205
+ /**
1206
+ * pagination cursor (base64-encoded LastEvaluatedKey)
1207
+ *
1208
+ * @generated from field: string page_token = 1;
1209
+ */
1210
+ this.pageToken = "";
1211
+ /**
1212
+ * max items per page, default 100, at most 500
1213
+ *
1214
+ * @generated from field: int32 page_size = 2;
1215
+ */
1216
+ this.pageSize = 0;
1217
+ proto3.util.initPartial(data, this);
1218
+ }
1219
+ static fromBinary(bytes, options) {
1220
+ return new ListOrganizationAuditLogsRequest().fromBinary(bytes, options);
1221
+ }
1222
+ static fromJson(jsonValue, options) {
1223
+ return new ListOrganizationAuditLogsRequest().fromJson(jsonValue, options);
1224
+ }
1225
+ static fromJsonString(jsonString, options) {
1226
+ return new ListOrganizationAuditLogsRequest().fromJsonString(jsonString, options);
1227
+ }
1228
+ static equals(a, b) {
1229
+ return proto3.util.equals(ListOrganizationAuditLogsRequest, a, b);
1230
+ }
1231
+ }
1232
+ ListOrganizationAuditLogsRequest.runtime = proto3;
1233
+ ListOrganizationAuditLogsRequest.typeName = "uniswap.platformservice.v1.ListOrganizationAuditLogsRequest";
1234
+ ListOrganizationAuditLogsRequest.fields = proto3.util.newFieldList(() => [
1235
+ { no: 1, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1236
+ { no: 2, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1237
+ ]);
1238
+ /**
1239
+ * @generated from message uniswap.platformservice.v1.ListOrganizationAuditLogsResponse
1240
+ */
1241
+ export class ListOrganizationAuditLogsResponse extends Message {
1242
+ constructor(data) {
1243
+ super();
1244
+ /**
1245
+ * newest first
1246
+ *
1247
+ * @generated from field: repeated uniswap.platformservice.v1.OrganizationAuditEntry entries = 1;
1248
+ */
1249
+ this.entries = [];
1250
+ /**
1251
+ * empty string means no more pages
1252
+ *
1253
+ * @generated from field: string next_page_token = 2;
1254
+ */
1255
+ this.nextPageToken = "";
1256
+ proto3.util.initPartial(data, this);
1257
+ }
1258
+ static fromBinary(bytes, options) {
1259
+ return new ListOrganizationAuditLogsResponse().fromBinary(bytes, options);
1260
+ }
1261
+ static fromJson(jsonValue, options) {
1262
+ return new ListOrganizationAuditLogsResponse().fromJson(jsonValue, options);
1263
+ }
1264
+ static fromJsonString(jsonString, options) {
1265
+ return new ListOrganizationAuditLogsResponse().fromJsonString(jsonString, options);
1266
+ }
1267
+ static equals(a, b) {
1268
+ return proto3.util.equals(ListOrganizationAuditLogsResponse, a, b);
1269
+ }
1270
+ }
1271
+ ListOrganizationAuditLogsResponse.runtime = proto3;
1272
+ ListOrganizationAuditLogsResponse.typeName = "uniswap.platformservice.v1.ListOrganizationAuditLogsResponse";
1273
+ ListOrganizationAuditLogsResponse.fields = proto3.util.newFieldList(() => [
1274
+ { no: 1, name: "entries", kind: "message", T: OrganizationAuditEntry, repeated: true },
1275
+ { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1276
+ { no: 3, name: "error", kind: "message", T: OrganizationServiceError, opt: true },
1277
+ ]);
1031
1278
  /**
1032
1279
  * @generated from message uniswap.platformservice.v1.GetMyPendingInviteRequest
1033
1280
  */
@@ -37,7 +37,13 @@ export declare enum UserServiceError_Code {
37
37
  /**
38
38
  * @generated from enum value: USER_NOT_FOUND = 3;
39
39
  */
40
- USER_NOT_FOUND = 3
40
+ USER_NOT_FOUND = 3,
41
+ /**
42
+ * deleting this account would leave its org with no admin
43
+ *
44
+ * @generated from enum value: LAST_ADMIN = 4;
45
+ */
46
+ LAST_ADMIN = 4
41
47
  }
42
48
  /**
43
49
  * Represents an agreement
@@ -365,7 +371,7 @@ export declare class InternalModifyUserRequest extends Message<InternalModifyUse
365
371
  orgId?: string;
366
372
  /**
367
373
  * Role stored with the membership; set alongside org_id (the org creator
368
- * becomes OWNER). Absent leaves the stored role untouched.
374
+ * becomes ADMIN). Absent leaves the stored role untouched.
369
375
  *
370
376
  * @generated from field: optional uniswap.platformservice.v1.OrgRole role = 2;
371
377
  */
@@ -55,6 +55,12 @@ export var UserServiceError_Code;
55
55
  * @generated from enum value: USER_NOT_FOUND = 3;
56
56
  */
57
57
  UserServiceError_Code[UserServiceError_Code["USER_NOT_FOUND"] = 3] = "USER_NOT_FOUND";
58
+ /**
59
+ * deleting this account would leave its org with no admin
60
+ *
61
+ * @generated from enum value: LAST_ADMIN = 4;
62
+ */
63
+ UserServiceError_Code[UserServiceError_Code["LAST_ADMIN"] = 4] = "LAST_ADMIN";
58
64
  })(UserServiceError_Code || (UserServiceError_Code = {}));
59
65
  // Retrieve enum metadata with: proto3.getEnumType(UserServiceError_Code)
60
66
  proto3.util.setEnumType(UserServiceError_Code, "uniswap.platformservice.v1.UserServiceError.Code", [
@@ -62,6 +68,7 @@ proto3.util.setEnumType(UserServiceError_Code, "uniswap.platformservice.v1.UserS
62
68
  { no: 1, name: "EMAIL_INVALID" },
63
69
  { no: 2, name: "USER_ALREADY_EXISTS" },
64
70
  { no: 3, name: "USER_NOT_FOUND" },
71
+ { no: 4, name: "LAST_ADMIN" },
65
72
  ]);
66
73
  /**
67
74
  * Represents an agreement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-platform-service",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },