41 { OBJECT_TYPE_FIELD_PROPERTIES,
47 { PROPERTY_FIELD_TYPE, PROPERTY_TYPE_BOOLEAN },
48 { PROPERTY_FIELD_READ_ONLY,
true },
49 { PROPERTY_FIELD_DESCRIPTION,
50 "Whether the object has any registered actions. Every object registers `setProperty`, so this is "
51 "currently always true." },
57 { PROPERTY_FIELD_TYPE, PROPERTY_TYPE_BOOLEAN },
58 { PROPERTY_FIELD_READ_ONLY,
true },
59 { PROPERTY_FIELD_DESCRIPTION,
"Whether the object declares any events." },
65 { PROPERTY_FIELD_TYPE, PROPERTY_TYPE_STRING },
66 { PROPERTY_FIELD_READ_ONLY,
false },
67 { PROPERTY_FIELD_DESCRIPTION,
68 "The unique identifier of the object. Taken from the `id` or `objectID` configuration "
69 "key when the object is created. Other objects refer to it by this ID, so changing it "
70 "later does not update those references." },
76 { PROPERTY_FIELD_TYPE, PROPERTY_TYPE_STRING },
77 { PROPERTY_FIELD_READ_ONLY,
true },
78 { PROPERTY_FIELD_DESCRIPTION,
"The kind of the object." },
79 { PROPERTY_FIELD_OPTIONS,
89 { OBJECT_TYPE_FIELD_ACTIONS,
95 { ACTION_FIELD_DESCRIPTION,
96 "Returns the full state of the object including identity, configuration, and current property values." },
97 { ACTION_FIELD_RETURN_TYPE, ACTION_RETURN_TYPE_OBJECT },
98 { ACTION_FIELD_RETURN_DESCRIPTION,
99 "Map with `objectID`, `objectURI` (the object's ID prefixed by its parents' IDs, separated by dots), "
100 "`objectType`, `objectSubtype`, a legacy `id` copy of `objectID`, `configuration` (the "
101 "configuration values the object was created with) and `properties` (the current value "
102 "of every property). Nodes also include `type`, the full node type such as "
103 "`Switchboard.Gain`." },
106 {
"getConfiguration",
109 { ACTION_FIELD_DESCRIPTION,
110 "Returns the configuration parameters of this object with their schema and the value it was created with." },
111 { ACTION_FIELD_RETURN_TYPE, ACTION_RETURN_TYPE_OBJECT },
112 { ACTION_FIELD_RETURN_DESCRIPTION,
113 "Map keyed by configuration name; each entry holds the schema fields and the value used for this instance." },
119 { ACTION_FIELD_DESCRIPTION,
120 "Returns the properties of this object with their schema and current value." },
121 { ACTION_FIELD_RETURN_TYPE, ACTION_RETURN_TYPE_OBJECT },
122 { ACTION_FIELD_RETURN_DESCRIPTION,
123 "Map keyed by property name; each entry holds the schema fields and the current value." },
129 { ACTION_FIELD_DESCRIPTION,
130 "Returns the schema of the actions registered on this object." },
131 { ACTION_FIELD_RETURN_TYPE, ACTION_RETURN_TYPE_OBJECT },
132 { ACTION_FIELD_RETURN_DESCRIPTION,
133 "Map keyed by action name with the description, parameters and return type of each action. The built-in "
134 "`getState`, `getConfiguration`, `getProperties`, `getActions` and `getEvents` actions "
141 { ACTION_FIELD_DESCRIPTION,
142 "Returns the schema of the events this object can emit." },
143 { ACTION_FIELD_RETURN_TYPE, ACTION_RETURN_TYPE_OBJECT },
144 { ACTION_FIELD_RETURN_DESCRIPTION,
145 "Map keyed by event name with the description and data fields of each event." },
151 { ACTION_FIELD_DESCRIPTION,
152 "Sets a property to a new value by name. Works for any writable property, so it can be the target of an "
153 "event-to-action connection in a graph. Fails if the property does not exist or is read-only." },
154 { ACTION_FIELD_PARAMETERS,
160 { ACTION_PARAMETER_FIELD_NAME,
"name" },
161 { ACTION_PARAMETER_FIELD_DESCRIPTION,
162 "Name of the property to set." },
163 { ACTION_PARAMETER_FIELD_TYPE, ACTION_PARAMETER_TYPE_STRING },
164 { ACTION_PARAMETER_FIELD_IS_OPTIONAL,
false },
170 { ACTION_PARAMETER_FIELD_NAME,
"value" },
171 { ACTION_PARAMETER_FIELD_DESCRIPTION,
172 "New value for the property, of the property's type." },
173 { ACTION_PARAMETER_FIELD_TYPE, ACTION_PARAMETER_TYPE_OBJECT },
174 { ACTION_PARAMETER_FIELD_IS_OPTIONAL,
false },