@wppconnect/wa-proto 2.3000.1056008220 → 2.3000.1056166380
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/WAProto.proto +43 -1
- package/dist/index.d.ts +493 -2
- package/dist/index.js +1454 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7806,8 +7806,20 @@ export namespace waproto {
|
|
|
7806
7806
|
/** AI_RICH_RESPONSE_INLINE_MEDIA_LIGHTBOX_ENABLED value */
|
|
7807
7807
|
AI_RICH_RESPONSE_INLINE_MEDIA_LIGHTBOX_ENABLED = 91,
|
|
7808
7808
|
|
|
7809
|
+
/** HATCH_DEVICE_NODE_HOST value */
|
|
7810
|
+
HATCH_DEVICE_NODE_HOST = 92,
|
|
7811
|
+
|
|
7809
7812
|
/** AI_MUSE_JARVIS_PAYLOAD_GZIP_ENABLED value */
|
|
7810
|
-
AI_MUSE_JARVIS_PAYLOAD_GZIP_ENABLED = 93
|
|
7813
|
+
AI_MUSE_JARVIS_PAYLOAD_GZIP_ENABLED = 93,
|
|
7814
|
+
|
|
7815
|
+
/** AI_RICH_RESPONSE_A2UI_CARDS_ENABLED value */
|
|
7816
|
+
AI_RICH_RESPONSE_A2UI_CARDS_ENABLED = 94,
|
|
7817
|
+
|
|
7818
|
+
/** AI_RICH_RESPONSE_READ_ALOUD_LENGTH_APPROXIMATION_ENABLED value */
|
|
7819
|
+
AI_RICH_RESPONSE_READ_ALOUD_LENGTH_APPROXIMATION_ENABLED = 95,
|
|
7820
|
+
|
|
7821
|
+
/** AI_RICH_RESPONSE_READ_ALOUD_ACTION_TRAY_ENABLED value */
|
|
7822
|
+
AI_RICH_RESPONSE_READ_ALOUD_ACTION_TRAY_ENABLED = 96
|
|
7811
7823
|
}
|
|
7812
7824
|
}
|
|
7813
7825
|
|
|
@@ -24847,6 +24859,9 @@ export namespace waproto {
|
|
|
24847
24859
|
/** Conversation unreadReplyToMyMessageCount. */
|
|
24848
24860
|
unreadReplyToMyMessageCount?: (number|null);
|
|
24849
24861
|
|
|
24862
|
+
/** Conversation draft. */
|
|
24863
|
+
draft?: (waproto.ConversationDraft.$Properties|null);
|
|
24864
|
+
|
|
24850
24865
|
/**
|
|
24851
24866
|
* Creates a new Conversation instance using the specified properties.
|
|
24852
24867
|
* @param [properties] Properties to set
|
|
@@ -25141,6 +25156,9 @@ export namespace waproto {
|
|
|
25141
25156
|
/** Conversation unreadReplyToMyMessageCount */
|
|
25142
25157
|
unreadReplyToMyMessageCount?: (number|null);
|
|
25143
25158
|
|
|
25159
|
+
/** Conversation draft */
|
|
25160
|
+
draft?: (waproto.ConversationDraft.$Properties|null);
|
|
25161
|
+
|
|
25144
25162
|
/** Unknown fields preserved while decoding when enabled */
|
|
25145
25163
|
$unknowns?: Uint8Array[];
|
|
25146
25164
|
}
|
|
@@ -25217,6 +25235,7 @@ export namespace waproto {
|
|
|
25217
25235
|
nonE2EeType?: number|null;
|
|
25218
25236
|
contactAccountEncryptionAttestationType?: waproto.NonE2EEAttestation.AccountType|null;
|
|
25219
25237
|
unreadReplyToMyMessageCount?: number|null;
|
|
25238
|
+
draft?: waproto.ConversationDraft.$Shape|null;
|
|
25220
25239
|
$unknowns?: Uint8Array[];
|
|
25221
25240
|
};
|
|
25222
25241
|
|
|
@@ -25253,6 +25272,140 @@ export namespace waproto {
|
|
|
25253
25272
|
}
|
|
25254
25273
|
}
|
|
25255
25274
|
|
|
25275
|
+
/**
|
|
25276
|
+
* Properties of a ConversationDraft.
|
|
25277
|
+
* @deprecated Use waproto.ConversationDraft.$Properties instead.
|
|
25278
|
+
*/
|
|
25279
|
+
interface IConversationDraft extends waproto.ConversationDraft.$Properties {
|
|
25280
|
+
}
|
|
25281
|
+
|
|
25282
|
+
/** Represents a ConversationDraft. */
|
|
25283
|
+
class ConversationDraft {
|
|
25284
|
+
|
|
25285
|
+
/**
|
|
25286
|
+
* Constructs a new ConversationDraft.
|
|
25287
|
+
* @param [properties] Properties to set
|
|
25288
|
+
*/
|
|
25289
|
+
constructor(properties?: waproto.ConversationDraft.$Properties);
|
|
25290
|
+
|
|
25291
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
25292
|
+
$unknowns?: Uint8Array[];
|
|
25293
|
+
|
|
25294
|
+
/** ConversationDraft content. */
|
|
25295
|
+
content?: (waproto.Message.$Properties|null);
|
|
25296
|
+
|
|
25297
|
+
/** ConversationDraft editTimestampMs. */
|
|
25298
|
+
editTimestampMs?: (number|Long|null);
|
|
25299
|
+
|
|
25300
|
+
/** ConversationDraft editorDeviceId. */
|
|
25301
|
+
editorDeviceId?: (number|null);
|
|
25302
|
+
|
|
25303
|
+
/**
|
|
25304
|
+
* Creates a new ConversationDraft instance using the specified properties.
|
|
25305
|
+
* @param [properties] Properties to set
|
|
25306
|
+
* @returns ConversationDraft instance
|
|
25307
|
+
*/
|
|
25308
|
+
static create(properties: waproto.ConversationDraft.$Shape): waproto.ConversationDraft & waproto.ConversationDraft.$Shape;
|
|
25309
|
+
static create(properties?: waproto.ConversationDraft.$Properties): waproto.ConversationDraft;
|
|
25310
|
+
|
|
25311
|
+
/**
|
|
25312
|
+
* Encodes the specified ConversationDraft message. Does not implicitly {@link waproto.ConversationDraft.verify|verify} messages.
|
|
25313
|
+
* @param message ConversationDraft message or plain object to encode
|
|
25314
|
+
* @param [writer] Writer to encode to
|
|
25315
|
+
* @returns Writer
|
|
25316
|
+
*/
|
|
25317
|
+
static encode(message: waproto.ConversationDraft.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
25318
|
+
|
|
25319
|
+
/**
|
|
25320
|
+
* Encodes the specified ConversationDraft message, length delimited. Does not implicitly {@link waproto.ConversationDraft.verify|verify} messages.
|
|
25321
|
+
* @param message ConversationDraft message or plain object to encode
|
|
25322
|
+
* @param [writer] Writer to encode to
|
|
25323
|
+
* @returns Writer
|
|
25324
|
+
*/
|
|
25325
|
+
static encodeDelimited(message: waproto.ConversationDraft.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
25326
|
+
|
|
25327
|
+
/**
|
|
25328
|
+
* Decodes a ConversationDraft message from the specified reader or buffer.
|
|
25329
|
+
* @param reader Reader or buffer to decode from
|
|
25330
|
+
* @param [length] Message length if known beforehand
|
|
25331
|
+
* @returns {waproto.ConversationDraft & waproto.ConversationDraft.$Shape} ConversationDraft
|
|
25332
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25333
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25334
|
+
*/
|
|
25335
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.ConversationDraft & waproto.ConversationDraft.$Shape;
|
|
25336
|
+
|
|
25337
|
+
/**
|
|
25338
|
+
* Decodes a ConversationDraft message from the specified reader or buffer, length delimited.
|
|
25339
|
+
* @param reader Reader or buffer to decode from
|
|
25340
|
+
* @returns {waproto.ConversationDraft & waproto.ConversationDraft.$Shape} ConversationDraft
|
|
25341
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25342
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25343
|
+
*/
|
|
25344
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.ConversationDraft & waproto.ConversationDraft.$Shape;
|
|
25345
|
+
|
|
25346
|
+
/**
|
|
25347
|
+
* Verifies a ConversationDraft message.
|
|
25348
|
+
* @param message Plain object to verify
|
|
25349
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
25350
|
+
*/
|
|
25351
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
25352
|
+
|
|
25353
|
+
/**
|
|
25354
|
+
* Creates a ConversationDraft message from a plain object. Also converts values to their respective internal types.
|
|
25355
|
+
* @param object Plain object
|
|
25356
|
+
* @returns ConversationDraft
|
|
25357
|
+
*/
|
|
25358
|
+
static fromObject(object: { [k: string]: any }): waproto.ConversationDraft;
|
|
25359
|
+
|
|
25360
|
+
/**
|
|
25361
|
+
* Creates a plain object from a ConversationDraft message. Also converts values to other types if specified.
|
|
25362
|
+
* @param message ConversationDraft
|
|
25363
|
+
* @param [options] Conversion options
|
|
25364
|
+
* @returns Plain object
|
|
25365
|
+
*/
|
|
25366
|
+
static toObject(message: waproto.ConversationDraft, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
25367
|
+
|
|
25368
|
+
/**
|
|
25369
|
+
* Converts this ConversationDraft to JSON.
|
|
25370
|
+
* @returns JSON object
|
|
25371
|
+
*/
|
|
25372
|
+
toJSON(): { [k: string]: any };
|
|
25373
|
+
|
|
25374
|
+
/**
|
|
25375
|
+
* Gets the type url for ConversationDraft
|
|
25376
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
25377
|
+
* @returns The type url
|
|
25378
|
+
*/
|
|
25379
|
+
static getTypeUrl(prefix?: string): string;
|
|
25380
|
+
}
|
|
25381
|
+
|
|
25382
|
+
namespace ConversationDraft {
|
|
25383
|
+
|
|
25384
|
+
/** Properties of a ConversationDraft. */
|
|
25385
|
+
interface $Properties {
|
|
25386
|
+
|
|
25387
|
+
/** ConversationDraft content */
|
|
25388
|
+
content?: (waproto.Message.$Properties|null);
|
|
25389
|
+
|
|
25390
|
+
/** ConversationDraft editTimestampMs */
|
|
25391
|
+
editTimestampMs?: (number|Long|null);
|
|
25392
|
+
|
|
25393
|
+
/** ConversationDraft editorDeviceId */
|
|
25394
|
+
editorDeviceId?: (number|null);
|
|
25395
|
+
|
|
25396
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
25397
|
+
$unknowns?: Uint8Array[];
|
|
25398
|
+
}
|
|
25399
|
+
|
|
25400
|
+
/** Shape of a ConversationDraft. */
|
|
25401
|
+
type $Shape = {
|
|
25402
|
+
content?: waproto.Message.$Shape|null;
|
|
25403
|
+
editTimestampMs?: number|Long|null;
|
|
25404
|
+
editorDeviceId?: number|null;
|
|
25405
|
+
$unknowns?: Uint8Array[];
|
|
25406
|
+
};
|
|
25407
|
+
}
|
|
25408
|
+
|
|
25256
25409
|
/**
|
|
25257
25410
|
* Properties of a CreateBackupInput.
|
|
25258
25411
|
* @deprecated Use waproto.CreateBackupInput.$Properties instead.
|
|
@@ -27243,6 +27396,9 @@ export namespace waproto {
|
|
|
27243
27396
|
/** DeviceCapabilities aiMuseJarvisGzip. */
|
|
27244
27397
|
aiMuseJarvisGzip?: (waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties|null);
|
|
27245
27398
|
|
|
27399
|
+
/** DeviceCapabilities draftSync. */
|
|
27400
|
+
draftSync?: (waproto.DeviceCapabilities.DraftSync.$Properties|null);
|
|
27401
|
+
|
|
27246
27402
|
/**
|
|
27247
27403
|
* Creates a new DeviceCapabilities instance using the specified properties.
|
|
27248
27404
|
* @param [properties] Properties to set
|
|
@@ -27375,6 +27531,9 @@ export namespace waproto {
|
|
|
27375
27531
|
/** DeviceCapabilities aiMuseJarvisGzip */
|
|
27376
27532
|
aiMuseJarvisGzip?: (waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties|null);
|
|
27377
27533
|
|
|
27534
|
+
/** DeviceCapabilities draftSync */
|
|
27535
|
+
draftSync?: (waproto.DeviceCapabilities.DraftSync.$Properties|null);
|
|
27536
|
+
|
|
27378
27537
|
/** Unknown fields preserved while decoding when enabled */
|
|
27379
27538
|
$unknowns?: Uint8Array[];
|
|
27380
27539
|
}
|
|
@@ -28263,6 +28422,123 @@ export namespace waproto {
|
|
|
28263
28422
|
type $Shape = waproto.DeviceCapabilities.ContactRefresh.$Properties;
|
|
28264
28423
|
}
|
|
28265
28424
|
|
|
28425
|
+
/**
|
|
28426
|
+
* Properties of a DraftSync.
|
|
28427
|
+
* @deprecated Use waproto.DeviceCapabilities.DraftSync.$Properties instead.
|
|
28428
|
+
*/
|
|
28429
|
+
interface IDraftSync extends waproto.DeviceCapabilities.DraftSync.$Properties {
|
|
28430
|
+
}
|
|
28431
|
+
|
|
28432
|
+
/** Represents a DraftSync. */
|
|
28433
|
+
class DraftSync {
|
|
28434
|
+
|
|
28435
|
+
/**
|
|
28436
|
+
* Constructs a new DraftSync.
|
|
28437
|
+
* @param [properties] Properties to set
|
|
28438
|
+
*/
|
|
28439
|
+
constructor(properties?: waproto.DeviceCapabilities.DraftSync.$Properties);
|
|
28440
|
+
|
|
28441
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
28442
|
+
$unknowns?: Uint8Array[];
|
|
28443
|
+
|
|
28444
|
+
/** DraftSync version. */
|
|
28445
|
+
version?: (number|null);
|
|
28446
|
+
|
|
28447
|
+
/**
|
|
28448
|
+
* Creates a new DraftSync instance using the specified properties.
|
|
28449
|
+
* @param [properties] Properties to set
|
|
28450
|
+
* @returns DraftSync instance
|
|
28451
|
+
*/
|
|
28452
|
+
static create(properties: waproto.DeviceCapabilities.DraftSync.$Shape): waproto.DeviceCapabilities.DraftSync & waproto.DeviceCapabilities.DraftSync.$Shape;
|
|
28453
|
+
static create(properties?: waproto.DeviceCapabilities.DraftSync.$Properties): waproto.DeviceCapabilities.DraftSync;
|
|
28454
|
+
|
|
28455
|
+
/**
|
|
28456
|
+
* Encodes the specified DraftSync message. Does not implicitly {@link waproto.DeviceCapabilities.DraftSync.verify|verify} messages.
|
|
28457
|
+
* @param message DraftSync message or plain object to encode
|
|
28458
|
+
* @param [writer] Writer to encode to
|
|
28459
|
+
* @returns Writer
|
|
28460
|
+
*/
|
|
28461
|
+
static encode(message: waproto.DeviceCapabilities.DraftSync.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
28462
|
+
|
|
28463
|
+
/**
|
|
28464
|
+
* Encodes the specified DraftSync message, length delimited. Does not implicitly {@link waproto.DeviceCapabilities.DraftSync.verify|verify} messages.
|
|
28465
|
+
* @param message DraftSync message or plain object to encode
|
|
28466
|
+
* @param [writer] Writer to encode to
|
|
28467
|
+
* @returns Writer
|
|
28468
|
+
*/
|
|
28469
|
+
static encodeDelimited(message: waproto.DeviceCapabilities.DraftSync.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
28470
|
+
|
|
28471
|
+
/**
|
|
28472
|
+
* Decodes a DraftSync message from the specified reader or buffer.
|
|
28473
|
+
* @param reader Reader or buffer to decode from
|
|
28474
|
+
* @param [length] Message length if known beforehand
|
|
28475
|
+
* @returns {waproto.DeviceCapabilities.DraftSync & waproto.DeviceCapabilities.DraftSync.$Shape} DraftSync
|
|
28476
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28477
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28478
|
+
*/
|
|
28479
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.DeviceCapabilities.DraftSync & waproto.DeviceCapabilities.DraftSync.$Shape;
|
|
28480
|
+
|
|
28481
|
+
/**
|
|
28482
|
+
* Decodes a DraftSync message from the specified reader or buffer, length delimited.
|
|
28483
|
+
* @param reader Reader or buffer to decode from
|
|
28484
|
+
* @returns {waproto.DeviceCapabilities.DraftSync & waproto.DeviceCapabilities.DraftSync.$Shape} DraftSync
|
|
28485
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28486
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28487
|
+
*/
|
|
28488
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.DeviceCapabilities.DraftSync & waproto.DeviceCapabilities.DraftSync.$Shape;
|
|
28489
|
+
|
|
28490
|
+
/**
|
|
28491
|
+
* Verifies a DraftSync message.
|
|
28492
|
+
* @param message Plain object to verify
|
|
28493
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
28494
|
+
*/
|
|
28495
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
28496
|
+
|
|
28497
|
+
/**
|
|
28498
|
+
* Creates a DraftSync message from a plain object. Also converts values to their respective internal types.
|
|
28499
|
+
* @param object Plain object
|
|
28500
|
+
* @returns DraftSync
|
|
28501
|
+
*/
|
|
28502
|
+
static fromObject(object: { [k: string]: any }): waproto.DeviceCapabilities.DraftSync;
|
|
28503
|
+
|
|
28504
|
+
/**
|
|
28505
|
+
* Creates a plain object from a DraftSync message. Also converts values to other types if specified.
|
|
28506
|
+
* @param message DraftSync
|
|
28507
|
+
* @param [options] Conversion options
|
|
28508
|
+
* @returns Plain object
|
|
28509
|
+
*/
|
|
28510
|
+
static toObject(message: waproto.DeviceCapabilities.DraftSync, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
28511
|
+
|
|
28512
|
+
/**
|
|
28513
|
+
* Converts this DraftSync to JSON.
|
|
28514
|
+
* @returns JSON object
|
|
28515
|
+
*/
|
|
28516
|
+
toJSON(): { [k: string]: any };
|
|
28517
|
+
|
|
28518
|
+
/**
|
|
28519
|
+
* Gets the type url for DraftSync
|
|
28520
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
28521
|
+
* @returns The type url
|
|
28522
|
+
*/
|
|
28523
|
+
static getTypeUrl(prefix?: string): string;
|
|
28524
|
+
}
|
|
28525
|
+
|
|
28526
|
+
namespace DraftSync {
|
|
28527
|
+
|
|
28528
|
+
/** Properties of a DraftSync. */
|
|
28529
|
+
interface $Properties {
|
|
28530
|
+
|
|
28531
|
+
/** DraftSync version */
|
|
28532
|
+
version?: (number|null);
|
|
28533
|
+
|
|
28534
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
28535
|
+
$unknowns?: Uint8Array[];
|
|
28536
|
+
}
|
|
28537
|
+
|
|
28538
|
+
/** Shape of a DraftSync. */
|
|
28539
|
+
type $Shape = waproto.DeviceCapabilities.DraftSync.$Properties;
|
|
28540
|
+
}
|
|
28541
|
+
|
|
28266
28542
|
/**
|
|
28267
28543
|
* Properties of a HostWriteMutationSupport.
|
|
28268
28544
|
* @deprecated Use waproto.DeviceCapabilities.HostWriteMutationSupport.$Properties instead.
|
|
@@ -29970,6 +30246,9 @@ export namespace waproto {
|
|
|
29970
30246
|
/** HistorySyncConfig supportOmittedConversationMetadata. */
|
|
29971
30247
|
supportOmittedConversationMetadata?: (boolean|null);
|
|
29972
30248
|
|
|
30249
|
+
/** HistorySyncConfig supportDraftSync. */
|
|
30250
|
+
supportDraftSync?: (boolean|null);
|
|
30251
|
+
|
|
29973
30252
|
/**
|
|
29974
30253
|
* Creates a new HistorySyncConfig instance using the specified properties.
|
|
29975
30254
|
* @param [properties] Properties to set
|
|
@@ -30135,6 +30414,9 @@ export namespace waproto {
|
|
|
30135
30414
|
/** HistorySyncConfig supportOmittedConversationMetadata */
|
|
30136
30415
|
supportOmittedConversationMetadata?: (boolean|null);
|
|
30137
30416
|
|
|
30417
|
+
/** HistorySyncConfig supportDraftSync */
|
|
30418
|
+
supportDraftSync?: (boolean|null);
|
|
30419
|
+
|
|
30138
30420
|
/** Unknown fields preserved while decoding when enabled */
|
|
30139
30421
|
$unknowns?: Uint8Array[];
|
|
30140
30422
|
}
|
|
@@ -30414,6 +30696,193 @@ export namespace waproto {
|
|
|
30414
30696
|
}
|
|
30415
30697
|
}
|
|
30416
30698
|
|
|
30699
|
+
/**
|
|
30700
|
+
* Properties of a DraftMessageSync.
|
|
30701
|
+
* @deprecated Use waproto.DraftMessageSync.$Properties instead.
|
|
30702
|
+
*/
|
|
30703
|
+
interface IDraftMessageSync extends waproto.DraftMessageSync.$Properties {
|
|
30704
|
+
}
|
|
30705
|
+
|
|
30706
|
+
/** Represents a DraftMessageSync. */
|
|
30707
|
+
class DraftMessageSync {
|
|
30708
|
+
|
|
30709
|
+
/**
|
|
30710
|
+
* Constructs a new DraftMessageSync.
|
|
30711
|
+
* @param [properties] Properties to set
|
|
30712
|
+
*/
|
|
30713
|
+
constructor(properties?: waproto.DraftMessageSync.$Properties);
|
|
30714
|
+
|
|
30715
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
30716
|
+
$unknowns?: Uint8Array[];
|
|
30717
|
+
|
|
30718
|
+
/** DraftMessageSync chatJid. */
|
|
30719
|
+
chatJid?: (string|null);
|
|
30720
|
+
|
|
30721
|
+
/** DraftMessageSync altChatJid. */
|
|
30722
|
+
altChatJid?: (string|null);
|
|
30723
|
+
|
|
30724
|
+
/** DraftMessageSync action. */
|
|
30725
|
+
action?: (waproto.DraftMessageSync.Action|null);
|
|
30726
|
+
|
|
30727
|
+
/** DraftMessageSync editTimestampMs. */
|
|
30728
|
+
editTimestampMs?: (number|Long|null);
|
|
30729
|
+
|
|
30730
|
+
/** DraftMessageSync draft. */
|
|
30731
|
+
draft?: (waproto.Message.$Properties|null);
|
|
30732
|
+
|
|
30733
|
+
/** DraftMessageSync clearReason. */
|
|
30734
|
+
clearReason?: (waproto.DraftMessageSync.ClearReason|null);
|
|
30735
|
+
|
|
30736
|
+
/**
|
|
30737
|
+
* Creates a new DraftMessageSync instance using the specified properties.
|
|
30738
|
+
* @param [properties] Properties to set
|
|
30739
|
+
* @returns DraftMessageSync instance
|
|
30740
|
+
*/
|
|
30741
|
+
static create(properties: waproto.DraftMessageSync.$Shape): waproto.DraftMessageSync & waproto.DraftMessageSync.$Shape;
|
|
30742
|
+
static create(properties?: waproto.DraftMessageSync.$Properties): waproto.DraftMessageSync;
|
|
30743
|
+
|
|
30744
|
+
/**
|
|
30745
|
+
* Encodes the specified DraftMessageSync message. Does not implicitly {@link waproto.DraftMessageSync.verify|verify} messages.
|
|
30746
|
+
* @param message DraftMessageSync message or plain object to encode
|
|
30747
|
+
* @param [writer] Writer to encode to
|
|
30748
|
+
* @returns Writer
|
|
30749
|
+
*/
|
|
30750
|
+
static encode(message: waproto.DraftMessageSync.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
30751
|
+
|
|
30752
|
+
/**
|
|
30753
|
+
* Encodes the specified DraftMessageSync message, length delimited. Does not implicitly {@link waproto.DraftMessageSync.verify|verify} messages.
|
|
30754
|
+
* @param message DraftMessageSync message or plain object to encode
|
|
30755
|
+
* @param [writer] Writer to encode to
|
|
30756
|
+
* @returns Writer
|
|
30757
|
+
*/
|
|
30758
|
+
static encodeDelimited(message: waproto.DraftMessageSync.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
30759
|
+
|
|
30760
|
+
/**
|
|
30761
|
+
* Decodes a DraftMessageSync message from the specified reader or buffer.
|
|
30762
|
+
* @param reader Reader or buffer to decode from
|
|
30763
|
+
* @param [length] Message length if known beforehand
|
|
30764
|
+
* @returns {waproto.DraftMessageSync & waproto.DraftMessageSync.$Shape} DraftMessageSync
|
|
30765
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
30766
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
30767
|
+
*/
|
|
30768
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.DraftMessageSync & waproto.DraftMessageSync.$Shape;
|
|
30769
|
+
|
|
30770
|
+
/**
|
|
30771
|
+
* Decodes a DraftMessageSync message from the specified reader or buffer, length delimited.
|
|
30772
|
+
* @param reader Reader or buffer to decode from
|
|
30773
|
+
* @returns {waproto.DraftMessageSync & waproto.DraftMessageSync.$Shape} DraftMessageSync
|
|
30774
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
30775
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
30776
|
+
*/
|
|
30777
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.DraftMessageSync & waproto.DraftMessageSync.$Shape;
|
|
30778
|
+
|
|
30779
|
+
/**
|
|
30780
|
+
* Verifies a DraftMessageSync message.
|
|
30781
|
+
* @param message Plain object to verify
|
|
30782
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
30783
|
+
*/
|
|
30784
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
30785
|
+
|
|
30786
|
+
/**
|
|
30787
|
+
* Creates a DraftMessageSync message from a plain object. Also converts values to their respective internal types.
|
|
30788
|
+
* @param object Plain object
|
|
30789
|
+
* @returns DraftMessageSync
|
|
30790
|
+
*/
|
|
30791
|
+
static fromObject(object: { [k: string]: any }): waproto.DraftMessageSync;
|
|
30792
|
+
|
|
30793
|
+
/**
|
|
30794
|
+
* Creates a plain object from a DraftMessageSync message. Also converts values to other types if specified.
|
|
30795
|
+
* @param message DraftMessageSync
|
|
30796
|
+
* @param [options] Conversion options
|
|
30797
|
+
* @returns Plain object
|
|
30798
|
+
*/
|
|
30799
|
+
static toObject(message: waproto.DraftMessageSync, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
30800
|
+
|
|
30801
|
+
/**
|
|
30802
|
+
* Converts this DraftMessageSync to JSON.
|
|
30803
|
+
* @returns JSON object
|
|
30804
|
+
*/
|
|
30805
|
+
toJSON(): { [k: string]: any };
|
|
30806
|
+
|
|
30807
|
+
/**
|
|
30808
|
+
* Gets the type url for DraftMessageSync
|
|
30809
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
30810
|
+
* @returns The type url
|
|
30811
|
+
*/
|
|
30812
|
+
static getTypeUrl(prefix?: string): string;
|
|
30813
|
+
}
|
|
30814
|
+
|
|
30815
|
+
namespace DraftMessageSync {
|
|
30816
|
+
|
|
30817
|
+
/** Properties of a DraftMessageSync. */
|
|
30818
|
+
interface $Properties {
|
|
30819
|
+
|
|
30820
|
+
/** DraftMessageSync chatJid */
|
|
30821
|
+
chatJid?: (string|null);
|
|
30822
|
+
|
|
30823
|
+
/** DraftMessageSync altChatJid */
|
|
30824
|
+
altChatJid?: (string|null);
|
|
30825
|
+
|
|
30826
|
+
/** DraftMessageSync action */
|
|
30827
|
+
action?: (waproto.DraftMessageSync.Action|null);
|
|
30828
|
+
|
|
30829
|
+
/** DraftMessageSync editTimestampMs */
|
|
30830
|
+
editTimestampMs?: (number|Long|null);
|
|
30831
|
+
|
|
30832
|
+
/** DraftMessageSync draft */
|
|
30833
|
+
draft?: (waproto.Message.$Properties|null);
|
|
30834
|
+
|
|
30835
|
+
/** DraftMessageSync clearReason */
|
|
30836
|
+
clearReason?: (waproto.DraftMessageSync.ClearReason|null);
|
|
30837
|
+
|
|
30838
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
30839
|
+
$unknowns?: Uint8Array[];
|
|
30840
|
+
}
|
|
30841
|
+
|
|
30842
|
+
/** Shape of a DraftMessageSync. */
|
|
30843
|
+
type $Shape = {
|
|
30844
|
+
chatJid?: string|null;
|
|
30845
|
+
altChatJid?: string|null;
|
|
30846
|
+
action?: waproto.DraftMessageSync.Action|null;
|
|
30847
|
+
editTimestampMs?: number|Long|null;
|
|
30848
|
+
draft?: waproto.Message.$Shape|null;
|
|
30849
|
+
clearReason?: waproto.DraftMessageSync.ClearReason|null;
|
|
30850
|
+
$unknowns?: Uint8Array[];
|
|
30851
|
+
};
|
|
30852
|
+
|
|
30853
|
+
/** Action enum. */
|
|
30854
|
+
enum Action {
|
|
30855
|
+
|
|
30856
|
+
/** ACTION_UNKNOWN value */
|
|
30857
|
+
ACTION_UNKNOWN = 0,
|
|
30858
|
+
|
|
30859
|
+
/** SET value */
|
|
30860
|
+
SET = 1,
|
|
30861
|
+
|
|
30862
|
+
/** CLEAR value */
|
|
30863
|
+
CLEAR = 2
|
|
30864
|
+
}
|
|
30865
|
+
|
|
30866
|
+
/** ClearReason enum. */
|
|
30867
|
+
enum ClearReason {
|
|
30868
|
+
|
|
30869
|
+
/** CLEAR_REASON_UNKNOWN value */
|
|
30870
|
+
CLEAR_REASON_UNKNOWN = 0,
|
|
30871
|
+
|
|
30872
|
+
/** USER_CLEARED value */
|
|
30873
|
+
USER_CLEARED = 1,
|
|
30874
|
+
|
|
30875
|
+
/** SENT value */
|
|
30876
|
+
SENT = 2,
|
|
30877
|
+
|
|
30878
|
+
/** CHAT_LOCKED value */
|
|
30879
|
+
CHAT_LOCKED = 3,
|
|
30880
|
+
|
|
30881
|
+
/** REPLACED_BY_NON_TEXT value */
|
|
30882
|
+
REPLACED_BY_NON_TEXT = 4
|
|
30883
|
+
}
|
|
30884
|
+
}
|
|
30885
|
+
|
|
30417
30886
|
/**
|
|
30418
30887
|
* Properties of an EmbeddedContent.
|
|
30419
30888
|
* @deprecated Use waproto.EmbeddedContent.$Properties instead.
|
|
@@ -64523,6 +64992,9 @@ export namespace waproto {
|
|
|
64523
64992
|
/** ProtocolMessage messageEditDisplayType. */
|
|
64524
64993
|
messageEditDisplayType?: (waproto.Message.ProtocolMessage.MessageEditDisplayType|null);
|
|
64525
64994
|
|
|
64995
|
+
/** ProtocolMessage draftMessageSync. */
|
|
64996
|
+
draftMessageSync?: (waproto.DraftMessageSync.$Properties|null);
|
|
64997
|
+
|
|
64526
64998
|
/**
|
|
64527
64999
|
* Creates a new ProtocolMessage instance using the specified properties.
|
|
64528
65000
|
* @param [properties] Properties to set
|
|
@@ -64721,6 +65193,9 @@ export namespace waproto {
|
|
|
64721
65193
|
/** ProtocolMessage messageEditDisplayType */
|
|
64722
65194
|
messageEditDisplayType?: (waproto.Message.ProtocolMessage.MessageEditDisplayType|null);
|
|
64723
65195
|
|
|
65196
|
+
/** ProtocolMessage draftMessageSync */
|
|
65197
|
+
draftMessageSync?: (waproto.DraftMessageSync.$Properties|null);
|
|
65198
|
+
|
|
64724
65199
|
/** Unknown fields preserved while decoding when enabled */
|
|
64725
65200
|
$unknowns?: Uint8Array[];
|
|
64726
65201
|
}
|
|
@@ -64765,6 +65240,7 @@ export namespace waproto {
|
|
|
64765
65240
|
membershipFormKeyFingerprintVerification?: waproto.MembershipFormKeyFingerprintVerification.$Shape|null;
|
|
64766
65241
|
groupRootKeyShare?: waproto.GroupRootKeyShare.$Shape|null;
|
|
64767
65242
|
messageEditDisplayType?: waproto.Message.ProtocolMessage.MessageEditDisplayType|null;
|
|
65243
|
+
draftMessageSync?: waproto.DraftMessageSync.$Shape|null;
|
|
64768
65244
|
$unknowns?: Uint8Array[];
|
|
64769
65245
|
};
|
|
64770
65246
|
|
|
@@ -64893,7 +65369,10 @@ export namespace waproto {
|
|
|
64893
65369
|
MEMBERSHIP_FORM_KEY_FINGERPRINT_VERIFICATION = 43,
|
|
64894
65370
|
|
|
64895
65371
|
/** GROUP_ROOT_KEY_SHARE value */
|
|
64896
|
-
GROUP_ROOT_KEY_SHARE = 44
|
|
65372
|
+
GROUP_ROOT_KEY_SHARE = 44,
|
|
65373
|
+
|
|
65374
|
+
/** DRAFT_MESSAGE_SYNC value */
|
|
65375
|
+
DRAFT_MESSAGE_SYNC = 45
|
|
64897
65376
|
}
|
|
64898
65377
|
}
|
|
64899
65378
|
|
|
@@ -79464,6 +79943,12 @@ export namespace waproto {
|
|
|
79464
79943
|
/** PrepareAddPeerDeviceSuccess historyStartTime. */
|
|
79465
79944
|
historyStartTime?: (number|Long|null);
|
|
79466
79945
|
|
|
79946
|
+
/** PrepareAddPeerDeviceSuccess identityBindingBlob. */
|
|
79947
|
+
identityBindingBlob?: (Uint8Array|null);
|
|
79948
|
+
|
|
79949
|
+
/** PrepareAddPeerDeviceSuccess bindingSigByLabyrinthDevice. */
|
|
79950
|
+
bindingSigByLabyrinthDevice?: (Uint8Array|null);
|
|
79951
|
+
|
|
79467
79952
|
/**
|
|
79468
79953
|
* Creates a new PrepareAddPeerDeviceSuccess instance using the specified properties.
|
|
79469
79954
|
* @param [properties] Properties to set
|
|
@@ -79560,6 +80045,12 @@ export namespace waproto {
|
|
|
79560
80045
|
/** PrepareAddPeerDeviceSuccess historyStartTime */
|
|
79561
80046
|
historyStartTime?: (number|Long|null);
|
|
79562
80047
|
|
|
80048
|
+
/** PrepareAddPeerDeviceSuccess identityBindingBlob */
|
|
80049
|
+
identityBindingBlob?: (Uint8Array|null);
|
|
80050
|
+
|
|
80051
|
+
/** PrepareAddPeerDeviceSuccess bindingSigByLabyrinthDevice */
|
|
80052
|
+
bindingSigByLabyrinthDevice?: (Uint8Array|null);
|
|
80053
|
+
|
|
79563
80054
|
/** Unknown fields preserved while decoding when enabled */
|
|
79564
80055
|
$unknowns?: Uint8Array[];
|
|
79565
80056
|
}
|