Show documentation page v2

json-docs
Bram van den Heuvel 2024-01-25 15:02:26 +01:00
parent 49a8284034
commit 46a1d60957
1 changed files with 61 additions and 6 deletions

View File

@ -6845,11 +6845,66 @@ var $author$project$Internal$Tools$Json$field = {
}
};
var $author$project$Internal$Config$Text$fields = {
context: {accessToken: _List_Nil, baseUrl: _List_Nil, password: _List_Nil, refreshToken: _List_Nil, transaction: _List_Nil, username: _List_Nil, versions: _List_Nil},
envelope: {content: _List_Nil, context: _List_Nil, settings: _List_Nil},
event: {content: _List_Nil, eventId: _List_Nil, eventType: _List_Nil, originServerTs: _List_Nil, roomId: _List_Nil, sender: _List_Nil, stateKey: _List_Nil, unsigned: _List_Nil},
settings: {currentVersion: _List_Nil, deviceName: _List_Nil, syncTime: _List_Nil},
unsigned: {age: _List_Nil, prevContent: _List_Nil, redactedBecause: _List_Nil, transactionId: _List_Nil}
context: {
accessToken: _List_fromArray(
['The access token used for authentication with the Matrix server.']),
baseUrl: _List_fromArray(
['The base URL of the Matrix server.']),
password: _List_fromArray(
['The user\'s password for authentication purposes.']),
refreshToken: _List_fromArray(
['The token used to obtain a new access token upon expiration of the current access token.']),
transaction: _List_fromArray(
['A unique identifier for a transaction initiated by the user.']),
username: _List_fromArray(
['The username of the Matrix account.']),
versions: _List_fromArray(
['The versions of the Matrix protocol that are supported by the server.'])
},
envelope: {
content: _List_fromArray(
['The actual data or payload that is wrapped within the envelope.']),
context: _List_fromArray(
['The context information associated with the envelope, such as environment or session details.', 'In general, this data cannot be directly configured by the user.']),
settings: _List_fromArray(
['The configurable settings that affect how the enveloped data is handled or processed.'])
},
event: {
content: _List_fromArray(
['The body of this event, as created by the client which sent it.']),
eventId: _List_fromArray(
['The globally unique identifier for this event.']),
eventType: _List_fromArray(
['The type of the event.']),
originServerTs: _List_fromArray(
['Timestamp (in milliseconds since the unix epoch) on originating homeserver when this event was sent.']),
roomId: _List_fromArray(
['The ID of the room associated with this event.']),
sender: _List_fromArray(
['Contains the fully-qualified ID of the user who sent this event.']),
stateKey: _List_fromArray(
['Present if, and only if, this event is a state event. The key making this piece of state unique in the room. Note that it is often an empty string.', 'State keys starting with an @ are reserved for referencing user IDs, such as room members. With the exception of a few events, state events set with a given users ID as the state key MUST only be set by that user.']),
unsigned: _List_fromArray(
['Contains optional extra information about the event.'])
},
settings: {
currentVersion: _List_fromArray(
['Indicates the current version of the Elm SDK.']),
deviceName: _List_fromArray(
['Indicates the device name that is communicated to the Matrix API.']),
syncTime: _List_fromArray(
['Indicates the frequency in miliseconds with which the Elm SDK should long-poll the /sync endpoint.'])
},
unsigned: {
age: _List_fromArray(
['The time in milliseconds that has elapsed since the event was sent. This field is generated by the local homeserver, and may be incorrect if the local time on at least one of the two servers is out of sync, which can cause the age to either be negative or greater than it actually is.']),
prevContent: _List_fromArray(
['The previous content for this event. This field is generated by the local homeserver, and is only returned if the event is a state event, and the client has permission to see the previous content.']),
redactedBecause: _List_fromArray(
['The event that redacted this event, if any.']),
transactionId: _List_fromArray(
['The client-supplied transaction ID, for example, provided via PUT /_matrix/client/v3/rooms/{roomId}/send/{eventType}/{txnId}, if the client being given the event is the same one which sent it.'])
}
};
var $author$project$Internal$Tools$Json$DocsList = function (a) {
return {$: 'DocsList', a: a};
@ -7107,7 +7162,7 @@ var $author$project$Internal$Values$Settings$Settings = F3(
function (currentVersion, deviceName, syncTime) {
return {currentVersion: currentVersion, deviceName: deviceName, syncTime: syncTime};
});
var $author$project$Internal$Config$Default$currentVersion = 'beta 2.1.0';
var $author$project$Internal$Config$Default$currentVersion = 'beta 2.1.1';
var $author$project$Internal$Config$Default$deviceName = 'Elm SDK (' + ($author$project$Internal$Config$Default$currentVersion + ')');
var $elm$json$Json$Decode$map3 = _Json_map3;
var $author$project$Internal$Tools$Json$object3 = F4(