@uniswap/client-platform-service 0.0.9 → 0.0.10

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.
Files changed (32) hide show
  1. package/dist/uniswap/platformservice/v1/apiKeyService-ApiKeyService_connectquery.js +1 -1
  2. package/dist/uniswap/platformservice/v1/apiKeyService_connect.js +1 -1
  3. package/dist/uniswap/platformservice/v1/apiKeyService_pb.d.ts +8 -0
  4. package/dist/uniswap/platformservice/v1/apiKeyService_pb.js +7 -1
  5. package/dist/uniswap/platformservice/v1/organizationService-OrganizationService_connectquery.d.ts +14 -1
  6. package/dist/uniswap/platformservice/v1/organizationService-OrganizationService_connectquery.js +15 -2
  7. package/dist/uniswap/platformservice/v1/organizationService_connect.d.ts +10 -1
  8. package/dist/uniswap/platformservice/v1/organizationService_connect.js +11 -2
  9. package/dist/uniswap/platformservice/v1/organizationService_pb.d.ts +42 -0
  10. package/dist/uniswap/platformservice/v1/organizationService_pb.js +70 -1
  11. package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.d.ts +2 -43
  12. package/dist/uniswap/platformservice/v1/personaService-PersonaService_connectquery.js +3 -44
  13. package/dist/uniswap/platformservice/v1/personaService_connect.d.ts +2 -31
  14. package/dist/uniswap/platformservice/v1/personaService_connect.js +3 -32
  15. package/dist/uniswap/platformservice/v1/personaService_pb.d.ts +0 -150
  16. package/dist/uniswap/platformservice/v1/personaService_pb.js +1 -231
  17. package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.d.ts +2 -18
  18. package/dist/uniswap/platformservice/v1/sessionService-SessionService_connectquery.js +3 -19
  19. package/dist/uniswap/platformservice/v1/sessionService_connect.d.ts +2 -14
  20. package/dist/uniswap/platformservice/v1/sessionService_connect.js +3 -15
  21. package/dist/uniswap/platformservice/v1/sessionService_pb.d.ts +8 -28
  22. package/dist/uniswap/platformservice/v1/sessionService_pb.js +9 -50
  23. package/dist/uniswap/platformservice/v1/userService-UserService_connectquery.d.ts +73 -0
  24. package/dist/uniswap/platformservice/v1/userService-UserService_connectquery.js +77 -0
  25. package/dist/uniswap/platformservice/v1/userService_connect.d.ts +61 -0
  26. package/dist/uniswap/platformservice/v1/userService_connect.js +65 -0
  27. package/dist/uniswap/platformservice/v1/userService_pb.d.ts +261 -0
  28. package/dist/uniswap/platformservice/v1/userService_pb.js +382 -0
  29. package/dist/uniswap/platformservice/v1/workerService-WorkerService_connectquery.js +1 -1
  30. package/dist/uniswap/platformservice/v1/workerService_connect.js +1 -1
  31. package/dist/uniswap/platformservice/v1/workerService_pb.js +1 -1
  32. package/package.json +1 -1
