@tickernelz/paperclip-pro-shared 2026.1027.0 → 2026.1104.1

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.
@@ -1,5 +1,5 @@
1
- // GENERATED by scripts/generate-openwa-operations.mjs from scripts/openwa/openapi-0.24.0.json; DO NOT EDIT.
2
- export const OPENWA_GATEWAY_VERSION = "0.24.0";
1
+ // GENERATED by scripts/generate-openwa-operations.mjs from scripts/openwa/openapi-0.27.1.json; DO NOT EDIT.
2
+ export const OPENWA_GATEWAY_VERSION = "0.27.1";
3
3
  export const OPENWA_OPERATIONS = [
4
4
  {
5
5
  "id": "AuditController_findAll",
@@ -38,10 +38,10 @@ export const OPENWA_OPERATIONS = [
38
38
  "type": "string"
39
39
  },
40
40
  "limit": {
41
- "type": "number"
41
+ "type": "integer"
42
42
  },
43
43
  "offset": {
44
- "type": "number"
44
+ "type": "integer"
45
45
  },
46
46
  "severity": {
47
47
  "type": "string",
@@ -49,7 +49,8 @@ export const OPENWA_OPERATIONS = [
49
49
  "info",
50
50
  "warn",
51
51
  "error"
52
- ]
52
+ ],
53
+ "description": "`error` is reserved: nothing writes it, so that filter returns no rows."
53
54
  },
54
55
  "action": {
55
56
  "type": "string",
@@ -75,6 +76,7 @@ export const OPENWA_OPERATIONS = [
75
76
  "session_restricted",
76
77
  "session_restriction_lifted",
77
78
  "session_rebind_rejected",
79
+ "phone_second_lid_reported",
78
80
  "message_sent",
79
81
  "message_failed",
80
82
  "send_pacing_blocked",
@@ -83,11 +85,19 @@ export const OPENWA_OPERATIONS = [
83
85
  "webhook_deleted",
84
86
  "webhook_triggered",
85
87
  "webhook_failed",
88
+ "webhook_deliveries_redriven",
86
89
  "integration_instance_created",
87
90
  "integration_instance_updated",
88
91
  "integration_instance_secret_regenerated",
89
92
  "integration_instance_deleted",
90
93
  "integration_instance_redriven",
94
+ "plugin_installed",
95
+ "plugin_updated",
96
+ "plugin_uninstalled",
97
+ "plugin_enabled",
98
+ "plugin_disabled",
99
+ "plugin_config_updated",
100
+ "plugin_sessions_updated",
91
101
  "infra_config_saved",
92
102
  "infra_restart_requested",
93
103
  "infra_data_exported",
@@ -167,6 +177,7 @@ export const OPENWA_OPERATIONS = [
167
177
  "allowedChats": {
168
178
  "type": "array",
169
179
  "description": "Chat ids this key may read and send to — a curated allowlist independent of `allowedSessions`.",
180
+ "maxItems": 2000,
170
181
  "items": {
171
182
  "type": "string"
172
183
  }
@@ -395,6 +406,7 @@ export const OPENWA_OPERATIONS = [
395
406
  },
396
407
  "allowedChats": {
397
408
  "type": "array",
409
+ "maxItems": 2000,
398
410
  "items": {
399
411
  "type": "string"
400
412
  }
@@ -923,7 +935,8 @@ export const OPENWA_OPERATIONS = [
923
935
  "properties": {
924
936
  "chatId": {
925
937
  "type": "string",
926
- "description": "Chat to send the product card to (@c.us or @g.us)."
938
+ "description": "Chat to send the product card to (@c.us or @g.us).",
939
+ "maxLength": 255
927
940
  },
928
941
  "productId": {
929
942
  "type": "string",
@@ -1140,7 +1153,7 @@ export const OPENWA_OPERATIONS = [
1140
1153
  "description": "Channel ID"
1141
1154
  },
1142
1155
  "limit": {
1143
- "type": "number",
1156
+ "type": "integer",
1144
1157
  "description": "Max messages to return (default 50, max 100)"
1145
1158
  }
1146
1159
  },
@@ -1409,7 +1422,7 @@ export const OPENWA_OPERATIONS = [
1409
1422
  "tag": "contacts",
1410
1423
  "summary": "Check if a phone number exists on WhatsApp",
1411
1424
  "category": "read",
1412
- "requiredRole": "viewer",
1425
+ "requiredRole": "operator",
1413
1426
  "requiresUnscopedKey": false,
1414
1427
  "auth": "api_key",
1415
1428
  "sessionScoped": true,
@@ -1513,11 +1526,11 @@ export const OPENWA_OPERATIONS = [
1513
1526
  "type": "object",
1514
1527
  "properties": {
1515
1528
  "limit": {
1516
- "type": "string",
1517
- "description": "Max contacts to return (1–1000, default 1000)"
1529
+ "type": "integer",
1530
+ "description": "Max contacts to return (1-1000, default 1000)"
1518
1531
  },
1519
1532
  "offset": {
1520
- "type": "string",
1533
+ "type": "integer",
1521
1534
  "description": "Number of contacts to skip (for paging)"
1522
1535
  }
1523
1536
  },
@@ -1594,6 +1607,46 @@ export const OPENWA_OPERATIONS = [
1594
1607
  "additionalProperties": false
1595
1608
  }
1596
1609
  },
1610
+ {
1611
+ "id": "ContactController_getContactLid",
1612
+ "method": "GET",
1613
+ "path": "/api/sessions/{sessionId}/contacts/{number}/lid",
1614
+ "tag": "contacts",
1615
+ "summary": "Look up the LID of a phone number",
1616
+ "category": "read",
1617
+ "requiredRole": "operator",
1618
+ "requiresUnscopedKey": false,
1619
+ "auth": "api_key",
1620
+ "sessionScoped": true,
1621
+ "sessionParam": "path",
1622
+ "targetChatArg": null,
1623
+ "sendsMessage": false,
1624
+ "engines": [
1625
+ "whatsapp-web.js",
1626
+ "baileys"
1627
+ ],
1628
+ "pathParams": [
1629
+ "number"
1630
+ ],
1631
+ "queryParams": [],
1632
+ "bodyParams": [],
1633
+ "fileParams": [],
1634
+ "bodyMode": "none",
1635
+ "response": "json",
1636
+ "args": {
1637
+ "type": "object",
1638
+ "properties": {
1639
+ "number": {
1640
+ "type": "string",
1641
+ "description": "Phone number to look up (e.g., 628123456789)"
1642
+ }
1643
+ },
1644
+ "additionalProperties": false,
1645
+ "required": [
1646
+ "number"
1647
+ ]
1648
+ }
1649
+ },
1597
1650
  {
1598
1651
  "id": "ContactController_getProfilePicture",
1599
1652
  "method": "GET",
@@ -1668,10 +1721,7 @@ export const OPENWA_OPERATIONS = [
1668
1721
  "description": "Comma-separated contact ids (max 50 used)"
1669
1722
  }
1670
1723
  },
1671
- "additionalProperties": false,
1672
- "required": [
1673
- "ids"
1674
- ]
1724
+ "additionalProperties": false
1675
1725
  }
1676
1726
  },
1677
1727
  {
@@ -2216,7 +2266,7 @@ export const OPENWA_OPERATIONS = [
2216
2266
  "method": "GET",
2217
2267
  "path": "/api/sessions/{sessionId}/groups/{groupId}/settings",
2218
2268
  "tag": "groups",
2219
- "summary": "Get group settings (announce / locked / ephemeral timer)",
2269
+ "summary": "Get group settings (announce / locked / ephemeral timer / member-add mode)",
2220
2270
  "category": "read",
2221
2271
  "requiredRole": "viewer",
2222
2272
  "requiresUnscopedKey": false,
@@ -2612,6 +2662,53 @@ export const OPENWA_OPERATIONS = [
2612
2662
  ]
2613
2663
  }
2614
2664
  },
2665
+ {
2666
+ "id": "GroupController_setMemberLabel",
2667
+ "method": "PUT",
2668
+ "path": "/api/sessions/{sessionId}/groups/{groupId}/member-label",
2669
+ "tag": "groups",
2670
+ "summary": "Set this account's member label in a group",
2671
+ "category": "wa_admin",
2672
+ "requiredRole": "operator",
2673
+ "requiresUnscopedKey": false,
2674
+ "auth": "api_key",
2675
+ "sessionScoped": true,
2676
+ "sessionParam": "path",
2677
+ "targetChatArg": null,
2678
+ "sendsMessage": false,
2679
+ "engines": [
2680
+ "baileys"
2681
+ ],
2682
+ "pathParams": [
2683
+ "groupId"
2684
+ ],
2685
+ "queryParams": [],
2686
+ "bodyParams": [
2687
+ "label"
2688
+ ],
2689
+ "fileParams": [],
2690
+ "bodyMode": "json",
2691
+ "response": "json",
2692
+ "args": {
2693
+ "type": "object",
2694
+ "properties": {
2695
+ "groupId": {
2696
+ "type": "string",
2697
+ "description": "Group ID"
2698
+ },
2699
+ "label": {
2700
+ "type": "string",
2701
+ "description": "This account's label in the group, shown beside its name (may be empty to clear it).",
2702
+ "maxLength": 30
2703
+ }
2704
+ },
2705
+ "additionalProperties": false,
2706
+ "required": [
2707
+ "groupId",
2708
+ "label"
2709
+ ]
2710
+ }
2711
+ },
2615
2712
  {
2616
2713
  "id": "GroupController_setPicture",
2617
2714
  "method": "PUT",
@@ -2721,7 +2818,7 @@ export const OPENWA_OPERATIONS = [
2721
2818
  "method": "PUT",
2722
2819
  "path": "/api/sessions/{sessionId}/groups/{groupId}/settings",
2723
2820
  "tag": "groups",
2724
- "summary": "Update group settings (announce / locked / ephemeral timer)",
2821
+ "summary": "Update group settings (announce / locked / ephemeral timer / member-add mode)",
2725
2822
  "category": "wa_admin",
2726
2823
  "requiredRole": "operator",
2727
2824
  "requiresUnscopedKey": false,
@@ -2986,6 +3083,7 @@ export const OPENWA_OPERATIONS = [
2986
3083
  "properties": {
2987
3084
  "type": {
2988
3085
  "type": "string",
3086
+ "description": "Absent keeps the stored selection, which the rest of the section then applies to.",
2989
3087
  "enum": [
2990
3088
  "sqlite",
2991
3089
  "postgres"
@@ -3021,10 +3119,7 @@ export const OPENWA_OPERATIONS = [
3021
3119
  "sslRejectUnauthorized": {
3022
3120
  "type": "boolean"
3023
3121
  }
3024
- },
3025
- "required": [
3026
- "type"
3027
- ]
3122
+ }
3028
3123
  },
3029
3124
  "redis": {
3030
3125
  "type": "object",
@@ -3059,6 +3154,7 @@ export const OPENWA_OPERATIONS = [
3059
3154
  "properties": {
3060
3155
  "type": {
3061
3156
  "type": "string",
3157
+ "description": "Absent keeps the stored selection, which the rest of the section then applies to.",
3062
3158
  "enum": [
3063
3159
  "local",
3064
3160
  "s3"
@@ -3085,10 +3181,7 @@ export const OPENWA_OPERATIONS = [
3085
3181
  "s3Endpoint": {
3086
3182
  "type": "string"
3087
3183
  }
3088
- },
3089
- "required": [
3090
- "type"
3091
- ]
3184
+ }
3092
3185
  },
3093
3186
  "engine": {
3094
3187
  "type": "object",
@@ -4701,7 +4794,8 @@ export const OPENWA_OPERATIONS = [
4701
4794
  "type": "object",
4702
4795
  "properties": {
4703
4796
  "chatId": {
4704
- "type": "string"
4797
+ "type": "string",
4798
+ "maxLength": 255
4705
4799
  },
4706
4800
  "messageId": {
4707
4801
  "type": "string",
@@ -4758,7 +4852,8 @@ export const OPENWA_OPERATIONS = [
4758
4852
  "type": "object",
4759
4853
  "properties": {
4760
4854
  "chatId": {
4761
- "type": "string"
4855
+ "type": "string",
4856
+ "maxLength": 255
4762
4857
  },
4763
4858
  "messageId": {
4764
4859
  "type": "string"
@@ -4808,7 +4903,8 @@ export const OPENWA_OPERATIONS = [
4808
4903
  "type": "object",
4809
4904
  "properties": {
4810
4905
  "chatId": {
4811
- "type": "string"
4906
+ "type": "string",
4907
+ "maxLength": 255
4812
4908
  },
4813
4909
  "messageId": {
4814
4910
  "type": "string"
@@ -4868,10 +4964,12 @@ export const OPENWA_OPERATIONS = [
4868
4964
  "type": "object",
4869
4965
  "properties": {
4870
4966
  "fromChatId": {
4871
- "type": "string"
4967
+ "type": "string",
4968
+ "maxLength": 255
4872
4969
  },
4873
4970
  "toChatId": {
4874
- "type": "string"
4971
+ "type": "string",
4972
+ "maxLength": 255
4875
4973
  },
4876
4974
  "messageId": {
4877
4975
  "type": "string"
@@ -4962,7 +5060,7 @@ export const OPENWA_OPERATIONS = [
4962
5060
  "description": "Chat ID (e.g. 1234567890@c.us or groupId@g.us)"
4963
5061
  },
4964
5062
  "limit": {
4965
- "type": "number",
5063
+ "type": "integer",
4966
5064
  "description": "Max messages to return (default 50)"
4967
5065
  },
4968
5066
  "includeMedia": {
@@ -5051,7 +5149,13 @@ export const OPENWA_OPERATIONS = [
5051
5149
  "limit",
5052
5150
  "offset",
5053
5151
  "after",
5054
- "inlineMedia"
5152
+ "inlineMedia",
5153
+ "since",
5154
+ "until",
5155
+ "direction",
5156
+ "orderBy",
5157
+ "type",
5158
+ "messageId"
5055
5159
  ],
5056
5160
  "bodyParams": [],
5057
5161
  "fileParams": [],
@@ -5069,11 +5173,11 @@ export const OPENWA_OPERATIONS = [
5069
5173
  "description": "Filter by sender."
5070
5174
  },
5071
5175
  "limit": {
5072
- "type": "number",
5176
+ "type": "integer",
5073
5177
  "description": "Max messages to return (default 50)"
5074
5178
  },
5075
5179
  "offset": {
5076
- "type": "number",
5180
+ "type": "integer",
5077
5181
  "description": "Offset for pagination"
5078
5182
  },
5079
5183
  "after": {
@@ -5083,6 +5187,37 @@ export const OPENWA_OPERATIONS = [
5083
5187
  "inlineMedia": {
5084
5188
  "type": "boolean",
5085
5189
  "description": "Set false to omit inline media payloads, leaving each row's { omitted, sizeBytes } marker and the media endpoint."
5190
+ },
5191
+ "since": {
5192
+ "type": "number",
5193
+ "description": "Inclusive message-time lower bound, Unix epoch milliseconds (not ingestion time)."
5194
+ },
5195
+ "until": {
5196
+ "type": "number",
5197
+ "description": "Exclusive message-time upper bound, Unix epoch milliseconds."
5198
+ },
5199
+ "direction": {
5200
+ "type": "string",
5201
+ "enum": [
5202
+ "incoming",
5203
+ "outgoing"
5204
+ ]
5205
+ },
5206
+ "orderBy": {
5207
+ "type": "string",
5208
+ "enum": [
5209
+ "createdAt",
5210
+ "timestamp"
5211
+ ],
5212
+ "description": "Newest first."
5213
+ },
5214
+ "type": {
5215
+ "type": "string",
5216
+ "description": "Exact stored message type token, e.g. text, image, voice."
5217
+ },
5218
+ "messageId": {
5219
+ "type": "string",
5220
+ "description": "Exact WhatsApp message reference; remains scoped to the session and chat."
5086
5221
  }
5087
5222
  },
5088
5223
  "additionalProperties": false
@@ -5165,7 +5300,8 @@ export const OPENWA_OPERATIONS = [
5165
5300
  "type": "object",
5166
5301
  "properties": {
5167
5302
  "chatId": {
5168
- "type": "string"
5303
+ "type": "string",
5304
+ "maxLength": 255
5169
5305
  },
5170
5306
  "messageId": {
5171
5307
  "type": "string"
@@ -5220,7 +5356,8 @@ export const OPENWA_OPERATIONS = [
5220
5356
  "type": "object",
5221
5357
  "properties": {
5222
5358
  "chatId": {
5223
- "type": "string"
5359
+ "type": "string",
5360
+ "maxLength": 255
5224
5361
  },
5225
5362
  "messageId": {
5226
5363
  "type": "string"
@@ -5272,7 +5409,8 @@ export const OPENWA_OPERATIONS = [
5272
5409
  "type": "object",
5273
5410
  "properties": {
5274
5411
  "chatId": {
5275
- "type": "string"
5412
+ "type": "string",
5413
+ "maxLength": 255
5276
5414
  },
5277
5415
  "quotedMessageId": {
5278
5416
  "type": "string"
@@ -5338,7 +5476,8 @@ export const OPENWA_OPERATIONS = [
5338
5476
  "properties": {
5339
5477
  "chatId": {
5340
5478
  "type": "string",
5341
- "description": "WhatsApp chat ID"
5479
+ "description": "WhatsApp chat ID",
5480
+ "maxLength": 255
5342
5481
  },
5343
5482
  "url": {
5344
5483
  "type": "string",
@@ -5419,7 +5558,8 @@ export const OPENWA_OPERATIONS = [
5419
5558
  "properties": {
5420
5559
  "batchId": {
5421
5560
  "type": "string",
5422
- "description": "Custom batch ID (auto-generated if not provided)"
5561
+ "description": "Custom batch ID (auto-generated if not provided)",
5562
+ "maxLength": 255
5423
5563
  },
5424
5564
  "messages": {
5425
5565
  "type": "array",
@@ -5430,7 +5570,8 @@ export const OPENWA_OPERATIONS = [
5430
5570
  "properties": {
5431
5571
  "chatId": {
5432
5572
  "type": "string",
5433
- "description": "Recipient chat ID"
5573
+ "description": "Recipient chat ID",
5574
+ "maxLength": 255
5434
5575
  },
5435
5576
  "type": {
5436
5577
  "type": "string",
@@ -5647,7 +5788,8 @@ export const OPENWA_OPERATIONS = [
5647
5788
  "type": "object",
5648
5789
  "properties": {
5649
5790
  "chatId": {
5650
- "type": "string"
5791
+ "type": "string",
5792
+ "maxLength": 255
5651
5793
  },
5652
5794
  "contactName": {
5653
5795
  "type": "string",
@@ -5708,7 +5850,8 @@ export const OPENWA_OPERATIONS = [
5708
5850
  "properties": {
5709
5851
  "chatId": {
5710
5852
  "type": "string",
5711
- "description": "WhatsApp chat ID"
5853
+ "description": "WhatsApp chat ID",
5854
+ "maxLength": 255
5712
5855
  },
5713
5856
  "url": {
5714
5857
  "type": "string",
@@ -5790,7 +5933,8 @@ export const OPENWA_OPERATIONS = [
5790
5933
  "properties": {
5791
5934
  "chatId": {
5792
5935
  "type": "string",
5793
- "description": "WhatsApp chat ID"
5936
+ "description": "WhatsApp chat ID",
5937
+ "maxLength": 255
5794
5938
  },
5795
5939
  "url": {
5796
5940
  "type": "string",
@@ -5870,7 +6014,8 @@ export const OPENWA_OPERATIONS = [
5870
6014
  "properties": {
5871
6015
  "chatId": {
5872
6016
  "type": "string",
5873
- "description": "Chat ID (e.g. 628123456789@c.us)"
6017
+ "description": "Chat ID (e.g. 628123456789@c.us)",
6018
+ "maxLength": 255
5874
6019
  },
5875
6020
  "latitude": {
5876
6021
  "type": "number"
@@ -5934,7 +6079,8 @@ export const OPENWA_OPERATIONS = [
5934
6079
  "properties": {
5935
6080
  "chatId": {
5936
6081
  "type": "string",
5937
- "description": "Chat ID (e.g. 628123456789@c.us or 1203630000@g.us)"
6082
+ "description": "Chat ID (e.g. 628123456789@c.us or 1203630000@g.us)",
6083
+ "maxLength": 255
5938
6084
  },
5939
6085
  "name": {
5940
6086
  "type": "string",
@@ -6006,7 +6152,8 @@ export const OPENWA_OPERATIONS = [
6006
6152
  "properties": {
6007
6153
  "chatId": {
6008
6154
  "type": "string",
6009
- "description": "WhatsApp chat ID"
6155
+ "description": "WhatsApp chat ID",
6156
+ "maxLength": 255
6010
6157
  },
6011
6158
  "url": {
6012
6159
  "type": "string",
@@ -6086,7 +6233,8 @@ export const OPENWA_OPERATIONS = [
6086
6233
  "properties": {
6087
6234
  "chatId": {
6088
6235
  "type": "string",
6089
- "description": "WhatsApp chat ID (phone@c.us for individual, groupId@g.us for groups)"
6236
+ "description": "WhatsApp chat ID (phone@c.us for individual, groupId@g.us for groups)",
6237
+ "maxLength": 255
6090
6238
  },
6091
6239
  "templateId": {
6092
6240
  "type": "string",
@@ -6156,7 +6304,8 @@ export const OPENWA_OPERATIONS = [
6156
6304
  "properties": {
6157
6305
  "chatId": {
6158
6306
  "type": "string",
6159
- "description": "WhatsApp chat ID (phone@c.us for individual, groupId@g.us for groups)"
6307
+ "description": "WhatsApp chat ID (phone@c.us for individual, groupId@g.us for groups)",
6308
+ "maxLength": 255
6160
6309
  },
6161
6310
  "text": {
6162
6311
  "type": "string",
@@ -6193,6 +6342,14 @@ export const OPENWA_OPERATIONS = [
6193
6342
  "type": "string",
6194
6343
  "description": "Preview description",
6195
6344
  "maxLength": 1024
6345
+ },
6346
+ "thumbnailUrl": {
6347
+ "type": "string",
6348
+ "description": "Preview image URL (http/https), fetched by the gateway under the same SSRF rules as a media URL."
6349
+ },
6350
+ "thumbnailBase64": {
6351
+ "type": "string",
6352
+ "description": "Preview image as base64, with or without a data: prefix."
6196
6353
  }
6197
6354
  },
6198
6355
  "required": [
@@ -6251,7 +6408,8 @@ export const OPENWA_OPERATIONS = [
6251
6408
  "properties": {
6252
6409
  "chatId": {
6253
6410
  "type": "string",
6254
- "description": "WhatsApp chat ID"
6411
+ "description": "WhatsApp chat ID",
6412
+ "maxLength": 255
6255
6413
  },
6256
6414
  "url": {
6257
6415
  "type": "string",
@@ -6327,7 +6485,8 @@ export const OPENWA_OPERATIONS = [
6327
6485
  "type": "object",
6328
6486
  "properties": {
6329
6487
  "chatId": {
6330
- "type": "string"
6488
+ "type": "string",
6489
+ "maxLength": 255
6331
6490
  },
6332
6491
  "messageId": {
6333
6492
  "type": "string"
@@ -6376,7 +6535,8 @@ export const OPENWA_OPERATIONS = [
6376
6535
  "type": "object",
6377
6536
  "properties": {
6378
6537
  "chatId": {
6379
- "type": "string"
6538
+ "type": "string",
6539
+ "maxLength": 255
6380
6540
  },
6381
6541
  "messageId": {
6382
6542
  "type": "string"
@@ -6420,7 +6580,8 @@ export const OPENWA_OPERATIONS = [
6420
6580
  "type": "object",
6421
6581
  "properties": {
6422
6582
  "chatId": {
6423
- "type": "string"
6583
+ "type": "string",
6584
+ "maxLength": 255
6424
6585
  },
6425
6586
  "pollMessageId": {
6426
6587
  "type": "string",
@@ -7260,6 +7421,7 @@ export const OPENWA_OPERATIONS = [
7260
7421
  "pathParams": [],
7261
7422
  "queryParams": [
7262
7423
  "q",
7424
+ "match",
7263
7425
  "chatId",
7264
7426
  "from",
7265
7427
  "direction",
@@ -7278,15 +7440,24 @@ export const OPENWA_OPERATIONS = [
7278
7440
  "properties": {
7279
7441
  "q": {
7280
7442
  "type": "string",
7281
- "description": "Search term (required, non-empty)"
7443
+ "maxLength": 1000,
7444
+ "description": "Search term (required, non-empty, at most 1000 characters and 32 words, no NUL character)"
7445
+ },
7446
+ "match": {
7447
+ "type": "string",
7448
+ "enum": [
7449
+ "word",
7450
+ "contains"
7451
+ ],
7452
+ "description": "word (default): whole words. contains: any part of a word, ignoring case and accents; ranks the 1000 most recently stored matches by match quality; needs…"
7282
7453
  },
7283
7454
  "chatId": {
7284
7455
  "type": "string",
7285
- "description": "Restrict to a single chat id"
7456
+ "description": "Restrict to a single chat id."
7286
7457
  },
7287
7458
  "from": {
7288
7459
  "type": "string",
7289
- "description": "Sender filter"
7460
+ "description": "Sender filter."
7290
7461
  },
7291
7462
  "direction": {
7292
7463
  "type": "string",
@@ -7302,10 +7473,14 @@ export const OPENWA_OPERATIONS = [
7302
7473
  },
7303
7474
  "dateFrom": {
7304
7475
  "type": "number",
7476
+ "minimum": -9007199254740991,
7477
+ "maximum": 9007199254740991,
7305
7478
  "description": "Epoch-ms lower bound (inclusive)"
7306
7479
  },
7307
7480
  "dateTo": {
7308
7481
  "type": "number",
7482
+ "minimum": -9007199254740991,
7483
+ "maximum": 9007199254740991,
7309
7484
  "description": "Epoch-ms upper bound (inclusive)"
7310
7485
  },
7311
7486
  "limit": {
@@ -7358,7 +7533,8 @@ export const OPENWA_OPERATIONS = [
7358
7533
  "properties": {
7359
7534
  "chatId": {
7360
7535
  "type": "string",
7361
- "description": "Chat ID in the active engine's native format (e.g. 1234567890-123@g.us on whatsapp-web.js)"
7536
+ "description": "Chat ID in the neutral form the gateway returns, on either engine (e.g. 1234567890-123@g.us)",
7537
+ "maxLength": 255
7362
7538
  },
7363
7539
  "archive": {
7364
7540
  "type": "boolean",
@@ -7537,7 +7713,8 @@ export const OPENWA_OPERATIONS = [
7537
7713
  "properties": {
7538
7714
  "chatId": {
7539
7715
  "type": "string",
7540
- "description": "Chat ID in the active engine's native format (e.g. 1234567890-123@g.us on whatsapp-web.js)"
7716
+ "description": "Chat ID in the neutral form the gateway returns, on either engine (e.g. 1234567890-123@g.us)",
7717
+ "maxLength": 255
7541
7718
  }
7542
7719
  },
7543
7720
  "additionalProperties": false,
@@ -7578,11 +7755,11 @@ export const OPENWA_OPERATIONS = [
7578
7755
  "type": "object",
7579
7756
  "properties": {
7580
7757
  "limit": {
7581
- "type": "string",
7758
+ "type": "integer",
7582
7759
  "description": "Max sessions to return (1-1000, default 1000)"
7583
7760
  },
7584
7761
  "offset": {
7585
- "type": "string",
7762
+ "type": "integer",
7586
7763
  "description": "Number of sessions to skip (for paging)"
7587
7764
  },
7588
7765
  "name": {
@@ -7684,11 +7861,11 @@ export const OPENWA_OPERATIONS = [
7684
7861
  "type": "object",
7685
7862
  "properties": {
7686
7863
  "limit": {
7687
- "type": "string",
7688
- "description": "Max chats to return (1–1000, default 1000)"
7864
+ "type": "integer",
7865
+ "description": "Max chats to return (1-1000, default 1000)"
7689
7866
  },
7690
7867
  "offset": {
7691
- "type": "string",
7868
+ "type": "integer",
7692
7869
  "description": "Number of chats to skip (for paging)"
7693
7870
  }
7694
7871
  },
@@ -7756,11 +7933,11 @@ export const OPENWA_OPERATIONS = [
7756
7933
  "type": "object",
7757
7934
  "properties": {
7758
7935
  "limit": {
7759
- "type": "string",
7760
- "description": "Max groups to return (1–1000, default 1000)"
7936
+ "type": "integer",
7937
+ "description": "Max groups to return (1-1000, default 1000)"
7761
7938
  },
7762
7939
  "offset": {
7763
- "type": "string",
7940
+ "type": "integer",
7764
7941
  "description": "Number of groups to skip (for paging)"
7765
7942
  }
7766
7943
  },
@@ -7959,7 +8136,8 @@ export const OPENWA_OPERATIONS = [
7959
8136
  "properties": {
7960
8137
  "chatId": {
7961
8138
  "type": "string",
7962
- "description": "Chat ID in the active engine's native format (e.g. 1234567890@c.us on whatsapp-web.js)"
8139
+ "description": "Chat ID in the neutral form the gateway returns, on either engine (e.g. 1234567890@c.us)",
8140
+ "maxLength": 255
7963
8141
  },
7964
8142
  "messageIds": {
7965
8143
  "type": "array",
@@ -8008,7 +8186,8 @@ export const OPENWA_OPERATIONS = [
8008
8186
  "properties": {
8009
8187
  "chatId": {
8010
8188
  "type": "string",
8011
- "description": "Chat ID in the active engine's native format (e.g. 1234567890@c.us on whatsapp-web.js)"
8189
+ "description": "Chat ID in the neutral form the gateway returns, on either engine (e.g. 1234567890@c.us)",
8190
+ "maxLength": 255
8012
8191
  }
8013
8192
  },
8014
8193
  "additionalProperties": false,
@@ -8049,7 +8228,8 @@ export const OPENWA_OPERATIONS = [
8049
8228
  "properties": {
8050
8229
  "chatId": {
8051
8230
  "type": "string",
8052
- "description": "Chat ID in the active engine's native format (e.g. 1234567890-123@g.us on whatsapp-web.js)"
8231
+ "description": "Chat ID in the neutral form the gateway returns, on either engine (e.g. 1234567890-123@g.us)",
8232
+ "maxLength": 255
8053
8233
  },
8054
8234
  "muteUntil": {
8055
8235
  "type": [
@@ -8057,7 +8237,8 @@ export const OPENWA_OPERATIONS = [
8057
8237
  "null"
8058
8238
  ],
8059
8239
  "description": "Absolute epoch-MILLISECONDS timestamp at which the mute expires, or `null` to unmute now.",
8060
- "minimum": 1
8240
+ "minimum": 1,
8241
+ "maximum": 9007199254740991
8061
8242
  }
8062
8243
  },
8063
8244
  "additionalProperties": false,
@@ -8099,7 +8280,8 @@ export const OPENWA_OPERATIONS = [
8099
8280
  "properties": {
8100
8281
  "chatId": {
8101
8282
  "type": "string",
8102
- "description": "Chat ID in the active engine's native format (e.g. 1234567890-123@g.us on whatsapp-web.js)"
8283
+ "description": "Chat ID in the neutral form the gateway returns, on either engine (e.g. 1234567890-123@g.us)",
8284
+ "maxLength": 255
8103
8285
  },
8104
8286
  "pin": {
8105
8287
  "type": "boolean",
@@ -8186,7 +8368,8 @@ export const OPENWA_OPERATIONS = [
8186
8368
  "properties": {
8187
8369
  "chatId": {
8188
8370
  "type": "string",
8189
- "description": "Chat ID, in the active engine's native format (e.g. 1234567890@c.us)"
8371
+ "description": "Chat ID in the neutral form the gateway returns, on either engine (e.g. 1234567890@c.us)",
8372
+ "maxLength": 255
8190
8373
  },
8191
8374
  "state": {
8192
8375
  "type": "string",
@@ -8335,7 +8518,8 @@ export const OPENWA_OPERATIONS = [
8335
8518
  "properties": {
8336
8519
  "chatId": {
8337
8520
  "type": "string",
8338
- "description": "Chat ID in the active engine's native format (e.g. 1234567890@c.us on whatsapp-web.js)"
8521
+ "description": "Chat ID in the neutral form the gateway returns, on either engine (e.g. 1234567890@c.us)",
8522
+ "maxLength": 255
8339
8523
  }
8340
8524
  },
8341
8525
  "additionalProperties": false,
@@ -8411,7 +8595,7 @@ export const OPENWA_OPERATIONS = [
8411
8595
  "tag": "sessions",
8412
8596
  "summary": "Update the per-session egress proxy configuration",
8413
8597
  "category": "gateway_admin",
8414
- "requiredRole": "operator",
8598
+ "requiredRole": "admin",
8415
8599
  "requiresUnscopedKey": true,
8416
8600
  "auth": "api_key",
8417
8601
  "sessionScoped": true,
@@ -9280,7 +9464,7 @@ export const OPENWA_OPERATIONS = [
9280
9464
  },
9281
9465
  "events": {
9282
9466
  "type": "array",
9283
- "description": "Event types to subscribe to. '*' subscribes to all events.",
9467
+ "description": "Event types to subscribe to. '*' subscribes to all events except `message.receipt`, which must be named explicitly.",
9284
9468
  "minItems": 1,
9285
9469
  "items": {
9286
9470
  "type": "string",
@@ -9288,6 +9472,7 @@ export const OPENWA_OPERATIONS = [
9288
9472
  "message.received",
9289
9473
  "message.sent",
9290
9474
  "message.ack",
9475
+ "message.receipt",
9291
9476
  "message.failed",
9292
9477
  "message.revoked",
9293
9478
  "message.reaction",
@@ -9300,6 +9485,8 @@ export const OPENWA_OPERATIONS = [
9300
9485
  "session.reconnect_loop",
9301
9486
  "session.restriction",
9302
9487
  "presence.update",
9488
+ "event.response",
9489
+ "poll.vote",
9303
9490
  "group.join",
9304
9491
  "group.leave",
9305
9492
  "group.update",
@@ -9598,7 +9785,7 @@ export const OPENWA_OPERATIONS = [
9598
9785
  },
9599
9786
  "events": {
9600
9787
  "type": "array",
9601
- "description": "Event types to subscribe to. '*' subscribes to all events.",
9788
+ "description": "Event types to subscribe to. '*' subscribes to all events except `message.receipt`, which must be named explicitly.",
9602
9789
  "minItems": 1,
9603
9790
  "items": {
9604
9791
  "type": "string",
@@ -9606,6 +9793,7 @@ export const OPENWA_OPERATIONS = [
9606
9793
  "message.received",
9607
9794
  "message.sent",
9608
9795
  "message.ack",
9796
+ "message.receipt",
9609
9797
  "message.failed",
9610
9798
  "message.revoked",
9611
9799
  "message.reaction",
@@ -9618,6 +9806,8 @@ export const OPENWA_OPERATIONS = [
9618
9806
  "session.reconnect_loop",
9619
9807
  "session.restriction",
9620
9808
  "presence.update",
9809
+ "event.response",
9810
+ "poll.vote",
9621
9811
  "group.join",
9622
9812
  "group.leave",
9623
9813
  "group.update",
@@ -9752,11 +9942,11 @@ export const OPENWA_OPERATIONS = [
9752
9942
  "type": "object",
9753
9943
  "properties": {
9754
9944
  "limit": {
9755
- "type": "string",
9945
+ "type": "integer",
9756
9946
  "description": "Max records to return (1-1000, default 1000)"
9757
9947
  },
9758
9948
  "offset": {
9759
- "type": "string",
9949
+ "type": "integer",
9760
9950
  "description": "Number of records to skip (for paging)"
9761
9951
  }
9762
9952
  },
@@ -9794,16 +9984,70 @@ export const OPENWA_OPERATIONS = [
9794
9984
  "type": "object",
9795
9985
  "properties": {
9796
9986
  "limit": {
9797
- "type": "string",
9987
+ "type": "integer",
9798
9988
  "description": "Max webhooks to return (1-1000, default 1000)"
9799
9989
  },
9800
9990
  "offset": {
9801
- "type": "string",
9991
+ "type": "integer",
9802
9992
  "description": "Number of webhooks to skip (for paging)"
9803
9993
  }
9804
9994
  },
9805
9995
  "additionalProperties": false
9806
9996
  }
9997
+ },
9998
+ {
9999
+ "id": "WebhooksListController_redriveDeliveryFailures",
10000
+ "method": "POST",
10001
+ "path": "/api/webhooks/delivery-failures/redrive",
10002
+ "tag": "webhooks",
10003
+ "summary": "Replay recorded webhook deliveries that still hold their event data",
10004
+ "category": "gateway_admin",
10005
+ "requiredRole": "admin",
10006
+ "requiresUnscopedKey": false,
10007
+ "auth": "api_key",
10008
+ "sessionScoped": false,
10009
+ "sessionParam": "body",
10010
+ "targetChatArg": null,
10011
+ "sendsMessage": false,
10012
+ "engines": [
10013
+ "whatsapp-web.js",
10014
+ "baileys"
10015
+ ],
10016
+ "pathParams": [],
10017
+ "queryParams": [],
10018
+ "bodyParams": [
10019
+ "webhookId",
10020
+ "ids",
10021
+ "limit"
10022
+ ],
10023
+ "fileParams": [],
10024
+ "bodyMode": "json",
10025
+ "response": "json",
10026
+ "args": {
10027
+ "type": "object",
10028
+ "properties": {
10029
+ "webhookId": {
10030
+ "type": "string",
10031
+ "description": "Only rows of this webhook."
10032
+ },
10033
+ "ids": {
10034
+ "type": "array",
10035
+ "description": "Only these failure rows (ids from `GET /webhooks/delivery-failures`).",
10036
+ "maxItems": 500,
10037
+ "items": {
10038
+ "type": "string",
10039
+ "maxLength": 128
10040
+ }
10041
+ },
10042
+ "limit": {
10043
+ "type": "number",
10044
+ "description": "Max rows replayed by this call (1-500, default 100).",
10045
+ "minimum": 1,
10046
+ "maximum": 500
10047
+ }
10048
+ },
10049
+ "additionalProperties": false
10050
+ }
9807
10051
  }
9808
10052
  ];
9809
10053
  //# sourceMappingURL=openwa-operations.js.map