Skip to main content
Version: 1.0

ChatInitSettings

A collection of settings to start a new chat conversation

Type

fdc3.chat.initSettings

Schema

https://fdc3.finos.org/schemas/next/chatInitSettings.schema.json

Details

PropertyTypeRequiredExample Value
typestringYes'fdc3.chat.initSettings'
chatNamestringNo'Instrument XYZ'
membersContactListNoContactList - cf. below
initMessagestringNo'Hello!'
options.groupRecipientsbooleanNotrue: if false a separate chat will be created for each member
options.publicbooleanNotrue: the room will be visible to everyone in the chat application
options.allowHistoryBrowsingbooleanNotrue: members will be allowed to browse past messages
options.allowMessageCopybooleanNotrue: members will be allowed to copy/paste messages
options.allowAddUserbooleanNotrue: members will be allowed to add other members to the chat

If members or chatName are not provided, the application executing this intent is expected to provide a means to enter such information.

Example

const initSettings = {
type: 'fdc3.chat.initSettings',
chatName: 'Chat ABCD',
members: {
type: 'fdc3.contactList',
contacts: [{
type: 'fdc3.contact',
name: 'Jane Doe',
id: {
email: 'jane@mail.com'
}
},{
type: 'fdc3.contact',
name: 'John Doe',
id: {
email: 'john@mail.com'
},
}]
},
options: {
groupRecipients: true, // one chat with both contacts
public: false, // private chat room
allowHistoryBrowsing: true,
allowMessageCopy: true
}
initMessage: 'Hello both!'
}

const res = fdc3.raiseIntent('StartChat', initSettings);
const roomRefs = await res.getResult();

See Also

Other Types

Intents

FINOS Financial Objects