@@ -0,0 +1,382 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
+ // @generated from file uniswap/platformservice/v1/userService.proto (package uniswap.platformservice.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3 } from "@bufbuild/protobuf";
6
+ /**
7
+ * Represents an agreement
8
+ *
9
+ * @generated from message uniswap.platformservice.v1.Agreement
10
+ */
11
+ export class Agreement extends Message {
12
+ constructor(data) {
13
+ super();
14
+ /**
15
+ * @generated from field: string name = 1;
16
+ */
17
+ this.name = "";
18
+ /**
19
+ * @generated from field: string version = 2;
20
+ */
21
+ this.version = "";
22
+ proto3.util.initPartial(data, this);
23
+ }
24
+ static fromBinary(bytes, options) {
25
+ return new Agreement().fromBinary(bytes, options);
26
+ }
27
+ static fromJson(jsonValue, options) {
28
+ return new Agreement().fromJson(jsonValue, options);
29
+ }
30
+ static fromJsonString(jsonString, options) {
31
+ return new Agreement().fromJsonString(jsonString, options);
32
+ }
33
+ static equals(a, b) {
34
+ return proto3.util.equals(Agreement, a, b);
35
+ }
36
+ }
37
+ Agreement.runtime = proto3;
38
+ Agreement.typeName = "uniswap.platformservice.v1.Agreement";
39
+ Agreement.fields = proto3.util.newFieldList(() => [
40
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
41
+ { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
42
+ { no: 3, name: "agreed_at", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
43
+ ]);
44
+ /**
45
+ * Request to create a new user
46
+ *
47
+ * @generated from message uniswap.platformservice.v1.CreateUserRequest
48
+ */
49
+ export class CreateUserRequest extends Message {
50
+ constructor(data) {
51
+ super();
52
+ /**
53
+ * User's email address (required)
54
+ *
55
+ * @generated from field: string email = 1;
56
+ */
57
+ this.email = "";
58
+ proto3.util.initPartial(data, this);
59
+ }
60
+ static fromBinary(bytes, options) {
61
+ return new CreateUserRequest().fromBinary(bytes, options);
62
+ }
63
+ static fromJson(jsonValue, options) {
64
+ return new CreateUserRequest().fromJson(jsonValue, options);
65
+ }
66
+ static fromJsonString(jsonString, options) {
67
+ return new CreateUserRequest().fromJsonString(jsonString, options);
68
+ }
69
+ static equals(a, b) {
70
+ return proto3.util.equals(CreateUserRequest, a, b);
71
+ }
72
+ }
73
+ CreateUserRequest.runtime = proto3;
74
+ CreateUserRequest.typeName = "uniswap.platformservice.v1.CreateUserRequest";
75
+ CreateUserRequest.fields = proto3.util.newFieldList(() => [
76
+ { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
77
+ ]);
78
+ /**
79
+ * Response for create user
80
+ *
81
+ * @generated from message uniswap.platformservice.v1.CreateUserResponse
82
+ */
83
+ export class CreateUserResponse extends Message {
84
+ constructor(data) {
85
+ super();
86
+ /**
87
+ * @generated from field: string user_id = 1;
88
+ */
89
+ this.userId = "";
90
+ proto3.util.initPartial(data, this);
91
+ }
92
+ static fromBinary(bytes, options) {
93
+ return new CreateUserResponse().fromBinary(bytes, options);
94
+ }
95
+ static fromJson(jsonValue, options) {
96
+ return new CreateUserResponse().fromJson(jsonValue, options);
97
+ }
98
+ static fromJsonString(jsonString, options) {
99
+ return new CreateUserResponse().fromJsonString(jsonString, options);
100
+ }
101
+ static equals(a, b) {
102
+ return proto3.util.equals(CreateUserResponse, a, b);
103
+ }
104
+ }
105
+ CreateUserResponse.runtime = proto3;
106
+ CreateUserResponse.typeName = "uniswap.platformservice.v1.CreateUserResponse";
107
+ CreateUserResponse.fields = proto3.util.newFieldList(() => [
108
+ { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
109
+ ]);
110
+ /**
111
+ * Request to modify an existing user
112
+ *
113
+ * @generated from message uniswap.platformservice.v1.ModifyUserRequest
114
+ */
115
+ export class ModifyUserRequest extends Message {
116
+ constructor(data) {
117
+ super();
118
+ /**
119
+ * Multiple agreements can be updated at once
120
+ *
121
+ * @generated from field: repeated uniswap.platformservice.v1.Agreement agreements = 2;
122
+ */
123
+ this.agreements = [];
124
+ proto3.util.initPartial(data, this);
125
+ }
126
+ static fromBinary(bytes, options) {
127
+ return new ModifyUserRequest().fromBinary(bytes, options);
128
+ }
129
+ static fromJson(jsonValue, options) {
130
+ return new ModifyUserRequest().fromJson(jsonValue, options);
131
+ }
132
+ static fromJsonString(jsonString, options) {
133
+ return new ModifyUserRequest().fromJsonString(jsonString, options);
134
+ }
135
+ static equals(a, b) {
136
+ return proto3.util.equals(ModifyUserRequest, a, b);
137
+ }
138
+ }
139
+ ModifyUserRequest.runtime = proto3;
140
+ ModifyUserRequest.typeName = "uniswap.platformservice.v1.ModifyUserRequest";
141
+ ModifyUserRequest.fields = proto3.util.newFieldList(() => [
142
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
143
+ { no: 2, name: "agreements", kind: "message", T: Agreement, repeated: true },
144
+ { no: 3, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
145
+ ]);
146
+ /**
147
+ * Response for modify user
148
+ *
149
+ * @generated from message uniswap.platformservice.v1.ModifyUserResponse
150
+ */
151
+ export class ModifyUserResponse extends Message {
152
+ constructor(data) {
153
+ super();
154
+ proto3.util.initPartial(data, this);
155
+ }
156
+ static fromBinary(bytes, options) {
157
+ return new ModifyUserResponse().fromBinary(bytes, options);
158
+ }
159
+ static fromJson(jsonValue, options) {
160
+ return new ModifyUserResponse().fromJson(jsonValue, options);
161
+ }
162
+ static fromJsonString(jsonString, options) {
163
+ return new ModifyUserResponse().fromJsonString(jsonString, options);
164
+ }
165
+ static equals(a, b) {
166
+ return proto3.util.equals(ModifyUserResponse, a, b);
167
+ }
168
+ }
169
+ ModifyUserResponse.runtime = proto3;
170
+ ModifyUserResponse.typeName = "uniswap.platformservice.v1.ModifyUserResponse";
171
+ ModifyUserResponse.fields = proto3.util.newFieldList(() => []);
172
+ /**
173
+ * Request to get user details
174
+ *
175
+ * @generated from message uniswap.platformservice.v1.GetUserRequest
176
+ */
177
+ export class GetUserRequest extends Message {
178
+ constructor(data) {
179
+ super();
180
+ proto3.util.initPartial(data, this);
181
+ }
182
+ static fromBinary(bytes, options) {
183
+ return new GetUserRequest().fromBinary(bytes, options);
184
+ }
185
+ static fromJson(jsonValue, options) {
186
+ return new GetUserRequest().fromJson(jsonValue, options);
187
+ }
188
+ static fromJsonString(jsonString, options) {
189
+ return new GetUserRequest().fromJsonString(jsonString, options);
190
+ }
191
+ static equals(a, b) {
192
+ return proto3.util.equals(GetUserRequest, a, b);
193
+ }
194
+ }
195
+ GetUserRequest.runtime = proto3;
196
+ GetUserRequest.typeName = "uniswap.platformservice.v1.GetUserRequest";
197
+ GetUserRequest.fields = proto3.util.newFieldList(() => []);
198
+ /**
199
+ * Represents a user's basic information
200
+ *
201
+ * @generated from message uniswap.platformservice.v1.User
202
+ */
203
+ export class User extends Message {
204
+ constructor(data) {
205
+ super();
206
+ /**
207
+ * @generated from field: string user_id = 1;
208
+ */
209
+ this.userId = "";
210
+ /**
211
+ * User's agreements to terms, policies, etc.
212
+ *
213
+ * @generated from field: repeated uniswap.platformservice.v1.Agreement agreements = 5;
214
+ */
215
+ this.agreements = [];
216
+ proto3.util.initPartial(data, this);
217
+ }
218
+ static fromBinary(bytes, options) {
219
+ return new User().fromBinary(bytes, options);
220
+ }
221
+ static fromJson(jsonValue, options) {
222
+ return new User().fromJson(jsonValue, options);
223
+ }
224
+ static fromJsonString(jsonString, options) {
225
+ return new User().fromJsonString(jsonString, options);
226
+ }
227
+ static equals(a, b) {
228
+ return proto3.util.equals(User, a, b);
229
+ }
230
+ }
231
+ User.runtime = proto3;
232
+ User.typeName = "uniswap.platformservice.v1.User";
233
+ User.fields = proto3.util.newFieldList(() => [
234
+ { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
235
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
236
+ { no: 3, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
237
+ { no: 4, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
238
+ { no: 5, name: "agreements", kind: "message", T: Agreement, repeated: true },
239
+ ]);
240
+ /**
241
+ * Response for get user
242
+ *
243
+ * @generated from message uniswap.platformservice.v1.GetUserResponse
244
+ */
245
+ export class GetUserResponse extends Message {
246
+ constructor(data) {
247
+ super();
248
+ proto3.util.initPartial(data, this);
249
+ }
250
+ static fromBinary(bytes, options) {
251
+ return new GetUserResponse().fromBinary(bytes, options);
252
+ }
253
+ static fromJson(jsonValue, options) {
254
+ return new GetUserResponse().fromJson(jsonValue, options);
255
+ }
256
+ static fromJsonString(jsonString, options) {
257
+ return new GetUserResponse().fromJsonString(jsonString, options);
258
+ }
259
+ static equals(a, b) {
260
+ return proto3.util.equals(GetUserResponse, a, b);
261
+ }
262
+ }
263
+ GetUserResponse.runtime = proto3;
264
+ GetUserResponse.typeName = "uniswap.platformservice.v1.GetUserResponse";
265
+ GetUserResponse.fields = proto3.util.newFieldList(() => [
266
+ { no: 1, name: "user", kind: "message", T: User },
267
+ ]);
268
+ /**
269
+ * Request to delete a user account
270
+ *
271
+ * @generated from message uniswap.platformservice.v1.DeleteUserRequest
272
+ */
273
+ export class DeleteUserRequest extends Message {
274
+ constructor(data) {
275
+ super();
276
+ proto3.util.initPartial(data, this);
277
+ }
278
+ static fromBinary(bytes, options) {
279
+ return new DeleteUserRequest().fromBinary(bytes, options);
280
+ }
281
+ static fromJson(jsonValue, options) {
282
+ return new DeleteUserRequest().fromJson(jsonValue, options);
283
+ }
284
+ static fromJsonString(jsonString, options) {
285
+ return new DeleteUserRequest().fromJsonString(jsonString, options);
286
+ }
287
+ static equals(a, b) {
288
+ return proto3.util.equals(DeleteUserRequest, a, b);
289
+ }
290
+ }
291
+ DeleteUserRequest.runtime = proto3;
292
+ DeleteUserRequest.typeName = "uniswap.platformservice.v1.DeleteUserRequest";
293
+ DeleteUserRequest.fields = proto3.util.newFieldList(() => []);
294
+ /**
295
+ * Response for delete user
296
+ *
297
+ * @generated from message uniswap.platformservice.v1.DeleteUserResponse
298
+ */
299
+ export class DeleteUserResponse extends Message {
300
+ constructor(data) {
301
+ super();
302
+ proto3.util.initPartial(data, this);
303
+ }
304
+ static fromBinary(bytes, options) {
305
+ return new DeleteUserResponse().fromBinary(bytes, options);
306
+ }
307
+ static fromJson(jsonValue, options) {
308
+ return new DeleteUserResponse().fromJson(jsonValue, options);
309
+ }
310
+ static fromJsonString(jsonString, options) {
311
+ return new DeleteUserResponse().fromJsonString(jsonString, options);
312
+ }
313
+ static equals(a, b) {
314
+ return proto3.util.equals(DeleteUserResponse, a, b);
315
+ }
316
+ }
317
+ DeleteUserResponse.runtime = proto3;
318
+ DeleteUserResponse.typeName = "uniswap.platformservice.v1.DeleteUserResponse";
319
+ DeleteUserResponse.fields = proto3.util.newFieldList(() => []);
320
+ /**
321
+ * Request to get user by email
322
+ *
323
+ * @generated from message uniswap.platformservice.v1.GetUserByEmailRequest
324
+ */
325
+ export class GetUserByEmailRequest extends Message {
326
+ constructor(data) {
327
+ super();
328
+ /**
329
+ * User's email address
330
+ *
331
+ * @generated from field: string email = 1;
332
+ */
333
+ this.email = "";
334
+ proto3.util.initPartial(data, this);
335
+ }
336
+ static fromBinary(bytes, options) {
337
+ return new GetUserByEmailRequest().fromBinary(bytes, options);
338
+ }
339
+ static fromJson(jsonValue, options) {
340
+ return new GetUserByEmailRequest().fromJson(jsonValue, options);
341
+ }
342
+ static fromJsonString(jsonString, options) {
343
+ return new GetUserByEmailRequest().fromJsonString(jsonString, options);
344
+ }
345
+ static equals(a, b) {
346
+ return proto3.util.equals(GetUserByEmailRequest, a, b);
347
+ }
348
+ }
349
+ GetUserByEmailRequest.runtime = proto3;
350
+ GetUserByEmailRequest.typeName = "uniswap.platformservice.v1.GetUserByEmailRequest";
351
+ GetUserByEmailRequest.fields = proto3.util.newFieldList(() => [
352
+ { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
353
+ ]);
354
+ /**
355
+ * Response for get user by email
356
+ * Throws NotFound if user does not exist
357
+ *
358
+ * @generated from message uniswap.platformservice.v1.GetUserByEmailResponse
359
+ */
360
+ export class GetUserByEmailResponse extends Message {
361
+ constructor(data) {
362
+ super();
363
+ proto3.util.initPartial(data, this);
364
+ }
365
+ static fromBinary(bytes, options) {
366
+ return new GetUserByEmailResponse().fromBinary(bytes, options);
367
+ }
368
+ static fromJson(jsonValue, options) {
369
+ return new GetUserByEmailResponse().fromJson(jsonValue, options);
370
+ }
371
+ static fromJsonString(jsonString, options) {
372
+ return new GetUserByEmailResponse().fromJsonString(jsonString, options);
373
+ }
374
+ static equals(a, b) {
375
+ return proto3.util.equals(GetUserByEmailResponse, a, b);
376
+ }
377
+ }
378
+ GetUserByEmailResponse.runtime = proto3;
379
+ GetUserByEmailResponse.typeName = "uniswap.platformservice.v1.GetUserByEmailResponse";
380
+ GetUserByEmailResponse.fields = proto3.util.newFieldList(() => [
381
+ { no: 1, name: "user", kind: "message", T: User },
382
+ ]);
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
2
2
  // @generated from file uniswap/platformservice/v1/workerService.proto (package uniswap.platformservice.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
2
  // @generated from file uniswap/platformservice/v1/workerService.proto (package uniswap.platformservice.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file uniswap/platformservice/v1/workerService.proto (package uniswap.platformservice.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-platform-service",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },