@conduitplatform/grpc-sdk 0.16.15 → 0.16.16

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/index.esm.js CHANGED
@@ -206,7 +206,7 @@ const UserLoginRequest = {
206
206
  },
207
207
  };
208
208
  function createBaseUserCreateRequest() {
209
- return { email: "", password: undefined, verify: false, anonymousId: undefined };
209
+ return { email: "", password: undefined, verify: false, anonymousId: undefined, userData: undefined };
210
210
  }
211
211
  const UserCreateRequest = {
212
212
  encode(message, writer = _m0.Writer.create()) {
@@ -222,6 +222,9 @@ const UserCreateRequest = {
222
222
  if (message.anonymousId !== undefined) {
223
223
  writer.uint32(34).string(message.anonymousId);
224
224
  }
225
+ if (message.userData !== undefined) {
226
+ writer.uint32(42).string(message.userData);
227
+ }
225
228
  return writer;
226
229
  },
227
230
  decode(input, length) {
@@ -255,6 +258,12 @@ const UserCreateRequest = {
255
258
  }
256
259
  message.anonymousId = reader.string();
257
260
  continue;
261
+ case 5:
262
+ if (tag !== 42) {
263
+ break;
264
+ }
265
+ message.userData = reader.string();
266
+ continue;
258
267
  }
259
268
  if ((tag & 7) === 4 || tag === 0) {
260
269
  break;
@@ -269,6 +278,7 @@ const UserCreateRequest = {
269
278
  password: isSet$b(object.password) ? globalThis.String(object.password) : undefined,
270
279
  verify: isSet$b(object.verify) ? globalThis.Boolean(object.verify) : false,
271
280
  anonymousId: isSet$b(object.anonymousId) ? globalThis.String(object.anonymousId) : undefined,
281
+ userData: isSet$b(object.userData) ? globalThis.String(object.userData) : undefined,
272
282
  };
273
283
  },
274
284
  toJSON(message) {
@@ -285,6 +295,9 @@ const UserCreateRequest = {
285
295
  if (message.anonymousId !== undefined) {
286
296
  obj.anonymousId = message.anonymousId;
287
297
  }
298
+ if (message.userData !== undefined) {
299
+ obj.userData = message.userData;
300
+ }
288
301
  return obj;
289
302
  },
290
303
  create(base) {
@@ -296,6 +309,7 @@ const UserCreateRequest = {
296
309
  message.password = object.password ?? undefined;
297
310
  message.verify = object.verify ?? false;
298
311
  message.anonymousId = object.anonymousId ?? undefined;
312
+ message.userData = object.userData ?? undefined;
299
313
  return message;
300
314
  },
301
315
  };
@@ -13688,8 +13702,14 @@ class Authentication extends ConduitModule {
13688
13702
  userDelete(userId) {
13689
13703
  return this.client.userDelete({ userId });
13690
13704
  }
13691
- userCreate(email, verify = false, password, anonymousId) {
13692
- return this.client.userCreate({ email, verify, password, anonymousId });
13705
+ userCreate(email, verify = false, password, anonymousId, userData) {
13706
+ return this.client.userCreate({
13707
+ email,
13708
+ verify,
13709
+ password,
13710
+ anonymousId,
13711
+ userData: JSON.stringify(userData),
13712
+ });
13693
13713
  }
13694
13714
  userCreateByUsername(username, password, anonymousId) {
13695
13715
  return this.client.userCreateByUsername({ username, password, anonymousId });