Appearance
Rule.io SDK / rcml/src / smsSpec
Variable: smsSpec
constsmsSpec:SmsSpec
Defined in: rcml/src/sms/sms-spec.ts:69
Machine-readable SMS RCML specification.
Example
ts
import { smsSpec, smsRfmSpec } from '@rule/rcml'
// The only SMS tag
Object.keys(smsSpec.tags) // → ['rc-sms']
// Cross-reference with smsRfmSpec to get the content model
const tag = smsSpec.tags['rc-sms']
const flavor = smsRfmSpec.flavors[tag.content.type] // 'sms-rfm-content'
flavor.inlineNodes // ['text', 'placeholder', 'hardbreak']