offline-protocol-sdk 0.28.0__py3-none-win_amd64.whl
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.
- offline_protocol_sdk/__init__.py +22 -0
- offline_protocol_sdk/_callback_reentrancy.py +64 -0
- offline_protocol_sdk/address_declaration.py +207 -0
- offline_protocol_sdk/ble_manager.py +595 -0
- offline_protocol_sdk/ble_peripheral.py +673 -0
- offline_protocol_sdk/dnssd_bridge.py +614 -0
- offline_protocol_sdk/gateway_attach_policy.py +437 -0
- offline_protocol_sdk/gateway_manager.py +1217 -0
- offline_protocol_sdk/gateway_verdict_tracker.py +97 -0
- offline_protocol_sdk/internet_manager.py +1444 -0
- offline_protocol_sdk/legacy_store_adoption.py +184 -0
- offline_protocol_sdk/local_api/__init__.py +34 -0
- offline_protocol_sdk/local_api/authz.py +180 -0
- offline_protocol_sdk/local_api/cli.py +171 -0
- offline_protocol_sdk/local_api/codec.py +210 -0
- offline_protocol_sdk/local_api/dispatch.py +537 -0
- offline_protocol_sdk/local_api/mux.py +239 -0
- offline_protocol_sdk/local_api/server.py +546 -0
- offline_protocol_sdk/local_api/session.py +86 -0
- offline_protocol_sdk/local_api/table.py +849 -0
- offline_protocol_sdk/offline_protocol.py +13508 -0
- offline_protocol_sdk/peer_stream_manager.py +1303 -0
- offline_protocol_sdk/presence_watch_policy.py +102 -0
- offline_protocol_sdk/protocol_manager.py +1108 -0
- offline_protocol_sdk/relay_answer_prefixes.py +61 -0
- offline_protocol_sdk/secure_storage.py +551 -0
- offline_protocol_sdk/services.py +195 -0
- offline_protocol_sdk/state_storage.py +452 -0
- offline_protocol_sdk/storage_namespace.py +33 -0
- offline_protocol_sdk/transport_manager.py +138 -0
- offline_protocol_sdk/uniffi.dll +0 -0
- offline_protocol_sdk-0.28.0.dist-info/METADATA +519 -0
- offline_protocol_sdk-0.28.0.dist-info/RECORD +40 -0
- offline_protocol_sdk-0.28.0.dist-info/WHEEL +5 -0
- offline_protocol_sdk-0.28.0.dist-info/entry_points.txt +2 -0
- offline_protocol_sdk-0.28.0.dist-info/licenses/EXPORT.md +68 -0
- offline_protocol_sdk-0.28.0.dist-info/licenses/LICENSE +661 -0
- offline_protocol_sdk-0.28.0.dist-info/licenses/LICENSE-COMMERCIAL.md +89 -0
- offline_protocol_sdk-0.28.0.dist-info/licenses/THIRD-PARTY-NOTICES.md +6645 -0
- offline_protocol_sdk-0.28.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,849 @@
|
|
|
1
|
+
"""The interface definition as data, generated. Do not edit.
|
|
2
|
+
|
|
3
|
+
Written by ``bindings/python/scripts/generate_local_api_table.py`` from
|
|
4
|
+
``crates/offline-protocol-uniffi/src/offline_protocol.udl``. A test
|
|
5
|
+
regenerates it in memory and fails when this file is stale, so every
|
|
6
|
+
change to the definition reaches the reference server as a diff here
|
|
7
|
+
and a classification in ``dispatch.py``.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
UDL_SHA256 = "db1022f43254c9843ac4164e4993169e1d4886901be23f1340d6aed5652e43bc"
|
|
13
|
+
|
|
14
|
+
TABLE = {'callbacks': ('MlsStorageProvider',
|
|
15
|
+
'ProtocolStateStorageProvider',
|
|
16
|
+
'EventCallback',
|
|
17
|
+
'BleTransportCallback',
|
|
18
|
+
'WifiDirectTransportCallback',
|
|
19
|
+
'ReticulumTransportCallback',
|
|
20
|
+
'NostrTransportCallback'),
|
|
21
|
+
'enums': {'AppState': ('Active', 'Background', 'Inactive'),
|
|
22
|
+
'ContentType': ('Text',
|
|
23
|
+
'Image',
|
|
24
|
+
'Video',
|
|
25
|
+
'Audio',
|
|
26
|
+
'VoiceNote',
|
|
27
|
+
'VideoNote',
|
|
28
|
+
'File',
|
|
29
|
+
'FileChunk',
|
|
30
|
+
'Poll'),
|
|
31
|
+
'EstablishmentState': ('NoKeyPackage',
|
|
32
|
+
'HaveKeyPackage',
|
|
33
|
+
'SessionPending',
|
|
34
|
+
'SessionConfirmed'),
|
|
35
|
+
'MessagePriority': ('Low', 'Medium', 'High', 'Critical'),
|
|
36
|
+
'MlsVerbosity': ('Off', 'Lifecycle', 'Diagnostic'),
|
|
37
|
+
'OverflowPolicy': ('DropOldest', 'DropNewest'),
|
|
38
|
+
'PresenceStatus': ('Online', 'Away', 'Offline'),
|
|
39
|
+
'ProtocolState': ('Stopped', 'Running', 'Paused'),
|
|
40
|
+
'RelayPriority': ('Never', 'Auto', 'Always'),
|
|
41
|
+
'RelaySyncState': ('Synced', 'Pending', 'Unsynced'),
|
|
42
|
+
'TelemetryOs': ('Ios', 'Android', 'Linux', 'Macos', 'Windows', 'Other'),
|
|
43
|
+
'TransportType': ('Internet', 'Ble', 'WiFiDirect', 'Reticulum', 'Nostr')},
|
|
44
|
+
'errors': {'MlsStorageError': ('StoreFailed',
|
|
45
|
+
'LoadFailed',
|
|
46
|
+
'DeleteFailed',
|
|
47
|
+
'KeyNotFound',
|
|
48
|
+
'CorruptedData'),
|
|
49
|
+
'ProtocolError': ('NotStarted',
|
|
50
|
+
'AlreadyStarted',
|
|
51
|
+
'InvalidConfiguration',
|
|
52
|
+
'SendFailed',
|
|
53
|
+
'NoKeyPackage',
|
|
54
|
+
'SessionNotReady',
|
|
55
|
+
'EncryptFailed',
|
|
56
|
+
'InvalidState',
|
|
57
|
+
'MlsNotInitialized',
|
|
58
|
+
'MlsError',
|
|
59
|
+
'UserBlocked',
|
|
60
|
+
'MediaTransferLimit',
|
|
61
|
+
'LockPoisoned',
|
|
62
|
+
'Other',
|
|
63
|
+
'TransportError',
|
|
64
|
+
'SerializationError',
|
|
65
|
+
'ServiceError',
|
|
66
|
+
'GroupNotFound',
|
|
67
|
+
'PermissionDenied',
|
|
68
|
+
'InvalidArgument',
|
|
69
|
+
'DataDisabled',
|
|
70
|
+
'DataStorageUnavailable',
|
|
71
|
+
'DocTooLarge',
|
|
72
|
+
'DataCorrupted',
|
|
73
|
+
'TelemetryConfigInvalid')},
|
|
74
|
+
'methods': {'DataStore': {'attachment_hash': ((('data', 'bytes'),), 'string'),
|
|
75
|
+
'constructor': ((('protocol', 'OfflineProtocol'),), 'object'),
|
|
76
|
+
'counter_increment': ((('space_id', 'string'),
|
|
77
|
+
('doc_id', 'string'),
|
|
78
|
+
('collection', 'string'),
|
|
79
|
+
('amount', 'double')),
|
|
80
|
+
'void'),
|
|
81
|
+
'counter_value': ((('space_id', 'string'),
|
|
82
|
+
('doc_id', 'string'),
|
|
83
|
+
('collection', 'string')),
|
|
84
|
+
'double'),
|
|
85
|
+
'create_doc': ((('space_id', 'string'), ('doc_id', 'string')), 'void'),
|
|
86
|
+
'decline_attachment': ((('space_id', 'string'),
|
|
87
|
+
('peer_id', 'string'),
|
|
88
|
+
('hash', 'string')),
|
|
89
|
+
'void'),
|
|
90
|
+
'delete_doc': ((('space_id', 'string'), ('doc_id', 'string')), 'void'),
|
|
91
|
+
'doc_json': ((('space_id', 'string'), ('doc_id', 'string')), 'string'),
|
|
92
|
+
'doc_size': ((('space_id', 'string'), ('doc_id', 'string')), 'u64'),
|
|
93
|
+
'export_raw': ((('space_id', 'string'), ('doc_id', 'string')), 'bytes'),
|
|
94
|
+
'fetch_attachment': ((('space_id', 'string'), ('hash', 'string')),
|
|
95
|
+
'void'),
|
|
96
|
+
'fetch_attachment_from': ((('space_id', 'string'),
|
|
97
|
+
('peer_id', 'string'),
|
|
98
|
+
('hash', 'string')),
|
|
99
|
+
'void'),
|
|
100
|
+
'flush': ((('space_id', 'string'), ('doc_id', 'string')), 'void'),
|
|
101
|
+
'flush_all': ((), 'void'),
|
|
102
|
+
'list_delete': ((('space_id', 'string'),
|
|
103
|
+
('doc_id', 'string'),
|
|
104
|
+
('collection', 'string'),
|
|
105
|
+
('index', 'u32'),
|
|
106
|
+
('count', 'u32')),
|
|
107
|
+
'void'),
|
|
108
|
+
'list_docs': ((('space_id', 'string'),), 'sequence<string>'),
|
|
109
|
+
'list_len': ((('space_id', 'string'),
|
|
110
|
+
('doc_id', 'string'),
|
|
111
|
+
('collection', 'string')),
|
|
112
|
+
'u32'),
|
|
113
|
+
'list_push': ((('space_id', 'string'),
|
|
114
|
+
('doc_id', 'string'),
|
|
115
|
+
('collection', 'string'),
|
|
116
|
+
('value_json', 'string')),
|
|
117
|
+
'void'),
|
|
118
|
+
'list_spaces': ((), 'sequence<string>'),
|
|
119
|
+
'map_delete': ((('space_id', 'string'),
|
|
120
|
+
('doc_id', 'string'),
|
|
121
|
+
('collection', 'string'),
|
|
122
|
+
('key', 'string')),
|
|
123
|
+
'void'),
|
|
124
|
+
'map_get_json': ((('space_id', 'string'),
|
|
125
|
+
('doc_id', 'string'),
|
|
126
|
+
('collection', 'string'),
|
|
127
|
+
('key', 'string')),
|
|
128
|
+
'string?'),
|
|
129
|
+
'map_set': ((('space_id', 'string'),
|
|
130
|
+
('doc_id', 'string'),
|
|
131
|
+
('collection', 'string'),
|
|
132
|
+
('key', 'string'),
|
|
133
|
+
('value_json', 'string')),
|
|
134
|
+
'void'),
|
|
135
|
+
'provide_attachment': ((('space_id', 'string'),
|
|
136
|
+
('peer_id', 'string'),
|
|
137
|
+
('hash', 'string'),
|
|
138
|
+
('data', 'bytes')),
|
|
139
|
+
'void'),
|
|
140
|
+
'remove_doc': ((('space_id', 'string'), ('doc_id', 'string')), 'void'),
|
|
141
|
+
'remove_space': ((('space_id', 'string'),), 'void'),
|
|
142
|
+
'set_interest': ((('space_id', 'string'),
|
|
143
|
+
('patterns', 'sequence<string>')),
|
|
144
|
+
'void'),
|
|
145
|
+
'text_delete': ((('space_id', 'string'),
|
|
146
|
+
('doc_id', 'string'),
|
|
147
|
+
('collection', 'string'),
|
|
148
|
+
('position', 'u32'),
|
|
149
|
+
('count', 'u32')),
|
|
150
|
+
'void'),
|
|
151
|
+
'text_insert': ((('space_id', 'string'),
|
|
152
|
+
('doc_id', 'string'),
|
|
153
|
+
('collection', 'string'),
|
|
154
|
+
('position', 'u32'),
|
|
155
|
+
('text', 'string')),
|
|
156
|
+
'void'),
|
|
157
|
+
'text_value': ((('space_id', 'string'),
|
|
158
|
+
('doc_id', 'string'),
|
|
159
|
+
('collection', 'string')),
|
|
160
|
+
'string'),
|
|
161
|
+
'wipe_all': ((), 'void'),
|
|
162
|
+
'with_storage': ((('protocol', 'OfflineProtocol'),
|
|
163
|
+
('storage', 'ProtocolStateStorageProvider')),
|
|
164
|
+
'object')},
|
|
165
|
+
'MeshServices': {'constructor': ((('protocol', 'OfflineProtocol'),), 'object'),
|
|
166
|
+
'discover_services': ((('service_id', 'string?'),), 'string'),
|
|
167
|
+
'register_service': ((('service_id', 'string'),
|
|
168
|
+
('version', 'string'),
|
|
169
|
+
('capabilities', 'record<DOMString,string>')),
|
|
170
|
+
'void'),
|
|
171
|
+
'respond_to_service_request': ((('request_id', 'string'),
|
|
172
|
+
('requester', 'string'),
|
|
173
|
+
('service_id', 'string'),
|
|
174
|
+
('status', 'string'),
|
|
175
|
+
('body', 'string')),
|
|
176
|
+
'string'),
|
|
177
|
+
'send_service_request': ((('provider', 'string'),
|
|
178
|
+
('service_id', 'string'),
|
|
179
|
+
('method', 'string'),
|
|
180
|
+
('body', 'string')),
|
|
181
|
+
'string'),
|
|
182
|
+
'unregister_service': ((('service_id', 'string'),), 'boolean')},
|
|
183
|
+
'OfflineProtocol': {'accept_connection_request': ((('recipient', 'string'),
|
|
184
|
+
('accepter_name', 'string'),
|
|
185
|
+
('key_package', 'sequence<u8>?')),
|
|
186
|
+
'string'),
|
|
187
|
+
'ble_clear_peer_mtu': ((('peer_id', 'string'),), 'void'),
|
|
188
|
+
'ble_fragment_fallback_count': ((), 'u64'),
|
|
189
|
+
'ble_fragment_received': ((('sender_id', 'string'),
|
|
190
|
+
('fragment', 'sequence<u8>')),
|
|
191
|
+
'void'),
|
|
192
|
+
'ble_get_next_fragment': ((), 'BleFragment?'),
|
|
193
|
+
'ble_get_peer_count': ((), 'u32'),
|
|
194
|
+
'ble_peer_discovered': ((('peer_id', 'string'), ('rssi', 'i16')),
|
|
195
|
+
'void'),
|
|
196
|
+
'ble_peer_lost': ((('peer_id', 'string'),), 'void'),
|
|
197
|
+
'ble_recipient_not_among_peers_count': ((), 'u64'),
|
|
198
|
+
'ble_return_fragment': ((), 'void'),
|
|
199
|
+
'ble_set_peer_mtu': ((('peer_id', 'string'),
|
|
200
|
+
('max_payload', 'u32')),
|
|
201
|
+
'void'),
|
|
202
|
+
'ble_status_changed': ((('is_available', 'boolean'),), 'void'),
|
|
203
|
+
'ble_undersized_mtu_reports': ((), 'u64'),
|
|
204
|
+
'block_user': ((('user_id', 'string'),), 'void'),
|
|
205
|
+
'cancel_connection_request': ((('recipient', 'string'),),
|
|
206
|
+
'string'),
|
|
207
|
+
'cancel_file_transfer': ((('file_id', 'string'),), 'void'),
|
|
208
|
+
'close_file_stores': ((), 'void'),
|
|
209
|
+
'constructor': ((('config', 'ProtocolConfig'),), 'object'),
|
|
210
|
+
'create_group': ((('group_name', 'string'),), 'MlsGroupInfo'),
|
|
211
|
+
'create_invite': ((('petname', 'string?'), ('sign', 'boolean')),
|
|
212
|
+
'string'),
|
|
213
|
+
'derive_user_id_from_public_key': ((('public_key',
|
|
214
|
+
'sequence<u8>'),),
|
|
215
|
+
'string'),
|
|
216
|
+
'disable_telemetry': ((), 'void'),
|
|
217
|
+
'emit_test_event': ((), 'void'),
|
|
218
|
+
'enable_telemetry': ((('config', 'TelemetryConfig'),
|
|
219
|
+
('app_state', 'AppState')),
|
|
220
|
+
'void'),
|
|
221
|
+
'end_telemetry_session': ((), 'void'),
|
|
222
|
+
'erase_custody': ((), 'void'),
|
|
223
|
+
'establish_secure_session': ((('peer_id', 'string'),),
|
|
224
|
+
'MlsWelcomeMessage?'),
|
|
225
|
+
'finalize_file': ((('file_id', 'string'),), 'void'),
|
|
226
|
+
'flush_telemetry': ((), 'void'),
|
|
227
|
+
'flush_telemetry_blocking': ((('deadline_ms', 'u64'),), 'boolean'),
|
|
228
|
+
'force_transport': ((('transport_type', 'TransportType'),),
|
|
229
|
+
'void'),
|
|
230
|
+
'forward_message': ((('original_message_json', 'string'),
|
|
231
|
+
('new_recipient', 'string'),
|
|
232
|
+
('priority', 'MessagePriority?')),
|
|
233
|
+
'string'),
|
|
234
|
+
'forward_message_to_group': ((('original_message_json', 'string'),
|
|
235
|
+
('group_id', 'string'),
|
|
236
|
+
('priority', 'MessagePriority?')),
|
|
237
|
+
'sequence<string>'),
|
|
238
|
+
'gateway_address_declaration': ((('challenge', 'sequence<u8>'),),
|
|
239
|
+
'GatewayAddressDeclaration'),
|
|
240
|
+
'get_active_transports': ((), 'sequence<string>'),
|
|
241
|
+
'get_battery_level': ((), 'u8?'),
|
|
242
|
+
'get_blocked_users': ((), 'sequence<string>'),
|
|
243
|
+
'get_custody_stats': ((), 'CustodyStats'),
|
|
244
|
+
'get_dedup_stats': ((), 'DedupStats'),
|
|
245
|
+
'get_delivery_success_rate': ((), 'f32'),
|
|
246
|
+
'get_dors_config': ((), 'DorsConfig'),
|
|
247
|
+
'get_establishment_state': ((('peer_id', 'string'),),
|
|
248
|
+
'EstablishmentState'),
|
|
249
|
+
'get_file_progress': ((('file_id', 'string'),), 'FileProgress?'),
|
|
250
|
+
'get_group_info': ((('group_id', 'string'),), 'MlsGroupInfo?'),
|
|
251
|
+
'get_group_roles': ((('group_id', 'string'),),
|
|
252
|
+
'record<DOMString,string>'),
|
|
253
|
+
'get_identity_public_key': ((), 'sequence<u8>'),
|
|
254
|
+
'get_is_charging': ((), 'boolean'),
|
|
255
|
+
'get_median_hops': ((), 'u8'),
|
|
256
|
+
'get_median_latency': ((), 'u64'),
|
|
257
|
+
'get_member_role': ((('group_id', 'string'),
|
|
258
|
+
('user_id', 'string')),
|
|
259
|
+
'string'),
|
|
260
|
+
'get_mesh_relay_stats': ((), 'MeshRelayStats'),
|
|
261
|
+
'get_mesh_relay_tunables': ((), 'MeshRelayTunables'),
|
|
262
|
+
'get_message_stats': ((), 'sequence<MessageStats>'),
|
|
263
|
+
'get_pending_ack_count': ((), 'u64'),
|
|
264
|
+
'get_relay_config': ((), 'RelayConfig'),
|
|
265
|
+
'get_relay_priority': ((), 'RelayPriority'),
|
|
266
|
+
'get_retry_queue_size': ((), 'u64'),
|
|
267
|
+
'get_state': ((), 'ProtocolState'),
|
|
268
|
+
'get_topology': ((), 'NetworkTopology'),
|
|
269
|
+
'get_transport_metrics': ((('transport_type', 'TransportType'),),
|
|
270
|
+
'TransportMetrics?'),
|
|
271
|
+
'group_relay_sync_state': ((('group_id', 'string'),),
|
|
272
|
+
'RelaySyncState'),
|
|
273
|
+
'group_rich_readiness': ((('group_id', 'string'),),
|
|
274
|
+
'GroupRichReadiness'),
|
|
275
|
+
'has_pending_key_package': ((('peer_id', 'string'),), 'boolean'),
|
|
276
|
+
'identity_assertion': ((('signed_data', 'sequence<u8>'),),
|
|
277
|
+
'sequence<u8>'),
|
|
278
|
+
'initialize_mls': ((('secure_storage', 'MlsStorageProvider'),
|
|
279
|
+
('protocol_state_storage',
|
|
280
|
+
'ProtocolStateStorageProvider')),
|
|
281
|
+
'void'),
|
|
282
|
+
'initialize_mls_with_file_stores': ((('mls_root', 'string'),
|
|
283
|
+
('state_root', 'string'),
|
|
284
|
+
('store_key', 'bytes')),
|
|
285
|
+
'void'),
|
|
286
|
+
'internet_address_declaration_refused': ((('reason', 'string'),),
|
|
287
|
+
'void'),
|
|
288
|
+
'internet_address_declared': ((('address', 'string'),), 'void'),
|
|
289
|
+
'internet_confirm_sent': ((('message_id', 'string'),), 'void'),
|
|
290
|
+
'internet_get_next_message': ((), 'InternetMessage?'),
|
|
291
|
+
'internet_group_report_received': ((('report_json', 'string'),),
|
|
292
|
+
'void'),
|
|
293
|
+
'internet_message_received': ((('sender_id', 'string'),
|
|
294
|
+
('data', 'sequence<u8>')),
|
|
295
|
+
'void'),
|
|
296
|
+
'internet_peer_presence': ((('peer_id', 'string'),
|
|
297
|
+
('online', 'boolean'),
|
|
298
|
+
('last_seen_ms', 'i64?')),
|
|
299
|
+
'void'),
|
|
300
|
+
'internet_presence_watchlist': ((), 'sequence<string>'),
|
|
301
|
+
'internet_relay_capabilities': ((('capabilities',
|
|
302
|
+
'sequence<string>'),),
|
|
303
|
+
'void'),
|
|
304
|
+
'internet_send_failed': ((('message_id', 'string'),), 'void'),
|
|
305
|
+
'internet_send_failed_with_reason': ((('message_id', 'string'),
|
|
306
|
+
('reason', 'string?')),
|
|
307
|
+
'void'),
|
|
308
|
+
'internet_status_changed': ((('is_connected', 'boolean'),),
|
|
309
|
+
'void'),
|
|
310
|
+
'invite_to_group': ((('group_id', 'string'),
|
|
311
|
+
('invitee_user_id', 'string')),
|
|
312
|
+
'void'),
|
|
313
|
+
'is_mls_initialized': ((), 'boolean'),
|
|
314
|
+
'is_relay': ((), 'boolean'),
|
|
315
|
+
'is_user_blocked': ((('user_id', 'string'),), 'boolean'),
|
|
316
|
+
'leave_group': ((('group_id', 'string'),), 'void'),
|
|
317
|
+
'list_groups': ((), 'sequence<string>'),
|
|
318
|
+
'local_address': ((), 'string?'),
|
|
319
|
+
'mls_clear_pending_welcome': ((('other_user_id', 'string'),),
|
|
320
|
+
'void'),
|
|
321
|
+
'mls_create_session': ((('other_user_id', 'string'),),
|
|
322
|
+
'MlsWelcomeMessage'),
|
|
323
|
+
'mls_decrypt': ((('encrypted', 'MlsEncryptedMessage'),),
|
|
324
|
+
'sequence<u8>?'),
|
|
325
|
+
'mls_decrypt_from_user': ((('encrypted', 'MlsEncryptedMessage'),),
|
|
326
|
+
'sequence<u8>?'),
|
|
327
|
+
'mls_delete_session': ((('other_user_id', 'string'),), 'void'),
|
|
328
|
+
'mls_encrypt_for_user': ((('other_user_id', 'string'),
|
|
329
|
+
('plaintext', 'sequence<u8>')),
|
|
330
|
+
'MlsEncryptedMessage'),
|
|
331
|
+
'mls_generate_key_package': ((), 'MlsKeyPackageBundle'),
|
|
332
|
+
'mls_get_or_create_key_package': ((), 'MlsKeyPackageBundle'),
|
|
333
|
+
'mls_get_pending_key_packages': ((),
|
|
334
|
+
'sequence<MlsKeyPackageBundle>'),
|
|
335
|
+
'mls_get_pending_welcome': ((('other_user_id', 'string'),),
|
|
336
|
+
'MlsWelcomeMessage?'),
|
|
337
|
+
'mls_has_session': ((('other_user_id', 'string'),), 'boolean'),
|
|
338
|
+
'mls_import_key_package': ((('user_id', 'string'),
|
|
339
|
+
('key_package_data', 'sequence<u8>')),
|
|
340
|
+
'void'),
|
|
341
|
+
'mls_join_session': ((('welcome', 'MlsWelcomeMessage'),),
|
|
342
|
+
'MlsGroupInfo'),
|
|
343
|
+
'mls_list_sessions': ((), 'sequence<string>'),
|
|
344
|
+
'mls_mark_key_package_synced': ((('package_id', 'string'),),
|
|
345
|
+
'void'),
|
|
346
|
+
'mls_process_welcome': ((('welcome', 'MlsWelcomeMessage'),),
|
|
347
|
+
'MlsGroupInfo'),
|
|
348
|
+
'nostr_confirm_sent': ((('message_id', 'string'),), 'void'),
|
|
349
|
+
'nostr_get_next_message': ((), 'NostrMessage?'),
|
|
350
|
+
'nostr_get_next_query': ((), 'NostrQuery?'),
|
|
351
|
+
'nostr_get_public_key': ((), 'string?'),
|
|
352
|
+
'nostr_get_subscription_filter': ((('subscription_id', 'string'),),
|
|
353
|
+
'string?'),
|
|
354
|
+
'nostr_message_received': ((('sender_id', 'string'),
|
|
355
|
+
('data', 'sequence<u8>')),
|
|
356
|
+
'void'),
|
|
357
|
+
'nostr_message_received_at': ((('sender_id', 'string'),
|
|
358
|
+
('data', 'sequence<u8>'),
|
|
359
|
+
('created_at', 'i64')),
|
|
360
|
+
'void'),
|
|
361
|
+
'nostr_query_completed': ((('query_id', 'string'),), 'void'),
|
|
362
|
+
'nostr_query_event_received': ((('query_id', 'string'),
|
|
363
|
+
('event_json', 'string')),
|
|
364
|
+
'void'),
|
|
365
|
+
'nostr_send_failed': ((('message_id', 'string'),), 'void'),
|
|
366
|
+
'nostr_send_failed_with_reason': ((('message_id', 'string'),
|
|
367
|
+
('reason', 'string?')),
|
|
368
|
+
'void'),
|
|
369
|
+
'nostr_status_changed': ((('is_connected', 'boolean'),), 'void'),
|
|
370
|
+
'notify_app_state': ((('state', 'AppState'),), 'void'),
|
|
371
|
+
'pause': ((), 'void'),
|
|
372
|
+
'poll_event': ((), 'string?'),
|
|
373
|
+
'process': ((), 'void'),
|
|
374
|
+
'process_file_chunk': ((('file_id', 'string'),
|
|
375
|
+
('chunk_index', 'u32'),
|
|
376
|
+
('total_chunks', 'u32'),
|
|
377
|
+
('file_size', 'u64'),
|
|
378
|
+
('file_name', 'string'),
|
|
379
|
+
('file_checksum', 'string'),
|
|
380
|
+
('data', 'sequence<u8>')),
|
|
381
|
+
'void'),
|
|
382
|
+
'protocol_lock_diagnostics': ((), 'ProtocolLockDiagnostics'),
|
|
383
|
+
'receive_message': ((), 'string?'),
|
|
384
|
+
'reject_connection_request': ((('recipient', 'string'),),
|
|
385
|
+
'string'),
|
|
386
|
+
'rekey_session': ((('peer_id', 'string'),), 'boolean'),
|
|
387
|
+
'release_transport_lock': ((), 'void'),
|
|
388
|
+
'remove_from_group': ((('group_id', 'string'),
|
|
389
|
+
('member_id', 'string')),
|
|
390
|
+
'void'),
|
|
391
|
+
'remove_transport': ((('transport_type', 'TransportType'),),
|
|
392
|
+
'void'),
|
|
393
|
+
'rename_group': ((('group_id', 'string'), ('new_name', 'string')),
|
|
394
|
+
'void'),
|
|
395
|
+
'request_group_relay_registration': ((('group_id', 'string'),),
|
|
396
|
+
'boolean'),
|
|
397
|
+
'resolve_username': ((('username', 'string'),), 'boolean'),
|
|
398
|
+
'resume': ((), 'void'),
|
|
399
|
+
'reticulum_address_declaration_refused': ((('reason', 'string'),),
|
|
400
|
+
'void'),
|
|
401
|
+
'reticulum_address_declared': ((('address', 'string'),), 'void'),
|
|
402
|
+
'reticulum_confirm_sent': ((('message_id', 'string'),), 'void'),
|
|
403
|
+
'reticulum_gateway_capabilities': ((('capabilities',
|
|
404
|
+
'sequence<string>'),),
|
|
405
|
+
'void'),
|
|
406
|
+
'reticulum_get_next_message': ((), 'ReticulumMessage?'),
|
|
407
|
+
'reticulum_message_received': ((('sender_id', 'string'),
|
|
408
|
+
('data', 'sequence<u8>')),
|
|
409
|
+
'void'),
|
|
410
|
+
'reticulum_peer_presence': ((('peer_id', 'string'),
|
|
411
|
+
('online', 'boolean'),
|
|
412
|
+
('last_seen_ms', 'i64?')),
|
|
413
|
+
'void'),
|
|
414
|
+
'reticulum_presence_watchlist': ((), 'sequence<string>'),
|
|
415
|
+
'reticulum_send_failed': ((('message_id', 'string'),), 'void'),
|
|
416
|
+
'reticulum_send_failed_with_reason': ((('message_id', 'string'),
|
|
417
|
+
('reason', 'string?')),
|
|
418
|
+
'void'),
|
|
419
|
+
'reticulum_status_changed': ((('is_connected', 'boolean'),),
|
|
420
|
+
'void'),
|
|
421
|
+
'send_connection_request': ((('recipient', 'string'),
|
|
422
|
+
('sender_name', 'string'),
|
|
423
|
+
('key_package', 'sequence<u8>?'),
|
|
424
|
+
('initial_message', 'string?')),
|
|
425
|
+
'string'),
|
|
426
|
+
'send_file': ((('recipient', 'string'),
|
|
427
|
+
('file_data', 'sequence<u8>'),
|
|
428
|
+
('file_name', 'string')),
|
|
429
|
+
'string'),
|
|
430
|
+
'send_group_message': ((('group_id', 'string'),
|
|
431
|
+
('content', 'string'),
|
|
432
|
+
('priority', 'MessagePriority?'),
|
|
433
|
+
('reply_to_msg', 'string?')),
|
|
434
|
+
'sequence<string>'),
|
|
435
|
+
'send_media': ((('recipient', 'string'),
|
|
436
|
+
('file_data', 'sequence<u8>'),
|
|
437
|
+
('file_name', 'string'),
|
|
438
|
+
('content_type', 'ContentType'),
|
|
439
|
+
('media_metadata', 'MediaMetadata?')),
|
|
440
|
+
'string'),
|
|
441
|
+
'send_media_rich': ((('recipient', 'string'),
|
|
442
|
+
('file_data', 'sequence<u8>'),
|
|
443
|
+
('file_name', 'string'),
|
|
444
|
+
('content_type', 'ContentType'),
|
|
445
|
+
('options', 'MediaSendOptions')),
|
|
446
|
+
'string'),
|
|
447
|
+
'send_message': ((('recipient', 'string'),
|
|
448
|
+
('content', 'string'),
|
|
449
|
+
('priority', 'MessagePriority'),
|
|
450
|
+
('reply_to_msg', 'string?')),
|
|
451
|
+
'string'),
|
|
452
|
+
'send_message_rich': ((('recipient', 'string'),
|
|
453
|
+
('content', 'string'),
|
|
454
|
+
('options', 'SendMessageOptions')),
|
|
455
|
+
'string'),
|
|
456
|
+
'send_presence_update': ((('recipient', 'string'),
|
|
457
|
+
('status', 'PresenceStatus')),
|
|
458
|
+
'string'),
|
|
459
|
+
'send_read_receipt': ((('recipient', 'string'),
|
|
460
|
+
('message_ids', 'sequence<string>')),
|
|
461
|
+
'string'),
|
|
462
|
+
'send_typing_indicator': ((('recipient', 'string'),
|
|
463
|
+
('conversation_id', 'string'),
|
|
464
|
+
('is_typing', 'boolean')),
|
|
465
|
+
'string'),
|
|
466
|
+
'set_battery_level': ((('level', 'u8'),), 'void'),
|
|
467
|
+
'set_battery_state': ((('level', 'u8'),
|
|
468
|
+
('is_charging', 'boolean')),
|
|
469
|
+
'void'),
|
|
470
|
+
'set_ble_transport_callback': ((('callback',
|
|
471
|
+
'BleTransportCallback'),),
|
|
472
|
+
'void'),
|
|
473
|
+
'set_event_callback': ((('callback', 'EventCallback'),), 'void'),
|
|
474
|
+
'set_member_role': ((('group_id', 'string'),
|
|
475
|
+
('user_id', 'string'),
|
|
476
|
+
('role', 'string')),
|
|
477
|
+
'void'),
|
|
478
|
+
'set_nostr_transport_callback': ((('callback',
|
|
479
|
+
'NostrTransportCallback'),),
|
|
480
|
+
'void'),
|
|
481
|
+
'set_relay_priority': ((('priority', 'RelayPriority'),), 'void'),
|
|
482
|
+
'set_reticulum_transport_callback': ((('callback',
|
|
483
|
+
'ReticulumTransportCallback'),),
|
|
484
|
+
'void'),
|
|
485
|
+
'set_telemetry_enabled': ((('enabled', 'boolean'),), 'void'),
|
|
486
|
+
'set_wifi_direct_transport_callback': ((('callback',
|
|
487
|
+
'WifiDirectTransportCallback'),),
|
|
488
|
+
'void'),
|
|
489
|
+
'should_escalate_to_wifi': ((), 'boolean'),
|
|
490
|
+
'sign_data': ((('data', 'sequence<u8>'),), 'sequence<u8>'),
|
|
491
|
+
'start': ((), 'void'),
|
|
492
|
+
'stop': ((), 'void'),
|
|
493
|
+
'telemetry_install_id': ((), 'string?'),
|
|
494
|
+
'telemetry_stats': ((), 'TelemetryStats?'),
|
|
495
|
+
'unblock_user': ((('user_id', 'string'),), 'void'),
|
|
496
|
+
'update_ack_config': ((('config', 'AckConfig'),), 'void'),
|
|
497
|
+
'update_dedup_config': ((('config', 'DedupConfig'),), 'void'),
|
|
498
|
+
'update_dors_config': ((('config', 'DorsConfig'),), 'void'),
|
|
499
|
+
'update_relay_config': ((('config', 'RelayConfig'),), 'void'),
|
|
500
|
+
'update_retry_config': ((('config', 'RetryConfig'),), 'void'),
|
|
501
|
+
'update_transport_metrics': ((('transport_type', 'TransportType'),
|
|
502
|
+
('metrics', 'TransportMetrics')),
|
|
503
|
+
'void'),
|
|
504
|
+
'verify_signature': ((('public_key', 'sequence<u8>'),
|
|
505
|
+
('data', 'sequence<u8>'),
|
|
506
|
+
('signature', 'sequence<u8>')),
|
|
507
|
+
'boolean'),
|
|
508
|
+
'wifi_direct_get_next_message': ((), 'WifiDirectMessage?'),
|
|
509
|
+
'wifi_direct_message_received': ((('sender_id', 'string'),
|
|
510
|
+
('data', 'sequence<u8>')),
|
|
511
|
+
'void'),
|
|
512
|
+
'wifi_direct_peer_connected': ((('peer_id', 'string'),), 'void'),
|
|
513
|
+
'wifi_direct_peer_disconnected': ((('peer_id', 'string'),),
|
|
514
|
+
'void'),
|
|
515
|
+
'wifi_direct_status_changed': ((('is_connected', 'boolean'),),
|
|
516
|
+
'void')},
|
|
517
|
+
'namespace': {'derive_address': ((('public_key', 'sequence<u8>'),), 'string'),
|
|
518
|
+
'parse_invite': ((('blob', 'string'),), 'InviteInfo'),
|
|
519
|
+
'run_storage_conformance': ((('storage',
|
|
520
|
+
'ProtocolStateStorageProvider'),),
|
|
521
|
+
'string'),
|
|
522
|
+
'verify_identity_assertion': ((('assertion', 'sequence<u8>'),),
|
|
523
|
+
'string')}},
|
|
524
|
+
'records': {'AckConfig': (('default_timeout_ms', 'u64', False),
|
|
525
|
+
('max_pending_acks', 'u64', False)),
|
|
526
|
+
'BleFragment': (('recipient_id', 'string', False), ('data', 'sequence<u8>', False)),
|
|
527
|
+
'CustodyConfig': (('enabled', 'boolean?', True),
|
|
528
|
+
('hold_ms', 'u64?', True),
|
|
529
|
+
('max_entries_per_depositor', 'u64?', True),
|
|
530
|
+
('max_bytes_per_depositor', 'u64?', True),
|
|
531
|
+
('max_entries', 'u64?', True),
|
|
532
|
+
('max_bytes', 'u64?', True),
|
|
533
|
+
('stranger_max_entries', 'u64?', True),
|
|
534
|
+
('stranger_max_bytes', 'u64?', True),
|
|
535
|
+
('overflow_policy', 'OverflowPolicy?', True)),
|
|
536
|
+
'CustodyStats': (('held', 'u64', False),
|
|
537
|
+
('held_bytes', 'u64', False),
|
|
538
|
+
('accepted', 'u64', False),
|
|
539
|
+
('delivered', 'u64', False),
|
|
540
|
+
('re_originated', 'u64', False),
|
|
541
|
+
('expired', 'u64', False),
|
|
542
|
+
('duplicates', 'u64', False),
|
|
543
|
+
('evicted', 'u64', False),
|
|
544
|
+
('receipts_sent', 'u64', False),
|
|
545
|
+
('receipts_dropped', 'u64', False),
|
|
546
|
+
('receipts_received', 'u64', False),
|
|
547
|
+
('receipts_ignored', 'u64', False),
|
|
548
|
+
('refused_disabled', 'u64', False),
|
|
549
|
+
('refused_no_request', 'u64', False),
|
|
550
|
+
('refused_unknown_class', 'u64', False),
|
|
551
|
+
('refused_not_sealed', 'u64', False),
|
|
552
|
+
('refused_unproven_peer', 'u64', False),
|
|
553
|
+
('refused_not_depositor', 'u64', False),
|
|
554
|
+
('refused_stranger', 'u64', False),
|
|
555
|
+
('refused_depositor_full', 'u64', False),
|
|
556
|
+
('refused_store_full', 'u64', False),
|
|
557
|
+
('refused_battery', 'u64', False)),
|
|
558
|
+
'DedupConfig': (('max_tracked_messages', 'u64', False),
|
|
559
|
+
('retention_time_secs', 'u64', False)),
|
|
560
|
+
'DedupStats': (('total_tracked', 'u64', False),
|
|
561
|
+
('recent_tracked', 'u64', False),
|
|
562
|
+
('capacity_used_percent', 'u8', False),
|
|
563
|
+
('mode', 'string', False)),
|
|
564
|
+
'DorsConfig': (('prefer_online', 'boolean', False),
|
|
565
|
+
('switch_hysteresis', 'f32', False),
|
|
566
|
+
('switch_cooldown_secs', 'u64', False),
|
|
567
|
+
('ble_to_wifi_retry_threshold', 'u32', False),
|
|
568
|
+
('min_success_rate_before_escalation', 'f32', False),
|
|
569
|
+
('min_ble_samples_before_success_rate_escalation', 'u64', False),
|
|
570
|
+
('rssi_switch_threshold', 'i16', False),
|
|
571
|
+
('congestion_queue_threshold', 'u64', False),
|
|
572
|
+
('stability_window_secs', 'u64', False),
|
|
573
|
+
('poor_signal_duration_secs', 'u64', False),
|
|
574
|
+
('ttl_escalation_threshold', 'u8', False),
|
|
575
|
+
('congestion_duration_secs', 'u64', False),
|
|
576
|
+
('ttl_escalation_hold_secs', 'u64', False),
|
|
577
|
+
('history_window_size', 'u64', False),
|
|
578
|
+
('queue_recovery_ratio', 'f32', False),
|
|
579
|
+
('low_battery_threshold', 'u8', False),
|
|
580
|
+
('relay_min_battery_level', 'u8', False),
|
|
581
|
+
('relay_optimal_connection_count', 'u8', False)),
|
|
582
|
+
'EncryptionConfig': (('enabled', 'boolean', False),
|
|
583
|
+
('auto_key_exchange', 'boolean', False),
|
|
584
|
+
('store_pending', 'boolean', False),
|
|
585
|
+
('require_encryption', 'boolean', True),
|
|
586
|
+
('pending_queue', 'PendingQueueConfig', False)),
|
|
587
|
+
'FileProgress': (('file_id', 'string', False),
|
|
588
|
+
('chunks_sent', 'u32', False),
|
|
589
|
+
('total_chunks', 'u32', False),
|
|
590
|
+
('percentage', 'u8', False)),
|
|
591
|
+
'ForwardInfo': (('original_sender', 'string', False),
|
|
592
|
+
('original_message_id', 'string', False),
|
|
593
|
+
('original_timestamp', 'i64', False),
|
|
594
|
+
('forward_count', 'u32', False)),
|
|
595
|
+
'GatewayAddressDeclaration': (('address', 'string', False),
|
|
596
|
+
('public_key', 'sequence<u8>', False),
|
|
597
|
+
('signature', 'sequence<u8>', False)),
|
|
598
|
+
'GroupRichReadiness': (('ready', 'boolean', False),
|
|
599
|
+
('unknown_members', 'sequence<string>', False)),
|
|
600
|
+
'InternetMessage': (('message_id', 'string', False),
|
|
601
|
+
('recipient_id', 'string', False),
|
|
602
|
+
('data', 'sequence<u8>', False),
|
|
603
|
+
('reply_to_msg', 'string?', False),
|
|
604
|
+
('control_op', 'string?', False),
|
|
605
|
+
('control_payload', 'string?', False)),
|
|
606
|
+
'InviteInfo': (('address', 'string', False),
|
|
607
|
+
('public_key', 'sequence<u8>', False),
|
|
608
|
+
('petname', 'string?', False),
|
|
609
|
+
('signed', 'boolean', False)),
|
|
610
|
+
'MediaMetadata': (('mime_type', 'string', False),
|
|
611
|
+
('file_name', 'string', False),
|
|
612
|
+
('file_size', 'u64', False),
|
|
613
|
+
('duration_ms', 'u64?', False),
|
|
614
|
+
('width', 'u32?', False),
|
|
615
|
+
('height', 'u32?', False),
|
|
616
|
+
('thumbnail_base64', 'string?', False),
|
|
617
|
+
('media_id', 'string?', True),
|
|
618
|
+
('download_url', 'string?', True),
|
|
619
|
+
('thumbnail_url', 'string?', True),
|
|
620
|
+
('encryption_key', 'string?', True),
|
|
621
|
+
('iv', 'string?', True),
|
|
622
|
+
('ciphertext_hash', 'string?', True),
|
|
623
|
+
('sticker_provider', 'string?', True),
|
|
624
|
+
('sticker_remote_id', 'string?', True),
|
|
625
|
+
('sticker_kind', 'string?', True)),
|
|
626
|
+
'MediaSendOptions': (('media_metadata', 'MediaMetadata?', True),
|
|
627
|
+
('caption', 'string?', True),
|
|
628
|
+
('reply_to_msg', 'string?', True),
|
|
629
|
+
('reply_context', 'ReplyContext?', True),
|
|
630
|
+
('forward_info', 'ForwardInfo?', True),
|
|
631
|
+
('file_id', 'string?', True),
|
|
632
|
+
('app_id', 'string?', True)),
|
|
633
|
+
'MeshRelayConfig': (('max_ttl', 'u8?', True),
|
|
634
|
+
('dense_max_ttl', 'u8?', True),
|
|
635
|
+
('dense_degree', 'u64?', True),
|
|
636
|
+
('fanout', 'u64?', True),
|
|
637
|
+
('jitter_min_ms', 'u64?', True),
|
|
638
|
+
('jitter_max_ms', 'u64?', True),
|
|
639
|
+
('rate_per_sec', 'f32?', True),
|
|
640
|
+
('burst', 'f32?', True),
|
|
641
|
+
('peer_rate_per_sec', 'f32?', True),
|
|
642
|
+
('peer_burst', 'f32?', True),
|
|
643
|
+
('queue_capacity', 'u64?', True),
|
|
644
|
+
('bias_min_scale', 'f32?', True),
|
|
645
|
+
('bias_max_handicap_ms', 'u64?', True),
|
|
646
|
+
('activity_window_ms', 'u64?', True),
|
|
647
|
+
('activity_min_forwards', 'u64?', True),
|
|
648
|
+
('activity_idle_windows', 'u32?', True)),
|
|
649
|
+
'MeshRelayStats': (('forwarded', 'u64', False),
|
|
650
|
+
('transmissions', 'u64', False),
|
|
651
|
+
('queued', 'u64', False),
|
|
652
|
+
('awaiting_transmission', 'u64', False),
|
|
653
|
+
('duplicates_suppressed', 'u64', False),
|
|
654
|
+
('covered_by_a_neighbor', 'u64', False),
|
|
655
|
+
('peer_rate_limited', 'u64', False),
|
|
656
|
+
('refused_queue_full', 'u64', False),
|
|
657
|
+
('rate_deferred', 'u64', False),
|
|
658
|
+
('abandoned_overdue', 'u64', False),
|
|
659
|
+
('hop_limit_reached', 'u64', False),
|
|
660
|
+
('reach_clamped', 'u64', False),
|
|
661
|
+
('dropped_for_capacity', 'u64', False)),
|
|
662
|
+
'MeshRelayTunables': (('max_ttl', 'u8', False),
|
|
663
|
+
('dense_max_ttl', 'u8', False),
|
|
664
|
+
('dense_degree', 'u64', False),
|
|
665
|
+
('fanout', 'u64', False),
|
|
666
|
+
('jitter_min_ms', 'u64', False),
|
|
667
|
+
('jitter_max_ms', 'u64', False),
|
|
668
|
+
('rate_per_sec', 'f32', False),
|
|
669
|
+
('burst', 'f32', False),
|
|
670
|
+
('peer_rate_per_sec', 'f32', False),
|
|
671
|
+
('peer_burst', 'f32', False),
|
|
672
|
+
('queue_capacity', 'u64', False),
|
|
673
|
+
('bias_min_scale', 'f32', False),
|
|
674
|
+
('bias_max_handicap_ms', 'u64', False),
|
|
675
|
+
('activity_window_ms', 'u64', False),
|
|
676
|
+
('activity_min_forwards', 'u64', False),
|
|
677
|
+
('activity_idle_windows', 'u32', False)),
|
|
678
|
+
'MessageStats': (('message_id', 'string', False),
|
|
679
|
+
('sent_at_ms', 'u64', False),
|
|
680
|
+
('delivered_at_ms', 'u64?', False),
|
|
681
|
+
('hop_count', 'u8', False),
|
|
682
|
+
('status', 'string', False)),
|
|
683
|
+
'MlsAddMemberResult': (('welcome', 'MlsWelcomeMessage', False),
|
|
684
|
+
('commit', 'MlsEncryptedMessage', False)),
|
|
685
|
+
'MlsEncryptedMessage': (('group_id', 'string', False),
|
|
686
|
+
('message_type', 'string', False),
|
|
687
|
+
('epoch', 'u64', False),
|
|
688
|
+
('ciphertext', 'sequence<u8>', False),
|
|
689
|
+
('sender_id', 'string', False),
|
|
690
|
+
('timestamp_ms', 'u64', False)),
|
|
691
|
+
'MlsGroupInfo': (('group_id', 'string', False),
|
|
692
|
+
('name', 'string?', False),
|
|
693
|
+
('members', 'sequence<string>', False),
|
|
694
|
+
('epoch', 'u64', False),
|
|
695
|
+
('is_session', 'boolean', False),
|
|
696
|
+
('created_at_ms', 'u64', False),
|
|
697
|
+
('last_activity_ms', 'u64', False)),
|
|
698
|
+
'MlsKeyPackageBundle': (('package_id', 'string', False),
|
|
699
|
+
('user_id', 'string', False),
|
|
700
|
+
('key_package_data', 'sequence<u8>', False),
|
|
701
|
+
('created_at_ms', 'u64', False),
|
|
702
|
+
('expires_at_ms', 'u64', False),
|
|
703
|
+
('synced', 'boolean', False)),
|
|
704
|
+
'MlsWelcomeMessage': (('group_id', 'string', False),
|
|
705
|
+
('welcome_data', 'sequence<u8>', False),
|
|
706
|
+
('inviter_id', 'string', False),
|
|
707
|
+
('group_name', 'string?', False),
|
|
708
|
+
('timestamp_ms', 'u64', False)),
|
|
709
|
+
'NetworkLink': (('source_id', 'string', False),
|
|
710
|
+
('target_id', 'string', False),
|
|
711
|
+
('transport', 'string', False),
|
|
712
|
+
('quality', 'f32', False)),
|
|
713
|
+
'NetworkNode': (('node_id', 'string', False),
|
|
714
|
+
('role', 'string', False),
|
|
715
|
+
('rssi', 'i16?', False),
|
|
716
|
+
('battery_level', 'u8?', False),
|
|
717
|
+
('connection_count', 'u32', False),
|
|
718
|
+
('last_seen_ms', 'u64', False)),
|
|
719
|
+
'NetworkTopology': (('nodes', 'sequence<NetworkNode>', False),
|
|
720
|
+
('links', 'sequence<NetworkLink>', False),
|
|
721
|
+
('message_stats', 'sequence<MessageStats>', False)),
|
|
722
|
+
'NostrMessage': (('message_id', 'string', False),
|
|
723
|
+
('event_id', 'string', False),
|
|
724
|
+
('event_json', 'string', False)),
|
|
725
|
+
'NostrQuery': (('query_id', 'string', False), ('req_json', 'string', False)),
|
|
726
|
+
'PeerDevice': (('peer_id', 'string', False),
|
|
727
|
+
('rssi', 'i16', False),
|
|
728
|
+
('last_seen_ms', 'u64', False)),
|
|
729
|
+
'PendingQueueConfig': (('max_pending_per_peer', 'u64', False),
|
|
730
|
+
('max_pending_global', 'u64', False),
|
|
731
|
+
('pending_ttl_ms', 'u64', False),
|
|
732
|
+
('overflow_policy', 'OverflowPolicy', False)),
|
|
733
|
+
'ProtocolConfig': (('app_id', 'string', False),
|
|
734
|
+
('profile', 'string', False),
|
|
735
|
+
('ble_enabled', 'boolean', False),
|
|
736
|
+
('wifi_direct_enabled', 'boolean', False),
|
|
737
|
+
('internet_enabled', 'boolean', False),
|
|
738
|
+
('reticulum_enabled', 'boolean', False),
|
|
739
|
+
('nostr_enabled', 'boolean', False),
|
|
740
|
+
('prefer_online', 'boolean', False),
|
|
741
|
+
('initial_ttl', 'u8', False),
|
|
742
|
+
('encryption_enabled', 'boolean', False),
|
|
743
|
+
('auto_key_exchange', 'boolean', False),
|
|
744
|
+
('store_pending', 'boolean', False),
|
|
745
|
+
('require_encryption', 'boolean', True),
|
|
746
|
+
('max_pending_per_peer', 'u64', False),
|
|
747
|
+
('max_pending_global', 'u64', False),
|
|
748
|
+
('pending_ttl_ms', 'u64', False),
|
|
749
|
+
('overflow_policy', 'OverflowPolicy', False),
|
|
750
|
+
('edge_driven_unreachable_dm', 'boolean', True),
|
|
751
|
+
('max_group_members', 'u32', True),
|
|
752
|
+
('group_relay_enabled', 'boolean', True),
|
|
753
|
+
('group_relay_broadcast_enabled', 'boolean', True),
|
|
754
|
+
('group_enforce_admin_commits', 'boolean', True),
|
|
755
|
+
('require_transport_identity', 'boolean', True),
|
|
756
|
+
('binary_wire_enabled', 'boolean', True),
|
|
757
|
+
('nostr_sealing_enabled', 'boolean', True),
|
|
758
|
+
('nostr_cold_contact_enabled', 'boolean', True),
|
|
759
|
+
('nostr_username_discovery_enabled', 'boolean', True),
|
|
760
|
+
('compact_envelope_enabled', 'boolean', True),
|
|
761
|
+
('rich_payload_enabled', 'boolean', True),
|
|
762
|
+
('crypto_recovery_enabled', 'boolean', True),
|
|
763
|
+
('mesh_relay', 'MeshRelayConfig?', True),
|
|
764
|
+
('custody', 'CustodyConfig?', True),
|
|
765
|
+
('data_enabled', 'boolean', True),
|
|
766
|
+
('control_freshness_enforced', 'boolean', True)),
|
|
767
|
+
'ProtocolLockDiagnostics': (('held', 'boolean', False),
|
|
768
|
+
('holder_location', 'string', False),
|
|
769
|
+
('holder_thread', 'string', False),
|
|
770
|
+
('held_for_ms', 'u64', False)),
|
|
771
|
+
'RelayConfig': (('min_battery_for_relay', 'u8', False),
|
|
772
|
+
('allow_relay', 'boolean', False),
|
|
773
|
+
('relay_priority', 'RelayPriority', False)),
|
|
774
|
+
'ReliabilityConfig': (('ack', 'AckConfig', False),
|
|
775
|
+
('retry', 'RetryConfig', False),
|
|
776
|
+
('dedup', 'DedupConfig', False)),
|
|
777
|
+
'ReplyContext': (('sender', 'string', False),
|
|
778
|
+
('text', 'string', False),
|
|
779
|
+
('timestamp', 'i64?', True),
|
|
780
|
+
('reply_media_label', 'string?', True),
|
|
781
|
+
('reply_content_type', 'string?', True)),
|
|
782
|
+
'ReticulumMessage': (('message_id', 'string', False),
|
|
783
|
+
('recipient_id', 'string', False),
|
|
784
|
+
('data', 'sequence<u8>', False),
|
|
785
|
+
('reply_to_msg', 'string?', False)),
|
|
786
|
+
'RetryConfig': (('max_retries', 'u32', False),
|
|
787
|
+
('initial_delay_ms', 'u64', False),
|
|
788
|
+
('max_delay_ms', 'u64', False),
|
|
789
|
+
('backoff_multiplier', 'f32', False),
|
|
790
|
+
('outbox_max_lifetime_ms', 'u64', False),
|
|
791
|
+
('pending_message_max_lifetime_ms', 'u64', False),
|
|
792
|
+
('edge_driven_unreachable_dm', 'boolean', True)),
|
|
793
|
+
'SendMessageOptions': (('priority', 'MessagePriority?', True),
|
|
794
|
+
('reply_to_msg', 'string?', True),
|
|
795
|
+
('content_type', 'ContentType?', True),
|
|
796
|
+
('reply_context', 'ReplyContext?', True),
|
|
797
|
+
('media_metadata', 'MediaMetadata?', True),
|
|
798
|
+
('forward_info', 'ForwardInfo?', True),
|
|
799
|
+
('app_id', 'string?', True)),
|
|
800
|
+
'TelemetryConfig': (('api_key', 'string', False),
|
|
801
|
+
('app_id', 'string', False),
|
|
802
|
+
('os', 'TelemetryOs', False),
|
|
803
|
+
('os_major', 'u16', False),
|
|
804
|
+
('app_version', 'string?', False),
|
|
805
|
+
('debug', 'boolean?', False),
|
|
806
|
+
('flush_interval_ms', 'u64?', False),
|
|
807
|
+
('max_batch_bytes', 'u64?', False),
|
|
808
|
+
('max_buffered_records', 'u32?', False),
|
|
809
|
+
('include_device_id', 'boolean?', False),
|
|
810
|
+
('scrub_ids', 'boolean?', False),
|
|
811
|
+
('mls_verbosity', 'MlsVerbosity?', False),
|
|
812
|
+
('metrics_cadence_ms', 'u64?', False),
|
|
813
|
+
('routing_diagnostic', 'boolean?', False),
|
|
814
|
+
('mls_sampling_bypass', 'boolean?', False)),
|
|
815
|
+
'TelemetryStats': (('buffered', 'u64', False),
|
|
816
|
+
('sent_events', 'u64', False),
|
|
817
|
+
('accepted_events', 'u64', False),
|
|
818
|
+
('dropped', 'u64', False),
|
|
819
|
+
('session_id', 'string', False),
|
|
820
|
+
('last_error', 'string?', False),
|
|
821
|
+
('last_flush_at_ms', 'i64?', False)),
|
|
822
|
+
'TransportConfig': (('ble_enabled', 'boolean', False),
|
|
823
|
+
('wifi_direct_enabled', 'boolean', False),
|
|
824
|
+
('internet_enabled', 'boolean', False),
|
|
825
|
+
('reticulum_enabled', 'boolean', False),
|
|
826
|
+
('nostr_enabled', 'boolean', False),
|
|
827
|
+
('nostr_sealing_enabled', 'boolean', True),
|
|
828
|
+
('nostr_cold_contact_enabled', 'boolean', True),
|
|
829
|
+
('nostr_username_discovery_enabled', 'boolean', True)),
|
|
830
|
+
'TransportMetrics': (('packets_sent', 'u32', False),
|
|
831
|
+
('packets_received', 'u32', False),
|
|
832
|
+
('bytes_sent', 'u32', False),
|
|
833
|
+
('bytes_received', 'u32', False),
|
|
834
|
+
('error_rate', 'f32', False),
|
|
835
|
+
('avg_latency_ms', 'u32', False),
|
|
836
|
+
('rssi', 'i16?', False),
|
|
837
|
+
('bandwidth_bps', 'u64?', False),
|
|
838
|
+
('congestion', 'f32?', False),
|
|
839
|
+
('queue_depth', 'u32?', False),
|
|
840
|
+
('battery_level', 'u8?', False),
|
|
841
|
+
('is_charging', 'boolean?', False),
|
|
842
|
+
('relay_connection_count', 'u8?', False),
|
|
843
|
+
('is_active_relay', 'boolean?', False),
|
|
844
|
+
('delivery_ratio', 'f32?', False),
|
|
845
|
+
('drop_rate', 'f32?', False),
|
|
846
|
+
('average_hop_count', 'f32?', False),
|
|
847
|
+
('energy_cost', 'f32?', False)),
|
|
848
|
+
'WifiDirectMessage': (('recipient_id', 'string', False),
|
|
849
|
+
('data', 'sequence<u8>', False))}}
|