@uniswap/client-platform-service 0.0.39 → 0.0.41
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-OrganizationService_connectquery.d.ts +173 -1
- package/dist/uniswap/platformservice/v1/organizationService-OrganizationService_connectquery.js +173 -1
- package/dist/uniswap/platformservice/v1/organizationService_connect.d.ts +125 -1
- package/dist/uniswap/platformservice/v1/organizationService_connect.js +125 -1
- package/dist/uniswap/platformservice/v1/organizationService_pb.d.ts +678 -1
- package/dist/uniswap/platformservice/v1/organizationService_pb.js +1013 -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
|
@@ -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
|
*/
|
|
@@ -63,6 +100,64 @@ export var OrganizationServiceError_Code;
|
|
|
63
100
|
* @generated from enum value: ORGANIZATION_NOT_FOUND = 5;
|
|
64
101
|
*/
|
|
65
102
|
OrganizationServiceError_Code[OrganizationServiceError_Code["ORGANIZATION_NOT_FOUND"] = 5] = "ORGANIZATION_NOT_FOUND";
|
|
103
|
+
/**
|
|
104
|
+
* caller's role does not allow the action
|
|
105
|
+
*
|
|
106
|
+
* @generated from enum value: ORG_PERMISSION_DENIED = 6;
|
|
107
|
+
*/
|
|
108
|
+
OrganizationServiceError_Code[OrganizationServiceError_Code["ORG_PERMISSION_DENIED"] = 6] = "ORG_PERMISSION_DENIED";
|
|
109
|
+
/**
|
|
110
|
+
* the invited email already has an account in this org
|
|
111
|
+
*
|
|
112
|
+
* @generated from enum value: INVITE_EMAIL_ALREADY_MEMBER = 7;
|
|
113
|
+
*/
|
|
114
|
+
OrganizationServiceError_Code[OrganizationServiceError_Code["INVITE_EMAIL_ALREADY_MEMBER"] = 7] = "INVITE_EMAIL_ALREADY_MEMBER";
|
|
115
|
+
/**
|
|
116
|
+
* no pending invite (missing, revoked, or consumed)
|
|
117
|
+
*
|
|
118
|
+
* @generated from enum value: INVITE_NOT_FOUND = 8;
|
|
119
|
+
*/
|
|
120
|
+
OrganizationServiceError_Code[OrganizationServiceError_Code["INVITE_NOT_FOUND"] = 8] = "INVITE_NOT_FOUND";
|
|
121
|
+
/**
|
|
122
|
+
* @generated from enum value: INVITE_EXPIRED = 9;
|
|
123
|
+
*/
|
|
124
|
+
OrganizationServiceError_Code[OrganizationServiceError_Code["INVITE_EXPIRED"] = 9] = "INVITE_EXPIRED";
|
|
125
|
+
/**
|
|
126
|
+
* invite is bound to a different email
|
|
127
|
+
*
|
|
128
|
+
* @generated from enum value: INVITE_EMAIL_MISMATCH = 10;
|
|
129
|
+
*/
|
|
130
|
+
OrganizationServiceError_Code[OrganizationServiceError_Code["INVITE_EMAIL_MISMATCH"] = 10] = "INVITE_EMAIL_MISMATCH";
|
|
131
|
+
/**
|
|
132
|
+
* the org's only admin cannot demote or remove themselves
|
|
133
|
+
*
|
|
134
|
+
* @generated from enum value: LAST_ADMIN = 11;
|
|
135
|
+
*/
|
|
136
|
+
OrganizationServiceError_Code[OrganizationServiceError_Code["LAST_ADMIN"] = 11] = "LAST_ADMIN";
|
|
137
|
+
/**
|
|
138
|
+
* a member cannot remove themselves
|
|
139
|
+
*
|
|
140
|
+
* @generated from enum value: CANNOT_MODIFY_SELF = 12;
|
|
141
|
+
*/
|
|
142
|
+
OrganizationServiceError_Code[OrganizationServiceError_Code["CANNOT_MODIFY_SELF"] = 12] = "CANNOT_MODIFY_SELF";
|
|
143
|
+
/**
|
|
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)
|
|
151
|
+
*
|
|
152
|
+
* @generated from enum value: INVALID_ROLE = 14;
|
|
153
|
+
*/
|
|
154
|
+
OrganizationServiceError_Code[OrganizationServiceError_Code["INVALID_ROLE"] = 14] = "INVALID_ROLE";
|
|
155
|
+
/**
|
|
156
|
+
* the invited address is not a valid email
|
|
157
|
+
*
|
|
158
|
+
* @generated from enum value: INVALID_EMAIL = 15;
|
|
159
|
+
*/
|
|
160
|
+
OrganizationServiceError_Code[OrganizationServiceError_Code["INVALID_EMAIL"] = 15] = "INVALID_EMAIL";
|
|
66
161
|
})(OrganizationServiceError_Code || (OrganizationServiceError_Code = {}));
|
|
67
162
|
// Retrieve enum metadata with: proto3.getEnumType(OrganizationServiceError_Code)
|
|
68
163
|
proto3.util.setEnumType(OrganizationServiceError_Code, "uniswap.platformservice.v1.OrganizationServiceError.Code", [
|
|
@@ -72,6 +167,924 @@ proto3.util.setEnumType(OrganizationServiceError_Code, "uniswap.platformservice.
|
|
|
72
167
|
{ no: 3, name: "ORG_USER_NOT_FOUND" },
|
|
73
168
|
{ no: 4, name: "USER_HAS_NO_ORGANIZATION" },
|
|
74
169
|
{ no: 5, name: "ORGANIZATION_NOT_FOUND" },
|
|
170
|
+
{ no: 6, name: "ORG_PERMISSION_DENIED" },
|
|
171
|
+
{ no: 7, name: "INVITE_EMAIL_ALREADY_MEMBER" },
|
|
172
|
+
{ no: 8, name: "INVITE_NOT_FOUND" },
|
|
173
|
+
{ no: 9, name: "INVITE_EXPIRED" },
|
|
174
|
+
{ no: 10, name: "INVITE_EMAIL_MISMATCH" },
|
|
175
|
+
{ no: 11, name: "LAST_ADMIN" },
|
|
176
|
+
{ no: 12, name: "CANNOT_MODIFY_SELF" },
|
|
177
|
+
{ no: 13, name: "CANNOT_MODIFY_OWNER" },
|
|
178
|
+
{ no: 14, name: "INVALID_ROLE" },
|
|
179
|
+
{ no: 15, name: "INVALID_EMAIL" },
|
|
180
|
+
]);
|
|
181
|
+
/**
|
|
182
|
+
* @generated from message uniswap.platformservice.v1.OrganizationMember
|
|
183
|
+
*/
|
|
184
|
+
export class OrganizationMember extends Message {
|
|
185
|
+
constructor(data) {
|
|
186
|
+
super();
|
|
187
|
+
/**
|
|
188
|
+
* @generated from field: string user_id = 1;
|
|
189
|
+
*/
|
|
190
|
+
this.userId = "";
|
|
191
|
+
/**
|
|
192
|
+
* @generated from field: string email = 2;
|
|
193
|
+
*/
|
|
194
|
+
this.email = "";
|
|
195
|
+
/**
|
|
196
|
+
* empty when the user has not set one
|
|
197
|
+
*
|
|
198
|
+
* @generated from field: string name = 3;
|
|
199
|
+
*/
|
|
200
|
+
this.name = "";
|
|
201
|
+
/**
|
|
202
|
+
* @generated from field: uniswap.platformservice.v1.OrgRole role = 4;
|
|
203
|
+
*/
|
|
204
|
+
this.role = OrgRole.UNSPECIFIED;
|
|
205
|
+
/**
|
|
206
|
+
* ISO 8601
|
|
207
|
+
*
|
|
208
|
+
* @generated from field: string joined_at = 5;
|
|
209
|
+
*/
|
|
210
|
+
this.joinedAt = "";
|
|
211
|
+
/**
|
|
212
|
+
* Sign-in method the account was created with: "google", "github", or "email".
|
|
213
|
+
* Empty when unknown.
|
|
214
|
+
*
|
|
215
|
+
* @generated from field: string sign_in_method = 6;
|
|
216
|
+
*/
|
|
217
|
+
this.signInMethod = "";
|
|
218
|
+
proto3.util.initPartial(data, this);
|
|
219
|
+
}
|
|
220
|
+
static fromBinary(bytes, options) {
|
|
221
|
+
return new OrganizationMember().fromBinary(bytes, options);
|
|
222
|
+
}
|
|
223
|
+
static fromJson(jsonValue, options) {
|
|
224
|
+
return new OrganizationMember().fromJson(jsonValue, options);
|
|
225
|
+
}
|
|
226
|
+
static fromJsonString(jsonString, options) {
|
|
227
|
+
return new OrganizationMember().fromJsonString(jsonString, options);
|
|
228
|
+
}
|
|
229
|
+
static equals(a, b) {
|
|
230
|
+
return proto3.util.equals(OrganizationMember, a, b);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
OrganizationMember.runtime = proto3;
|
|
234
|
+
OrganizationMember.typeName = "uniswap.platformservice.v1.OrganizationMember";
|
|
235
|
+
OrganizationMember.fields = proto3.util.newFieldList(() => [
|
|
236
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
237
|
+
{ no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
238
|
+
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
239
|
+
{ no: 4, name: "role", kind: "enum", T: proto3.getEnumType(OrgRole) },
|
|
240
|
+
{ no: 5, name: "joined_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
241
|
+
{ no: 6, name: "sign_in_method", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
242
|
+
]);
|
|
243
|
+
/**
|
|
244
|
+
* @generated from message uniswap.platformservice.v1.ListOrganizationMembersRequest
|
|
245
|
+
*/
|
|
246
|
+
export class ListOrganizationMembersRequest extends Message {
|
|
247
|
+
constructor(data) {
|
|
248
|
+
super();
|
|
249
|
+
proto3.util.initPartial(data, this);
|
|
250
|
+
}
|
|
251
|
+
static fromBinary(bytes, options) {
|
|
252
|
+
return new ListOrganizationMembersRequest().fromBinary(bytes, options);
|
|
253
|
+
}
|
|
254
|
+
static fromJson(jsonValue, options) {
|
|
255
|
+
return new ListOrganizationMembersRequest().fromJson(jsonValue, options);
|
|
256
|
+
}
|
|
257
|
+
static fromJsonString(jsonString, options) {
|
|
258
|
+
return new ListOrganizationMembersRequest().fromJsonString(jsonString, options);
|
|
259
|
+
}
|
|
260
|
+
static equals(a, b) {
|
|
261
|
+
return proto3.util.equals(ListOrganizationMembersRequest, a, b);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
ListOrganizationMembersRequest.runtime = proto3;
|
|
265
|
+
ListOrganizationMembersRequest.typeName = "uniswap.platformservice.v1.ListOrganizationMembersRequest";
|
|
266
|
+
ListOrganizationMembersRequest.fields = proto3.util.newFieldList(() => []);
|
|
267
|
+
/**
|
|
268
|
+
* @generated from message uniswap.platformservice.v1.ListOrganizationMembersResponse
|
|
269
|
+
*/
|
|
270
|
+
export class ListOrganizationMembersResponse extends Message {
|
|
271
|
+
constructor(data) {
|
|
272
|
+
super();
|
|
273
|
+
/**
|
|
274
|
+
* @generated from field: repeated uniswap.platformservice.v1.OrganizationMember members = 1;
|
|
275
|
+
*/
|
|
276
|
+
this.members = [];
|
|
277
|
+
proto3.util.initPartial(data, this);
|
|
278
|
+
}
|
|
279
|
+
static fromBinary(bytes, options) {
|
|
280
|
+
return new ListOrganizationMembersResponse().fromBinary(bytes, options);
|
|
281
|
+
}
|
|
282
|
+
static fromJson(jsonValue, options) {
|
|
283
|
+
return new ListOrganizationMembersResponse().fromJson(jsonValue, options);
|
|
284
|
+
}
|
|
285
|
+
static fromJsonString(jsonString, options) {
|
|
286
|
+
return new ListOrganizationMembersResponse().fromJsonString(jsonString, options);
|
|
287
|
+
}
|
|
288
|
+
static equals(a, b) {
|
|
289
|
+
return proto3.util.equals(ListOrganizationMembersResponse, a, b);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
ListOrganizationMembersResponse.runtime = proto3;
|
|
293
|
+
ListOrganizationMembersResponse.typeName = "uniswap.platformservice.v1.ListOrganizationMembersResponse";
|
|
294
|
+
ListOrganizationMembersResponse.fields = proto3.util.newFieldList(() => [
|
|
295
|
+
{ no: 1, name: "members", kind: "message", T: OrganizationMember, repeated: true },
|
|
296
|
+
{ no: 2, name: "error", kind: "message", T: OrganizationServiceError, opt: true },
|
|
297
|
+
]);
|
|
298
|
+
/**
|
|
299
|
+
* @generated from message uniswap.platformservice.v1.UpdateOrganizationMemberRoleRequest
|
|
300
|
+
*/
|
|
301
|
+
export class UpdateOrganizationMemberRoleRequest extends Message {
|
|
302
|
+
constructor(data) {
|
|
303
|
+
super();
|
|
304
|
+
/**
|
|
305
|
+
* @generated from field: string user_id = 1;
|
|
306
|
+
*/
|
|
307
|
+
this.userId = "";
|
|
308
|
+
/**
|
|
309
|
+
* ADMIN, EDITOR, or VIEWER; OWNER is not assignable
|
|
310
|
+
*
|
|
311
|
+
* @generated from field: uniswap.platformservice.v1.OrgRole role = 2;
|
|
312
|
+
*/
|
|
313
|
+
this.role = OrgRole.UNSPECIFIED;
|
|
314
|
+
proto3.util.initPartial(data, this);
|
|
315
|
+
}
|
|
316
|
+
static fromBinary(bytes, options) {
|
|
317
|
+
return new UpdateOrganizationMemberRoleRequest().fromBinary(bytes, options);
|
|
318
|
+
}
|
|
319
|
+
static fromJson(jsonValue, options) {
|
|
320
|
+
return new UpdateOrganizationMemberRoleRequest().fromJson(jsonValue, options);
|
|
321
|
+
}
|
|
322
|
+
static fromJsonString(jsonString, options) {
|
|
323
|
+
return new UpdateOrganizationMemberRoleRequest().fromJsonString(jsonString, options);
|
|
324
|
+
}
|
|
325
|
+
static equals(a, b) {
|
|
326
|
+
return proto3.util.equals(UpdateOrganizationMemberRoleRequest, a, b);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
UpdateOrganizationMemberRoleRequest.runtime = proto3;
|
|
330
|
+
UpdateOrganizationMemberRoleRequest.typeName = "uniswap.platformservice.v1.UpdateOrganizationMemberRoleRequest";
|
|
331
|
+
UpdateOrganizationMemberRoleRequest.fields = proto3.util.newFieldList(() => [
|
|
332
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
333
|
+
{ no: 2, name: "role", kind: "enum", T: proto3.getEnumType(OrgRole) },
|
|
334
|
+
]);
|
|
335
|
+
/**
|
|
336
|
+
* @generated from message uniswap.platformservice.v1.UpdateOrganizationMemberRoleResponse
|
|
337
|
+
*/
|
|
338
|
+
export class UpdateOrganizationMemberRoleResponse extends Message {
|
|
339
|
+
constructor(data) {
|
|
340
|
+
super();
|
|
341
|
+
proto3.util.initPartial(data, this);
|
|
342
|
+
}
|
|
343
|
+
static fromBinary(bytes, options) {
|
|
344
|
+
return new UpdateOrganizationMemberRoleResponse().fromBinary(bytes, options);
|
|
345
|
+
}
|
|
346
|
+
static fromJson(jsonValue, options) {
|
|
347
|
+
return new UpdateOrganizationMemberRoleResponse().fromJson(jsonValue, options);
|
|
348
|
+
}
|
|
349
|
+
static fromJsonString(jsonString, options) {
|
|
350
|
+
return new UpdateOrganizationMemberRoleResponse().fromJsonString(jsonString, options);
|
|
351
|
+
}
|
|
352
|
+
static equals(a, b) {
|
|
353
|
+
return proto3.util.equals(UpdateOrganizationMemberRoleResponse, a, b);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
UpdateOrganizationMemberRoleResponse.runtime = proto3;
|
|
357
|
+
UpdateOrganizationMemberRoleResponse.typeName = "uniswap.platformservice.v1.UpdateOrganizationMemberRoleResponse";
|
|
358
|
+
UpdateOrganizationMemberRoleResponse.fields = proto3.util.newFieldList(() => [
|
|
359
|
+
{ no: 1, name: "error", kind: "message", T: OrganizationServiceError, opt: true },
|
|
360
|
+
]);
|
|
361
|
+
/**
|
|
362
|
+
* @generated from message uniswap.platformservice.v1.RemoveOrganizationMemberRequest
|
|
363
|
+
*/
|
|
364
|
+
export class RemoveOrganizationMemberRequest 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 RemoveOrganizationMemberRequest().fromBinary(bytes, options);
|
|
375
|
+
}
|
|
376
|
+
static fromJson(jsonValue, options) {
|
|
377
|
+
return new RemoveOrganizationMemberRequest().fromJson(jsonValue, options);
|
|
378
|
+
}
|
|
379
|
+
static fromJsonString(jsonString, options) {
|
|
380
|
+
return new RemoveOrganizationMemberRequest().fromJsonString(jsonString, options);
|
|
381
|
+
}
|
|
382
|
+
static equals(a, b) {
|
|
383
|
+
return proto3.util.equals(RemoveOrganizationMemberRequest, a, b);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
RemoveOrganizationMemberRequest.runtime = proto3;
|
|
387
|
+
RemoveOrganizationMemberRequest.typeName = "uniswap.platformservice.v1.RemoveOrganizationMemberRequest";
|
|
388
|
+
RemoveOrganizationMemberRequest.fields = proto3.util.newFieldList(() => [
|
|
389
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
390
|
+
]);
|
|
391
|
+
/**
|
|
392
|
+
* @generated from message uniswap.platformservice.v1.RemoveOrganizationMemberResponse
|
|
393
|
+
*/
|
|
394
|
+
export class RemoveOrganizationMemberResponse extends Message {
|
|
395
|
+
constructor(data) {
|
|
396
|
+
super();
|
|
397
|
+
proto3.util.initPartial(data, this);
|
|
398
|
+
}
|
|
399
|
+
static fromBinary(bytes, options) {
|
|
400
|
+
return new RemoveOrganizationMemberResponse().fromBinary(bytes, options);
|
|
401
|
+
}
|
|
402
|
+
static fromJson(jsonValue, options) {
|
|
403
|
+
return new RemoveOrganizationMemberResponse().fromJson(jsonValue, options);
|
|
404
|
+
}
|
|
405
|
+
static fromJsonString(jsonString, options) {
|
|
406
|
+
return new RemoveOrganizationMemberResponse().fromJsonString(jsonString, options);
|
|
407
|
+
}
|
|
408
|
+
static equals(a, b) {
|
|
409
|
+
return proto3.util.equals(RemoveOrganizationMemberResponse, a, b);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
RemoveOrganizationMemberResponse.runtime = proto3;
|
|
413
|
+
RemoveOrganizationMemberResponse.typeName = "uniswap.platformservice.v1.RemoveOrganizationMemberResponse";
|
|
414
|
+
RemoveOrganizationMemberResponse.fields = proto3.util.newFieldList(() => [
|
|
415
|
+
{ no: 1, name: "error", kind: "message", T: OrganizationServiceError, opt: true },
|
|
416
|
+
]);
|
|
417
|
+
/**
|
|
418
|
+
* @generated from message uniswap.platformservice.v1.UpdateOrganizationNameRequest
|
|
419
|
+
*/
|
|
420
|
+
export class UpdateOrganizationNameRequest extends Message {
|
|
421
|
+
constructor(data) {
|
|
422
|
+
super();
|
|
423
|
+
/**
|
|
424
|
+
* @generated from field: string name = 1;
|
|
425
|
+
*/
|
|
426
|
+
this.name = "";
|
|
427
|
+
proto3.util.initPartial(data, this);
|
|
428
|
+
}
|
|
429
|
+
static fromBinary(bytes, options) {
|
|
430
|
+
return new UpdateOrganizationNameRequest().fromBinary(bytes, options);
|
|
431
|
+
}
|
|
432
|
+
static fromJson(jsonValue, options) {
|
|
433
|
+
return new UpdateOrganizationNameRequest().fromJson(jsonValue, options);
|
|
434
|
+
}
|
|
435
|
+
static fromJsonString(jsonString, options) {
|
|
436
|
+
return new UpdateOrganizationNameRequest().fromJsonString(jsonString, options);
|
|
437
|
+
}
|
|
438
|
+
static equals(a, b) {
|
|
439
|
+
return proto3.util.equals(UpdateOrganizationNameRequest, a, b);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
UpdateOrganizationNameRequest.runtime = proto3;
|
|
443
|
+
UpdateOrganizationNameRequest.typeName = "uniswap.platformservice.v1.UpdateOrganizationNameRequest";
|
|
444
|
+
UpdateOrganizationNameRequest.fields = proto3.util.newFieldList(() => [
|
|
445
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
446
|
+
]);
|
|
447
|
+
/**
|
|
448
|
+
* @generated from message uniswap.platformservice.v1.UpdateOrganizationNameResponse
|
|
449
|
+
*/
|
|
450
|
+
export class UpdateOrganizationNameResponse extends Message {
|
|
451
|
+
constructor(data) {
|
|
452
|
+
super();
|
|
453
|
+
proto3.util.initPartial(data, this);
|
|
454
|
+
}
|
|
455
|
+
static fromBinary(bytes, options) {
|
|
456
|
+
return new UpdateOrganizationNameResponse().fromBinary(bytes, options);
|
|
457
|
+
}
|
|
458
|
+
static fromJson(jsonValue, options) {
|
|
459
|
+
return new UpdateOrganizationNameResponse().fromJson(jsonValue, options);
|
|
460
|
+
}
|
|
461
|
+
static fromJsonString(jsonString, options) {
|
|
462
|
+
return new UpdateOrganizationNameResponse().fromJsonString(jsonString, options);
|
|
463
|
+
}
|
|
464
|
+
static equals(a, b) {
|
|
465
|
+
return proto3.util.equals(UpdateOrganizationNameResponse, a, b);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
UpdateOrganizationNameResponse.runtime = proto3;
|
|
469
|
+
UpdateOrganizationNameResponse.typeName = "uniswap.platformservice.v1.UpdateOrganizationNameResponse";
|
|
470
|
+
UpdateOrganizationNameResponse.fields = proto3.util.newFieldList(() => [
|
|
471
|
+
{ no: 1, name: "error", kind: "message", T: OrganizationServiceError, opt: true },
|
|
472
|
+
]);
|
|
473
|
+
/**
|
|
474
|
+
* @generated from message uniswap.platformservice.v1.OrganizationInvite
|
|
475
|
+
*/
|
|
476
|
+
export class OrganizationInvite extends Message {
|
|
477
|
+
constructor(data) {
|
|
478
|
+
super();
|
|
479
|
+
/**
|
|
480
|
+
* @generated from field: string id = 1;
|
|
481
|
+
*/
|
|
482
|
+
this.id = "";
|
|
483
|
+
/**
|
|
484
|
+
* @generated from field: string email = 2;
|
|
485
|
+
*/
|
|
486
|
+
this.email = "";
|
|
487
|
+
/**
|
|
488
|
+
* @generated from field: string invited_by_email = 3;
|
|
489
|
+
*/
|
|
490
|
+
this.invitedByEmail = "";
|
|
491
|
+
/**
|
|
492
|
+
* @generated from field: uniswap.platformservice.v1.OrgRole role = 4;
|
|
493
|
+
*/
|
|
494
|
+
this.role = OrgRole.UNSPECIFIED;
|
|
495
|
+
/**
|
|
496
|
+
* ISO 8601
|
|
497
|
+
*
|
|
498
|
+
* @generated from field: string created_at = 5;
|
|
499
|
+
*/
|
|
500
|
+
this.createdAt = "";
|
|
501
|
+
/**
|
|
502
|
+
* ISO 8601
|
|
503
|
+
*
|
|
504
|
+
* @generated from field: string expires_at = 6;
|
|
505
|
+
*/
|
|
506
|
+
this.expiresAt = "";
|
|
507
|
+
proto3.util.initPartial(data, this);
|
|
508
|
+
}
|
|
509
|
+
static fromBinary(bytes, options) {
|
|
510
|
+
return new OrganizationInvite().fromBinary(bytes, options);
|
|
511
|
+
}
|
|
512
|
+
static fromJson(jsonValue, options) {
|
|
513
|
+
return new OrganizationInvite().fromJson(jsonValue, options);
|
|
514
|
+
}
|
|
515
|
+
static fromJsonString(jsonString, options) {
|
|
516
|
+
return new OrganizationInvite().fromJsonString(jsonString, options);
|
|
517
|
+
}
|
|
518
|
+
static equals(a, b) {
|
|
519
|
+
return proto3.util.equals(OrganizationInvite, a, b);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
OrganizationInvite.runtime = proto3;
|
|
523
|
+
OrganizationInvite.typeName = "uniswap.platformservice.v1.OrganizationInvite";
|
|
524
|
+
OrganizationInvite.fields = proto3.util.newFieldList(() => [
|
|
525
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
526
|
+
{ no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
527
|
+
{ no: 3, name: "invited_by_email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
528
|
+
{ no: 4, name: "role", kind: "enum", T: proto3.getEnumType(OrgRole) },
|
|
529
|
+
{ no: 5, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
530
|
+
{ no: 6, name: "expires_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
531
|
+
]);
|
|
532
|
+
/**
|
|
533
|
+
* @generated from message uniswap.platformservice.v1.OrganizationInviteInput
|
|
534
|
+
*/
|
|
535
|
+
export class OrganizationInviteInput extends Message {
|
|
536
|
+
constructor(data) {
|
|
537
|
+
super();
|
|
538
|
+
/**
|
|
539
|
+
* @generated from field: string email = 1;
|
|
540
|
+
*/
|
|
541
|
+
this.email = "";
|
|
542
|
+
/**
|
|
543
|
+
* defaults to VIEWER when unspecified
|
|
544
|
+
*
|
|
545
|
+
* @generated from field: uniswap.platformservice.v1.OrgRole role = 2;
|
|
546
|
+
*/
|
|
547
|
+
this.role = OrgRole.UNSPECIFIED;
|
|
548
|
+
proto3.util.initPartial(data, this);
|
|
549
|
+
}
|
|
550
|
+
static fromBinary(bytes, options) {
|
|
551
|
+
return new OrganizationInviteInput().fromBinary(bytes, options);
|
|
552
|
+
}
|
|
553
|
+
static fromJson(jsonValue, options) {
|
|
554
|
+
return new OrganizationInviteInput().fromJson(jsonValue, options);
|
|
555
|
+
}
|
|
556
|
+
static fromJsonString(jsonString, options) {
|
|
557
|
+
return new OrganizationInviteInput().fromJsonString(jsonString, options);
|
|
558
|
+
}
|
|
559
|
+
static equals(a, b) {
|
|
560
|
+
return proto3.util.equals(OrganizationInviteInput, a, b);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
OrganizationInviteInput.runtime = proto3;
|
|
564
|
+
OrganizationInviteInput.typeName = "uniswap.platformservice.v1.OrganizationInviteInput";
|
|
565
|
+
OrganizationInviteInput.fields = proto3.util.newFieldList(() => [
|
|
566
|
+
{ no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
567
|
+
{ no: 2, name: "role", kind: "enum", T: proto3.getEnumType(OrgRole) },
|
|
568
|
+
]);
|
|
569
|
+
/**
|
|
570
|
+
* @generated from message uniswap.platformservice.v1.CreateOrganizationInvitesRequest
|
|
571
|
+
*/
|
|
572
|
+
export class CreateOrganizationInvitesRequest extends Message {
|
|
573
|
+
constructor(data) {
|
|
574
|
+
super();
|
|
575
|
+
/**
|
|
576
|
+
* @generated from field: repeated uniswap.platformservice.v1.OrganizationInviteInput invites = 1;
|
|
577
|
+
*/
|
|
578
|
+
this.invites = [];
|
|
579
|
+
proto3.util.initPartial(data, this);
|
|
580
|
+
}
|
|
581
|
+
static fromBinary(bytes, options) {
|
|
582
|
+
return new CreateOrganizationInvitesRequest().fromBinary(bytes, options);
|
|
583
|
+
}
|
|
584
|
+
static fromJson(jsonValue, options) {
|
|
585
|
+
return new CreateOrganizationInvitesRequest().fromJson(jsonValue, options);
|
|
586
|
+
}
|
|
587
|
+
static fromJsonString(jsonString, options) {
|
|
588
|
+
return new CreateOrganizationInvitesRequest().fromJsonString(jsonString, options);
|
|
589
|
+
}
|
|
590
|
+
static equals(a, b) {
|
|
591
|
+
return proto3.util.equals(CreateOrganizationInvitesRequest, a, b);
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
CreateOrganizationInvitesRequest.runtime = proto3;
|
|
595
|
+
CreateOrganizationInvitesRequest.typeName = "uniswap.platformservice.v1.CreateOrganizationInvitesRequest";
|
|
596
|
+
CreateOrganizationInvitesRequest.fields = proto3.util.newFieldList(() => [
|
|
597
|
+
{ no: 1, name: "invites", kind: "message", T: OrganizationInviteInput, repeated: true },
|
|
598
|
+
]);
|
|
599
|
+
/**
|
|
600
|
+
* Per-email outcome: one bad address does not cancel the batch.
|
|
601
|
+
*
|
|
602
|
+
* @generated from message uniswap.platformservice.v1.OrganizationInviteResult
|
|
603
|
+
*/
|
|
604
|
+
export class OrganizationInviteResult extends Message {
|
|
605
|
+
constructor(data) {
|
|
606
|
+
super();
|
|
607
|
+
/**
|
|
608
|
+
* @generated from field: string email = 1;
|
|
609
|
+
*/
|
|
610
|
+
this.email = "";
|
|
611
|
+
proto3.util.initPartial(data, this);
|
|
612
|
+
}
|
|
613
|
+
static fromBinary(bytes, options) {
|
|
614
|
+
return new OrganizationInviteResult().fromBinary(bytes, options);
|
|
615
|
+
}
|
|
616
|
+
static fromJson(jsonValue, options) {
|
|
617
|
+
return new OrganizationInviteResult().fromJson(jsonValue, options);
|
|
618
|
+
}
|
|
619
|
+
static fromJsonString(jsonString, options) {
|
|
620
|
+
return new OrganizationInviteResult().fromJsonString(jsonString, options);
|
|
621
|
+
}
|
|
622
|
+
static equals(a, b) {
|
|
623
|
+
return proto3.util.equals(OrganizationInviteResult, a, b);
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
OrganizationInviteResult.runtime = proto3;
|
|
627
|
+
OrganizationInviteResult.typeName = "uniswap.platformservice.v1.OrganizationInviteResult";
|
|
628
|
+
OrganizationInviteResult.fields = proto3.util.newFieldList(() => [
|
|
629
|
+
{ no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
630
|
+
{ no: 2, name: "invite", kind: "message", T: OrganizationInvite, opt: true },
|
|
631
|
+
{ no: 3, name: "error", kind: "message", T: OrganizationServiceError, opt: true },
|
|
632
|
+
]);
|
|
633
|
+
/**
|
|
634
|
+
* @generated from message uniswap.platformservice.v1.CreateOrganizationInvitesResponse
|
|
635
|
+
*/
|
|
636
|
+
export class CreateOrganizationInvitesResponse extends Message {
|
|
637
|
+
constructor(data) {
|
|
638
|
+
super();
|
|
639
|
+
/**
|
|
640
|
+
* @generated from field: repeated uniswap.platformservice.v1.OrganizationInviteResult results = 1;
|
|
641
|
+
*/
|
|
642
|
+
this.results = [];
|
|
643
|
+
proto3.util.initPartial(data, this);
|
|
644
|
+
}
|
|
645
|
+
static fromBinary(bytes, options) {
|
|
646
|
+
return new CreateOrganizationInvitesResponse().fromBinary(bytes, options);
|
|
647
|
+
}
|
|
648
|
+
static fromJson(jsonValue, options) {
|
|
649
|
+
return new CreateOrganizationInvitesResponse().fromJson(jsonValue, options);
|
|
650
|
+
}
|
|
651
|
+
static fromJsonString(jsonString, options) {
|
|
652
|
+
return new CreateOrganizationInvitesResponse().fromJsonString(jsonString, options);
|
|
653
|
+
}
|
|
654
|
+
static equals(a, b) {
|
|
655
|
+
return proto3.util.equals(CreateOrganizationInvitesResponse, a, b);
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
CreateOrganizationInvitesResponse.runtime = proto3;
|
|
659
|
+
CreateOrganizationInvitesResponse.typeName = "uniswap.platformservice.v1.CreateOrganizationInvitesResponse";
|
|
660
|
+
CreateOrganizationInvitesResponse.fields = proto3.util.newFieldList(() => [
|
|
661
|
+
{ no: 1, name: "results", kind: "message", T: OrganizationInviteResult, repeated: true },
|
|
662
|
+
{ no: 2, name: "error", kind: "message", T: OrganizationServiceError, opt: true },
|
|
663
|
+
]);
|
|
664
|
+
/**
|
|
665
|
+
* @generated from message uniswap.platformservice.v1.ListOrganizationInvitesRequest
|
|
666
|
+
*/
|
|
667
|
+
export class ListOrganizationInvitesRequest extends Message {
|
|
668
|
+
constructor(data) {
|
|
669
|
+
super();
|
|
670
|
+
proto3.util.initPartial(data, this);
|
|
671
|
+
}
|
|
672
|
+
static fromBinary(bytes, options) {
|
|
673
|
+
return new ListOrganizationInvitesRequest().fromBinary(bytes, options);
|
|
674
|
+
}
|
|
675
|
+
static fromJson(jsonValue, options) {
|
|
676
|
+
return new ListOrganizationInvitesRequest().fromJson(jsonValue, options);
|
|
677
|
+
}
|
|
678
|
+
static fromJsonString(jsonString, options) {
|
|
679
|
+
return new ListOrganizationInvitesRequest().fromJsonString(jsonString, options);
|
|
680
|
+
}
|
|
681
|
+
static equals(a, b) {
|
|
682
|
+
return proto3.util.equals(ListOrganizationInvitesRequest, a, b);
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
ListOrganizationInvitesRequest.runtime = proto3;
|
|
686
|
+
ListOrganizationInvitesRequest.typeName = "uniswap.platformservice.v1.ListOrganizationInvitesRequest";
|
|
687
|
+
ListOrganizationInvitesRequest.fields = proto3.util.newFieldList(() => []);
|
|
688
|
+
/**
|
|
689
|
+
* @generated from message uniswap.platformservice.v1.ListOrganizationInvitesResponse
|
|
690
|
+
*/
|
|
691
|
+
export class ListOrganizationInvitesResponse extends Message {
|
|
692
|
+
constructor(data) {
|
|
693
|
+
super();
|
|
694
|
+
/**
|
|
695
|
+
* @generated from field: repeated uniswap.platformservice.v1.OrganizationInvite invites = 1;
|
|
696
|
+
*/
|
|
697
|
+
this.invites = [];
|
|
698
|
+
proto3.util.initPartial(data, this);
|
|
699
|
+
}
|
|
700
|
+
static fromBinary(bytes, options) {
|
|
701
|
+
return new ListOrganizationInvitesResponse().fromBinary(bytes, options);
|
|
702
|
+
}
|
|
703
|
+
static fromJson(jsonValue, options) {
|
|
704
|
+
return new ListOrganizationInvitesResponse().fromJson(jsonValue, options);
|
|
705
|
+
}
|
|
706
|
+
static fromJsonString(jsonString, options) {
|
|
707
|
+
return new ListOrganizationInvitesResponse().fromJsonString(jsonString, options);
|
|
708
|
+
}
|
|
709
|
+
static equals(a, b) {
|
|
710
|
+
return proto3.util.equals(ListOrganizationInvitesResponse, a, b);
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
ListOrganizationInvitesResponse.runtime = proto3;
|
|
714
|
+
ListOrganizationInvitesResponse.typeName = "uniswap.platformservice.v1.ListOrganizationInvitesResponse";
|
|
715
|
+
ListOrganizationInvitesResponse.fields = proto3.util.newFieldList(() => [
|
|
716
|
+
{ no: 1, name: "invites", kind: "message", T: OrganizationInvite, repeated: true },
|
|
717
|
+
{ no: 2, name: "error", kind: "message", T: OrganizationServiceError, opt: true },
|
|
718
|
+
]);
|
|
719
|
+
/**
|
|
720
|
+
* @generated from message uniswap.platformservice.v1.RevokeOrganizationInviteRequest
|
|
721
|
+
*/
|
|
722
|
+
export class RevokeOrganizationInviteRequest extends Message {
|
|
723
|
+
constructor(data) {
|
|
724
|
+
super();
|
|
725
|
+
/**
|
|
726
|
+
* @generated from field: string invite_id = 1;
|
|
727
|
+
*/
|
|
728
|
+
this.inviteId = "";
|
|
729
|
+
proto3.util.initPartial(data, this);
|
|
730
|
+
}
|
|
731
|
+
static fromBinary(bytes, options) {
|
|
732
|
+
return new RevokeOrganizationInviteRequest().fromBinary(bytes, options);
|
|
733
|
+
}
|
|
734
|
+
static fromJson(jsonValue, options) {
|
|
735
|
+
return new RevokeOrganizationInviteRequest().fromJson(jsonValue, options);
|
|
736
|
+
}
|
|
737
|
+
static fromJsonString(jsonString, options) {
|
|
738
|
+
return new RevokeOrganizationInviteRequest().fromJsonString(jsonString, options);
|
|
739
|
+
}
|
|
740
|
+
static equals(a, b) {
|
|
741
|
+
return proto3.util.equals(RevokeOrganizationInviteRequest, a, b);
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
RevokeOrganizationInviteRequest.runtime = proto3;
|
|
745
|
+
RevokeOrganizationInviteRequest.typeName = "uniswap.platformservice.v1.RevokeOrganizationInviteRequest";
|
|
746
|
+
RevokeOrganizationInviteRequest.fields = proto3.util.newFieldList(() => [
|
|
747
|
+
{ no: 1, name: "invite_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
748
|
+
]);
|
|
749
|
+
/**
|
|
750
|
+
* @generated from message uniswap.platformservice.v1.RevokeOrganizationInviteResponse
|
|
751
|
+
*/
|
|
752
|
+
export class RevokeOrganizationInviteResponse extends Message {
|
|
753
|
+
constructor(data) {
|
|
754
|
+
super();
|
|
755
|
+
proto3.util.initPartial(data, this);
|
|
756
|
+
}
|
|
757
|
+
static fromBinary(bytes, options) {
|
|
758
|
+
return new RevokeOrganizationInviteResponse().fromBinary(bytes, options);
|
|
759
|
+
}
|
|
760
|
+
static fromJson(jsonValue, options) {
|
|
761
|
+
return new RevokeOrganizationInviteResponse().fromJson(jsonValue, options);
|
|
762
|
+
}
|
|
763
|
+
static fromJsonString(jsonString, options) {
|
|
764
|
+
return new RevokeOrganizationInviteResponse().fromJsonString(jsonString, options);
|
|
765
|
+
}
|
|
766
|
+
static equals(a, b) {
|
|
767
|
+
return proto3.util.equals(RevokeOrganizationInviteResponse, a, b);
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
RevokeOrganizationInviteResponse.runtime = proto3;
|
|
771
|
+
RevokeOrganizationInviteResponse.typeName = "uniswap.platformservice.v1.RevokeOrganizationInviteResponse";
|
|
772
|
+
RevokeOrganizationInviteResponse.fields = proto3.util.newFieldList(() => [
|
|
773
|
+
{ no: 1, name: "error", kind: "message", T: OrganizationServiceError, opt: true },
|
|
774
|
+
]);
|
|
775
|
+
/**
|
|
776
|
+
* @generated from message uniswap.platformservice.v1.ResendOrganizationInviteRequest
|
|
777
|
+
*/
|
|
778
|
+
export class ResendOrganizationInviteRequest extends Message {
|
|
779
|
+
constructor(data) {
|
|
780
|
+
super();
|
|
781
|
+
/**
|
|
782
|
+
* @generated from field: string invite_id = 1;
|
|
783
|
+
*/
|
|
784
|
+
this.inviteId = "";
|
|
785
|
+
proto3.util.initPartial(data, this);
|
|
786
|
+
}
|
|
787
|
+
static fromBinary(bytes, options) {
|
|
788
|
+
return new ResendOrganizationInviteRequest().fromBinary(bytes, options);
|
|
789
|
+
}
|
|
790
|
+
static fromJson(jsonValue, options) {
|
|
791
|
+
return new ResendOrganizationInviteRequest().fromJson(jsonValue, options);
|
|
792
|
+
}
|
|
793
|
+
static fromJsonString(jsonString, options) {
|
|
794
|
+
return new ResendOrganizationInviteRequest().fromJsonString(jsonString, options);
|
|
795
|
+
}
|
|
796
|
+
static equals(a, b) {
|
|
797
|
+
return proto3.util.equals(ResendOrganizationInviteRequest, a, b);
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
ResendOrganizationInviteRequest.runtime = proto3;
|
|
801
|
+
ResendOrganizationInviteRequest.typeName = "uniswap.platformservice.v1.ResendOrganizationInviteRequest";
|
|
802
|
+
ResendOrganizationInviteRequest.fields = proto3.util.newFieldList(() => [
|
|
803
|
+
{ no: 1, name: "invite_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
804
|
+
]);
|
|
805
|
+
/**
|
|
806
|
+
* @generated from message uniswap.platformservice.v1.ResendOrganizationInviteResponse
|
|
807
|
+
*/
|
|
808
|
+
export class ResendOrganizationInviteResponse extends Message {
|
|
809
|
+
constructor(data) {
|
|
810
|
+
super();
|
|
811
|
+
proto3.util.initPartial(data, this);
|
|
812
|
+
}
|
|
813
|
+
static fromBinary(bytes, options) {
|
|
814
|
+
return new ResendOrganizationInviteResponse().fromBinary(bytes, options);
|
|
815
|
+
}
|
|
816
|
+
static fromJson(jsonValue, options) {
|
|
817
|
+
return new ResendOrganizationInviteResponse().fromJson(jsonValue, options);
|
|
818
|
+
}
|
|
819
|
+
static fromJsonString(jsonString, options) {
|
|
820
|
+
return new ResendOrganizationInviteResponse().fromJsonString(jsonString, options);
|
|
821
|
+
}
|
|
822
|
+
static equals(a, b) {
|
|
823
|
+
return proto3.util.equals(ResendOrganizationInviteResponse, a, b);
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
ResendOrganizationInviteResponse.runtime = proto3;
|
|
827
|
+
ResendOrganizationInviteResponse.typeName = "uniswap.platformservice.v1.ResendOrganizationInviteResponse";
|
|
828
|
+
ResendOrganizationInviteResponse.fields = proto3.util.newFieldList(() => [
|
|
829
|
+
{ no: 1, name: "invite", kind: "message", T: OrganizationInvite, opt: true },
|
|
830
|
+
{ no: 2, name: "error", kind: "message", T: OrganizationServiceError, opt: true },
|
|
831
|
+
]);
|
|
832
|
+
/**
|
|
833
|
+
* @generated from message uniswap.platformservice.v1.UpdateOrganizationInviteRoleRequest
|
|
834
|
+
*/
|
|
835
|
+
export class UpdateOrganizationInviteRoleRequest extends Message {
|
|
836
|
+
constructor(data) {
|
|
837
|
+
super();
|
|
838
|
+
/**
|
|
839
|
+
* @generated from field: string invite_id = 1;
|
|
840
|
+
*/
|
|
841
|
+
this.inviteId = "";
|
|
842
|
+
/**
|
|
843
|
+
* ADMIN, EDITOR, or VIEWER
|
|
844
|
+
*
|
|
845
|
+
* @generated from field: uniswap.platformservice.v1.OrgRole role = 2;
|
|
846
|
+
*/
|
|
847
|
+
this.role = OrgRole.UNSPECIFIED;
|
|
848
|
+
proto3.util.initPartial(data, this);
|
|
849
|
+
}
|
|
850
|
+
static fromBinary(bytes, options) {
|
|
851
|
+
return new UpdateOrganizationInviteRoleRequest().fromBinary(bytes, options);
|
|
852
|
+
}
|
|
853
|
+
static fromJson(jsonValue, options) {
|
|
854
|
+
return new UpdateOrganizationInviteRoleRequest().fromJson(jsonValue, options);
|
|
855
|
+
}
|
|
856
|
+
static fromJsonString(jsonString, options) {
|
|
857
|
+
return new UpdateOrganizationInviteRoleRequest().fromJsonString(jsonString, options);
|
|
858
|
+
}
|
|
859
|
+
static equals(a, b) {
|
|
860
|
+
return proto3.util.equals(UpdateOrganizationInviteRoleRequest, a, b);
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
UpdateOrganizationInviteRoleRequest.runtime = proto3;
|
|
864
|
+
UpdateOrganizationInviteRoleRequest.typeName = "uniswap.platformservice.v1.UpdateOrganizationInviteRoleRequest";
|
|
865
|
+
UpdateOrganizationInviteRoleRequest.fields = proto3.util.newFieldList(() => [
|
|
866
|
+
{ no: 1, name: "invite_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
867
|
+
{ no: 2, name: "role", kind: "enum", T: proto3.getEnumType(OrgRole) },
|
|
868
|
+
]);
|
|
869
|
+
/**
|
|
870
|
+
* @generated from message uniswap.platformservice.v1.UpdateOrganizationInviteRoleResponse
|
|
871
|
+
*/
|
|
872
|
+
export class UpdateOrganizationInviteRoleResponse extends Message {
|
|
873
|
+
constructor(data) {
|
|
874
|
+
super();
|
|
875
|
+
proto3.util.initPartial(data, this);
|
|
876
|
+
}
|
|
877
|
+
static fromBinary(bytes, options) {
|
|
878
|
+
return new UpdateOrganizationInviteRoleResponse().fromBinary(bytes, options);
|
|
879
|
+
}
|
|
880
|
+
static fromJson(jsonValue, options) {
|
|
881
|
+
return new UpdateOrganizationInviteRoleResponse().fromJson(jsonValue, options);
|
|
882
|
+
}
|
|
883
|
+
static fromJsonString(jsonString, options) {
|
|
884
|
+
return new UpdateOrganizationInviteRoleResponse().fromJsonString(jsonString, options);
|
|
885
|
+
}
|
|
886
|
+
static equals(a, b) {
|
|
887
|
+
return proto3.util.equals(UpdateOrganizationInviteRoleResponse, a, b);
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
UpdateOrganizationInviteRoleResponse.runtime = proto3;
|
|
891
|
+
UpdateOrganizationInviteRoleResponse.typeName = "uniswap.platformservice.v1.UpdateOrganizationInviteRoleResponse";
|
|
892
|
+
UpdateOrganizationInviteRoleResponse.fields = proto3.util.newFieldList(() => [
|
|
893
|
+
{ no: 1, name: "error", kind: "message", T: OrganizationServiceError, opt: true },
|
|
894
|
+
]);
|
|
895
|
+
/**
|
|
896
|
+
* @generated from message uniswap.platformservice.v1.GetOrganizationInviteRequest
|
|
897
|
+
*/
|
|
898
|
+
export class GetOrganizationInviteRequest extends Message {
|
|
899
|
+
constructor(data) {
|
|
900
|
+
super();
|
|
901
|
+
/**
|
|
902
|
+
* @generated from field: string code = 1;
|
|
903
|
+
*/
|
|
904
|
+
this.code = "";
|
|
905
|
+
proto3.util.initPartial(data, this);
|
|
906
|
+
}
|
|
907
|
+
static fromBinary(bytes, options) {
|
|
908
|
+
return new GetOrganizationInviteRequest().fromBinary(bytes, options);
|
|
909
|
+
}
|
|
910
|
+
static fromJson(jsonValue, options) {
|
|
911
|
+
return new GetOrganizationInviteRequest().fromJson(jsonValue, options);
|
|
912
|
+
}
|
|
913
|
+
static fromJsonString(jsonString, options) {
|
|
914
|
+
return new GetOrganizationInviteRequest().fromJsonString(jsonString, options);
|
|
915
|
+
}
|
|
916
|
+
static equals(a, b) {
|
|
917
|
+
return proto3.util.equals(GetOrganizationInviteRequest, a, b);
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
GetOrganizationInviteRequest.runtime = proto3;
|
|
921
|
+
GetOrganizationInviteRequest.typeName = "uniswap.platformservice.v1.GetOrganizationInviteRequest";
|
|
922
|
+
GetOrganizationInviteRequest.fields = proto3.util.newFieldList(() => [
|
|
923
|
+
{ no: 1, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
924
|
+
]);
|
|
925
|
+
/**
|
|
926
|
+
* @generated from message uniswap.platformservice.v1.GetOrganizationInviteResponse
|
|
927
|
+
*/
|
|
928
|
+
export class GetOrganizationInviteResponse extends Message {
|
|
929
|
+
constructor(data) {
|
|
930
|
+
super();
|
|
931
|
+
/**
|
|
932
|
+
* @generated from field: string organization_name = 1;
|
|
933
|
+
*/
|
|
934
|
+
this.organizationName = "";
|
|
935
|
+
/**
|
|
936
|
+
* pre-fills and locks the signup email field
|
|
937
|
+
*
|
|
938
|
+
* @generated from field: string email = 2;
|
|
939
|
+
*/
|
|
940
|
+
this.email = "";
|
|
941
|
+
/**
|
|
942
|
+
* @generated from field: uniswap.platformservice.v1.OrgRole role = 3;
|
|
943
|
+
*/
|
|
944
|
+
this.role = OrgRole.UNSPECIFIED;
|
|
945
|
+
proto3.util.initPartial(data, this);
|
|
946
|
+
}
|
|
947
|
+
static fromBinary(bytes, options) {
|
|
948
|
+
return new GetOrganizationInviteResponse().fromBinary(bytes, options);
|
|
949
|
+
}
|
|
950
|
+
static fromJson(jsonValue, options) {
|
|
951
|
+
return new GetOrganizationInviteResponse().fromJson(jsonValue, options);
|
|
952
|
+
}
|
|
953
|
+
static fromJsonString(jsonString, options) {
|
|
954
|
+
return new GetOrganizationInviteResponse().fromJsonString(jsonString, options);
|
|
955
|
+
}
|
|
956
|
+
static equals(a, b) {
|
|
957
|
+
return proto3.util.equals(GetOrganizationInviteResponse, a, b);
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
GetOrganizationInviteResponse.runtime = proto3;
|
|
961
|
+
GetOrganizationInviteResponse.typeName = "uniswap.platformservice.v1.GetOrganizationInviteResponse";
|
|
962
|
+
GetOrganizationInviteResponse.fields = proto3.util.newFieldList(() => [
|
|
963
|
+
{ no: 1, name: "organization_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
964
|
+
{ no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
965
|
+
{ no: 3, name: "role", kind: "enum", T: proto3.getEnumType(OrgRole) },
|
|
966
|
+
{ no: 4, name: "error", kind: "message", T: OrganizationServiceError, opt: true },
|
|
967
|
+
]);
|
|
968
|
+
/**
|
|
969
|
+
* @generated from message uniswap.platformservice.v1.AcceptOrganizationInviteRequest
|
|
970
|
+
*/
|
|
971
|
+
export class AcceptOrganizationInviteRequest extends Message {
|
|
972
|
+
constructor(data) {
|
|
973
|
+
super();
|
|
974
|
+
/**
|
|
975
|
+
* optional: empty matches the caller's email against pending invites
|
|
976
|
+
*
|
|
977
|
+
* @generated from field: string code = 1;
|
|
978
|
+
*/
|
|
979
|
+
this.code = "";
|
|
980
|
+
proto3.util.initPartial(data, this);
|
|
981
|
+
}
|
|
982
|
+
static fromBinary(bytes, options) {
|
|
983
|
+
return new AcceptOrganizationInviteRequest().fromBinary(bytes, options);
|
|
984
|
+
}
|
|
985
|
+
static fromJson(jsonValue, options) {
|
|
986
|
+
return new AcceptOrganizationInviteRequest().fromJson(jsonValue, options);
|
|
987
|
+
}
|
|
988
|
+
static fromJsonString(jsonString, options) {
|
|
989
|
+
return new AcceptOrganizationInviteRequest().fromJsonString(jsonString, options);
|
|
990
|
+
}
|
|
991
|
+
static equals(a, b) {
|
|
992
|
+
return proto3.util.equals(AcceptOrganizationInviteRequest, a, b);
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
AcceptOrganizationInviteRequest.runtime = proto3;
|
|
996
|
+
AcceptOrganizationInviteRequest.typeName = "uniswap.platformservice.v1.AcceptOrganizationInviteRequest";
|
|
997
|
+
AcceptOrganizationInviteRequest.fields = proto3.util.newFieldList(() => [
|
|
998
|
+
{ no: 1, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
999
|
+
]);
|
|
1000
|
+
/**
|
|
1001
|
+
* @generated from message uniswap.platformservice.v1.AcceptOrganizationInviteResponse
|
|
1002
|
+
*/
|
|
1003
|
+
export class AcceptOrganizationInviteResponse extends Message {
|
|
1004
|
+
constructor(data) {
|
|
1005
|
+
super();
|
|
1006
|
+
/**
|
|
1007
|
+
* @generated from field: string org_id = 1;
|
|
1008
|
+
*/
|
|
1009
|
+
this.orgId = "";
|
|
1010
|
+
proto3.util.initPartial(data, this);
|
|
1011
|
+
}
|
|
1012
|
+
static fromBinary(bytes, options) {
|
|
1013
|
+
return new AcceptOrganizationInviteResponse().fromBinary(bytes, options);
|
|
1014
|
+
}
|
|
1015
|
+
static fromJson(jsonValue, options) {
|
|
1016
|
+
return new AcceptOrganizationInviteResponse().fromJson(jsonValue, options);
|
|
1017
|
+
}
|
|
1018
|
+
static fromJsonString(jsonString, options) {
|
|
1019
|
+
return new AcceptOrganizationInviteResponse().fromJsonString(jsonString, options);
|
|
1020
|
+
}
|
|
1021
|
+
static equals(a, b) {
|
|
1022
|
+
return proto3.util.equals(AcceptOrganizationInviteResponse, a, b);
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
AcceptOrganizationInviteResponse.runtime = proto3;
|
|
1026
|
+
AcceptOrganizationInviteResponse.typeName = "uniswap.platformservice.v1.AcceptOrganizationInviteResponse";
|
|
1027
|
+
AcceptOrganizationInviteResponse.fields = proto3.util.newFieldList(() => [
|
|
1028
|
+
{ no: 1, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1029
|
+
{ no: 2, name: "error", kind: "message", T: OrganizationServiceError, opt: true },
|
|
1030
|
+
]);
|
|
1031
|
+
/**
|
|
1032
|
+
* @generated from message uniswap.platformservice.v1.GetMyPendingInviteRequest
|
|
1033
|
+
*/
|
|
1034
|
+
export class GetMyPendingInviteRequest extends Message {
|
|
1035
|
+
constructor(data) {
|
|
1036
|
+
super();
|
|
1037
|
+
proto3.util.initPartial(data, this);
|
|
1038
|
+
}
|
|
1039
|
+
static fromBinary(bytes, options) {
|
|
1040
|
+
return new GetMyPendingInviteRequest().fromBinary(bytes, options);
|
|
1041
|
+
}
|
|
1042
|
+
static fromJson(jsonValue, options) {
|
|
1043
|
+
return new GetMyPendingInviteRequest().fromJson(jsonValue, options);
|
|
1044
|
+
}
|
|
1045
|
+
static fromJsonString(jsonString, options) {
|
|
1046
|
+
return new GetMyPendingInviteRequest().fromJsonString(jsonString, options);
|
|
1047
|
+
}
|
|
1048
|
+
static equals(a, b) {
|
|
1049
|
+
return proto3.util.equals(GetMyPendingInviteRequest, a, b);
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
GetMyPendingInviteRequest.runtime = proto3;
|
|
1053
|
+
GetMyPendingInviteRequest.typeName = "uniswap.platformservice.v1.GetMyPendingInviteRequest";
|
|
1054
|
+
GetMyPendingInviteRequest.fields = proto3.util.newFieldList(() => []);
|
|
1055
|
+
/**
|
|
1056
|
+
* @generated from message uniswap.platformservice.v1.GetMyPendingInviteResponse
|
|
1057
|
+
*/
|
|
1058
|
+
export class GetMyPendingInviteResponse extends Message {
|
|
1059
|
+
constructor(data) {
|
|
1060
|
+
super();
|
|
1061
|
+
/**
|
|
1062
|
+
* set when invite is present
|
|
1063
|
+
*
|
|
1064
|
+
* @generated from field: string organization_name = 2;
|
|
1065
|
+
*/
|
|
1066
|
+
this.organizationName = "";
|
|
1067
|
+
proto3.util.initPartial(data, this);
|
|
1068
|
+
}
|
|
1069
|
+
static fromBinary(bytes, options) {
|
|
1070
|
+
return new GetMyPendingInviteResponse().fromBinary(bytes, options);
|
|
1071
|
+
}
|
|
1072
|
+
static fromJson(jsonValue, options) {
|
|
1073
|
+
return new GetMyPendingInviteResponse().fromJson(jsonValue, options);
|
|
1074
|
+
}
|
|
1075
|
+
static fromJsonString(jsonString, options) {
|
|
1076
|
+
return new GetMyPendingInviteResponse().fromJsonString(jsonString, options);
|
|
1077
|
+
}
|
|
1078
|
+
static equals(a, b) {
|
|
1079
|
+
return proto3.util.equals(GetMyPendingInviteResponse, a, b);
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
GetMyPendingInviteResponse.runtime = proto3;
|
|
1083
|
+
GetMyPendingInviteResponse.typeName = "uniswap.platformservice.v1.GetMyPendingInviteResponse";
|
|
1084
|
+
GetMyPendingInviteResponse.fields = proto3.util.newFieldList(() => [
|
|
1085
|
+
{ no: 1, name: "invite", kind: "message", T: OrganizationInvite, opt: true },
|
|
1086
|
+
{ no: 2, name: "organization_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1087
|
+
{ no: 3, name: "error", kind: "message", T: OrganizationServiceError, opt: true },
|
|
75
1088
|
]);
|
|
76
1089
|
/**
|
|
77
1090
|
* @generated from message uniswap.platformservice.v1.CreateOrganizationRequest
|