@wppconnect/wa-proto 2.3000.1029536383 → 2.3000.1029564202
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/CHANGELOG.md +4 -0
- package/WAProto.proto +11 -1
- package/dist/index.d.ts +113 -0
- package/dist/index.js +295 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/WAProto.proto
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package waproto;
|
|
3
3
|
|
|
4
|
-
/// WhatsApp Version: 2.3000.
|
|
4
|
+
/// WhatsApp Version: 2.3000.1029564202
|
|
5
5
|
|
|
6
6
|
message ADVDeviceIdentity {
|
|
7
7
|
optional uint32 rawId = 1;
|
|
@@ -1539,6 +1539,16 @@ message DeviceCapabilities {
|
|
|
1539
1539
|
optional BusinessBroadcast businessBroadcast = 3;
|
|
1540
1540
|
optional UserHasAvatar userHasAvatar = 4;
|
|
1541
1541
|
optional MemberNameTagPrimarySupport memberNameTagPrimarySupport = 5;
|
|
1542
|
+
optional AiThread aiThread = 6;
|
|
1543
|
+
message AiThread {
|
|
1544
|
+
optional SupportLevel supportLevel = 1;
|
|
1545
|
+
enum SupportLevel {
|
|
1546
|
+
NONE = 0;
|
|
1547
|
+
INFRA = 1;
|
|
1548
|
+
FULL = 2;
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1542
1552
|
message BusinessBroadcast {
|
|
1543
1553
|
optional bool importListEnabled = 1;
|
|
1544
1554
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -15712,6 +15712,9 @@ export namespace waproto {
|
|
|
15712
15712
|
|
|
15713
15713
|
/** DeviceCapabilities memberNameTagPrimarySupport */
|
|
15714
15714
|
memberNameTagPrimarySupport?: (waproto.DeviceCapabilities.MemberNameTagPrimarySupport|null);
|
|
15715
|
+
|
|
15716
|
+
/** DeviceCapabilities aiThread */
|
|
15717
|
+
aiThread?: (waproto.DeviceCapabilities.IAiThread|null);
|
|
15715
15718
|
}
|
|
15716
15719
|
|
|
15717
15720
|
/** Represents a DeviceCapabilities. */
|
|
@@ -15738,6 +15741,9 @@ export namespace waproto {
|
|
|
15738
15741
|
/** DeviceCapabilities memberNameTagPrimarySupport. */
|
|
15739
15742
|
public memberNameTagPrimarySupport?: (waproto.DeviceCapabilities.MemberNameTagPrimarySupport|null);
|
|
15740
15743
|
|
|
15744
|
+
/** DeviceCapabilities aiThread. */
|
|
15745
|
+
public aiThread?: (waproto.DeviceCapabilities.IAiThread|null);
|
|
15746
|
+
|
|
15741
15747
|
/**
|
|
15742
15748
|
* Creates a new DeviceCapabilities instance using the specified properties.
|
|
15743
15749
|
* @param [properties] Properties to set
|
|
@@ -15818,6 +15824,113 @@ export namespace waproto {
|
|
|
15818
15824
|
|
|
15819
15825
|
namespace DeviceCapabilities {
|
|
15820
15826
|
|
|
15827
|
+
/** Properties of an AiThread. */
|
|
15828
|
+
interface IAiThread {
|
|
15829
|
+
|
|
15830
|
+
/** AiThread supportLevel */
|
|
15831
|
+
supportLevel?: (waproto.DeviceCapabilities.AiThread.SupportLevel|null);
|
|
15832
|
+
}
|
|
15833
|
+
|
|
15834
|
+
/** Represents an AiThread. */
|
|
15835
|
+
class AiThread implements IAiThread {
|
|
15836
|
+
|
|
15837
|
+
/**
|
|
15838
|
+
* Constructs a new AiThread.
|
|
15839
|
+
* @param [properties] Properties to set
|
|
15840
|
+
*/
|
|
15841
|
+
constructor(properties?: waproto.DeviceCapabilities.IAiThread);
|
|
15842
|
+
|
|
15843
|
+
/** AiThread supportLevel. */
|
|
15844
|
+
public supportLevel?: (waproto.DeviceCapabilities.AiThread.SupportLevel|null);
|
|
15845
|
+
|
|
15846
|
+
/**
|
|
15847
|
+
* Creates a new AiThread instance using the specified properties.
|
|
15848
|
+
* @param [properties] Properties to set
|
|
15849
|
+
* @returns AiThread instance
|
|
15850
|
+
*/
|
|
15851
|
+
public static create(properties?: waproto.DeviceCapabilities.IAiThread): waproto.DeviceCapabilities.AiThread;
|
|
15852
|
+
|
|
15853
|
+
/**
|
|
15854
|
+
* Encodes the specified AiThread message. Does not implicitly {@link waproto.DeviceCapabilities.AiThread.verify|verify} messages.
|
|
15855
|
+
* @param message AiThread message or plain object to encode
|
|
15856
|
+
* @param [writer] Writer to encode to
|
|
15857
|
+
* @returns Writer
|
|
15858
|
+
*/
|
|
15859
|
+
public static encode(message: waproto.DeviceCapabilities.IAiThread, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
15860
|
+
|
|
15861
|
+
/**
|
|
15862
|
+
* Encodes the specified AiThread message, length delimited. Does not implicitly {@link waproto.DeviceCapabilities.AiThread.verify|verify} messages.
|
|
15863
|
+
* @param message AiThread message or plain object to encode
|
|
15864
|
+
* @param [writer] Writer to encode to
|
|
15865
|
+
* @returns Writer
|
|
15866
|
+
*/
|
|
15867
|
+
public static encodeDelimited(message: waproto.DeviceCapabilities.IAiThread, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
15868
|
+
|
|
15869
|
+
/**
|
|
15870
|
+
* Decodes an AiThread message from the specified reader or buffer.
|
|
15871
|
+
* @param reader Reader or buffer to decode from
|
|
15872
|
+
* @param [length] Message length if known beforehand
|
|
15873
|
+
* @returns AiThread
|
|
15874
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15875
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15876
|
+
*/
|
|
15877
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.DeviceCapabilities.AiThread;
|
|
15878
|
+
|
|
15879
|
+
/**
|
|
15880
|
+
* Decodes an AiThread message from the specified reader or buffer, length delimited.
|
|
15881
|
+
* @param reader Reader or buffer to decode from
|
|
15882
|
+
* @returns AiThread
|
|
15883
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15884
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15885
|
+
*/
|
|
15886
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.DeviceCapabilities.AiThread;
|
|
15887
|
+
|
|
15888
|
+
/**
|
|
15889
|
+
* Verifies an AiThread message.
|
|
15890
|
+
* @param message Plain object to verify
|
|
15891
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
15892
|
+
*/
|
|
15893
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
15894
|
+
|
|
15895
|
+
/**
|
|
15896
|
+
* Creates an AiThread message from a plain object. Also converts values to their respective internal types.
|
|
15897
|
+
* @param object Plain object
|
|
15898
|
+
* @returns AiThread
|
|
15899
|
+
*/
|
|
15900
|
+
public static fromObject(object: { [k: string]: any }): waproto.DeviceCapabilities.AiThread;
|
|
15901
|
+
|
|
15902
|
+
/**
|
|
15903
|
+
* Creates a plain object from an AiThread message. Also converts values to other types if specified.
|
|
15904
|
+
* @param message AiThread
|
|
15905
|
+
* @param [options] Conversion options
|
|
15906
|
+
* @returns Plain object
|
|
15907
|
+
*/
|
|
15908
|
+
public static toObject(message: waproto.DeviceCapabilities.AiThread, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
15909
|
+
|
|
15910
|
+
/**
|
|
15911
|
+
* Converts this AiThread to JSON.
|
|
15912
|
+
* @returns JSON object
|
|
15913
|
+
*/
|
|
15914
|
+
public toJSON(): { [k: string]: any };
|
|
15915
|
+
|
|
15916
|
+
/**
|
|
15917
|
+
* Gets the default type url for AiThread
|
|
15918
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
15919
|
+
* @returns The default type url
|
|
15920
|
+
*/
|
|
15921
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
15922
|
+
}
|
|
15923
|
+
|
|
15924
|
+
namespace AiThread {
|
|
15925
|
+
|
|
15926
|
+
/** SupportLevel enum. */
|
|
15927
|
+
enum SupportLevel {
|
|
15928
|
+
NONE = 0,
|
|
15929
|
+
INFRA = 1,
|
|
15930
|
+
FULL = 2
|
|
15931
|
+
}
|
|
15932
|
+
}
|
|
15933
|
+
|
|
15821
15934
|
/** Properties of a BusinessBroadcast. */
|
|
15822
15935
|
interface IBusinessBroadcast {
|
|
15823
15936
|
|
package/dist/index.js
CHANGED
|
@@ -48984,6 +48984,7 @@ $root.waproto = (function() {
|
|
|
48984
48984
|
* @property {waproto.DeviceCapabilities.IBusinessBroadcast|null} [businessBroadcast] DeviceCapabilities businessBroadcast
|
|
48985
48985
|
* @property {waproto.DeviceCapabilities.IUserHasAvatar|null} [userHasAvatar] DeviceCapabilities userHasAvatar
|
|
48986
48986
|
* @property {waproto.DeviceCapabilities.MemberNameTagPrimarySupport|null} [memberNameTagPrimarySupport] DeviceCapabilities memberNameTagPrimarySupport
|
|
48987
|
+
* @property {waproto.DeviceCapabilities.IAiThread|null} [aiThread] DeviceCapabilities aiThread
|
|
48987
48988
|
*/
|
|
48988
48989
|
|
|
48989
48990
|
/**
|
|
@@ -49041,6 +49042,14 @@ $root.waproto = (function() {
|
|
|
49041
49042
|
*/
|
|
49042
49043
|
DeviceCapabilities.prototype.memberNameTagPrimarySupport = null;
|
|
49043
49044
|
|
|
49045
|
+
/**
|
|
49046
|
+
* DeviceCapabilities aiThread.
|
|
49047
|
+
* @member {waproto.DeviceCapabilities.IAiThread|null|undefined} aiThread
|
|
49048
|
+
* @memberof waproto.DeviceCapabilities
|
|
49049
|
+
* @instance
|
|
49050
|
+
*/
|
|
49051
|
+
DeviceCapabilities.prototype.aiThread = null;
|
|
49052
|
+
|
|
49044
49053
|
// OneOf field names bound to virtual getters and setters
|
|
49045
49054
|
var $oneOfFields;
|
|
49046
49055
|
|
|
@@ -49074,6 +49083,12 @@ $root.waproto = (function() {
|
|
|
49074
49083
|
set: $util.oneOfSetter($oneOfFields)
|
|
49075
49084
|
});
|
|
49076
49085
|
|
|
49086
|
+
// Virtual OneOf for proto3 optional field
|
|
49087
|
+
Object.defineProperty(DeviceCapabilities.prototype, "_aiThread", {
|
|
49088
|
+
get: $util.oneOfGetter($oneOfFields = ["aiThread"]),
|
|
49089
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
49090
|
+
});
|
|
49091
|
+
|
|
49077
49092
|
/**
|
|
49078
49093
|
* Creates a new DeviceCapabilities instance using the specified properties.
|
|
49079
49094
|
* @function create
|
|
@@ -49108,6 +49123,8 @@ $root.waproto = (function() {
|
|
|
49108
49123
|
$root.waproto.DeviceCapabilities.UserHasAvatar.encode(message.userHasAvatar, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
49109
49124
|
if (message.memberNameTagPrimarySupport != null && Object.hasOwnProperty.call(message, "memberNameTagPrimarySupport"))
|
|
49110
49125
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.memberNameTagPrimarySupport);
|
|
49126
|
+
if (message.aiThread != null && Object.hasOwnProperty.call(message, "aiThread"))
|
|
49127
|
+
$root.waproto.DeviceCapabilities.AiThread.encode(message.aiThread, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
49111
49128
|
return writer;
|
|
49112
49129
|
};
|
|
49113
49130
|
|
|
@@ -49162,6 +49179,10 @@ $root.waproto = (function() {
|
|
|
49162
49179
|
message.memberNameTagPrimarySupport = reader.int32();
|
|
49163
49180
|
break;
|
|
49164
49181
|
}
|
|
49182
|
+
case 6: {
|
|
49183
|
+
message.aiThread = $root.waproto.DeviceCapabilities.AiThread.decode(reader, reader.uint32());
|
|
49184
|
+
break;
|
|
49185
|
+
}
|
|
49165
49186
|
default:
|
|
49166
49187
|
reader.skipType(tag & 7);
|
|
49167
49188
|
break;
|
|
@@ -49244,6 +49265,14 @@ $root.waproto = (function() {
|
|
|
49244
49265
|
break;
|
|
49245
49266
|
}
|
|
49246
49267
|
}
|
|
49268
|
+
if (message.aiThread != null && message.hasOwnProperty("aiThread")) {
|
|
49269
|
+
properties._aiThread = 1;
|
|
49270
|
+
{
|
|
49271
|
+
var error = $root.waproto.DeviceCapabilities.AiThread.verify(message.aiThread);
|
|
49272
|
+
if (error)
|
|
49273
|
+
return "aiThread." + error;
|
|
49274
|
+
}
|
|
49275
|
+
}
|
|
49247
49276
|
return null;
|
|
49248
49277
|
};
|
|
49249
49278
|
|
|
@@ -49314,6 +49343,11 @@ $root.waproto = (function() {
|
|
|
49314
49343
|
message.memberNameTagPrimarySupport = 2;
|
|
49315
49344
|
break;
|
|
49316
49345
|
}
|
|
49346
|
+
if (object.aiThread != null) {
|
|
49347
|
+
if (typeof object.aiThread !== "object")
|
|
49348
|
+
throw TypeError(".waproto.DeviceCapabilities.aiThread: object expected");
|
|
49349
|
+
message.aiThread = $root.waproto.DeviceCapabilities.AiThread.fromObject(object.aiThread);
|
|
49350
|
+
}
|
|
49317
49351
|
return message;
|
|
49318
49352
|
};
|
|
49319
49353
|
|
|
@@ -49355,6 +49389,11 @@ $root.waproto = (function() {
|
|
|
49355
49389
|
if (options.oneofs)
|
|
49356
49390
|
object._memberNameTagPrimarySupport = "memberNameTagPrimarySupport";
|
|
49357
49391
|
}
|
|
49392
|
+
if (message.aiThread != null && message.hasOwnProperty("aiThread")) {
|
|
49393
|
+
object.aiThread = $root.waproto.DeviceCapabilities.AiThread.toObject(message.aiThread, options);
|
|
49394
|
+
if (options.oneofs)
|
|
49395
|
+
object._aiThread = "aiThread";
|
|
49396
|
+
}
|
|
49358
49397
|
return object;
|
|
49359
49398
|
};
|
|
49360
49399
|
|
|
@@ -49384,6 +49423,262 @@ $root.waproto = (function() {
|
|
|
49384
49423
|
return typeUrlPrefix + "/waproto.DeviceCapabilities";
|
|
49385
49424
|
};
|
|
49386
49425
|
|
|
49426
|
+
DeviceCapabilities.AiThread = (function() {
|
|
49427
|
+
|
|
49428
|
+
/**
|
|
49429
|
+
* Properties of an AiThread.
|
|
49430
|
+
* @memberof waproto.DeviceCapabilities
|
|
49431
|
+
* @interface IAiThread
|
|
49432
|
+
* @property {waproto.DeviceCapabilities.AiThread.SupportLevel|null} [supportLevel] AiThread supportLevel
|
|
49433
|
+
*/
|
|
49434
|
+
|
|
49435
|
+
/**
|
|
49436
|
+
* Constructs a new AiThread.
|
|
49437
|
+
* @memberof waproto.DeviceCapabilities
|
|
49438
|
+
* @classdesc Represents an AiThread.
|
|
49439
|
+
* @implements IAiThread
|
|
49440
|
+
* @constructor
|
|
49441
|
+
* @param {waproto.DeviceCapabilities.IAiThread=} [properties] Properties to set
|
|
49442
|
+
*/
|
|
49443
|
+
function AiThread(properties) {
|
|
49444
|
+
if (properties)
|
|
49445
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
49446
|
+
if (properties[keys[i]] != null)
|
|
49447
|
+
this[keys[i]] = properties[keys[i]];
|
|
49448
|
+
}
|
|
49449
|
+
|
|
49450
|
+
/**
|
|
49451
|
+
* AiThread supportLevel.
|
|
49452
|
+
* @member {waproto.DeviceCapabilities.AiThread.SupportLevel|null|undefined} supportLevel
|
|
49453
|
+
* @memberof waproto.DeviceCapabilities.AiThread
|
|
49454
|
+
* @instance
|
|
49455
|
+
*/
|
|
49456
|
+
AiThread.prototype.supportLevel = null;
|
|
49457
|
+
|
|
49458
|
+
// OneOf field names bound to virtual getters and setters
|
|
49459
|
+
var $oneOfFields;
|
|
49460
|
+
|
|
49461
|
+
// Virtual OneOf for proto3 optional field
|
|
49462
|
+
Object.defineProperty(AiThread.prototype, "_supportLevel", {
|
|
49463
|
+
get: $util.oneOfGetter($oneOfFields = ["supportLevel"]),
|
|
49464
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
49465
|
+
});
|
|
49466
|
+
|
|
49467
|
+
/**
|
|
49468
|
+
* Creates a new AiThread instance using the specified properties.
|
|
49469
|
+
* @function create
|
|
49470
|
+
* @memberof waproto.DeviceCapabilities.AiThread
|
|
49471
|
+
* @static
|
|
49472
|
+
* @param {waproto.DeviceCapabilities.IAiThread=} [properties] Properties to set
|
|
49473
|
+
* @returns {waproto.DeviceCapabilities.AiThread} AiThread instance
|
|
49474
|
+
*/
|
|
49475
|
+
AiThread.create = function create(properties) {
|
|
49476
|
+
return new AiThread(properties);
|
|
49477
|
+
};
|
|
49478
|
+
|
|
49479
|
+
/**
|
|
49480
|
+
* Encodes the specified AiThread message. Does not implicitly {@link waproto.DeviceCapabilities.AiThread.verify|verify} messages.
|
|
49481
|
+
* @function encode
|
|
49482
|
+
* @memberof waproto.DeviceCapabilities.AiThread
|
|
49483
|
+
* @static
|
|
49484
|
+
* @param {waproto.DeviceCapabilities.IAiThread} message AiThread message or plain object to encode
|
|
49485
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49486
|
+
* @returns {$protobuf.Writer} Writer
|
|
49487
|
+
*/
|
|
49488
|
+
AiThread.encode = function encode(message, writer) {
|
|
49489
|
+
if (!writer)
|
|
49490
|
+
writer = $Writer.create();
|
|
49491
|
+
if (message.supportLevel != null && Object.hasOwnProperty.call(message, "supportLevel"))
|
|
49492
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.supportLevel);
|
|
49493
|
+
return writer;
|
|
49494
|
+
};
|
|
49495
|
+
|
|
49496
|
+
/**
|
|
49497
|
+
* Encodes the specified AiThread message, length delimited. Does not implicitly {@link waproto.DeviceCapabilities.AiThread.verify|verify} messages.
|
|
49498
|
+
* @function encodeDelimited
|
|
49499
|
+
* @memberof waproto.DeviceCapabilities.AiThread
|
|
49500
|
+
* @static
|
|
49501
|
+
* @param {waproto.DeviceCapabilities.IAiThread} message AiThread message or plain object to encode
|
|
49502
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49503
|
+
* @returns {$protobuf.Writer} Writer
|
|
49504
|
+
*/
|
|
49505
|
+
AiThread.encodeDelimited = function encodeDelimited(message, writer) {
|
|
49506
|
+
return this.encode(message, writer).ldelim();
|
|
49507
|
+
};
|
|
49508
|
+
|
|
49509
|
+
/**
|
|
49510
|
+
* Decodes an AiThread message from the specified reader or buffer.
|
|
49511
|
+
* @function decode
|
|
49512
|
+
* @memberof waproto.DeviceCapabilities.AiThread
|
|
49513
|
+
* @static
|
|
49514
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49515
|
+
* @param {number} [length] Message length if known beforehand
|
|
49516
|
+
* @returns {waproto.DeviceCapabilities.AiThread} AiThread
|
|
49517
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49518
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49519
|
+
*/
|
|
49520
|
+
AiThread.decode = function decode(reader, length) {
|
|
49521
|
+
if (!(reader instanceof $Reader))
|
|
49522
|
+
reader = $Reader.create(reader);
|
|
49523
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.DeviceCapabilities.AiThread();
|
|
49524
|
+
while (reader.pos < end) {
|
|
49525
|
+
var tag = reader.uint32();
|
|
49526
|
+
switch (tag >>> 3) {
|
|
49527
|
+
case 1: {
|
|
49528
|
+
message.supportLevel = reader.int32();
|
|
49529
|
+
break;
|
|
49530
|
+
}
|
|
49531
|
+
default:
|
|
49532
|
+
reader.skipType(tag & 7);
|
|
49533
|
+
break;
|
|
49534
|
+
}
|
|
49535
|
+
}
|
|
49536
|
+
return message;
|
|
49537
|
+
};
|
|
49538
|
+
|
|
49539
|
+
/**
|
|
49540
|
+
* Decodes an AiThread message from the specified reader or buffer, length delimited.
|
|
49541
|
+
* @function decodeDelimited
|
|
49542
|
+
* @memberof waproto.DeviceCapabilities.AiThread
|
|
49543
|
+
* @static
|
|
49544
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49545
|
+
* @returns {waproto.DeviceCapabilities.AiThread} AiThread
|
|
49546
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49547
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49548
|
+
*/
|
|
49549
|
+
AiThread.decodeDelimited = function decodeDelimited(reader) {
|
|
49550
|
+
if (!(reader instanceof $Reader))
|
|
49551
|
+
reader = new $Reader(reader);
|
|
49552
|
+
return this.decode(reader, reader.uint32());
|
|
49553
|
+
};
|
|
49554
|
+
|
|
49555
|
+
/**
|
|
49556
|
+
* Verifies an AiThread message.
|
|
49557
|
+
* @function verify
|
|
49558
|
+
* @memberof waproto.DeviceCapabilities.AiThread
|
|
49559
|
+
* @static
|
|
49560
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
49561
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
49562
|
+
*/
|
|
49563
|
+
AiThread.verify = function verify(message) {
|
|
49564
|
+
if (typeof message !== "object" || message === null)
|
|
49565
|
+
return "object expected";
|
|
49566
|
+
var properties = {};
|
|
49567
|
+
if (message.supportLevel != null && message.hasOwnProperty("supportLevel")) {
|
|
49568
|
+
properties._supportLevel = 1;
|
|
49569
|
+
switch (message.supportLevel) {
|
|
49570
|
+
default:
|
|
49571
|
+
return "supportLevel: enum value expected";
|
|
49572
|
+
case 0:
|
|
49573
|
+
case 1:
|
|
49574
|
+
case 2:
|
|
49575
|
+
break;
|
|
49576
|
+
}
|
|
49577
|
+
}
|
|
49578
|
+
return null;
|
|
49579
|
+
};
|
|
49580
|
+
|
|
49581
|
+
/**
|
|
49582
|
+
* Creates an AiThread message from a plain object. Also converts values to their respective internal types.
|
|
49583
|
+
* @function fromObject
|
|
49584
|
+
* @memberof waproto.DeviceCapabilities.AiThread
|
|
49585
|
+
* @static
|
|
49586
|
+
* @param {Object.<string,*>} object Plain object
|
|
49587
|
+
* @returns {waproto.DeviceCapabilities.AiThread} AiThread
|
|
49588
|
+
*/
|
|
49589
|
+
AiThread.fromObject = function fromObject(object) {
|
|
49590
|
+
if (object instanceof $root.waproto.DeviceCapabilities.AiThread)
|
|
49591
|
+
return object;
|
|
49592
|
+
var message = new $root.waproto.DeviceCapabilities.AiThread();
|
|
49593
|
+
switch (object.supportLevel) {
|
|
49594
|
+
default:
|
|
49595
|
+
if (typeof object.supportLevel === "number") {
|
|
49596
|
+
message.supportLevel = object.supportLevel;
|
|
49597
|
+
break;
|
|
49598
|
+
}
|
|
49599
|
+
break;
|
|
49600
|
+
case "NONE":
|
|
49601
|
+
case 0:
|
|
49602
|
+
message.supportLevel = 0;
|
|
49603
|
+
break;
|
|
49604
|
+
case "INFRA":
|
|
49605
|
+
case 1:
|
|
49606
|
+
message.supportLevel = 1;
|
|
49607
|
+
break;
|
|
49608
|
+
case "FULL":
|
|
49609
|
+
case 2:
|
|
49610
|
+
message.supportLevel = 2;
|
|
49611
|
+
break;
|
|
49612
|
+
}
|
|
49613
|
+
return message;
|
|
49614
|
+
};
|
|
49615
|
+
|
|
49616
|
+
/**
|
|
49617
|
+
* Creates a plain object from an AiThread message. Also converts values to other types if specified.
|
|
49618
|
+
* @function toObject
|
|
49619
|
+
* @memberof waproto.DeviceCapabilities.AiThread
|
|
49620
|
+
* @static
|
|
49621
|
+
* @param {waproto.DeviceCapabilities.AiThread} message AiThread
|
|
49622
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
49623
|
+
* @returns {Object.<string,*>} Plain object
|
|
49624
|
+
*/
|
|
49625
|
+
AiThread.toObject = function toObject(message, options) {
|
|
49626
|
+
if (!options)
|
|
49627
|
+
options = {};
|
|
49628
|
+
var object = {};
|
|
49629
|
+
if (message.supportLevel != null && message.hasOwnProperty("supportLevel")) {
|
|
49630
|
+
object.supportLevel = options.enums === String ? $root.waproto.DeviceCapabilities.AiThread.SupportLevel[message.supportLevel] === undefined ? message.supportLevel : $root.waproto.DeviceCapabilities.AiThread.SupportLevel[message.supportLevel] : message.supportLevel;
|
|
49631
|
+
if (options.oneofs)
|
|
49632
|
+
object._supportLevel = "supportLevel";
|
|
49633
|
+
}
|
|
49634
|
+
return object;
|
|
49635
|
+
};
|
|
49636
|
+
|
|
49637
|
+
/**
|
|
49638
|
+
* Converts this AiThread to JSON.
|
|
49639
|
+
* @function toJSON
|
|
49640
|
+
* @memberof waproto.DeviceCapabilities.AiThread
|
|
49641
|
+
* @instance
|
|
49642
|
+
* @returns {Object.<string,*>} JSON object
|
|
49643
|
+
*/
|
|
49644
|
+
AiThread.prototype.toJSON = function toJSON() {
|
|
49645
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
49646
|
+
};
|
|
49647
|
+
|
|
49648
|
+
/**
|
|
49649
|
+
* Gets the default type url for AiThread
|
|
49650
|
+
* @function getTypeUrl
|
|
49651
|
+
* @memberof waproto.DeviceCapabilities.AiThread
|
|
49652
|
+
* @static
|
|
49653
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
49654
|
+
* @returns {string} The default type url
|
|
49655
|
+
*/
|
|
49656
|
+
AiThread.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
49657
|
+
if (typeUrlPrefix === undefined) {
|
|
49658
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
49659
|
+
}
|
|
49660
|
+
return typeUrlPrefix + "/waproto.DeviceCapabilities.AiThread";
|
|
49661
|
+
};
|
|
49662
|
+
|
|
49663
|
+
/**
|
|
49664
|
+
* SupportLevel enum.
|
|
49665
|
+
* @name waproto.DeviceCapabilities.AiThread.SupportLevel
|
|
49666
|
+
* @enum {number}
|
|
49667
|
+
* @property {number} NONE=0 NONE value
|
|
49668
|
+
* @property {number} INFRA=1 INFRA value
|
|
49669
|
+
* @property {number} FULL=2 FULL value
|
|
49670
|
+
*/
|
|
49671
|
+
AiThread.SupportLevel = (function() {
|
|
49672
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
49673
|
+
values[valuesById[0] = "NONE"] = 0;
|
|
49674
|
+
values[valuesById[1] = "INFRA"] = 1;
|
|
49675
|
+
values[valuesById[2] = "FULL"] = 2;
|
|
49676
|
+
return values;
|
|
49677
|
+
})();
|
|
49678
|
+
|
|
49679
|
+
return AiThread;
|
|
49680
|
+
})();
|
|
49681
|
+
|
|
49387
49682
|
DeviceCapabilities.BusinessBroadcast = (function() {
|
|
49388
49683
|
|
|
49389
49684
|
/**
|