blob: 986f7f55922dce6b7c8140a05819b9de68167d6d (
plain)
1
|
{"version":3,"file":"ToDeviceMessage.js","names":[],"sources":["../../src/models/ToDeviceMessage.ts"],"sourcesContent":["/*\nCopyright 2022 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nexport type ToDevicePayload = Record<string, any>;\n\nexport interface ToDeviceMessage {\n userId: string;\n deviceId: string;\n payload: ToDevicePayload;\n}\n\nexport interface ToDeviceBatch {\n eventType: string;\n batch: ToDeviceMessage[];\n}\n\n// Only used internally\nexport interface ToDeviceBatchWithTxnId extends ToDeviceBatch {\n txnId: string;\n}\n\n// Only used internally\nexport interface IndexedToDeviceBatch extends ToDeviceBatchWithTxnId {\n id: number;\n}\n"],"mappings":""}
|