mezon-js-protobuf 1.7.8 → 1.7.11

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/api/api.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v1.181.1
4
- // protoc v5.27.2
3
+ // protoc-gen-ts_proto v1.181.2
4
+ // protoc v5.28.3
5
5
  // source: api/api.proto
6
6
 
7
7
  /* eslint-disable */
@@ -177,8 +177,8 @@ export interface Account {
177
177
  email: string;
178
178
  /** The devices which belong to the user's account. */
179
179
  devices: AccountDevice[];
180
- /** The custom id in the user's account. */
181
- custom_id: string;
180
+ /** The mezon id in the user's account. */
181
+ mezon_id: string;
182
182
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user's email was verified. */
183
183
  verify_time:
184
184
  | Date
@@ -221,19 +221,6 @@ export interface AccountApple_VarsEntry {
221
221
  value: string;
222
222
  }
223
223
 
224
- /** Send a custom ID to the server. Used with authenticate/link/unlink. */
225
- export interface AccountCustom {
226
- /** A custom identifier. */
227
- id: string;
228
- /** Extra information that will be bundled in the session token. */
229
- vars: { [key: string]: string };
230
- }
231
-
232
- export interface AccountCustom_VarsEntry {
233
- key: string;
234
- value: string;
235
- }
236
-
237
224
  /** Send a device to the server. Used with authenticate/link/unlink and user. */
238
225
  export interface AccountDevice {
239
226
  /** A device identifier. Should be obtained by a platform-specific device API. */
@@ -324,6 +311,19 @@ export interface AccountGoogle_VarsEntry {
324
311
  value: string;
325
312
  }
326
313
 
314
+ /** Send a Mezon token to the server. Used with authenticate/link/unlink. */
315
+ export interface AccountMezon {
316
+ /** The OAuth token received from Google to access their profile API. */
317
+ token: string;
318
+ /** Extra information that will be bundled in the session token. */
319
+ vars: { [key: string]: string };
320
+ }
321
+
322
+ export interface AccountMezon_VarsEntry {
323
+ key: string;
324
+ value: string;
325
+ }
326
+
327
327
  /** Send a Steam token to the server. Used with authenticate/link/unlink. */
328
328
  export interface AccountSteam {
329
329
  /** The account token received from Steam to access their profile API. */
@@ -392,20 +392,6 @@ export interface AuthenticateAppleRequest {
392
392
  username: string;
393
393
  }
394
394
 
395
- /** Authenticate against the server with a custom ID. */
396
- export interface AuthenticateCustomRequest {
397
- /** The custom account details. */
398
- account:
399
- | AccountCustom
400
- | undefined;
401
- /** Register the account if the user does not already exist. */
402
- create:
403
- | boolean
404
- | undefined;
405
- /** Set the username on the account at register. Must be unique. */
406
- username: string;
407
- }
408
-
409
395
  /** Authenticate against the server with a device ID. */
410
396
  export interface AuthenticateDeviceRequest {
411
397
  /** The device account details. */
@@ -498,6 +484,20 @@ export interface AuthenticateGoogleRequest {
498
484
  username: string;
499
485
  }
500
486
 
487
+ /** Authenticate against the server with Mezon. */
488
+ export interface AuthenticateMezonRequest {
489
+ /** The Mezon account details. */
490
+ account:
491
+ | AccountMezon
492
+ | undefined;
493
+ /** Register the account if the user does not already exist. */
494
+ create:
495
+ | boolean
496
+ | undefined;
497
+ /** Set the username on the account at register. Must be unique. */
498
+ username: string;
499
+ }
500
+
501
501
  /** Authenticate against the server with Steam. */
502
502
  export interface AuthenticateSteamRequest {
503
503
  /** The Steam account details. */
@@ -1632,6 +1632,8 @@ export interface ClanDesc {
1632
1632
  badge_count: number;
1633
1633
  /** Is onboarding. */
1634
1634
  is_onboarding: boolean;
1635
+ /** Welcome channel id. */
1636
+ welcome_channel_id: string;
1635
1637
  }
1636
1638
 
1637
1639
  /** Clan information */
@@ -1656,7 +1658,11 @@ export interface UpdateClanDescRequest {
1656
1658
  /** Clan status */
1657
1659
  status: number;
1658
1660
  /** Is onboarding. */
1659
- is_onboarding: boolean | undefined;
1661
+ is_onboarding:
1662
+ | boolean
1663
+ | undefined;
1664
+ /** Welcome channel id. */
1665
+ welcome_channel_id: string;
1660
1666
  }
1661
1667
 
1662
1668
  /** Delete a clan the user has access to. */
@@ -3449,8 +3455,8 @@ export interface LoginIDResponse {
3449
3455
  platform: string;
3450
3456
  /** user_id */
3451
3457
  user_id: number;
3452
- /** user_name */
3453
- user_name: string;
3458
+ /** username */
3459
+ username: string;
3454
3460
  /** address */
3455
3461
  address: string;
3456
3462
  }
@@ -3905,13 +3911,67 @@ export interface HandleParticipantMeetStateRequest {
3905
3911
  state: number;
3906
3912
  }
3907
3913
 
3914
+ export interface MezonOauthClient {
3915
+ access_token_strategy: string;
3916
+ allowed_cors_origins: string[];
3917
+ audience: string[];
3918
+ authorization_code_grant_access_token_lifespan: string;
3919
+ authorization_code_grant_id_token_lifespan: string;
3920
+ authorization_code_grant_refresh_token_lifespan: string;
3921
+ backchannel_logout_session_required: boolean;
3922
+ backchannel_logout_uri: string;
3923
+ client_credentials_grant_access_token_lifespan: string;
3924
+ client_id: string;
3925
+ client_name: string;
3926
+ client_secret: string;
3927
+ client_secret_expires_at: number;
3928
+ client_uri: string;
3929
+ contacts: string[];
3930
+ created_at: Date | undefined;
3931
+ frontchannel_logout_session_required: boolean;
3932
+ frontchannel_logout_uri: string;
3933
+ grant_types: string[];
3934
+ implicit_grant_access_token_lifespan: string;
3935
+ implicit_grant_id_token_lifespan: string;
3936
+ jwks: string[];
3937
+ jwks_uri: string;
3938
+ jwt_bearer_grant_access_token_lifespan: string;
3939
+ logo_uri: string;
3940
+ owner: string;
3941
+ policy_uri: string;
3942
+ post_logout_redirect_uris: string[];
3943
+ redirect_uris: string[];
3944
+ refresh_token_grant_access_token_lifespan: string;
3945
+ refresh_token_grant_id_token_lifespan: string;
3946
+ refresh_token_grant_refresh_token_lifespan: string;
3947
+ registration_access_token: string;
3948
+ registration_client_uri: string;
3949
+ request_object_signing_alg: string;
3950
+ request_uris: string[];
3951
+ response_types: string[];
3952
+ scope: string;
3953
+ sector_identifier_uri: string;
3954
+ skip_consent: boolean;
3955
+ skip_logout_consent: boolean;
3956
+ subject_type: string;
3957
+ token_endpoint_auth_method: string;
3958
+ token_endpoint_auth_signing_alg: string;
3959
+ tos_uri: string;
3960
+ updated_at: Date | undefined;
3961
+ userinfo_signed_response_alg: string;
3962
+ }
3963
+
3964
+ export interface MezonOauthClientList {
3965
+ listMezonOauthClient: MezonOauthClient[];
3966
+ }
3967
+
3908
3968
  function createBaseAccount(): Account {
3909
3969
  return {
3910
3970
  user: undefined,
3911
3971
  wallet: "",
3912
3972
  email: "",
3913
3973
  devices: [],
3914
- custom_id: "",
3974
+ mezon_id: "",
3915
3975
  verify_time: undefined,
3916
3976
  disable_time: undefined,
3917
3977
  logo: "",
@@ -3934,8 +3994,8 @@ export const Account = {
3934
3994
  for (const v of message.devices) {
3935
3995
  AccountDevice.encode(v!, writer.uint32(34).fork()).ldelim();
3936
3996
  }
3937
- if (message.custom_id !== "") {
3938
- writer.uint32(42).string(message.custom_id);
3997
+ if (message.mezon_id !== "") {
3998
+ writer.uint32(42).string(message.mezon_id);
3939
3999
  }
3940
4000
  if (message.verify_time !== undefined) {
3941
4001
  Timestamp.encode(toTimestamp(message.verify_time), writer.uint32(50).fork()).ldelim();
@@ -3995,7 +4055,7 @@ export const Account = {
3995
4055
  break;
3996
4056
  }
3997
4057
 
3998
- message.custom_id = reader.string();
4058
+ message.mezon_id = reader.string();
3999
4059
  continue;
4000
4060
  case 6:
4001
4061
  if (tag !== 50) {
@@ -4049,7 +4109,7 @@ export const Account = {
4049
4109
  devices: globalThis.Array.isArray(object?.devices)
4050
4110
  ? object.devices.map((e: any) => AccountDevice.fromJSON(e))
4051
4111
  : [],
4052
- custom_id: isSet(object.custom_id) ? globalThis.String(object.custom_id) : "",
4112
+ mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
4053
4113
  verify_time: isSet(object.verify_time) ? fromJsonTimestamp(object.verify_time) : undefined,
4054
4114
  disable_time: isSet(object.disable_time) ? fromJsonTimestamp(object.disable_time) : undefined,
4055
4115
  logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
@@ -4072,8 +4132,8 @@ export const Account = {
4072
4132
  if (message.devices?.length) {
4073
4133
  obj.devices = message.devices.map((e) => AccountDevice.toJSON(e));
4074
4134
  }
4075
- if (message.custom_id !== "") {
4076
- obj.custom_id = message.custom_id;
4135
+ if (message.mezon_id !== "") {
4136
+ obj.mezon_id = message.mezon_id;
4077
4137
  }
4078
4138
  if (message.verify_time !== undefined) {
4079
4139
  obj.verify_time = message.verify_time.toISOString();
@@ -4102,7 +4162,7 @@ export const Account = {
4102
4162
  message.wallet = object.wallet ?? "";
4103
4163
  message.email = object.email ?? "";
4104
4164
  message.devices = object.devices?.map((e) => AccountDevice.fromPartial(e)) || [];
4105
- message.custom_id = object.custom_id ?? "";
4165
+ message.mezon_id = object.mezon_id ?? "";
4106
4166
  message.verify_time = object.verify_time ?? undefined;
4107
4167
  message.disable_time = object.disable_time ?? undefined;
4108
4168
  message.logo = object.logo ?? "";
@@ -4446,25 +4506,25 @@ export const AccountApple_VarsEntry = {
4446
4506
  },
4447
4507
  };
4448
4508
 
4449
- function createBaseAccountCustom(): AccountCustom {
4509
+ function createBaseAccountDevice(): AccountDevice {
4450
4510
  return { id: "", vars: {} };
4451
4511
  }
4452
4512
 
4453
- export const AccountCustom = {
4454
- encode(message: AccountCustom, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4513
+ export const AccountDevice = {
4514
+ encode(message: AccountDevice, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4455
4515
  if (message.id !== "") {
4456
4516
  writer.uint32(10).string(message.id);
4457
4517
  }
4458
4518
  Object.entries(message.vars).forEach(([key, value]) => {
4459
- AccountCustom_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
4519
+ AccountDevice_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
4460
4520
  });
4461
4521
  return writer;
4462
4522
  },
4463
4523
 
4464
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountCustom {
4524
+ decode(input: _m0.Reader | Uint8Array, length?: number): AccountDevice {
4465
4525
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4466
4526
  let end = length === undefined ? reader.len : reader.pos + length;
4467
- const message = createBaseAccountCustom();
4527
+ const message = createBaseAccountDevice();
4468
4528
  while (reader.pos < end) {
4469
4529
  const tag = reader.uint32();
4470
4530
  switch (tag >>> 3) {
@@ -4480,7 +4540,7 @@ export const AccountCustom = {
4480
4540
  break;
4481
4541
  }
4482
4542
 
4483
- const entry2 = AccountCustom_VarsEntry.decode(reader, reader.uint32());
4543
+ const entry2 = AccountDevice_VarsEntry.decode(reader, reader.uint32());
4484
4544
  if (entry2.value !== undefined) {
4485
4545
  message.vars[entry2.key] = entry2.value;
4486
4546
  }
@@ -4494,7 +4554,7 @@ export const AccountCustom = {
4494
4554
  return message;
4495
4555
  },
4496
4556
 
4497
- fromJSON(object: any): AccountCustom {
4557
+ fromJSON(object: any): AccountDevice {
4498
4558
  return {
4499
4559
  id: isSet(object.id) ? globalThis.String(object.id) : "",
4500
4560
  vars: isObject(object.vars)
@@ -4506,7 +4566,7 @@ export const AccountCustom = {
4506
4566
  };
4507
4567
  },
4508
4568
 
4509
- toJSON(message: AccountCustom): unknown {
4569
+ toJSON(message: AccountDevice): unknown {
4510
4570
  const obj: any = {};
4511
4571
  if (message.id !== "") {
4512
4572
  obj.id = message.id;
@@ -4523,11 +4583,11 @@ export const AccountCustom = {
4523
4583
  return obj;
4524
4584
  },
4525
4585
 
4526
- create<I extends Exact<DeepPartial<AccountCustom>, I>>(base?: I): AccountCustom {
4527
- return AccountCustom.fromPartial(base ?? ({} as any));
4586
+ create<I extends Exact<DeepPartial<AccountDevice>, I>>(base?: I): AccountDevice {
4587
+ return AccountDevice.fromPartial(base ?? ({} as any));
4528
4588
  },
4529
- fromPartial<I extends Exact<DeepPartial<AccountCustom>, I>>(object: I): AccountCustom {
4530
- const message = createBaseAccountCustom();
4589
+ fromPartial<I extends Exact<DeepPartial<AccountDevice>, I>>(object: I): AccountDevice {
4590
+ const message = createBaseAccountDevice();
4531
4591
  message.id = object.id ?? "";
4532
4592
  message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
4533
4593
  if (value !== undefined) {
@@ -4539,12 +4599,12 @@ export const AccountCustom = {
4539
4599
  },
4540
4600
  };
4541
4601
 
4542
- function createBaseAccountCustom_VarsEntry(): AccountCustom_VarsEntry {
4602
+ function createBaseAccountDevice_VarsEntry(): AccountDevice_VarsEntry {
4543
4603
  return { key: "", value: "" };
4544
4604
  }
4545
4605
 
4546
- export const AccountCustom_VarsEntry = {
4547
- encode(message: AccountCustom_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4606
+ export const AccountDevice_VarsEntry = {
4607
+ encode(message: AccountDevice_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4548
4608
  if (message.key !== "") {
4549
4609
  writer.uint32(10).string(message.key);
4550
4610
  }
@@ -4554,10 +4614,10 @@ export const AccountCustom_VarsEntry = {
4554
4614
  return writer;
4555
4615
  },
4556
4616
 
4557
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountCustom_VarsEntry {
4617
+ decode(input: _m0.Reader | Uint8Array, length?: number): AccountDevice_VarsEntry {
4558
4618
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4559
4619
  let end = length === undefined ? reader.len : reader.pos + length;
4560
- const message = createBaseAccountCustom_VarsEntry();
4620
+ const message = createBaseAccountDevice_VarsEntry();
4561
4621
  while (reader.pos < end) {
4562
4622
  const tag = reader.uint32();
4563
4623
  switch (tag >>> 3) {
@@ -4584,14 +4644,14 @@ export const AccountCustom_VarsEntry = {
4584
4644
  return message;
4585
4645
  },
4586
4646
 
4587
- fromJSON(object: any): AccountCustom_VarsEntry {
4647
+ fromJSON(object: any): AccountDevice_VarsEntry {
4588
4648
  return {
4589
4649
  key: isSet(object.key) ? globalThis.String(object.key) : "",
4590
4650
  value: isSet(object.value) ? globalThis.String(object.value) : "",
4591
4651
  };
4592
4652
  },
4593
4653
 
4594
- toJSON(message: AccountCustom_VarsEntry): unknown {
4654
+ toJSON(message: AccountDevice_VarsEntry): unknown {
4595
4655
  const obj: any = {};
4596
4656
  if (message.key !== "") {
4597
4657
  obj.key = message.key;
@@ -4602,36 +4662,39 @@ export const AccountCustom_VarsEntry = {
4602
4662
  return obj;
4603
4663
  },
4604
4664
 
4605
- create<I extends Exact<DeepPartial<AccountCustom_VarsEntry>, I>>(base?: I): AccountCustom_VarsEntry {
4606
- return AccountCustom_VarsEntry.fromPartial(base ?? ({} as any));
4665
+ create<I extends Exact<DeepPartial<AccountDevice_VarsEntry>, I>>(base?: I): AccountDevice_VarsEntry {
4666
+ return AccountDevice_VarsEntry.fromPartial(base ?? ({} as any));
4607
4667
  },
4608
- fromPartial<I extends Exact<DeepPartial<AccountCustom_VarsEntry>, I>>(object: I): AccountCustom_VarsEntry {
4609
- const message = createBaseAccountCustom_VarsEntry();
4668
+ fromPartial<I extends Exact<DeepPartial<AccountDevice_VarsEntry>, I>>(object: I): AccountDevice_VarsEntry {
4669
+ const message = createBaseAccountDevice_VarsEntry();
4610
4670
  message.key = object.key ?? "";
4611
4671
  message.value = object.value ?? "";
4612
4672
  return message;
4613
4673
  },
4614
4674
  };
4615
4675
 
4616
- function createBaseAccountDevice(): AccountDevice {
4617
- return { id: "", vars: {} };
4676
+ function createBaseAccountEmail(): AccountEmail {
4677
+ return { email: "", password: "", vars: {} };
4618
4678
  }
4619
4679
 
4620
- export const AccountDevice = {
4621
- encode(message: AccountDevice, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4622
- if (message.id !== "") {
4623
- writer.uint32(10).string(message.id);
4680
+ export const AccountEmail = {
4681
+ encode(message: AccountEmail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4682
+ if (message.email !== "") {
4683
+ writer.uint32(10).string(message.email);
4684
+ }
4685
+ if (message.password !== "") {
4686
+ writer.uint32(18).string(message.password);
4624
4687
  }
4625
4688
  Object.entries(message.vars).forEach(([key, value]) => {
4626
- AccountDevice_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
4689
+ AccountEmail_VarsEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).ldelim();
4627
4690
  });
4628
4691
  return writer;
4629
4692
  },
4630
4693
 
4631
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountDevice {
4694
+ decode(input: _m0.Reader | Uint8Array, length?: number): AccountEmail {
4632
4695
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4633
4696
  let end = length === undefined ? reader.len : reader.pos + length;
4634
- const message = createBaseAccountDevice();
4697
+ const message = createBaseAccountEmail();
4635
4698
  while (reader.pos < end) {
4636
4699
  const tag = reader.uint32();
4637
4700
  switch (tag >>> 3) {
@@ -4640,16 +4703,23 @@ export const AccountDevice = {
4640
4703
  break;
4641
4704
  }
4642
4705
 
4643
- message.id = reader.string();
4706
+ message.email = reader.string();
4644
4707
  continue;
4645
4708
  case 2:
4646
4709
  if (tag !== 18) {
4647
4710
  break;
4648
4711
  }
4649
4712
 
4650
- const entry2 = AccountDevice_VarsEntry.decode(reader, reader.uint32());
4651
- if (entry2.value !== undefined) {
4652
- message.vars[entry2.key] = entry2.value;
4713
+ message.password = reader.string();
4714
+ continue;
4715
+ case 3:
4716
+ if (tag !== 26) {
4717
+ break;
4718
+ }
4719
+
4720
+ const entry3 = AccountEmail_VarsEntry.decode(reader, reader.uint32());
4721
+ if (entry3.value !== undefined) {
4722
+ message.vars[entry3.key] = entry3.value;
4653
4723
  }
4654
4724
  continue;
4655
4725
  }
@@ -4661,9 +4731,10 @@ export const AccountDevice = {
4661
4731
  return message;
4662
4732
  },
4663
4733
 
4664
- fromJSON(object: any): AccountDevice {
4734
+ fromJSON(object: any): AccountEmail {
4665
4735
  return {
4666
- id: isSet(object.id) ? globalThis.String(object.id) : "",
4736
+ email: isSet(object.email) ? globalThis.String(object.email) : "",
4737
+ password: isSet(object.password) ? globalThis.String(object.password) : "",
4667
4738
  vars: isObject(object.vars)
4668
4739
  ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
4669
4740
  acc[key] = String(value);
@@ -4673,10 +4744,13 @@ export const AccountDevice = {
4673
4744
  };
4674
4745
  },
4675
4746
 
4676
- toJSON(message: AccountDevice): unknown {
4747
+ toJSON(message: AccountEmail): unknown {
4677
4748
  const obj: any = {};
4678
- if (message.id !== "") {
4679
- obj.id = message.id;
4749
+ if (message.email !== "") {
4750
+ obj.email = message.email;
4751
+ }
4752
+ if (message.password !== "") {
4753
+ obj.password = message.password;
4680
4754
  }
4681
4755
  if (message.vars) {
4682
4756
  const entries = Object.entries(message.vars);
@@ -4690,12 +4764,13 @@ export const AccountDevice = {
4690
4764
  return obj;
4691
4765
  },
4692
4766
 
4693
- create<I extends Exact<DeepPartial<AccountDevice>, I>>(base?: I): AccountDevice {
4694
- return AccountDevice.fromPartial(base ?? ({} as any));
4767
+ create<I extends Exact<DeepPartial<AccountEmail>, I>>(base?: I): AccountEmail {
4768
+ return AccountEmail.fromPartial(base ?? ({} as any));
4695
4769
  },
4696
- fromPartial<I extends Exact<DeepPartial<AccountDevice>, I>>(object: I): AccountDevice {
4697
- const message = createBaseAccountDevice();
4698
- message.id = object.id ?? "";
4770
+ fromPartial<I extends Exact<DeepPartial<AccountEmail>, I>>(object: I): AccountEmail {
4771
+ const message = createBaseAccountEmail();
4772
+ message.email = object.email ?? "";
4773
+ message.password = object.password ?? "";
4699
4774
  message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
4700
4775
  if (value !== undefined) {
4701
4776
  acc[key] = globalThis.String(value);
@@ -4706,12 +4781,12 @@ export const AccountDevice = {
4706
4781
  },
4707
4782
  };
4708
4783
 
4709
- function createBaseAccountDevice_VarsEntry(): AccountDevice_VarsEntry {
4784
+ function createBaseAccountEmail_VarsEntry(): AccountEmail_VarsEntry {
4710
4785
  return { key: "", value: "" };
4711
4786
  }
4712
4787
 
4713
- export const AccountDevice_VarsEntry = {
4714
- encode(message: AccountDevice_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4788
+ export const AccountEmail_VarsEntry = {
4789
+ encode(message: AccountEmail_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4715
4790
  if (message.key !== "") {
4716
4791
  writer.uint32(10).string(message.key);
4717
4792
  }
@@ -4721,10 +4796,10 @@ export const AccountDevice_VarsEntry = {
4721
4796
  return writer;
4722
4797
  },
4723
4798
 
4724
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountDevice_VarsEntry {
4799
+ decode(input: _m0.Reader | Uint8Array, length?: number): AccountEmail_VarsEntry {
4725
4800
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4726
4801
  let end = length === undefined ? reader.len : reader.pos + length;
4727
- const message = createBaseAccountDevice_VarsEntry();
4802
+ const message = createBaseAccountEmail_VarsEntry();
4728
4803
  while (reader.pos < end) {
4729
4804
  const tag = reader.uint32();
4730
4805
  switch (tag >>> 3) {
@@ -4751,14 +4826,14 @@ export const AccountDevice_VarsEntry = {
4751
4826
  return message;
4752
4827
  },
4753
4828
 
4754
- fromJSON(object: any): AccountDevice_VarsEntry {
4829
+ fromJSON(object: any): AccountEmail_VarsEntry {
4755
4830
  return {
4756
4831
  key: isSet(object.key) ? globalThis.String(object.key) : "",
4757
4832
  value: isSet(object.value) ? globalThis.String(object.value) : "",
4758
4833
  };
4759
4834
  },
4760
4835
 
4761
- toJSON(message: AccountDevice_VarsEntry): unknown {
4836
+ toJSON(message: AccountEmail_VarsEntry): unknown {
4762
4837
  const obj: any = {};
4763
4838
  if (message.key !== "") {
4764
4839
  obj.key = message.key;
@@ -4769,39 +4844,36 @@ export const AccountDevice_VarsEntry = {
4769
4844
  return obj;
4770
4845
  },
4771
4846
 
4772
- create<I extends Exact<DeepPartial<AccountDevice_VarsEntry>, I>>(base?: I): AccountDevice_VarsEntry {
4773
- return AccountDevice_VarsEntry.fromPartial(base ?? ({} as any));
4847
+ create<I extends Exact<DeepPartial<AccountEmail_VarsEntry>, I>>(base?: I): AccountEmail_VarsEntry {
4848
+ return AccountEmail_VarsEntry.fromPartial(base ?? ({} as any));
4774
4849
  },
4775
- fromPartial<I extends Exact<DeepPartial<AccountDevice_VarsEntry>, I>>(object: I): AccountDevice_VarsEntry {
4776
- const message = createBaseAccountDevice_VarsEntry();
4850
+ fromPartial<I extends Exact<DeepPartial<AccountEmail_VarsEntry>, I>>(object: I): AccountEmail_VarsEntry {
4851
+ const message = createBaseAccountEmail_VarsEntry();
4777
4852
  message.key = object.key ?? "";
4778
4853
  message.value = object.value ?? "";
4779
4854
  return message;
4780
4855
  },
4781
4856
  };
4782
4857
 
4783
- function createBaseAccountEmail(): AccountEmail {
4784
- return { email: "", password: "", vars: {} };
4858
+ function createBaseAccountFacebook(): AccountFacebook {
4859
+ return { token: "", vars: {} };
4785
4860
  }
4786
4861
 
4787
- export const AccountEmail = {
4788
- encode(message: AccountEmail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4789
- if (message.email !== "") {
4790
- writer.uint32(10).string(message.email);
4791
- }
4792
- if (message.password !== "") {
4793
- writer.uint32(18).string(message.password);
4862
+ export const AccountFacebook = {
4863
+ encode(message: AccountFacebook, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4864
+ if (message.token !== "") {
4865
+ writer.uint32(10).string(message.token);
4794
4866
  }
4795
4867
  Object.entries(message.vars).forEach(([key, value]) => {
4796
- AccountEmail_VarsEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).ldelim();
4868
+ AccountFacebook_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
4797
4869
  });
4798
4870
  return writer;
4799
4871
  },
4800
4872
 
4801
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountEmail {
4873
+ decode(input: _m0.Reader | Uint8Array, length?: number): AccountFacebook {
4802
4874
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4803
4875
  let end = length === undefined ? reader.len : reader.pos + length;
4804
- const message = createBaseAccountEmail();
4876
+ const message = createBaseAccountFacebook();
4805
4877
  while (reader.pos < end) {
4806
4878
  const tag = reader.uint32();
4807
4879
  switch (tag >>> 3) {
@@ -4810,23 +4882,16 @@ export const AccountEmail = {
4810
4882
  break;
4811
4883
  }
4812
4884
 
4813
- message.email = reader.string();
4885
+ message.token = reader.string();
4814
4886
  continue;
4815
4887
  case 2:
4816
4888
  if (tag !== 18) {
4817
4889
  break;
4818
4890
  }
4819
4891
 
4820
- message.password = reader.string();
4821
- continue;
4822
- case 3:
4823
- if (tag !== 26) {
4824
- break;
4825
- }
4826
-
4827
- const entry3 = AccountEmail_VarsEntry.decode(reader, reader.uint32());
4828
- if (entry3.value !== undefined) {
4829
- message.vars[entry3.key] = entry3.value;
4892
+ const entry2 = AccountFacebook_VarsEntry.decode(reader, reader.uint32());
4893
+ if (entry2.value !== undefined) {
4894
+ message.vars[entry2.key] = entry2.value;
4830
4895
  }
4831
4896
  continue;
4832
4897
  }
@@ -4838,10 +4903,9 @@ export const AccountEmail = {
4838
4903
  return message;
4839
4904
  },
4840
4905
 
4841
- fromJSON(object: any): AccountEmail {
4906
+ fromJSON(object: any): AccountFacebook {
4842
4907
  return {
4843
- email: isSet(object.email) ? globalThis.String(object.email) : "",
4844
- password: isSet(object.password) ? globalThis.String(object.password) : "",
4908
+ token: isSet(object.token) ? globalThis.String(object.token) : "",
4845
4909
  vars: isObject(object.vars)
4846
4910
  ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
4847
4911
  acc[key] = String(value);
@@ -4851,13 +4915,10 @@ export const AccountEmail = {
4851
4915
  };
4852
4916
  },
4853
4917
 
4854
- toJSON(message: AccountEmail): unknown {
4918
+ toJSON(message: AccountFacebook): unknown {
4855
4919
  const obj: any = {};
4856
- if (message.email !== "") {
4857
- obj.email = message.email;
4858
- }
4859
- if (message.password !== "") {
4860
- obj.password = message.password;
4920
+ if (message.token !== "") {
4921
+ obj.token = message.token;
4861
4922
  }
4862
4923
  if (message.vars) {
4863
4924
  const entries = Object.entries(message.vars);
@@ -4871,13 +4932,12 @@ export const AccountEmail = {
4871
4932
  return obj;
4872
4933
  },
4873
4934
 
4874
- create<I extends Exact<DeepPartial<AccountEmail>, I>>(base?: I): AccountEmail {
4875
- return AccountEmail.fromPartial(base ?? ({} as any));
4935
+ create<I extends Exact<DeepPartial<AccountFacebook>, I>>(base?: I): AccountFacebook {
4936
+ return AccountFacebook.fromPartial(base ?? ({} as any));
4876
4937
  },
4877
- fromPartial<I extends Exact<DeepPartial<AccountEmail>, I>>(object: I): AccountEmail {
4878
- const message = createBaseAccountEmail();
4879
- message.email = object.email ?? "";
4880
- message.password = object.password ?? "";
4938
+ fromPartial<I extends Exact<DeepPartial<AccountFacebook>, I>>(object: I): AccountFacebook {
4939
+ const message = createBaseAccountFacebook();
4940
+ message.token = object.token ?? "";
4881
4941
  message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
4882
4942
  if (value !== undefined) {
4883
4943
  acc[key] = globalThis.String(value);
@@ -4888,12 +4948,12 @@ export const AccountEmail = {
4888
4948
  },
4889
4949
  };
4890
4950
 
4891
- function createBaseAccountEmail_VarsEntry(): AccountEmail_VarsEntry {
4951
+ function createBaseAccountFacebook_VarsEntry(): AccountFacebook_VarsEntry {
4892
4952
  return { key: "", value: "" };
4893
4953
  }
4894
4954
 
4895
- export const AccountEmail_VarsEntry = {
4896
- encode(message: AccountEmail_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4955
+ export const AccountFacebook_VarsEntry = {
4956
+ encode(message: AccountFacebook_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4897
4957
  if (message.key !== "") {
4898
4958
  writer.uint32(10).string(message.key);
4899
4959
  }
@@ -4903,10 +4963,10 @@ export const AccountEmail_VarsEntry = {
4903
4963
  return writer;
4904
4964
  },
4905
4965
 
4906
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountEmail_VarsEntry {
4966
+ decode(input: _m0.Reader | Uint8Array, length?: number): AccountFacebook_VarsEntry {
4907
4967
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4908
4968
  let end = length === undefined ? reader.len : reader.pos + length;
4909
- const message = createBaseAccountEmail_VarsEntry();
4969
+ const message = createBaseAccountFacebook_VarsEntry();
4910
4970
  while (reader.pos < end) {
4911
4971
  const tag = reader.uint32();
4912
4972
  switch (tag >>> 3) {
@@ -4933,14 +4993,14 @@ export const AccountEmail_VarsEntry = {
4933
4993
  return message;
4934
4994
  },
4935
4995
 
4936
- fromJSON(object: any): AccountEmail_VarsEntry {
4996
+ fromJSON(object: any): AccountFacebook_VarsEntry {
4937
4997
  return {
4938
4998
  key: isSet(object.key) ? globalThis.String(object.key) : "",
4939
4999
  value: isSet(object.value) ? globalThis.String(object.value) : "",
4940
5000
  };
4941
5001
  },
4942
5002
 
4943
- toJSON(message: AccountEmail_VarsEntry): unknown {
5003
+ toJSON(message: AccountFacebook_VarsEntry): unknown {
4944
5004
  const obj: any = {};
4945
5005
  if (message.key !== "") {
4946
5006
  obj.key = message.key;
@@ -4951,36 +5011,36 @@ export const AccountEmail_VarsEntry = {
4951
5011
  return obj;
4952
5012
  },
4953
5013
 
4954
- create<I extends Exact<DeepPartial<AccountEmail_VarsEntry>, I>>(base?: I): AccountEmail_VarsEntry {
4955
- return AccountEmail_VarsEntry.fromPartial(base ?? ({} as any));
5014
+ create<I extends Exact<DeepPartial<AccountFacebook_VarsEntry>, I>>(base?: I): AccountFacebook_VarsEntry {
5015
+ return AccountFacebook_VarsEntry.fromPartial(base ?? ({} as any));
4956
5016
  },
4957
- fromPartial<I extends Exact<DeepPartial<AccountEmail_VarsEntry>, I>>(object: I): AccountEmail_VarsEntry {
4958
- const message = createBaseAccountEmail_VarsEntry();
5017
+ fromPartial<I extends Exact<DeepPartial<AccountFacebook_VarsEntry>, I>>(object: I): AccountFacebook_VarsEntry {
5018
+ const message = createBaseAccountFacebook_VarsEntry();
4959
5019
  message.key = object.key ?? "";
4960
5020
  message.value = object.value ?? "";
4961
5021
  return message;
4962
5022
  },
4963
5023
  };
4964
5024
 
4965
- function createBaseAccountFacebook(): AccountFacebook {
4966
- return { token: "", vars: {} };
5025
+ function createBaseAccountFacebookInstantGame(): AccountFacebookInstantGame {
5026
+ return { signed_player_info: "", vars: {} };
4967
5027
  }
4968
5028
 
4969
- export const AccountFacebook = {
4970
- encode(message: AccountFacebook, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4971
- if (message.token !== "") {
4972
- writer.uint32(10).string(message.token);
5029
+ export const AccountFacebookInstantGame = {
5030
+ encode(message: AccountFacebookInstantGame, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5031
+ if (message.signed_player_info !== "") {
5032
+ writer.uint32(10).string(message.signed_player_info);
4973
5033
  }
4974
5034
  Object.entries(message.vars).forEach(([key, value]) => {
4975
- AccountFacebook_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
5035
+ AccountFacebookInstantGame_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
4976
5036
  });
4977
5037
  return writer;
4978
5038
  },
4979
5039
 
4980
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountFacebook {
5040
+ decode(input: _m0.Reader | Uint8Array, length?: number): AccountFacebookInstantGame {
4981
5041
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4982
5042
  let end = length === undefined ? reader.len : reader.pos + length;
4983
- const message = createBaseAccountFacebook();
5043
+ const message = createBaseAccountFacebookInstantGame();
4984
5044
  while (reader.pos < end) {
4985
5045
  const tag = reader.uint32();
4986
5046
  switch (tag >>> 3) {
@@ -4989,14 +5049,14 @@ export const AccountFacebook = {
4989
5049
  break;
4990
5050
  }
4991
5051
 
4992
- message.token = reader.string();
5052
+ message.signed_player_info = reader.string();
4993
5053
  continue;
4994
5054
  case 2:
4995
5055
  if (tag !== 18) {
4996
5056
  break;
4997
5057
  }
4998
5058
 
4999
- const entry2 = AccountFacebook_VarsEntry.decode(reader, reader.uint32());
5059
+ const entry2 = AccountFacebookInstantGame_VarsEntry.decode(reader, reader.uint32());
5000
5060
  if (entry2.value !== undefined) {
5001
5061
  message.vars[entry2.key] = entry2.value;
5002
5062
  }
@@ -5010,9 +5070,9 @@ export const AccountFacebook = {
5010
5070
  return message;
5011
5071
  },
5012
5072
 
5013
- fromJSON(object: any): AccountFacebook {
5073
+ fromJSON(object: any): AccountFacebookInstantGame {
5014
5074
  return {
5015
- token: isSet(object.token) ? globalThis.String(object.token) : "",
5075
+ signed_player_info: isSet(object.signed_player_info) ? globalThis.String(object.signed_player_info) : "",
5016
5076
  vars: isObject(object.vars)
5017
5077
  ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5018
5078
  acc[key] = String(value);
@@ -5022,10 +5082,10 @@ export const AccountFacebook = {
5022
5082
  };
5023
5083
  },
5024
5084
 
5025
- toJSON(message: AccountFacebook): unknown {
5085
+ toJSON(message: AccountFacebookInstantGame): unknown {
5026
5086
  const obj: any = {};
5027
- if (message.token !== "") {
5028
- obj.token = message.token;
5087
+ if (message.signed_player_info !== "") {
5088
+ obj.signed_player_info = message.signed_player_info;
5029
5089
  }
5030
5090
  if (message.vars) {
5031
5091
  const entries = Object.entries(message.vars);
@@ -5039,12 +5099,12 @@ export const AccountFacebook = {
5039
5099
  return obj;
5040
5100
  },
5041
5101
 
5042
- create<I extends Exact<DeepPartial<AccountFacebook>, I>>(base?: I): AccountFacebook {
5043
- return AccountFacebook.fromPartial(base ?? ({} as any));
5102
+ create<I extends Exact<DeepPartial<AccountFacebookInstantGame>, I>>(base?: I): AccountFacebookInstantGame {
5103
+ return AccountFacebookInstantGame.fromPartial(base ?? ({} as any));
5044
5104
  },
5045
- fromPartial<I extends Exact<DeepPartial<AccountFacebook>, I>>(object: I): AccountFacebook {
5046
- const message = createBaseAccountFacebook();
5047
- message.token = object.token ?? "";
5105
+ fromPartial<I extends Exact<DeepPartial<AccountFacebookInstantGame>, I>>(object: I): AccountFacebookInstantGame {
5106
+ const message = createBaseAccountFacebookInstantGame();
5107
+ message.signed_player_info = object.signed_player_info ?? "";
5048
5108
  message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5049
5109
  if (value !== undefined) {
5050
5110
  acc[key] = globalThis.String(value);
@@ -5055,12 +5115,12 @@ export const AccountFacebook = {
5055
5115
  },
5056
5116
  };
5057
5117
 
5058
- function createBaseAccountFacebook_VarsEntry(): AccountFacebook_VarsEntry {
5118
+ function createBaseAccountFacebookInstantGame_VarsEntry(): AccountFacebookInstantGame_VarsEntry {
5059
5119
  return { key: "", value: "" };
5060
5120
  }
5061
5121
 
5062
- export const AccountFacebook_VarsEntry = {
5063
- encode(message: AccountFacebook_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5122
+ export const AccountFacebookInstantGame_VarsEntry = {
5123
+ encode(message: AccountFacebookInstantGame_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5064
5124
  if (message.key !== "") {
5065
5125
  writer.uint32(10).string(message.key);
5066
5126
  }
@@ -5070,177 +5130,10 @@ export const AccountFacebook_VarsEntry = {
5070
5130
  return writer;
5071
5131
  },
5072
5132
 
5073
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountFacebook_VarsEntry {
5133
+ decode(input: _m0.Reader | Uint8Array, length?: number): AccountFacebookInstantGame_VarsEntry {
5074
5134
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5075
5135
  let end = length === undefined ? reader.len : reader.pos + length;
5076
- const message = createBaseAccountFacebook_VarsEntry();
5077
- while (reader.pos < end) {
5078
- const tag = reader.uint32();
5079
- switch (tag >>> 3) {
5080
- case 1:
5081
- if (tag !== 10) {
5082
- break;
5083
- }
5084
-
5085
- message.key = reader.string();
5086
- continue;
5087
- case 2:
5088
- if (tag !== 18) {
5089
- break;
5090
- }
5091
-
5092
- message.value = reader.string();
5093
- continue;
5094
- }
5095
- if ((tag & 7) === 4 || tag === 0) {
5096
- break;
5097
- }
5098
- reader.skipType(tag & 7);
5099
- }
5100
- return message;
5101
- },
5102
-
5103
- fromJSON(object: any): AccountFacebook_VarsEntry {
5104
- return {
5105
- key: isSet(object.key) ? globalThis.String(object.key) : "",
5106
- value: isSet(object.value) ? globalThis.String(object.value) : "",
5107
- };
5108
- },
5109
-
5110
- toJSON(message: AccountFacebook_VarsEntry): unknown {
5111
- const obj: any = {};
5112
- if (message.key !== "") {
5113
- obj.key = message.key;
5114
- }
5115
- if (message.value !== "") {
5116
- obj.value = message.value;
5117
- }
5118
- return obj;
5119
- },
5120
-
5121
- create<I extends Exact<DeepPartial<AccountFacebook_VarsEntry>, I>>(base?: I): AccountFacebook_VarsEntry {
5122
- return AccountFacebook_VarsEntry.fromPartial(base ?? ({} as any));
5123
- },
5124
- fromPartial<I extends Exact<DeepPartial<AccountFacebook_VarsEntry>, I>>(object: I): AccountFacebook_VarsEntry {
5125
- const message = createBaseAccountFacebook_VarsEntry();
5126
- message.key = object.key ?? "";
5127
- message.value = object.value ?? "";
5128
- return message;
5129
- },
5130
- };
5131
-
5132
- function createBaseAccountFacebookInstantGame(): AccountFacebookInstantGame {
5133
- return { signed_player_info: "", vars: {} };
5134
- }
5135
-
5136
- export const AccountFacebookInstantGame = {
5137
- encode(message: AccountFacebookInstantGame, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5138
- if (message.signed_player_info !== "") {
5139
- writer.uint32(10).string(message.signed_player_info);
5140
- }
5141
- Object.entries(message.vars).forEach(([key, value]) => {
5142
- AccountFacebookInstantGame_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
5143
- });
5144
- return writer;
5145
- },
5146
-
5147
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountFacebookInstantGame {
5148
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5149
- let end = length === undefined ? reader.len : reader.pos + length;
5150
- const message = createBaseAccountFacebookInstantGame();
5151
- while (reader.pos < end) {
5152
- const tag = reader.uint32();
5153
- switch (tag >>> 3) {
5154
- case 1:
5155
- if (tag !== 10) {
5156
- break;
5157
- }
5158
-
5159
- message.signed_player_info = reader.string();
5160
- continue;
5161
- case 2:
5162
- if (tag !== 18) {
5163
- break;
5164
- }
5165
-
5166
- const entry2 = AccountFacebookInstantGame_VarsEntry.decode(reader, reader.uint32());
5167
- if (entry2.value !== undefined) {
5168
- message.vars[entry2.key] = entry2.value;
5169
- }
5170
- continue;
5171
- }
5172
- if ((tag & 7) === 4 || tag === 0) {
5173
- break;
5174
- }
5175
- reader.skipType(tag & 7);
5176
- }
5177
- return message;
5178
- },
5179
-
5180
- fromJSON(object: any): AccountFacebookInstantGame {
5181
- return {
5182
- signed_player_info: isSet(object.signed_player_info) ? globalThis.String(object.signed_player_info) : "",
5183
- vars: isObject(object.vars)
5184
- ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5185
- acc[key] = String(value);
5186
- return acc;
5187
- }, {})
5188
- : {},
5189
- };
5190
- },
5191
-
5192
- toJSON(message: AccountFacebookInstantGame): unknown {
5193
- const obj: any = {};
5194
- if (message.signed_player_info !== "") {
5195
- obj.signed_player_info = message.signed_player_info;
5196
- }
5197
- if (message.vars) {
5198
- const entries = Object.entries(message.vars);
5199
- if (entries.length > 0) {
5200
- obj.vars = {};
5201
- entries.forEach(([k, v]) => {
5202
- obj.vars[k] = v;
5203
- });
5204
- }
5205
- }
5206
- return obj;
5207
- },
5208
-
5209
- create<I extends Exact<DeepPartial<AccountFacebookInstantGame>, I>>(base?: I): AccountFacebookInstantGame {
5210
- return AccountFacebookInstantGame.fromPartial(base ?? ({} as any));
5211
- },
5212
- fromPartial<I extends Exact<DeepPartial<AccountFacebookInstantGame>, I>>(object: I): AccountFacebookInstantGame {
5213
- const message = createBaseAccountFacebookInstantGame();
5214
- message.signed_player_info = object.signed_player_info ?? "";
5215
- message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5216
- if (value !== undefined) {
5217
- acc[key] = globalThis.String(value);
5218
- }
5219
- return acc;
5220
- }, {});
5221
- return message;
5222
- },
5223
- };
5224
-
5225
- function createBaseAccountFacebookInstantGame_VarsEntry(): AccountFacebookInstantGame_VarsEntry {
5226
- return { key: "", value: "" };
5227
- }
5228
-
5229
- export const AccountFacebookInstantGame_VarsEntry = {
5230
- encode(message: AccountFacebookInstantGame_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5231
- if (message.key !== "") {
5232
- writer.uint32(10).string(message.key);
5233
- }
5234
- if (message.value !== "") {
5235
- writer.uint32(18).string(message.value);
5236
- }
5237
- return writer;
5238
- },
5239
-
5240
- decode(input: _m0.Reader | Uint8Array, length?: number): AccountFacebookInstantGame_VarsEntry {
5241
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5242
- let end = length === undefined ? reader.len : reader.pos + length;
5243
- const message = createBaseAccountFacebookInstantGame_VarsEntry();
5136
+ const message = createBaseAccountFacebookInstantGame_VarsEntry();
5244
5137
  while (reader.pos < end) {
5245
5138
  const tag = reader.uint32();
5246
5139
  switch (tag >>> 3) {
@@ -5709,6 +5602,173 @@ export const AccountGoogle_VarsEntry = {
5709
5602
  },
5710
5603
  };
5711
5604
 
5605
+ function createBaseAccountMezon(): AccountMezon {
5606
+ return { token: "", vars: {} };
5607
+ }
5608
+
5609
+ export const AccountMezon = {
5610
+ encode(message: AccountMezon, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5611
+ if (message.token !== "") {
5612
+ writer.uint32(10).string(message.token);
5613
+ }
5614
+ Object.entries(message.vars).forEach(([key, value]) => {
5615
+ AccountMezon_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
5616
+ });
5617
+ return writer;
5618
+ },
5619
+
5620
+ decode(input: _m0.Reader | Uint8Array, length?: number): AccountMezon {
5621
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5622
+ let end = length === undefined ? reader.len : reader.pos + length;
5623
+ const message = createBaseAccountMezon();
5624
+ while (reader.pos < end) {
5625
+ const tag = reader.uint32();
5626
+ switch (tag >>> 3) {
5627
+ case 1:
5628
+ if (tag !== 10) {
5629
+ break;
5630
+ }
5631
+
5632
+ message.token = reader.string();
5633
+ continue;
5634
+ case 2:
5635
+ if (tag !== 18) {
5636
+ break;
5637
+ }
5638
+
5639
+ const entry2 = AccountMezon_VarsEntry.decode(reader, reader.uint32());
5640
+ if (entry2.value !== undefined) {
5641
+ message.vars[entry2.key] = entry2.value;
5642
+ }
5643
+ continue;
5644
+ }
5645
+ if ((tag & 7) === 4 || tag === 0) {
5646
+ break;
5647
+ }
5648
+ reader.skipType(tag & 7);
5649
+ }
5650
+ return message;
5651
+ },
5652
+
5653
+ fromJSON(object: any): AccountMezon {
5654
+ return {
5655
+ token: isSet(object.token) ? globalThis.String(object.token) : "",
5656
+ vars: isObject(object.vars)
5657
+ ? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5658
+ acc[key] = String(value);
5659
+ return acc;
5660
+ }, {})
5661
+ : {},
5662
+ };
5663
+ },
5664
+
5665
+ toJSON(message: AccountMezon): unknown {
5666
+ const obj: any = {};
5667
+ if (message.token !== "") {
5668
+ obj.token = message.token;
5669
+ }
5670
+ if (message.vars) {
5671
+ const entries = Object.entries(message.vars);
5672
+ if (entries.length > 0) {
5673
+ obj.vars = {};
5674
+ entries.forEach(([k, v]) => {
5675
+ obj.vars[k] = v;
5676
+ });
5677
+ }
5678
+ }
5679
+ return obj;
5680
+ },
5681
+
5682
+ create<I extends Exact<DeepPartial<AccountMezon>, I>>(base?: I): AccountMezon {
5683
+ return AccountMezon.fromPartial(base ?? ({} as any));
5684
+ },
5685
+ fromPartial<I extends Exact<DeepPartial<AccountMezon>, I>>(object: I): AccountMezon {
5686
+ const message = createBaseAccountMezon();
5687
+ message.token = object.token ?? "";
5688
+ message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
5689
+ if (value !== undefined) {
5690
+ acc[key] = globalThis.String(value);
5691
+ }
5692
+ return acc;
5693
+ }, {});
5694
+ return message;
5695
+ },
5696
+ };
5697
+
5698
+ function createBaseAccountMezon_VarsEntry(): AccountMezon_VarsEntry {
5699
+ return { key: "", value: "" };
5700
+ }
5701
+
5702
+ export const AccountMezon_VarsEntry = {
5703
+ encode(message: AccountMezon_VarsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5704
+ if (message.key !== "") {
5705
+ writer.uint32(10).string(message.key);
5706
+ }
5707
+ if (message.value !== "") {
5708
+ writer.uint32(18).string(message.value);
5709
+ }
5710
+ return writer;
5711
+ },
5712
+
5713
+ decode(input: _m0.Reader | Uint8Array, length?: number): AccountMezon_VarsEntry {
5714
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
5715
+ let end = length === undefined ? reader.len : reader.pos + length;
5716
+ const message = createBaseAccountMezon_VarsEntry();
5717
+ while (reader.pos < end) {
5718
+ const tag = reader.uint32();
5719
+ switch (tag >>> 3) {
5720
+ case 1:
5721
+ if (tag !== 10) {
5722
+ break;
5723
+ }
5724
+
5725
+ message.key = reader.string();
5726
+ continue;
5727
+ case 2:
5728
+ if (tag !== 18) {
5729
+ break;
5730
+ }
5731
+
5732
+ message.value = reader.string();
5733
+ continue;
5734
+ }
5735
+ if ((tag & 7) === 4 || tag === 0) {
5736
+ break;
5737
+ }
5738
+ reader.skipType(tag & 7);
5739
+ }
5740
+ return message;
5741
+ },
5742
+
5743
+ fromJSON(object: any): AccountMezon_VarsEntry {
5744
+ return {
5745
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
5746
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
5747
+ };
5748
+ },
5749
+
5750
+ toJSON(message: AccountMezon_VarsEntry): unknown {
5751
+ const obj: any = {};
5752
+ if (message.key !== "") {
5753
+ obj.key = message.key;
5754
+ }
5755
+ if (message.value !== "") {
5756
+ obj.value = message.value;
5757
+ }
5758
+ return obj;
5759
+ },
5760
+
5761
+ create<I extends Exact<DeepPartial<AccountMezon_VarsEntry>, I>>(base?: I): AccountMezon_VarsEntry {
5762
+ return AccountMezon_VarsEntry.fromPartial(base ?? ({} as any));
5763
+ },
5764
+ fromPartial<I extends Exact<DeepPartial<AccountMezon_VarsEntry>, I>>(object: I): AccountMezon_VarsEntry {
5765
+ const message = createBaseAccountMezon_VarsEntry();
5766
+ message.key = object.key ?? "";
5767
+ message.value = object.value ?? "";
5768
+ return message;
5769
+ },
5770
+ };
5771
+
5712
5772
  function createBaseAccountSteam(): AccountSteam {
5713
5773
  return { token: "", vars: {} };
5714
5774
  }
@@ -6390,97 +6450,6 @@ export const AuthenticateAppleRequest = {
6390
6450
  },
6391
6451
  };
6392
6452
 
6393
- function createBaseAuthenticateCustomRequest(): AuthenticateCustomRequest {
6394
- return { account: undefined, create: undefined, username: "" };
6395
- }
6396
-
6397
- export const AuthenticateCustomRequest = {
6398
- encode(message: AuthenticateCustomRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6399
- if (message.account !== undefined) {
6400
- AccountCustom.encode(message.account, writer.uint32(10).fork()).ldelim();
6401
- }
6402
- if (message.create !== undefined) {
6403
- BoolValue.encode({ value: message.create! }, writer.uint32(18).fork()).ldelim();
6404
- }
6405
- if (message.username !== "") {
6406
- writer.uint32(26).string(message.username);
6407
- }
6408
- return writer;
6409
- },
6410
-
6411
- decode(input: _m0.Reader | Uint8Array, length?: number): AuthenticateCustomRequest {
6412
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6413
- let end = length === undefined ? reader.len : reader.pos + length;
6414
- const message = createBaseAuthenticateCustomRequest();
6415
- while (reader.pos < end) {
6416
- const tag = reader.uint32();
6417
- switch (tag >>> 3) {
6418
- case 1:
6419
- if (tag !== 10) {
6420
- break;
6421
- }
6422
-
6423
- message.account = AccountCustom.decode(reader, reader.uint32());
6424
- continue;
6425
- case 2:
6426
- if (tag !== 18) {
6427
- break;
6428
- }
6429
-
6430
- message.create = BoolValue.decode(reader, reader.uint32()).value;
6431
- continue;
6432
- case 3:
6433
- if (tag !== 26) {
6434
- break;
6435
- }
6436
-
6437
- message.username = reader.string();
6438
- continue;
6439
- }
6440
- if ((tag & 7) === 4 || tag === 0) {
6441
- break;
6442
- }
6443
- reader.skipType(tag & 7);
6444
- }
6445
- return message;
6446
- },
6447
-
6448
- fromJSON(object: any): AuthenticateCustomRequest {
6449
- return {
6450
- account: isSet(object.account) ? AccountCustom.fromJSON(object.account) : undefined,
6451
- create: isSet(object.create) ? Boolean(object.create) : undefined,
6452
- username: isSet(object.username) ? globalThis.String(object.username) : "",
6453
- };
6454
- },
6455
-
6456
- toJSON(message: AuthenticateCustomRequest): unknown {
6457
- const obj: any = {};
6458
- if (message.account !== undefined) {
6459
- obj.account = AccountCustom.toJSON(message.account);
6460
- }
6461
- if (message.create !== undefined) {
6462
- obj.create = message.create;
6463
- }
6464
- if (message.username !== "") {
6465
- obj.username = message.username;
6466
- }
6467
- return obj;
6468
- },
6469
-
6470
- create<I extends Exact<DeepPartial<AuthenticateCustomRequest>, I>>(base?: I): AuthenticateCustomRequest {
6471
- return AuthenticateCustomRequest.fromPartial(base ?? ({} as any));
6472
- },
6473
- fromPartial<I extends Exact<DeepPartial<AuthenticateCustomRequest>, I>>(object: I): AuthenticateCustomRequest {
6474
- const message = createBaseAuthenticateCustomRequest();
6475
- message.account = (object.account !== undefined && object.account !== null)
6476
- ? AccountCustom.fromPartial(object.account)
6477
- : undefined;
6478
- message.create = object.create ?? undefined;
6479
- message.username = object.username ?? "";
6480
- return message;
6481
- },
6482
- };
6483
-
6484
6453
  function createBaseAuthenticateDeviceRequest(): AuthenticateDeviceRequest {
6485
6454
  return { account: undefined, create: undefined, username: "" };
6486
6455
  }
@@ -7109,6 +7078,97 @@ export const AuthenticateGoogleRequest = {
7109
7078
  },
7110
7079
  };
7111
7080
 
7081
+ function createBaseAuthenticateMezonRequest(): AuthenticateMezonRequest {
7082
+ return { account: undefined, create: undefined, username: "" };
7083
+ }
7084
+
7085
+ export const AuthenticateMezonRequest = {
7086
+ encode(message: AuthenticateMezonRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
7087
+ if (message.account !== undefined) {
7088
+ AccountMezon.encode(message.account, writer.uint32(10).fork()).ldelim();
7089
+ }
7090
+ if (message.create !== undefined) {
7091
+ BoolValue.encode({ value: message.create! }, writer.uint32(18).fork()).ldelim();
7092
+ }
7093
+ if (message.username !== "") {
7094
+ writer.uint32(26).string(message.username);
7095
+ }
7096
+ return writer;
7097
+ },
7098
+
7099
+ decode(input: _m0.Reader | Uint8Array, length?: number): AuthenticateMezonRequest {
7100
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
7101
+ let end = length === undefined ? reader.len : reader.pos + length;
7102
+ const message = createBaseAuthenticateMezonRequest();
7103
+ while (reader.pos < end) {
7104
+ const tag = reader.uint32();
7105
+ switch (tag >>> 3) {
7106
+ case 1:
7107
+ if (tag !== 10) {
7108
+ break;
7109
+ }
7110
+
7111
+ message.account = AccountMezon.decode(reader, reader.uint32());
7112
+ continue;
7113
+ case 2:
7114
+ if (tag !== 18) {
7115
+ break;
7116
+ }
7117
+
7118
+ message.create = BoolValue.decode(reader, reader.uint32()).value;
7119
+ continue;
7120
+ case 3:
7121
+ if (tag !== 26) {
7122
+ break;
7123
+ }
7124
+
7125
+ message.username = reader.string();
7126
+ continue;
7127
+ }
7128
+ if ((tag & 7) === 4 || tag === 0) {
7129
+ break;
7130
+ }
7131
+ reader.skipType(tag & 7);
7132
+ }
7133
+ return message;
7134
+ },
7135
+
7136
+ fromJSON(object: any): AuthenticateMezonRequest {
7137
+ return {
7138
+ account: isSet(object.account) ? AccountMezon.fromJSON(object.account) : undefined,
7139
+ create: isSet(object.create) ? Boolean(object.create) : undefined,
7140
+ username: isSet(object.username) ? globalThis.String(object.username) : "",
7141
+ };
7142
+ },
7143
+
7144
+ toJSON(message: AuthenticateMezonRequest): unknown {
7145
+ const obj: any = {};
7146
+ if (message.account !== undefined) {
7147
+ obj.account = AccountMezon.toJSON(message.account);
7148
+ }
7149
+ if (message.create !== undefined) {
7150
+ obj.create = message.create;
7151
+ }
7152
+ if (message.username !== "") {
7153
+ obj.username = message.username;
7154
+ }
7155
+ return obj;
7156
+ },
7157
+
7158
+ create<I extends Exact<DeepPartial<AuthenticateMezonRequest>, I>>(base?: I): AuthenticateMezonRequest {
7159
+ return AuthenticateMezonRequest.fromPartial(base ?? ({} as any));
7160
+ },
7161
+ fromPartial<I extends Exact<DeepPartial<AuthenticateMezonRequest>, I>>(object: I): AuthenticateMezonRequest {
7162
+ const message = createBaseAuthenticateMezonRequest();
7163
+ message.account = (object.account !== undefined && object.account !== null)
7164
+ ? AccountMezon.fromPartial(object.account)
7165
+ : undefined;
7166
+ message.create = object.create ?? undefined;
7167
+ message.username = object.username ?? "";
7168
+ return message;
7169
+ },
7170
+ };
7171
+
7112
7172
  function createBaseAuthenticateSteamRequest(): AuthenticateSteamRequest {
7113
7173
  return { account: undefined, create: undefined, username: "", sync: undefined };
7114
7174
  }
@@ -14773,6 +14833,7 @@ function createBaseClanDesc(): ClanDesc {
14773
14833
  status: 0,
14774
14834
  badge_count: 0,
14775
14835
  is_onboarding: false,
14836
+ welcome_channel_id: "",
14776
14837
  };
14777
14838
  }
14778
14839
 
@@ -14802,6 +14863,9 @@ export const ClanDesc = {
14802
14863
  if (message.is_onboarding !== false) {
14803
14864
  writer.uint32(64).bool(message.is_onboarding);
14804
14865
  }
14866
+ if (message.welcome_channel_id !== "") {
14867
+ writer.uint32(74).string(message.welcome_channel_id);
14868
+ }
14805
14869
  return writer;
14806
14870
  },
14807
14871
 
@@ -14868,6 +14932,13 @@ export const ClanDesc = {
14868
14932
 
14869
14933
  message.is_onboarding = reader.bool();
14870
14934
  continue;
14935
+ case 9:
14936
+ if (tag !== 74) {
14937
+ break;
14938
+ }
14939
+
14940
+ message.welcome_channel_id = reader.string();
14941
+ continue;
14871
14942
  }
14872
14943
  if ((tag & 7) === 4 || tag === 0) {
14873
14944
  break;
@@ -14887,6 +14958,7 @@ export const ClanDesc = {
14887
14958
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
14888
14959
  badge_count: isSet(object.badge_count) ? globalThis.Number(object.badge_count) : 0,
14889
14960
  is_onboarding: isSet(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
14961
+ welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
14890
14962
  };
14891
14963
  },
14892
14964
 
@@ -14916,6 +14988,9 @@ export const ClanDesc = {
14916
14988
  if (message.is_onboarding !== false) {
14917
14989
  obj.is_onboarding = message.is_onboarding;
14918
14990
  }
14991
+ if (message.welcome_channel_id !== "") {
14992
+ obj.welcome_channel_id = message.welcome_channel_id;
14993
+ }
14919
14994
  return obj;
14920
14995
  },
14921
14996
 
@@ -14932,6 +15007,7 @@ export const ClanDesc = {
14932
15007
  message.status = object.status ?? 0;
14933
15008
  message.badge_count = object.badge_count ?? 0;
14934
15009
  message.is_onboarding = object.is_onboarding ?? false;
15010
+ message.welcome_channel_id = object.welcome_channel_id ?? "";
14935
15011
  return message;
14936
15012
  },
14937
15013
  };
@@ -15026,7 +15102,15 @@ export const CreateClanDescRequest = {
15026
15102
  };
15027
15103
 
15028
15104
  function createBaseUpdateClanDescRequest(): UpdateClanDescRequest {
15029
- return { clan_id: "", clan_name: "", logo: "", banner: "", status: 0, is_onboarding: undefined };
15105
+ return {
15106
+ clan_id: "",
15107
+ clan_name: "",
15108
+ logo: "",
15109
+ banner: "",
15110
+ status: 0,
15111
+ is_onboarding: undefined,
15112
+ welcome_channel_id: "",
15113
+ };
15030
15114
  }
15031
15115
 
15032
15116
  export const UpdateClanDescRequest = {
@@ -15049,6 +15133,9 @@ export const UpdateClanDescRequest = {
15049
15133
  if (message.is_onboarding !== undefined) {
15050
15134
  BoolValue.encode({ value: message.is_onboarding! }, writer.uint32(50).fork()).ldelim();
15051
15135
  }
15136
+ if (message.welcome_channel_id !== "") {
15137
+ writer.uint32(58).string(message.welcome_channel_id);
15138
+ }
15052
15139
  return writer;
15053
15140
  },
15054
15141
 
@@ -15101,6 +15188,13 @@ export const UpdateClanDescRequest = {
15101
15188
 
15102
15189
  message.is_onboarding = BoolValue.decode(reader, reader.uint32()).value;
15103
15190
  continue;
15191
+ case 7:
15192
+ if (tag !== 58) {
15193
+ break;
15194
+ }
15195
+
15196
+ message.welcome_channel_id = reader.string();
15197
+ continue;
15104
15198
  }
15105
15199
  if ((tag & 7) === 4 || tag === 0) {
15106
15200
  break;
@@ -15118,6 +15212,7 @@ export const UpdateClanDescRequest = {
15118
15212
  banner: isSet(object.banner) ? globalThis.String(object.banner) : "",
15119
15213
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
15120
15214
  is_onboarding: isSet(object.is_onboarding) ? Boolean(object.is_onboarding) : undefined,
15215
+ welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
15121
15216
  };
15122
15217
  },
15123
15218
 
@@ -15141,6 +15236,9 @@ export const UpdateClanDescRequest = {
15141
15236
  if (message.is_onboarding !== undefined) {
15142
15237
  obj.is_onboarding = message.is_onboarding;
15143
15238
  }
15239
+ if (message.welcome_channel_id !== "") {
15240
+ obj.welcome_channel_id = message.welcome_channel_id;
15241
+ }
15144
15242
  return obj;
15145
15243
  },
15146
15244
 
@@ -15155,6 +15253,7 @@ export const UpdateClanDescRequest = {
15155
15253
  message.banner = object.banner ?? "";
15156
15254
  message.status = object.status ?? 0;
15157
15255
  message.is_onboarding = object.is_onboarding ?? undefined;
15256
+ message.welcome_channel_id = object.welcome_channel_id ?? "";
15158
15257
  return message;
15159
15258
  },
15160
15259
  };
@@ -32943,7 +33042,7 @@ export const CreateActivityRequest = {
32943
33042
  };
32944
33043
 
32945
33044
  function createBaseLoginIDResponse(): LoginIDResponse {
32946
- return { login_id: "", status: 0, create_time_second: 0, platform: "", user_id: 0, user_name: "", address: "" };
33045
+ return { login_id: "", status: 0, create_time_second: 0, platform: "", user_id: 0, username: "", address: "" };
32947
33046
  }
32948
33047
 
32949
33048
  export const LoginIDResponse = {
@@ -32963,8 +33062,8 @@ export const LoginIDResponse = {
32963
33062
  if (message.user_id !== 0) {
32964
33063
  writer.uint32(40).int64(message.user_id);
32965
33064
  }
32966
- if (message.user_name !== "") {
32967
- writer.uint32(50).string(message.user_name);
33065
+ if (message.username !== "") {
33066
+ writer.uint32(50).string(message.username);
32968
33067
  }
32969
33068
  if (message.address !== "") {
32970
33069
  writer.uint32(58).string(message.address);
@@ -33019,7 +33118,7 @@ export const LoginIDResponse = {
33019
33118
  break;
33020
33119
  }
33021
33120
 
33022
- message.user_name = reader.string();
33121
+ message.username = reader.string();
33023
33122
  continue;
33024
33123
  case 7:
33025
33124
  if (tag !== 58) {
@@ -33044,7 +33143,7 @@ export const LoginIDResponse = {
33044
33143
  create_time_second: isSet(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
33045
33144
  platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
33046
33145
  user_id: isSet(object.user_id) ? globalThis.Number(object.user_id) : 0,
33047
- user_name: isSet(object.user_name) ? globalThis.String(object.user_name) : "",
33146
+ username: isSet(object.username) ? globalThis.String(object.username) : "",
33048
33147
  address: isSet(object.address) ? globalThis.String(object.address) : "",
33049
33148
  };
33050
33149
  },
@@ -33066,8 +33165,8 @@ export const LoginIDResponse = {
33066
33165
  if (message.user_id !== 0) {
33067
33166
  obj.user_id = Math.round(message.user_id);
33068
33167
  }
33069
- if (message.user_name !== "") {
33070
- obj.user_name = message.user_name;
33168
+ if (message.username !== "") {
33169
+ obj.username = message.username;
33071
33170
  }
33072
33171
  if (message.address !== "") {
33073
33172
  obj.address = message.address;
@@ -33085,7 +33184,7 @@ export const LoginIDResponse = {
33085
33184
  message.create_time_second = object.create_time_second ?? 0;
33086
33185
  message.platform = object.platform ?? "";
33087
33186
  message.user_id = object.user_id ?? 0;
33088
- message.user_name = object.user_name ?? "";
33187
+ message.username = object.username ?? "";
33089
33188
  message.address = object.address ?? "";
33090
33189
  return message;
33091
33190
  },
@@ -38152,6 +38251,925 @@ export const HandleParticipantMeetStateRequest = {
38152
38251
  },
38153
38252
  };
38154
38253
 
38254
+ function createBaseMezonOauthClient(): MezonOauthClient {
38255
+ return {
38256
+ access_token_strategy: "",
38257
+ allowed_cors_origins: [],
38258
+ audience: [],
38259
+ authorization_code_grant_access_token_lifespan: "",
38260
+ authorization_code_grant_id_token_lifespan: "",
38261
+ authorization_code_grant_refresh_token_lifespan: "",
38262
+ backchannel_logout_session_required: false,
38263
+ backchannel_logout_uri: "",
38264
+ client_credentials_grant_access_token_lifespan: "",
38265
+ client_id: "",
38266
+ client_name: "",
38267
+ client_secret: "",
38268
+ client_secret_expires_at: 0,
38269
+ client_uri: "",
38270
+ contacts: [],
38271
+ created_at: undefined,
38272
+ frontchannel_logout_session_required: false,
38273
+ frontchannel_logout_uri: "",
38274
+ grant_types: [],
38275
+ implicit_grant_access_token_lifespan: "",
38276
+ implicit_grant_id_token_lifespan: "",
38277
+ jwks: [],
38278
+ jwks_uri: "",
38279
+ jwt_bearer_grant_access_token_lifespan: "",
38280
+ logo_uri: "",
38281
+ owner: "",
38282
+ policy_uri: "",
38283
+ post_logout_redirect_uris: [],
38284
+ redirect_uris: [],
38285
+ refresh_token_grant_access_token_lifespan: "",
38286
+ refresh_token_grant_id_token_lifespan: "",
38287
+ refresh_token_grant_refresh_token_lifespan: "",
38288
+ registration_access_token: "",
38289
+ registration_client_uri: "",
38290
+ request_object_signing_alg: "",
38291
+ request_uris: [],
38292
+ response_types: [],
38293
+ scope: "",
38294
+ sector_identifier_uri: "",
38295
+ skip_consent: false,
38296
+ skip_logout_consent: false,
38297
+ subject_type: "",
38298
+ token_endpoint_auth_method: "",
38299
+ token_endpoint_auth_signing_alg: "",
38300
+ tos_uri: "",
38301
+ updated_at: undefined,
38302
+ userinfo_signed_response_alg: "",
38303
+ };
38304
+ }
38305
+
38306
+ export const MezonOauthClient = {
38307
+ encode(message: MezonOauthClient, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
38308
+ if (message.access_token_strategy !== "") {
38309
+ writer.uint32(10).string(message.access_token_strategy);
38310
+ }
38311
+ for (const v of message.allowed_cors_origins) {
38312
+ writer.uint32(18).string(v!);
38313
+ }
38314
+ for (const v of message.audience) {
38315
+ writer.uint32(26).string(v!);
38316
+ }
38317
+ if (message.authorization_code_grant_access_token_lifespan !== "") {
38318
+ writer.uint32(34).string(message.authorization_code_grant_access_token_lifespan);
38319
+ }
38320
+ if (message.authorization_code_grant_id_token_lifespan !== "") {
38321
+ writer.uint32(42).string(message.authorization_code_grant_id_token_lifespan);
38322
+ }
38323
+ if (message.authorization_code_grant_refresh_token_lifespan !== "") {
38324
+ writer.uint32(50).string(message.authorization_code_grant_refresh_token_lifespan);
38325
+ }
38326
+ if (message.backchannel_logout_session_required !== false) {
38327
+ writer.uint32(56).bool(message.backchannel_logout_session_required);
38328
+ }
38329
+ if (message.backchannel_logout_uri !== "") {
38330
+ writer.uint32(66).string(message.backchannel_logout_uri);
38331
+ }
38332
+ if (message.client_credentials_grant_access_token_lifespan !== "") {
38333
+ writer.uint32(74).string(message.client_credentials_grant_access_token_lifespan);
38334
+ }
38335
+ if (message.client_id !== "") {
38336
+ writer.uint32(82).string(message.client_id);
38337
+ }
38338
+ if (message.client_name !== "") {
38339
+ writer.uint32(90).string(message.client_name);
38340
+ }
38341
+ if (message.client_secret !== "") {
38342
+ writer.uint32(98).string(message.client_secret);
38343
+ }
38344
+ if (message.client_secret_expires_at !== 0) {
38345
+ writer.uint32(104).int32(message.client_secret_expires_at);
38346
+ }
38347
+ if (message.client_uri !== "") {
38348
+ writer.uint32(114).string(message.client_uri);
38349
+ }
38350
+ for (const v of message.contacts) {
38351
+ writer.uint32(122).string(v!);
38352
+ }
38353
+ if (message.created_at !== undefined) {
38354
+ Timestamp.encode(toTimestamp(message.created_at), writer.uint32(130).fork()).ldelim();
38355
+ }
38356
+ if (message.frontchannel_logout_session_required !== false) {
38357
+ writer.uint32(136).bool(message.frontchannel_logout_session_required);
38358
+ }
38359
+ if (message.frontchannel_logout_uri !== "") {
38360
+ writer.uint32(146).string(message.frontchannel_logout_uri);
38361
+ }
38362
+ for (const v of message.grant_types) {
38363
+ writer.uint32(154).string(v!);
38364
+ }
38365
+ if (message.implicit_grant_access_token_lifespan !== "") {
38366
+ writer.uint32(162).string(message.implicit_grant_access_token_lifespan);
38367
+ }
38368
+ if (message.implicit_grant_id_token_lifespan !== "") {
38369
+ writer.uint32(170).string(message.implicit_grant_id_token_lifespan);
38370
+ }
38371
+ for (const v of message.jwks) {
38372
+ writer.uint32(178).string(v!);
38373
+ }
38374
+ if (message.jwks_uri !== "") {
38375
+ writer.uint32(186).string(message.jwks_uri);
38376
+ }
38377
+ if (message.jwt_bearer_grant_access_token_lifespan !== "") {
38378
+ writer.uint32(194).string(message.jwt_bearer_grant_access_token_lifespan);
38379
+ }
38380
+ if (message.logo_uri !== "") {
38381
+ writer.uint32(202).string(message.logo_uri);
38382
+ }
38383
+ if (message.owner !== "") {
38384
+ writer.uint32(210).string(message.owner);
38385
+ }
38386
+ if (message.policy_uri !== "") {
38387
+ writer.uint32(218).string(message.policy_uri);
38388
+ }
38389
+ for (const v of message.post_logout_redirect_uris) {
38390
+ writer.uint32(226).string(v!);
38391
+ }
38392
+ for (const v of message.redirect_uris) {
38393
+ writer.uint32(234).string(v!);
38394
+ }
38395
+ if (message.refresh_token_grant_access_token_lifespan !== "") {
38396
+ writer.uint32(242).string(message.refresh_token_grant_access_token_lifespan);
38397
+ }
38398
+ if (message.refresh_token_grant_id_token_lifespan !== "") {
38399
+ writer.uint32(250).string(message.refresh_token_grant_id_token_lifespan);
38400
+ }
38401
+ if (message.refresh_token_grant_refresh_token_lifespan !== "") {
38402
+ writer.uint32(258).string(message.refresh_token_grant_refresh_token_lifespan);
38403
+ }
38404
+ if (message.registration_access_token !== "") {
38405
+ writer.uint32(266).string(message.registration_access_token);
38406
+ }
38407
+ if (message.registration_client_uri !== "") {
38408
+ writer.uint32(274).string(message.registration_client_uri);
38409
+ }
38410
+ if (message.request_object_signing_alg !== "") {
38411
+ writer.uint32(282).string(message.request_object_signing_alg);
38412
+ }
38413
+ for (const v of message.request_uris) {
38414
+ writer.uint32(290).string(v!);
38415
+ }
38416
+ for (const v of message.response_types) {
38417
+ writer.uint32(298).string(v!);
38418
+ }
38419
+ if (message.scope !== "") {
38420
+ writer.uint32(306).string(message.scope);
38421
+ }
38422
+ if (message.sector_identifier_uri !== "") {
38423
+ writer.uint32(314).string(message.sector_identifier_uri);
38424
+ }
38425
+ if (message.skip_consent !== false) {
38426
+ writer.uint32(320).bool(message.skip_consent);
38427
+ }
38428
+ if (message.skip_logout_consent !== false) {
38429
+ writer.uint32(328).bool(message.skip_logout_consent);
38430
+ }
38431
+ if (message.subject_type !== "") {
38432
+ writer.uint32(338).string(message.subject_type);
38433
+ }
38434
+ if (message.token_endpoint_auth_method !== "") {
38435
+ writer.uint32(346).string(message.token_endpoint_auth_method);
38436
+ }
38437
+ if (message.token_endpoint_auth_signing_alg !== "") {
38438
+ writer.uint32(354).string(message.token_endpoint_auth_signing_alg);
38439
+ }
38440
+ if (message.tos_uri !== "") {
38441
+ writer.uint32(362).string(message.tos_uri);
38442
+ }
38443
+ if (message.updated_at !== undefined) {
38444
+ Timestamp.encode(toTimestamp(message.updated_at), writer.uint32(370).fork()).ldelim();
38445
+ }
38446
+ if (message.userinfo_signed_response_alg !== "") {
38447
+ writer.uint32(378).string(message.userinfo_signed_response_alg);
38448
+ }
38449
+ return writer;
38450
+ },
38451
+
38452
+ decode(input: _m0.Reader | Uint8Array, length?: number): MezonOauthClient {
38453
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
38454
+ let end = length === undefined ? reader.len : reader.pos + length;
38455
+ const message = createBaseMezonOauthClient();
38456
+ while (reader.pos < end) {
38457
+ const tag = reader.uint32();
38458
+ switch (tag >>> 3) {
38459
+ case 1:
38460
+ if (tag !== 10) {
38461
+ break;
38462
+ }
38463
+
38464
+ message.access_token_strategy = reader.string();
38465
+ continue;
38466
+ case 2:
38467
+ if (tag !== 18) {
38468
+ break;
38469
+ }
38470
+
38471
+ message.allowed_cors_origins.push(reader.string());
38472
+ continue;
38473
+ case 3:
38474
+ if (tag !== 26) {
38475
+ break;
38476
+ }
38477
+
38478
+ message.audience.push(reader.string());
38479
+ continue;
38480
+ case 4:
38481
+ if (tag !== 34) {
38482
+ break;
38483
+ }
38484
+
38485
+ message.authorization_code_grant_access_token_lifespan = reader.string();
38486
+ continue;
38487
+ case 5:
38488
+ if (tag !== 42) {
38489
+ break;
38490
+ }
38491
+
38492
+ message.authorization_code_grant_id_token_lifespan = reader.string();
38493
+ continue;
38494
+ case 6:
38495
+ if (tag !== 50) {
38496
+ break;
38497
+ }
38498
+
38499
+ message.authorization_code_grant_refresh_token_lifespan = reader.string();
38500
+ continue;
38501
+ case 7:
38502
+ if (tag !== 56) {
38503
+ break;
38504
+ }
38505
+
38506
+ message.backchannel_logout_session_required = reader.bool();
38507
+ continue;
38508
+ case 8:
38509
+ if (tag !== 66) {
38510
+ break;
38511
+ }
38512
+
38513
+ message.backchannel_logout_uri = reader.string();
38514
+ continue;
38515
+ case 9:
38516
+ if (tag !== 74) {
38517
+ break;
38518
+ }
38519
+
38520
+ message.client_credentials_grant_access_token_lifespan = reader.string();
38521
+ continue;
38522
+ case 10:
38523
+ if (tag !== 82) {
38524
+ break;
38525
+ }
38526
+
38527
+ message.client_id = reader.string();
38528
+ continue;
38529
+ case 11:
38530
+ if (tag !== 90) {
38531
+ break;
38532
+ }
38533
+
38534
+ message.client_name = reader.string();
38535
+ continue;
38536
+ case 12:
38537
+ if (tag !== 98) {
38538
+ break;
38539
+ }
38540
+
38541
+ message.client_secret = reader.string();
38542
+ continue;
38543
+ case 13:
38544
+ if (tag !== 104) {
38545
+ break;
38546
+ }
38547
+
38548
+ message.client_secret_expires_at = reader.int32();
38549
+ continue;
38550
+ case 14:
38551
+ if (tag !== 114) {
38552
+ break;
38553
+ }
38554
+
38555
+ message.client_uri = reader.string();
38556
+ continue;
38557
+ case 15:
38558
+ if (tag !== 122) {
38559
+ break;
38560
+ }
38561
+
38562
+ message.contacts.push(reader.string());
38563
+ continue;
38564
+ case 16:
38565
+ if (tag !== 130) {
38566
+ break;
38567
+ }
38568
+
38569
+ message.created_at = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
38570
+ continue;
38571
+ case 17:
38572
+ if (tag !== 136) {
38573
+ break;
38574
+ }
38575
+
38576
+ message.frontchannel_logout_session_required = reader.bool();
38577
+ continue;
38578
+ case 18:
38579
+ if (tag !== 146) {
38580
+ break;
38581
+ }
38582
+
38583
+ message.frontchannel_logout_uri = reader.string();
38584
+ continue;
38585
+ case 19:
38586
+ if (tag !== 154) {
38587
+ break;
38588
+ }
38589
+
38590
+ message.grant_types.push(reader.string());
38591
+ continue;
38592
+ case 20:
38593
+ if (tag !== 162) {
38594
+ break;
38595
+ }
38596
+
38597
+ message.implicit_grant_access_token_lifespan = reader.string();
38598
+ continue;
38599
+ case 21:
38600
+ if (tag !== 170) {
38601
+ break;
38602
+ }
38603
+
38604
+ message.implicit_grant_id_token_lifespan = reader.string();
38605
+ continue;
38606
+ case 22:
38607
+ if (tag !== 178) {
38608
+ break;
38609
+ }
38610
+
38611
+ message.jwks.push(reader.string());
38612
+ continue;
38613
+ case 23:
38614
+ if (tag !== 186) {
38615
+ break;
38616
+ }
38617
+
38618
+ message.jwks_uri = reader.string();
38619
+ continue;
38620
+ case 24:
38621
+ if (tag !== 194) {
38622
+ break;
38623
+ }
38624
+
38625
+ message.jwt_bearer_grant_access_token_lifespan = reader.string();
38626
+ continue;
38627
+ case 25:
38628
+ if (tag !== 202) {
38629
+ break;
38630
+ }
38631
+
38632
+ message.logo_uri = reader.string();
38633
+ continue;
38634
+ case 26:
38635
+ if (tag !== 210) {
38636
+ break;
38637
+ }
38638
+
38639
+ message.owner = reader.string();
38640
+ continue;
38641
+ case 27:
38642
+ if (tag !== 218) {
38643
+ break;
38644
+ }
38645
+
38646
+ message.policy_uri = reader.string();
38647
+ continue;
38648
+ case 28:
38649
+ if (tag !== 226) {
38650
+ break;
38651
+ }
38652
+
38653
+ message.post_logout_redirect_uris.push(reader.string());
38654
+ continue;
38655
+ case 29:
38656
+ if (tag !== 234) {
38657
+ break;
38658
+ }
38659
+
38660
+ message.redirect_uris.push(reader.string());
38661
+ continue;
38662
+ case 30:
38663
+ if (tag !== 242) {
38664
+ break;
38665
+ }
38666
+
38667
+ message.refresh_token_grant_access_token_lifespan = reader.string();
38668
+ continue;
38669
+ case 31:
38670
+ if (tag !== 250) {
38671
+ break;
38672
+ }
38673
+
38674
+ message.refresh_token_grant_id_token_lifespan = reader.string();
38675
+ continue;
38676
+ case 32:
38677
+ if (tag !== 258) {
38678
+ break;
38679
+ }
38680
+
38681
+ message.refresh_token_grant_refresh_token_lifespan = reader.string();
38682
+ continue;
38683
+ case 33:
38684
+ if (tag !== 266) {
38685
+ break;
38686
+ }
38687
+
38688
+ message.registration_access_token = reader.string();
38689
+ continue;
38690
+ case 34:
38691
+ if (tag !== 274) {
38692
+ break;
38693
+ }
38694
+
38695
+ message.registration_client_uri = reader.string();
38696
+ continue;
38697
+ case 35:
38698
+ if (tag !== 282) {
38699
+ break;
38700
+ }
38701
+
38702
+ message.request_object_signing_alg = reader.string();
38703
+ continue;
38704
+ case 36:
38705
+ if (tag !== 290) {
38706
+ break;
38707
+ }
38708
+
38709
+ message.request_uris.push(reader.string());
38710
+ continue;
38711
+ case 37:
38712
+ if (tag !== 298) {
38713
+ break;
38714
+ }
38715
+
38716
+ message.response_types.push(reader.string());
38717
+ continue;
38718
+ case 38:
38719
+ if (tag !== 306) {
38720
+ break;
38721
+ }
38722
+
38723
+ message.scope = reader.string();
38724
+ continue;
38725
+ case 39:
38726
+ if (tag !== 314) {
38727
+ break;
38728
+ }
38729
+
38730
+ message.sector_identifier_uri = reader.string();
38731
+ continue;
38732
+ case 40:
38733
+ if (tag !== 320) {
38734
+ break;
38735
+ }
38736
+
38737
+ message.skip_consent = reader.bool();
38738
+ continue;
38739
+ case 41:
38740
+ if (tag !== 328) {
38741
+ break;
38742
+ }
38743
+
38744
+ message.skip_logout_consent = reader.bool();
38745
+ continue;
38746
+ case 42:
38747
+ if (tag !== 338) {
38748
+ break;
38749
+ }
38750
+
38751
+ message.subject_type = reader.string();
38752
+ continue;
38753
+ case 43:
38754
+ if (tag !== 346) {
38755
+ break;
38756
+ }
38757
+
38758
+ message.token_endpoint_auth_method = reader.string();
38759
+ continue;
38760
+ case 44:
38761
+ if (tag !== 354) {
38762
+ break;
38763
+ }
38764
+
38765
+ message.token_endpoint_auth_signing_alg = reader.string();
38766
+ continue;
38767
+ case 45:
38768
+ if (tag !== 362) {
38769
+ break;
38770
+ }
38771
+
38772
+ message.tos_uri = reader.string();
38773
+ continue;
38774
+ case 46:
38775
+ if (tag !== 370) {
38776
+ break;
38777
+ }
38778
+
38779
+ message.updated_at = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
38780
+ continue;
38781
+ case 47:
38782
+ if (tag !== 378) {
38783
+ break;
38784
+ }
38785
+
38786
+ message.userinfo_signed_response_alg = reader.string();
38787
+ continue;
38788
+ }
38789
+ if ((tag & 7) === 4 || tag === 0) {
38790
+ break;
38791
+ }
38792
+ reader.skipType(tag & 7);
38793
+ }
38794
+ return message;
38795
+ },
38796
+
38797
+ fromJSON(object: any): MezonOauthClient {
38798
+ return {
38799
+ access_token_strategy: isSet(object.access_token_strategy) ? globalThis.String(object.access_token_strategy) : "",
38800
+ allowed_cors_origins: globalThis.Array.isArray(object?.allowed_cors_origins)
38801
+ ? object.allowed_cors_origins.map((e: any) => globalThis.String(e))
38802
+ : [],
38803
+ audience: globalThis.Array.isArray(object?.audience) ? object.audience.map((e: any) => globalThis.String(e)) : [],
38804
+ authorization_code_grant_access_token_lifespan: isSet(object.authorization_code_grant_access_token_lifespan)
38805
+ ? globalThis.String(object.authorization_code_grant_access_token_lifespan)
38806
+ : "",
38807
+ authorization_code_grant_id_token_lifespan: isSet(object.authorization_code_grant_id_token_lifespan)
38808
+ ? globalThis.String(object.authorization_code_grant_id_token_lifespan)
38809
+ : "",
38810
+ authorization_code_grant_refresh_token_lifespan: isSet(object.authorization_code_grant_refresh_token_lifespan)
38811
+ ? globalThis.String(object.authorization_code_grant_refresh_token_lifespan)
38812
+ : "",
38813
+ backchannel_logout_session_required: isSet(object.backchannel_logout_session_required)
38814
+ ? globalThis.Boolean(object.backchannel_logout_session_required)
38815
+ : false,
38816
+ backchannel_logout_uri: isSet(object.backchannel_logout_uri)
38817
+ ? globalThis.String(object.backchannel_logout_uri)
38818
+ : "",
38819
+ client_credentials_grant_access_token_lifespan: isSet(object.client_credentials_grant_access_token_lifespan)
38820
+ ? globalThis.String(object.client_credentials_grant_access_token_lifespan)
38821
+ : "",
38822
+ client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
38823
+ client_name: isSet(object.client_name) ? globalThis.String(object.client_name) : "",
38824
+ client_secret: isSet(object.client_secret) ? globalThis.String(object.client_secret) : "",
38825
+ client_secret_expires_at: isSet(object.client_secret_expires_at)
38826
+ ? globalThis.Number(object.client_secret_expires_at)
38827
+ : 0,
38828
+ client_uri: isSet(object.client_uri) ? globalThis.String(object.client_uri) : "",
38829
+ contacts: globalThis.Array.isArray(object?.contacts)
38830
+ ? object.contacts.map((e: any) => globalThis.String(e))
38831
+ : [],
38832
+ created_at: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
38833
+ frontchannel_logout_session_required: isSet(object.frontchannel_logout_session_required)
38834
+ ? globalThis.Boolean(object.frontchannel_logout_session_required)
38835
+ : false,
38836
+ frontchannel_logout_uri: isSet(object.frontchannel_logout_uri)
38837
+ ? globalThis.String(object.frontchannel_logout_uri)
38838
+ : "",
38839
+ grant_types: globalThis.Array.isArray(object?.grant_types)
38840
+ ? object.grant_types.map((e: any) => globalThis.String(e))
38841
+ : [],
38842
+ implicit_grant_access_token_lifespan: isSet(object.implicit_grant_access_token_lifespan)
38843
+ ? globalThis.String(object.implicit_grant_access_token_lifespan)
38844
+ : "",
38845
+ implicit_grant_id_token_lifespan: isSet(object.implicit_grant_id_token_lifespan)
38846
+ ? globalThis.String(object.implicit_grant_id_token_lifespan)
38847
+ : "",
38848
+ jwks: globalThis.Array.isArray(object?.jwks)
38849
+ ? object.jwks.map((e: any) => globalThis.String(e))
38850
+ : [],
38851
+ jwks_uri: isSet(object.jwks_uri) ? globalThis.String(object.jwks_uri) : "",
38852
+ jwt_bearer_grant_access_token_lifespan: isSet(object.jwt_bearer_grant_access_token_lifespan)
38853
+ ? globalThis.String(object.jwt_bearer_grant_access_token_lifespan)
38854
+ : "",
38855
+ logo_uri: isSet(object.logo_uri) ? globalThis.String(object.logo_uri) : "",
38856
+ owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
38857
+ policy_uri: isSet(object.policy_uri) ? globalThis.String(object.policy_uri) : "",
38858
+ post_logout_redirect_uris: globalThis.Array.isArray(object?.post_logout_redirect_uris)
38859
+ ? object.post_logout_redirect_uris.map((e: any) => globalThis.String(e))
38860
+ : [],
38861
+ redirect_uris: globalThis.Array.isArray(object?.redirect_uris)
38862
+ ? object.redirect_uris.map((e: any) => globalThis.String(e))
38863
+ : [],
38864
+ refresh_token_grant_access_token_lifespan: isSet(object.refresh_token_grant_access_token_lifespan)
38865
+ ? globalThis.String(object.refresh_token_grant_access_token_lifespan)
38866
+ : "",
38867
+ refresh_token_grant_id_token_lifespan: isSet(object.refresh_token_grant_id_token_lifespan)
38868
+ ? globalThis.String(object.refresh_token_grant_id_token_lifespan)
38869
+ : "",
38870
+ refresh_token_grant_refresh_token_lifespan: isSet(object.refresh_token_grant_refresh_token_lifespan)
38871
+ ? globalThis.String(object.refresh_token_grant_refresh_token_lifespan)
38872
+ : "",
38873
+ registration_access_token: isSet(object.registration_access_token)
38874
+ ? globalThis.String(object.registration_access_token)
38875
+ : "",
38876
+ registration_client_uri: isSet(object.registration_client_uri)
38877
+ ? globalThis.String(object.registration_client_uri)
38878
+ : "",
38879
+ request_object_signing_alg: isSet(object.request_object_signing_alg)
38880
+ ? globalThis.String(object.request_object_signing_alg)
38881
+ : "",
38882
+ request_uris: globalThis.Array.isArray(object?.request_uris)
38883
+ ? object.request_uris.map((e: any) => globalThis.String(e))
38884
+ : [],
38885
+ response_types: globalThis.Array.isArray(object?.response_types)
38886
+ ? object.response_types.map((e: any) => globalThis.String(e))
38887
+ : [],
38888
+ scope: isSet(object.scope) ? globalThis.String(object.scope) : "",
38889
+ sector_identifier_uri: isSet(object.sector_identifier_uri) ? globalThis.String(object.sector_identifier_uri) : "",
38890
+ skip_consent: isSet(object.skip_consent) ? globalThis.Boolean(object.skip_consent) : false,
38891
+ skip_logout_consent: isSet(object.skip_logout_consent) ? globalThis.Boolean(object.skip_logout_consent) : false,
38892
+ subject_type: isSet(object.subject_type) ? globalThis.String(object.subject_type) : "",
38893
+ token_endpoint_auth_method: isSet(object.token_endpoint_auth_method)
38894
+ ? globalThis.String(object.token_endpoint_auth_method)
38895
+ : "",
38896
+ token_endpoint_auth_signing_alg: isSet(object.token_endpoint_auth_signing_alg)
38897
+ ? globalThis.String(object.token_endpoint_auth_signing_alg)
38898
+ : "",
38899
+ tos_uri: isSet(object.tos_uri) ? globalThis.String(object.tos_uri) : "",
38900
+ updated_at: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
38901
+ userinfo_signed_response_alg: isSet(object.userinfo_signed_response_alg)
38902
+ ? globalThis.String(object.userinfo_signed_response_alg)
38903
+ : "",
38904
+ };
38905
+ },
38906
+
38907
+ toJSON(message: MezonOauthClient): unknown {
38908
+ const obj: any = {};
38909
+ if (message.access_token_strategy !== "") {
38910
+ obj.access_token_strategy = message.access_token_strategy;
38911
+ }
38912
+ if (message.allowed_cors_origins?.length) {
38913
+ obj.allowed_cors_origins = message.allowed_cors_origins;
38914
+ }
38915
+ if (message.audience?.length) {
38916
+ obj.audience = message.audience;
38917
+ }
38918
+ if (message.authorization_code_grant_access_token_lifespan !== "") {
38919
+ obj.authorization_code_grant_access_token_lifespan = message.authorization_code_grant_access_token_lifespan;
38920
+ }
38921
+ if (message.authorization_code_grant_id_token_lifespan !== "") {
38922
+ obj.authorization_code_grant_id_token_lifespan = message.authorization_code_grant_id_token_lifespan;
38923
+ }
38924
+ if (message.authorization_code_grant_refresh_token_lifespan !== "") {
38925
+ obj.authorization_code_grant_refresh_token_lifespan = message.authorization_code_grant_refresh_token_lifespan;
38926
+ }
38927
+ if (message.backchannel_logout_session_required !== false) {
38928
+ obj.backchannel_logout_session_required = message.backchannel_logout_session_required;
38929
+ }
38930
+ if (message.backchannel_logout_uri !== "") {
38931
+ obj.backchannel_logout_uri = message.backchannel_logout_uri;
38932
+ }
38933
+ if (message.client_credentials_grant_access_token_lifespan !== "") {
38934
+ obj.client_credentials_grant_access_token_lifespan = message.client_credentials_grant_access_token_lifespan;
38935
+ }
38936
+ if (message.client_id !== "") {
38937
+ obj.client_id = message.client_id;
38938
+ }
38939
+ if (message.client_name !== "") {
38940
+ obj.client_name = message.client_name;
38941
+ }
38942
+ if (message.client_secret !== "") {
38943
+ obj.client_secret = message.client_secret;
38944
+ }
38945
+ if (message.client_secret_expires_at !== 0) {
38946
+ obj.client_secret_expires_at = Math.round(message.client_secret_expires_at);
38947
+ }
38948
+ if (message.client_uri !== "") {
38949
+ obj.client_uri = message.client_uri;
38950
+ }
38951
+ if (message.contacts?.length) {
38952
+ obj.contacts = message.contacts;
38953
+ }
38954
+ if (message.created_at !== undefined) {
38955
+ obj.created_at = message.created_at.toISOString();
38956
+ }
38957
+ if (message.frontchannel_logout_session_required !== false) {
38958
+ obj.frontchannel_logout_session_required = message.frontchannel_logout_session_required;
38959
+ }
38960
+ if (message.frontchannel_logout_uri !== "") {
38961
+ obj.frontchannel_logout_uri = message.frontchannel_logout_uri;
38962
+ }
38963
+ if (message.grant_types?.length) {
38964
+ obj.grant_types = message.grant_types;
38965
+ }
38966
+ if (message.implicit_grant_access_token_lifespan !== "") {
38967
+ obj.implicit_grant_access_token_lifespan = message.implicit_grant_access_token_lifespan;
38968
+ }
38969
+ if (message.implicit_grant_id_token_lifespan !== "") {
38970
+ obj.implicit_grant_id_token_lifespan = message.implicit_grant_id_token_lifespan;
38971
+ }
38972
+ if (message.jwks?.length) {
38973
+ obj.jwks = message.jwks;
38974
+ }
38975
+ if (message.jwks_uri !== "") {
38976
+ obj.jwks_uri = message.jwks_uri;
38977
+ }
38978
+ if (message.jwt_bearer_grant_access_token_lifespan !== "") {
38979
+ obj.jwt_bearer_grant_access_token_lifespan = message.jwt_bearer_grant_access_token_lifespan;
38980
+ }
38981
+ if (message.logo_uri !== "") {
38982
+ obj.logo_uri = message.logo_uri;
38983
+ }
38984
+ if (message.owner !== "") {
38985
+ obj.owner = message.owner;
38986
+ }
38987
+ if (message.policy_uri !== "") {
38988
+ obj.policy_uri = message.policy_uri;
38989
+ }
38990
+ if (message.post_logout_redirect_uris?.length) {
38991
+ obj.post_logout_redirect_uris = message.post_logout_redirect_uris;
38992
+ }
38993
+ if (message.redirect_uris?.length) {
38994
+ obj.redirect_uris = message.redirect_uris;
38995
+ }
38996
+ if (message.refresh_token_grant_access_token_lifespan !== "") {
38997
+ obj.refresh_token_grant_access_token_lifespan = message.refresh_token_grant_access_token_lifespan;
38998
+ }
38999
+ if (message.refresh_token_grant_id_token_lifespan !== "") {
39000
+ obj.refresh_token_grant_id_token_lifespan = message.refresh_token_grant_id_token_lifespan;
39001
+ }
39002
+ if (message.refresh_token_grant_refresh_token_lifespan !== "") {
39003
+ obj.refresh_token_grant_refresh_token_lifespan = message.refresh_token_grant_refresh_token_lifespan;
39004
+ }
39005
+ if (message.registration_access_token !== "") {
39006
+ obj.registration_access_token = message.registration_access_token;
39007
+ }
39008
+ if (message.registration_client_uri !== "") {
39009
+ obj.registration_client_uri = message.registration_client_uri;
39010
+ }
39011
+ if (message.request_object_signing_alg !== "") {
39012
+ obj.request_object_signing_alg = message.request_object_signing_alg;
39013
+ }
39014
+ if (message.request_uris?.length) {
39015
+ obj.request_uris = message.request_uris;
39016
+ }
39017
+ if (message.response_types?.length) {
39018
+ obj.response_types = message.response_types;
39019
+ }
39020
+ if (message.scope !== "") {
39021
+ obj.scope = message.scope;
39022
+ }
39023
+ if (message.sector_identifier_uri !== "") {
39024
+ obj.sector_identifier_uri = message.sector_identifier_uri;
39025
+ }
39026
+ if (message.skip_consent !== false) {
39027
+ obj.skip_consent = message.skip_consent;
39028
+ }
39029
+ if (message.skip_logout_consent !== false) {
39030
+ obj.skip_logout_consent = message.skip_logout_consent;
39031
+ }
39032
+ if (message.subject_type !== "") {
39033
+ obj.subject_type = message.subject_type;
39034
+ }
39035
+ if (message.token_endpoint_auth_method !== "") {
39036
+ obj.token_endpoint_auth_method = message.token_endpoint_auth_method;
39037
+ }
39038
+ if (message.token_endpoint_auth_signing_alg !== "") {
39039
+ obj.token_endpoint_auth_signing_alg = message.token_endpoint_auth_signing_alg;
39040
+ }
39041
+ if (message.tos_uri !== "") {
39042
+ obj.tos_uri = message.tos_uri;
39043
+ }
39044
+ if (message.updated_at !== undefined) {
39045
+ obj.updated_at = message.updated_at.toISOString();
39046
+ }
39047
+ if (message.userinfo_signed_response_alg !== "") {
39048
+ obj.userinfo_signed_response_alg = message.userinfo_signed_response_alg;
39049
+ }
39050
+ return obj;
39051
+ },
39052
+
39053
+ create<I extends Exact<DeepPartial<MezonOauthClient>, I>>(base?: I): MezonOauthClient {
39054
+ return MezonOauthClient.fromPartial(base ?? ({} as any));
39055
+ },
39056
+ fromPartial<I extends Exact<DeepPartial<MezonOauthClient>, I>>(object: I): MezonOauthClient {
39057
+ const message = createBaseMezonOauthClient();
39058
+ message.access_token_strategy = object.access_token_strategy ?? "";
39059
+ message.allowed_cors_origins = object.allowed_cors_origins?.map((e) => e) || [];
39060
+ message.audience = object.audience?.map((e) => e) || [];
39061
+ message.authorization_code_grant_access_token_lifespan = object.authorization_code_grant_access_token_lifespan ??
39062
+ "";
39063
+ message.authorization_code_grant_id_token_lifespan = object.authorization_code_grant_id_token_lifespan ?? "";
39064
+ message.authorization_code_grant_refresh_token_lifespan = object.authorization_code_grant_refresh_token_lifespan ??
39065
+ "";
39066
+ message.backchannel_logout_session_required = object.backchannel_logout_session_required ?? false;
39067
+ message.backchannel_logout_uri = object.backchannel_logout_uri ?? "";
39068
+ message.client_credentials_grant_access_token_lifespan = object.client_credentials_grant_access_token_lifespan ??
39069
+ "";
39070
+ message.client_id = object.client_id ?? "";
39071
+ message.client_name = object.client_name ?? "";
39072
+ message.client_secret = object.client_secret ?? "";
39073
+ message.client_secret_expires_at = object.client_secret_expires_at ?? 0;
39074
+ message.client_uri = object.client_uri ?? "";
39075
+ message.contacts = object.contacts?.map((e) => e) || [];
39076
+ message.created_at = object.created_at ?? undefined;
39077
+ message.frontchannel_logout_session_required = object.frontchannel_logout_session_required ?? false;
39078
+ message.frontchannel_logout_uri = object.frontchannel_logout_uri ?? "";
39079
+ message.grant_types = object.grant_types?.map((e) => e) || [];
39080
+ message.implicit_grant_access_token_lifespan = object.implicit_grant_access_token_lifespan ?? "";
39081
+ message.implicit_grant_id_token_lifespan = object.implicit_grant_id_token_lifespan ?? "";
39082
+ message.jwks = object.jwks?.map((e) => e) || [];
39083
+ message.jwks_uri = object.jwks_uri ?? "";
39084
+ message.jwt_bearer_grant_access_token_lifespan = object.jwt_bearer_grant_access_token_lifespan ?? "";
39085
+ message.logo_uri = object.logo_uri ?? "";
39086
+ message.owner = object.owner ?? "";
39087
+ message.policy_uri = object.policy_uri ?? "";
39088
+ message.post_logout_redirect_uris = object.post_logout_redirect_uris?.map((e) => e) || [];
39089
+ message.redirect_uris = object.redirect_uris?.map((e) => e) || [];
39090
+ message.refresh_token_grant_access_token_lifespan = object.refresh_token_grant_access_token_lifespan ?? "";
39091
+ message.refresh_token_grant_id_token_lifespan = object.refresh_token_grant_id_token_lifespan ?? "";
39092
+ message.refresh_token_grant_refresh_token_lifespan = object.refresh_token_grant_refresh_token_lifespan ?? "";
39093
+ message.registration_access_token = object.registration_access_token ?? "";
39094
+ message.registration_client_uri = object.registration_client_uri ?? "";
39095
+ message.request_object_signing_alg = object.request_object_signing_alg ?? "";
39096
+ message.request_uris = object.request_uris?.map((e) => e) || [];
39097
+ message.response_types = object.response_types?.map((e) => e) || [];
39098
+ message.scope = object.scope ?? "";
39099
+ message.sector_identifier_uri = object.sector_identifier_uri ?? "";
39100
+ message.skip_consent = object.skip_consent ?? false;
39101
+ message.skip_logout_consent = object.skip_logout_consent ?? false;
39102
+ message.subject_type = object.subject_type ?? "";
39103
+ message.token_endpoint_auth_method = object.token_endpoint_auth_method ?? "";
39104
+ message.token_endpoint_auth_signing_alg = object.token_endpoint_auth_signing_alg ?? "";
39105
+ message.tos_uri = object.tos_uri ?? "";
39106
+ message.updated_at = object.updated_at ?? undefined;
39107
+ message.userinfo_signed_response_alg = object.userinfo_signed_response_alg ?? "";
39108
+ return message;
39109
+ },
39110
+ };
39111
+
39112
+ function createBaseMezonOauthClientList(): MezonOauthClientList {
39113
+ return { listMezonOauthClient: [] };
39114
+ }
39115
+
39116
+ export const MezonOauthClientList = {
39117
+ encode(message: MezonOauthClientList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
39118
+ for (const v of message.listMezonOauthClient) {
39119
+ MezonOauthClient.encode(v!, writer.uint32(10).fork()).ldelim();
39120
+ }
39121
+ return writer;
39122
+ },
39123
+
39124
+ decode(input: _m0.Reader | Uint8Array, length?: number): MezonOauthClientList {
39125
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
39126
+ let end = length === undefined ? reader.len : reader.pos + length;
39127
+ const message = createBaseMezonOauthClientList();
39128
+ while (reader.pos < end) {
39129
+ const tag = reader.uint32();
39130
+ switch (tag >>> 3) {
39131
+ case 1:
39132
+ if (tag !== 10) {
39133
+ break;
39134
+ }
39135
+
39136
+ message.listMezonOauthClient.push(MezonOauthClient.decode(reader, reader.uint32()));
39137
+ continue;
39138
+ }
39139
+ if ((tag & 7) === 4 || tag === 0) {
39140
+ break;
39141
+ }
39142
+ reader.skipType(tag & 7);
39143
+ }
39144
+ return message;
39145
+ },
39146
+
39147
+ fromJSON(object: any): MezonOauthClientList {
39148
+ return {
39149
+ listMezonOauthClient: globalThis.Array.isArray(object?.listMezonOauthClient)
39150
+ ? object.listMezonOauthClient.map((e: any) => MezonOauthClient.fromJSON(e))
39151
+ : [],
39152
+ };
39153
+ },
39154
+
39155
+ toJSON(message: MezonOauthClientList): unknown {
39156
+ const obj: any = {};
39157
+ if (message.listMezonOauthClient?.length) {
39158
+ obj.listMezonOauthClient = message.listMezonOauthClient.map((e) => MezonOauthClient.toJSON(e));
39159
+ }
39160
+ return obj;
39161
+ },
39162
+
39163
+ create<I extends Exact<DeepPartial<MezonOauthClientList>, I>>(base?: I): MezonOauthClientList {
39164
+ return MezonOauthClientList.fromPartial(base ?? ({} as any));
39165
+ },
39166
+ fromPartial<I extends Exact<DeepPartial<MezonOauthClientList>, I>>(object: I): MezonOauthClientList {
39167
+ const message = createBaseMezonOauthClientList();
39168
+ message.listMezonOauthClient = object.listMezonOauthClient?.map((e) => MezonOauthClient.fromPartial(e)) || [];
39169
+ return message;
39170
+ },
39171
+ };
39172
+
38155
39173
  function bytesFromBase64(b64: string): Uint8Array {
38156
39174
  if ((globalThis as any).Buffer) {
38157
39175
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));