ari_model_validators.h 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491
  1. /*
  2. * Asterisk -- An open source telephony toolkit.
  3. *
  4. * Copyright (C) 2013, Digium, Inc.
  5. *
  6. * See http://www.asterisk.org for more information about
  7. * the Asterisk project. Please do not directly contact
  8. * any of the maintainers of this project for assistance;
  9. * the project provides a web site, mailing lists and IRC
  10. * channels for your use.
  11. *
  12. * This program is free software, distributed under the terms of
  13. * the GNU General Public License Version 2. See the LICENSE file
  14. * at the top of the source tree.
  15. */
  16. /*! \file
  17. *
  18. * \brief Generated file - Build validators for ARI model objects.
  19. *
  20. * In addition to the normal validation functions one would normally expect,
  21. * each validator has a ast_ari_validate_{id}_fn() companion function that returns
  22. * the validator's function pointer.
  23. *
  24. * The reason for this seamingly useless indirection is the way function
  25. * pointers interfere with module loading. Asterisk attempts to dlopen() each
  26. * module using \c RTLD_LAZY in order to read some metadata from the module.
  27. * Unfortunately, if you take the address of a function, the function has to be
  28. * resolvable at load time, even if \c RTLD_LAZY is specified. By moving the
  29. * function-address-taking into this module, we can once again be lazy.
  30. */
  31. /*
  32. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  33. * !!!!! DO NOT EDIT !!!!!
  34. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  35. * This file is generated by a mustache template. Please see the original
  36. * template in rest-api-templates/ari_model_validators.h.mustache
  37. */
  38. #ifndef _ASTERISK_ARI_MODEL_H
  39. #define _ASTERISK_ARI_MODEL_H
  40. #include "asterisk/json.h"
  41. /*! @{ */
  42. /*!
  43. * \brief Validator for native Swagger void.
  44. *
  45. * \param json JSON object to validate.
  46. * \returns True (non-zero) if valid.
  47. * \returns False (zero) if invalid.
  48. */
  49. int ast_ari_validate_void(struct ast_json *json);
  50. /*!
  51. * \brief Validator for native Swagger object.
  52. *
  53. * \param json JSON object to validate.
  54. * \returns True (non-zero) if valid.
  55. * \returns False (zero) if invalid.
  56. */
  57. int ast_ari_validate_object(struct ast_json *json);
  58. /*!
  59. * \brief Validator for native Swagger byte.
  60. *
  61. * \param json JSON object to validate.
  62. * \returns True (non-zero) if valid.
  63. * \returns False (zero) if invalid.
  64. */
  65. int ast_ari_validate_byte(struct ast_json *json);
  66. /*!
  67. * \brief Validator for native Swagger boolean.
  68. *
  69. * \param json JSON object to validate.
  70. * \returns True (non-zero) if valid.
  71. * \returns False (zero) if invalid.
  72. */
  73. int ast_ari_validate_boolean(struct ast_json *json);
  74. /*!
  75. * \brief Validator for native Swagger int.
  76. *
  77. * \param json JSON object to validate.
  78. * \returns True (non-zero) if valid.
  79. * \returns False (zero) if invalid.
  80. */
  81. int ast_ari_validate_int(struct ast_json *json);
  82. /*!
  83. * \brief Validator for native Swagger long.
  84. *
  85. * \param json JSON object to validate.
  86. * \returns True (non-zero) if valid.
  87. * \returns False (zero) if invalid.
  88. */
  89. int ast_ari_validate_long(struct ast_json *json);
  90. /*!
  91. * \brief Validator for native Swagger float.
  92. *
  93. * \param json JSON object to validate.
  94. * \returns True (non-zero) if valid.
  95. * \returns False (zero) if invalid.
  96. */
  97. int ast_ari_validate_float(struct ast_json *json);
  98. /*!
  99. * \brief Validator for native Swagger double.
  100. *
  101. * \param json JSON object to validate.
  102. * \returns True (non-zero) if valid.
  103. * \returns False (zero) if invalid.
  104. */
  105. int ast_ari_validate_double(struct ast_json *json);
  106. /*!
  107. * \brief Validator for native Swagger string.
  108. *
  109. * \param json JSON object to validate.
  110. * \returns True (non-zero) if valid.
  111. * \returns False (zero) if invalid.
  112. */
  113. int ast_ari_validate_string(struct ast_json *json);
  114. /*!
  115. * \brief Validator for native Swagger date.
  116. *
  117. * \param json JSON object to validate.
  118. * \returns True (non-zero) if valid.
  119. * \returns False (zero) if invalid.
  120. */
  121. int ast_ari_validate_date(struct ast_json *json);
  122. /*!
  123. * \brief Validator for a Swagger List[]/JSON array.
  124. *
  125. * \param json JSON object to validate.
  126. * \param fn Validator to call on every element in the array.
  127. * \returns True (non-zero) if valid.
  128. * \returns False (zero) if invalid.
  129. */
  130. int ast_ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
  131. /*! @} */
  132. /*!
  133. * \brief Function type for validator functions. Allows for
  134. */
  135. typedef int (*ari_validator)(struct ast_json *json);
  136. /*!
  137. * \brief Validator for AsteriskInfo.
  138. *
  139. * Asterisk system information
  140. *
  141. * \param json JSON object to validate.
  142. * \returns True (non-zero) if valid.
  143. * \returns False (zero) if invalid.
  144. */
  145. int ast_ari_validate_asterisk_info(struct ast_json *json);
  146. /*!
  147. * \brief Function pointer to ast_ari_validate_asterisk_info().
  148. *
  149. * See \ref ast_ari_model_validators.h for more details.
  150. */
  151. ari_validator ast_ari_validate_asterisk_info_fn(void);
  152. /*!
  153. * \brief Validator for BuildInfo.
  154. *
  155. * Info about how Asterisk was built
  156. *
  157. * \param json JSON object to validate.
  158. * \returns True (non-zero) if valid.
  159. * \returns False (zero) if invalid.
  160. */
  161. int ast_ari_validate_build_info(struct ast_json *json);
  162. /*!
  163. * \brief Function pointer to ast_ari_validate_build_info().
  164. *
  165. * See \ref ast_ari_model_validators.h for more details.
  166. */
  167. ari_validator ast_ari_validate_build_info_fn(void);
  168. /*!
  169. * \brief Validator for ConfigInfo.
  170. *
  171. * Info about Asterisk configuration
  172. *
  173. * \param json JSON object to validate.
  174. * \returns True (non-zero) if valid.
  175. * \returns False (zero) if invalid.
  176. */
  177. int ast_ari_validate_config_info(struct ast_json *json);
  178. /*!
  179. * \brief Function pointer to ast_ari_validate_config_info().
  180. *
  181. * See \ref ast_ari_model_validators.h for more details.
  182. */
  183. ari_validator ast_ari_validate_config_info_fn(void);
  184. /*!
  185. * \brief Validator for SetId.
  186. *
  187. * Effective user/group id
  188. *
  189. * \param json JSON object to validate.
  190. * \returns True (non-zero) if valid.
  191. * \returns False (zero) if invalid.
  192. */
  193. int ast_ari_validate_set_id(struct ast_json *json);
  194. /*!
  195. * \brief Function pointer to ast_ari_validate_set_id().
  196. *
  197. * See \ref ast_ari_model_validators.h for more details.
  198. */
  199. ari_validator ast_ari_validate_set_id_fn(void);
  200. /*!
  201. * \brief Validator for StatusInfo.
  202. *
  203. * Info about Asterisk status
  204. *
  205. * \param json JSON object to validate.
  206. * \returns True (non-zero) if valid.
  207. * \returns False (zero) if invalid.
  208. */
  209. int ast_ari_validate_status_info(struct ast_json *json);
  210. /*!
  211. * \brief Function pointer to ast_ari_validate_status_info().
  212. *
  213. * See \ref ast_ari_model_validators.h for more details.
  214. */
  215. ari_validator ast_ari_validate_status_info_fn(void);
  216. /*!
  217. * \brief Validator for SystemInfo.
  218. *
  219. * Info about Asterisk
  220. *
  221. * \param json JSON object to validate.
  222. * \returns True (non-zero) if valid.
  223. * \returns False (zero) if invalid.
  224. */
  225. int ast_ari_validate_system_info(struct ast_json *json);
  226. /*!
  227. * \brief Function pointer to ast_ari_validate_system_info().
  228. *
  229. * See \ref ast_ari_model_validators.h for more details.
  230. */
  231. ari_validator ast_ari_validate_system_info_fn(void);
  232. /*!
  233. * \brief Validator for Variable.
  234. *
  235. * The value of a channel variable
  236. *
  237. * \param json JSON object to validate.
  238. * \returns True (non-zero) if valid.
  239. * \returns False (zero) if invalid.
  240. */
  241. int ast_ari_validate_variable(struct ast_json *json);
  242. /*!
  243. * \brief Function pointer to ast_ari_validate_variable().
  244. *
  245. * See \ref ast_ari_model_validators.h for more details.
  246. */
  247. ari_validator ast_ari_validate_variable_fn(void);
  248. /*!
  249. * \brief Validator for Endpoint.
  250. *
  251. * An external device that may offer/accept calls to/from Asterisk.
  252. *
  253. * Unlike most resources, which have a single unique identifier, an endpoint is uniquely identified by the technology/resource pair.
  254. *
  255. * \param json JSON object to validate.
  256. * \returns True (non-zero) if valid.
  257. * \returns False (zero) if invalid.
  258. */
  259. int ast_ari_validate_endpoint(struct ast_json *json);
  260. /*!
  261. * \brief Function pointer to ast_ari_validate_endpoint().
  262. *
  263. * See \ref ast_ari_model_validators.h for more details.
  264. */
  265. ari_validator ast_ari_validate_endpoint_fn(void);
  266. /*!
  267. * \brief Validator for TextMessage.
  268. *
  269. * A text message.
  270. *
  271. * \param json JSON object to validate.
  272. * \returns True (non-zero) if valid.
  273. * \returns False (zero) if invalid.
  274. */
  275. int ast_ari_validate_text_message(struct ast_json *json);
  276. /*!
  277. * \brief Function pointer to ast_ari_validate_text_message().
  278. *
  279. * See \ref ast_ari_model_validators.h for more details.
  280. */
  281. ari_validator ast_ari_validate_text_message_fn(void);
  282. /*!
  283. * \brief Validator for TextMessageVariable.
  284. *
  285. * A key/value pair variable in a text message.
  286. *
  287. * \param json JSON object to validate.
  288. * \returns True (non-zero) if valid.
  289. * \returns False (zero) if invalid.
  290. */
  291. int ast_ari_validate_text_message_variable(struct ast_json *json);
  292. /*!
  293. * \brief Function pointer to ast_ari_validate_text_message_variable().
  294. *
  295. * See \ref ast_ari_model_validators.h for more details.
  296. */
  297. ari_validator ast_ari_validate_text_message_variable_fn(void);
  298. /*!
  299. * \brief Validator for CallerID.
  300. *
  301. * Caller identification
  302. *
  303. * \param json JSON object to validate.
  304. * \returns True (non-zero) if valid.
  305. * \returns False (zero) if invalid.
  306. */
  307. int ast_ari_validate_caller_id(struct ast_json *json);
  308. /*!
  309. * \brief Function pointer to ast_ari_validate_caller_id().
  310. *
  311. * See \ref ast_ari_model_validators.h for more details.
  312. */
  313. ari_validator ast_ari_validate_caller_id_fn(void);
  314. /*!
  315. * \brief Validator for Channel.
  316. *
  317. * A specific communication connection between Asterisk and an Endpoint.
  318. *
  319. * \param json JSON object to validate.
  320. * \returns True (non-zero) if valid.
  321. * \returns False (zero) if invalid.
  322. */
  323. int ast_ari_validate_channel(struct ast_json *json);
  324. /*!
  325. * \brief Function pointer to ast_ari_validate_channel().
  326. *
  327. * See \ref ast_ari_model_validators.h for more details.
  328. */
  329. ari_validator ast_ari_validate_channel_fn(void);
  330. /*!
  331. * \brief Validator for Dialed.
  332. *
  333. * Dialed channel information.
  334. *
  335. * \param json JSON object to validate.
  336. * \returns True (non-zero) if valid.
  337. * \returns False (zero) if invalid.
  338. */
  339. int ast_ari_validate_dialed(struct ast_json *json);
  340. /*!
  341. * \brief Function pointer to ast_ari_validate_dialed().
  342. *
  343. * See \ref ast_ari_model_validators.h for more details.
  344. */
  345. ari_validator ast_ari_validate_dialed_fn(void);
  346. /*!
  347. * \brief Validator for DialplanCEP.
  348. *
  349. * Dialplan location (context/extension/priority)
  350. *
  351. * \param json JSON object to validate.
  352. * \returns True (non-zero) if valid.
  353. * \returns False (zero) if invalid.
  354. */
  355. int ast_ari_validate_dialplan_cep(struct ast_json *json);
  356. /*!
  357. * \brief Function pointer to ast_ari_validate_dialplan_cep().
  358. *
  359. * See \ref ast_ari_model_validators.h for more details.
  360. */
  361. ari_validator ast_ari_validate_dialplan_cep_fn(void);
  362. /*!
  363. * \brief Validator for Bridge.
  364. *
  365. * The merging of media from one or more channels.
  366. *
  367. * Everyone on the bridge receives the same audio.
  368. *
  369. * \param json JSON object to validate.
  370. * \returns True (non-zero) if valid.
  371. * \returns False (zero) if invalid.
  372. */
  373. int ast_ari_validate_bridge(struct ast_json *json);
  374. /*!
  375. * \brief Function pointer to ast_ari_validate_bridge().
  376. *
  377. * See \ref ast_ari_model_validators.h for more details.
  378. */
  379. ari_validator ast_ari_validate_bridge_fn(void);
  380. /*!
  381. * \brief Validator for LiveRecording.
  382. *
  383. * A recording that is in progress
  384. *
  385. * \param json JSON object to validate.
  386. * \returns True (non-zero) if valid.
  387. * \returns False (zero) if invalid.
  388. */
  389. int ast_ari_validate_live_recording(struct ast_json *json);
  390. /*!
  391. * \brief Function pointer to ast_ari_validate_live_recording().
  392. *
  393. * See \ref ast_ari_model_validators.h for more details.
  394. */
  395. ari_validator ast_ari_validate_live_recording_fn(void);
  396. /*!
  397. * \brief Validator for StoredRecording.
  398. *
  399. * A past recording that may be played back.
  400. *
  401. * \param json JSON object to validate.
  402. * \returns True (non-zero) if valid.
  403. * \returns False (zero) if invalid.
  404. */
  405. int ast_ari_validate_stored_recording(struct ast_json *json);
  406. /*!
  407. * \brief Function pointer to ast_ari_validate_stored_recording().
  408. *
  409. * See \ref ast_ari_model_validators.h for more details.
  410. */
  411. ari_validator ast_ari_validate_stored_recording_fn(void);
  412. /*!
  413. * \brief Validator for FormatLangPair.
  414. *
  415. * Identifies the format and language of a sound file
  416. *
  417. * \param json JSON object to validate.
  418. * \returns True (non-zero) if valid.
  419. * \returns False (zero) if invalid.
  420. */
  421. int ast_ari_validate_format_lang_pair(struct ast_json *json);
  422. /*!
  423. * \brief Function pointer to ast_ari_validate_format_lang_pair().
  424. *
  425. * See \ref ast_ari_model_validators.h for more details.
  426. */
  427. ari_validator ast_ari_validate_format_lang_pair_fn(void);
  428. /*!
  429. * \brief Validator for Sound.
  430. *
  431. * A media file that may be played back.
  432. *
  433. * \param json JSON object to validate.
  434. * \returns True (non-zero) if valid.
  435. * \returns False (zero) if invalid.
  436. */
  437. int ast_ari_validate_sound(struct ast_json *json);
  438. /*!
  439. * \brief Function pointer to ast_ari_validate_sound().
  440. *
  441. * See \ref ast_ari_model_validators.h for more details.
  442. */
  443. ari_validator ast_ari_validate_sound_fn(void);
  444. /*!
  445. * \brief Validator for Playback.
  446. *
  447. * Object representing the playback of media to a channel
  448. *
  449. * \param json JSON object to validate.
  450. * \returns True (non-zero) if valid.
  451. * \returns False (zero) if invalid.
  452. */
  453. int ast_ari_validate_playback(struct ast_json *json);
  454. /*!
  455. * \brief Function pointer to ast_ari_validate_playback().
  456. *
  457. * See \ref ast_ari_model_validators.h for more details.
  458. */
  459. ari_validator ast_ari_validate_playback_fn(void);
  460. /*!
  461. * \brief Validator for DeviceState.
  462. *
  463. * Represents the state of a device.
  464. *
  465. * \param json JSON object to validate.
  466. * \returns True (non-zero) if valid.
  467. * \returns False (zero) if invalid.
  468. */
  469. int ast_ari_validate_device_state(struct ast_json *json);
  470. /*!
  471. * \brief Function pointer to ast_ari_validate_device_state().
  472. *
  473. * See \ref ast_ari_model_validators.h for more details.
  474. */
  475. ari_validator ast_ari_validate_device_state_fn(void);
  476. /*!
  477. * \brief Validator for Mailbox.
  478. *
  479. * Represents the state of a mailbox.
  480. *
  481. * \param json JSON object to validate.
  482. * \returns True (non-zero) if valid.
  483. * \returns False (zero) if invalid.
  484. */
  485. int ast_ari_validate_mailbox(struct ast_json *json);
  486. /*!
  487. * \brief Function pointer to ast_ari_validate_mailbox().
  488. *
  489. * See \ref ast_ari_model_validators.h for more details.
  490. */
  491. ari_validator ast_ari_validate_mailbox_fn(void);
  492. /*!
  493. * \brief Validator for ApplicationReplaced.
  494. *
  495. * Notification that another WebSocket has taken over for an application.
  496. *
  497. * An application may only be subscribed to by a single WebSocket at a time. If multiple WebSockets attempt to subscribe to the same application, the newer WebSocket wins, and the older one receives this event.
  498. *
  499. * \param json JSON object to validate.
  500. * \returns True (non-zero) if valid.
  501. * \returns False (zero) if invalid.
  502. */
  503. int ast_ari_validate_application_replaced(struct ast_json *json);
  504. /*!
  505. * \brief Function pointer to ast_ari_validate_application_replaced().
  506. *
  507. * See \ref ast_ari_model_validators.h for more details.
  508. */
  509. ari_validator ast_ari_validate_application_replaced_fn(void);
  510. /*!
  511. * \brief Validator for BridgeAttendedTransfer.
  512. *
  513. * Notification that an attended transfer has occurred.
  514. *
  515. * \param json JSON object to validate.
  516. * \returns True (non-zero) if valid.
  517. * \returns False (zero) if invalid.
  518. */
  519. int ast_ari_validate_bridge_attended_transfer(struct ast_json *json);
  520. /*!
  521. * \brief Function pointer to ast_ari_validate_bridge_attended_transfer().
  522. *
  523. * See \ref ast_ari_model_validators.h for more details.
  524. */
  525. ari_validator ast_ari_validate_bridge_attended_transfer_fn(void);
  526. /*!
  527. * \brief Validator for BridgeBlindTransfer.
  528. *
  529. * Notification that a blind transfer has occurred.
  530. *
  531. * \param json JSON object to validate.
  532. * \returns True (non-zero) if valid.
  533. * \returns False (zero) if invalid.
  534. */
  535. int ast_ari_validate_bridge_blind_transfer(struct ast_json *json);
  536. /*!
  537. * \brief Function pointer to ast_ari_validate_bridge_blind_transfer().
  538. *
  539. * See \ref ast_ari_model_validators.h for more details.
  540. */
  541. ari_validator ast_ari_validate_bridge_blind_transfer_fn(void);
  542. /*!
  543. * \brief Validator for BridgeCreated.
  544. *
  545. * Notification that a bridge has been created.
  546. *
  547. * \param json JSON object to validate.
  548. * \returns True (non-zero) if valid.
  549. * \returns False (zero) if invalid.
  550. */
  551. int ast_ari_validate_bridge_created(struct ast_json *json);
  552. /*!
  553. * \brief Function pointer to ast_ari_validate_bridge_created().
  554. *
  555. * See \ref ast_ari_model_validators.h for more details.
  556. */
  557. ari_validator ast_ari_validate_bridge_created_fn(void);
  558. /*!
  559. * \brief Validator for BridgeDestroyed.
  560. *
  561. * Notification that a bridge has been destroyed.
  562. *
  563. * \param json JSON object to validate.
  564. * \returns True (non-zero) if valid.
  565. * \returns False (zero) if invalid.
  566. */
  567. int ast_ari_validate_bridge_destroyed(struct ast_json *json);
  568. /*!
  569. * \brief Function pointer to ast_ari_validate_bridge_destroyed().
  570. *
  571. * See \ref ast_ari_model_validators.h for more details.
  572. */
  573. ari_validator ast_ari_validate_bridge_destroyed_fn(void);
  574. /*!
  575. * \brief Validator for BridgeMerged.
  576. *
  577. * Notification that one bridge has merged into another.
  578. *
  579. * \param json JSON object to validate.
  580. * \returns True (non-zero) if valid.
  581. * \returns False (zero) if invalid.
  582. */
  583. int ast_ari_validate_bridge_merged(struct ast_json *json);
  584. /*!
  585. * \brief Function pointer to ast_ari_validate_bridge_merged().
  586. *
  587. * See \ref ast_ari_model_validators.h for more details.
  588. */
  589. ari_validator ast_ari_validate_bridge_merged_fn(void);
  590. /*!
  591. * \brief Validator for ChannelCallerId.
  592. *
  593. * Channel changed Caller ID.
  594. *
  595. * \param json JSON object to validate.
  596. * \returns True (non-zero) if valid.
  597. * \returns False (zero) if invalid.
  598. */
  599. int ast_ari_validate_channel_caller_id(struct ast_json *json);
  600. /*!
  601. * \brief Function pointer to ast_ari_validate_channel_caller_id().
  602. *
  603. * See \ref ast_ari_model_validators.h for more details.
  604. */
  605. ari_validator ast_ari_validate_channel_caller_id_fn(void);
  606. /*!
  607. * \brief Validator for ChannelCreated.
  608. *
  609. * Notification that a channel has been created.
  610. *
  611. * \param json JSON object to validate.
  612. * \returns True (non-zero) if valid.
  613. * \returns False (zero) if invalid.
  614. */
  615. int ast_ari_validate_channel_created(struct ast_json *json);
  616. /*!
  617. * \brief Function pointer to ast_ari_validate_channel_created().
  618. *
  619. * See \ref ast_ari_model_validators.h for more details.
  620. */
  621. ari_validator ast_ari_validate_channel_created_fn(void);
  622. /*!
  623. * \brief Validator for ChannelDestroyed.
  624. *
  625. * Notification that a channel has been destroyed.
  626. *
  627. * \param json JSON object to validate.
  628. * \returns True (non-zero) if valid.
  629. * \returns False (zero) if invalid.
  630. */
  631. int ast_ari_validate_channel_destroyed(struct ast_json *json);
  632. /*!
  633. * \brief Function pointer to ast_ari_validate_channel_destroyed().
  634. *
  635. * See \ref ast_ari_model_validators.h for more details.
  636. */
  637. ari_validator ast_ari_validate_channel_destroyed_fn(void);
  638. /*!
  639. * \brief Validator for ChannelDialplan.
  640. *
  641. * Channel changed location in the dialplan.
  642. *
  643. * \param json JSON object to validate.
  644. * \returns True (non-zero) if valid.
  645. * \returns False (zero) if invalid.
  646. */
  647. int ast_ari_validate_channel_dialplan(struct ast_json *json);
  648. /*!
  649. * \brief Function pointer to ast_ari_validate_channel_dialplan().
  650. *
  651. * See \ref ast_ari_model_validators.h for more details.
  652. */
  653. ari_validator ast_ari_validate_channel_dialplan_fn(void);
  654. /*!
  655. * \brief Validator for ChannelDtmfReceived.
  656. *
  657. * DTMF received on a channel.
  658. *
  659. * This event is sent when the DTMF ends. There is no notification about the start of DTMF
  660. *
  661. * \param json JSON object to validate.
  662. * \returns True (non-zero) if valid.
  663. * \returns False (zero) if invalid.
  664. */
  665. int ast_ari_validate_channel_dtmf_received(struct ast_json *json);
  666. /*!
  667. * \brief Function pointer to ast_ari_validate_channel_dtmf_received().
  668. *
  669. * See \ref ast_ari_model_validators.h for more details.
  670. */
  671. ari_validator ast_ari_validate_channel_dtmf_received_fn(void);
  672. /*!
  673. * \brief Validator for ChannelEnteredBridge.
  674. *
  675. * Notification that a channel has entered a bridge.
  676. *
  677. * \param json JSON object to validate.
  678. * \returns True (non-zero) if valid.
  679. * \returns False (zero) if invalid.
  680. */
  681. int ast_ari_validate_channel_entered_bridge(struct ast_json *json);
  682. /*!
  683. * \brief Function pointer to ast_ari_validate_channel_entered_bridge().
  684. *
  685. * See \ref ast_ari_model_validators.h for more details.
  686. */
  687. ari_validator ast_ari_validate_channel_entered_bridge_fn(void);
  688. /*!
  689. * \brief Validator for ChannelHangupRequest.
  690. *
  691. * A hangup was requested on the channel.
  692. *
  693. * \param json JSON object to validate.
  694. * \returns True (non-zero) if valid.
  695. * \returns False (zero) if invalid.
  696. */
  697. int ast_ari_validate_channel_hangup_request(struct ast_json *json);
  698. /*!
  699. * \brief Function pointer to ast_ari_validate_channel_hangup_request().
  700. *
  701. * See \ref ast_ari_model_validators.h for more details.
  702. */
  703. ari_validator ast_ari_validate_channel_hangup_request_fn(void);
  704. /*!
  705. * \brief Validator for ChannelLeftBridge.
  706. *
  707. * Notification that a channel has left a bridge.
  708. *
  709. * \param json JSON object to validate.
  710. * \returns True (non-zero) if valid.
  711. * \returns False (zero) if invalid.
  712. */
  713. int ast_ari_validate_channel_left_bridge(struct ast_json *json);
  714. /*!
  715. * \brief Function pointer to ast_ari_validate_channel_left_bridge().
  716. *
  717. * See \ref ast_ari_model_validators.h for more details.
  718. */
  719. ari_validator ast_ari_validate_channel_left_bridge_fn(void);
  720. /*!
  721. * \brief Validator for ChannelStateChange.
  722. *
  723. * Notification of a channel's state change.
  724. *
  725. * \param json JSON object to validate.
  726. * \returns True (non-zero) if valid.
  727. * \returns False (zero) if invalid.
  728. */
  729. int ast_ari_validate_channel_state_change(struct ast_json *json);
  730. /*!
  731. * \brief Function pointer to ast_ari_validate_channel_state_change().
  732. *
  733. * See \ref ast_ari_model_validators.h for more details.
  734. */
  735. ari_validator ast_ari_validate_channel_state_change_fn(void);
  736. /*!
  737. * \brief Validator for ChannelTalkingFinished.
  738. *
  739. * Talking is no longer detected on the channel.
  740. *
  741. * \param json JSON object to validate.
  742. * \returns True (non-zero) if valid.
  743. * \returns False (zero) if invalid.
  744. */
  745. int ast_ari_validate_channel_talking_finished(struct ast_json *json);
  746. /*!
  747. * \brief Function pointer to ast_ari_validate_channel_talking_finished().
  748. *
  749. * See \ref ast_ari_model_validators.h for more details.
  750. */
  751. ari_validator ast_ari_validate_channel_talking_finished_fn(void);
  752. /*!
  753. * \brief Validator for ChannelTalkingStarted.
  754. *
  755. * Talking was detected on the channel.
  756. *
  757. * \param json JSON object to validate.
  758. * \returns True (non-zero) if valid.
  759. * \returns False (zero) if invalid.
  760. */
  761. int ast_ari_validate_channel_talking_started(struct ast_json *json);
  762. /*!
  763. * \brief Function pointer to ast_ari_validate_channel_talking_started().
  764. *
  765. * See \ref ast_ari_model_validators.h for more details.
  766. */
  767. ari_validator ast_ari_validate_channel_talking_started_fn(void);
  768. /*!
  769. * \brief Validator for ChannelUserevent.
  770. *
  771. * User-generated event with additional user-defined fields in the object.
  772. *
  773. * \param json JSON object to validate.
  774. * \returns True (non-zero) if valid.
  775. * \returns False (zero) if invalid.
  776. */
  777. int ast_ari_validate_channel_userevent(struct ast_json *json);
  778. /*!
  779. * \brief Function pointer to ast_ari_validate_channel_userevent().
  780. *
  781. * See \ref ast_ari_model_validators.h for more details.
  782. */
  783. ari_validator ast_ari_validate_channel_userevent_fn(void);
  784. /*!
  785. * \brief Validator for ChannelVarset.
  786. *
  787. * Channel variable changed.
  788. *
  789. * \param json JSON object to validate.
  790. * \returns True (non-zero) if valid.
  791. * \returns False (zero) if invalid.
  792. */
  793. int ast_ari_validate_channel_varset(struct ast_json *json);
  794. /*!
  795. * \brief Function pointer to ast_ari_validate_channel_varset().
  796. *
  797. * See \ref ast_ari_model_validators.h for more details.
  798. */
  799. ari_validator ast_ari_validate_channel_varset_fn(void);
  800. /*!
  801. * \brief Validator for DeviceStateChanged.
  802. *
  803. * Notification that a device state has changed.
  804. *
  805. * \param json JSON object to validate.
  806. * \returns True (non-zero) if valid.
  807. * \returns False (zero) if invalid.
  808. */
  809. int ast_ari_validate_device_state_changed(struct ast_json *json);
  810. /*!
  811. * \brief Function pointer to ast_ari_validate_device_state_changed().
  812. *
  813. * See \ref ast_ari_model_validators.h for more details.
  814. */
  815. ari_validator ast_ari_validate_device_state_changed_fn(void);
  816. /*!
  817. * \brief Validator for Dial.
  818. *
  819. * Dialing state has changed.
  820. *
  821. * \param json JSON object to validate.
  822. * \returns True (non-zero) if valid.
  823. * \returns False (zero) if invalid.
  824. */
  825. int ast_ari_validate_dial(struct ast_json *json);
  826. /*!
  827. * \brief Function pointer to ast_ari_validate_dial().
  828. *
  829. * See \ref ast_ari_model_validators.h for more details.
  830. */
  831. ari_validator ast_ari_validate_dial_fn(void);
  832. /*!
  833. * \brief Validator for EndpointStateChange.
  834. *
  835. * Endpoint state changed.
  836. *
  837. * \param json JSON object to validate.
  838. * \returns True (non-zero) if valid.
  839. * \returns False (zero) if invalid.
  840. */
  841. int ast_ari_validate_endpoint_state_change(struct ast_json *json);
  842. /*!
  843. * \brief Function pointer to ast_ari_validate_endpoint_state_change().
  844. *
  845. * See \ref ast_ari_model_validators.h for more details.
  846. */
  847. ari_validator ast_ari_validate_endpoint_state_change_fn(void);
  848. /*!
  849. * \brief Validator for Event.
  850. *
  851. * Base type for asynchronous events from Asterisk.
  852. *
  853. * \param json JSON object to validate.
  854. * \returns True (non-zero) if valid.
  855. * \returns False (zero) if invalid.
  856. */
  857. int ast_ari_validate_event(struct ast_json *json);
  858. /*!
  859. * \brief Function pointer to ast_ari_validate_event().
  860. *
  861. * See \ref ast_ari_model_validators.h for more details.
  862. */
  863. ari_validator ast_ari_validate_event_fn(void);
  864. /*!
  865. * \brief Validator for Message.
  866. *
  867. * Base type for errors and events
  868. *
  869. * \param json JSON object to validate.
  870. * \returns True (non-zero) if valid.
  871. * \returns False (zero) if invalid.
  872. */
  873. int ast_ari_validate_message(struct ast_json *json);
  874. /*!
  875. * \brief Function pointer to ast_ari_validate_message().
  876. *
  877. * See \ref ast_ari_model_validators.h for more details.
  878. */
  879. ari_validator ast_ari_validate_message_fn(void);
  880. /*!
  881. * \brief Validator for MissingParams.
  882. *
  883. * Error event sent when required params are missing.
  884. *
  885. * \param json JSON object to validate.
  886. * \returns True (non-zero) if valid.
  887. * \returns False (zero) if invalid.
  888. */
  889. int ast_ari_validate_missing_params(struct ast_json *json);
  890. /*!
  891. * \brief Function pointer to ast_ari_validate_missing_params().
  892. *
  893. * See \ref ast_ari_model_validators.h for more details.
  894. */
  895. ari_validator ast_ari_validate_missing_params_fn(void);
  896. /*!
  897. * \brief Validator for PlaybackFinished.
  898. *
  899. * Event showing the completion of a media playback operation.
  900. *
  901. * \param json JSON object to validate.
  902. * \returns True (non-zero) if valid.
  903. * \returns False (zero) if invalid.
  904. */
  905. int ast_ari_validate_playback_finished(struct ast_json *json);
  906. /*!
  907. * \brief Function pointer to ast_ari_validate_playback_finished().
  908. *
  909. * See \ref ast_ari_model_validators.h for more details.
  910. */
  911. ari_validator ast_ari_validate_playback_finished_fn(void);
  912. /*!
  913. * \brief Validator for PlaybackStarted.
  914. *
  915. * Event showing the start of a media playback operation.
  916. *
  917. * \param json JSON object to validate.
  918. * \returns True (non-zero) if valid.
  919. * \returns False (zero) if invalid.
  920. */
  921. int ast_ari_validate_playback_started(struct ast_json *json);
  922. /*!
  923. * \brief Function pointer to ast_ari_validate_playback_started().
  924. *
  925. * See \ref ast_ari_model_validators.h for more details.
  926. */
  927. ari_validator ast_ari_validate_playback_started_fn(void);
  928. /*!
  929. * \brief Validator for RecordingFailed.
  930. *
  931. * Event showing failure of a recording operation.
  932. *
  933. * \param json JSON object to validate.
  934. * \returns True (non-zero) if valid.
  935. * \returns False (zero) if invalid.
  936. */
  937. int ast_ari_validate_recording_failed(struct ast_json *json);
  938. /*!
  939. * \brief Function pointer to ast_ari_validate_recording_failed().
  940. *
  941. * See \ref ast_ari_model_validators.h for more details.
  942. */
  943. ari_validator ast_ari_validate_recording_failed_fn(void);
  944. /*!
  945. * \brief Validator for RecordingFinished.
  946. *
  947. * Event showing the completion of a recording operation.
  948. *
  949. * \param json JSON object to validate.
  950. * \returns True (non-zero) if valid.
  951. * \returns False (zero) if invalid.
  952. */
  953. int ast_ari_validate_recording_finished(struct ast_json *json);
  954. /*!
  955. * \brief Function pointer to ast_ari_validate_recording_finished().
  956. *
  957. * See \ref ast_ari_model_validators.h for more details.
  958. */
  959. ari_validator ast_ari_validate_recording_finished_fn(void);
  960. /*!
  961. * \brief Validator for RecordingStarted.
  962. *
  963. * Event showing the start of a recording operation.
  964. *
  965. * \param json JSON object to validate.
  966. * \returns True (non-zero) if valid.
  967. * \returns False (zero) if invalid.
  968. */
  969. int ast_ari_validate_recording_started(struct ast_json *json);
  970. /*!
  971. * \brief Function pointer to ast_ari_validate_recording_started().
  972. *
  973. * See \ref ast_ari_model_validators.h for more details.
  974. */
  975. ari_validator ast_ari_validate_recording_started_fn(void);
  976. /*!
  977. * \brief Validator for StasisEnd.
  978. *
  979. * Notification that a channel has left a Stasis application.
  980. *
  981. * \param json JSON object to validate.
  982. * \returns True (non-zero) if valid.
  983. * \returns False (zero) if invalid.
  984. */
  985. int ast_ari_validate_stasis_end(struct ast_json *json);
  986. /*!
  987. * \brief Function pointer to ast_ari_validate_stasis_end().
  988. *
  989. * See \ref ast_ari_model_validators.h for more details.
  990. */
  991. ari_validator ast_ari_validate_stasis_end_fn(void);
  992. /*!
  993. * \brief Validator for StasisStart.
  994. *
  995. * Notification that a channel has entered a Stasis application.
  996. *
  997. * \param json JSON object to validate.
  998. * \returns True (non-zero) if valid.
  999. * \returns False (zero) if invalid.
  1000. */
  1001. int ast_ari_validate_stasis_start(struct ast_json *json);
  1002. /*!
  1003. * \brief Function pointer to ast_ari_validate_stasis_start().
  1004. *
  1005. * See \ref ast_ari_model_validators.h for more details.
  1006. */
  1007. ari_validator ast_ari_validate_stasis_start_fn(void);
  1008. /*!
  1009. * \brief Validator for TextMessageReceived.
  1010. *
  1011. * A text message was received from an endpoint.
  1012. *
  1013. * \param json JSON object to validate.
  1014. * \returns True (non-zero) if valid.
  1015. * \returns False (zero) if invalid.
  1016. */
  1017. int ast_ari_validate_text_message_received(struct ast_json *json);
  1018. /*!
  1019. * \brief Function pointer to ast_ari_validate_text_message_received().
  1020. *
  1021. * See \ref ast_ari_model_validators.h for more details.
  1022. */
  1023. ari_validator ast_ari_validate_text_message_received_fn(void);
  1024. /*!
  1025. * \brief Validator for Application.
  1026. *
  1027. * Details of a Stasis application
  1028. *
  1029. * \param json JSON object to validate.
  1030. * \returns True (non-zero) if valid.
  1031. * \returns False (zero) if invalid.
  1032. */
  1033. int ast_ari_validate_application(struct ast_json *json);
  1034. /*!
  1035. * \brief Function pointer to ast_ari_validate_application().
  1036. *
  1037. * See \ref ast_ari_model_validators.h for more details.
  1038. */
  1039. ari_validator ast_ari_validate_application_fn(void);
  1040. /*
  1041. * JSON models
  1042. *
  1043. * AsteriskInfo
  1044. * - build: BuildInfo
  1045. * - config: ConfigInfo
  1046. * - status: StatusInfo
  1047. * - system: SystemInfo
  1048. * BuildInfo
  1049. * - date: string (required)
  1050. * - kernel: string (required)
  1051. * - machine: string (required)
  1052. * - options: string (required)
  1053. * - os: string (required)
  1054. * - user: string (required)
  1055. * ConfigInfo
  1056. * - default_language: string (required)
  1057. * - max_channels: int
  1058. * - max_load: double
  1059. * - max_open_files: int
  1060. * - name: string (required)
  1061. * - setid: SetId (required)
  1062. * SetId
  1063. * - group: string (required)
  1064. * - user: string (required)
  1065. * StatusInfo
  1066. * - last_reload_time: Date (required)
  1067. * - startup_time: Date (required)
  1068. * SystemInfo
  1069. * - entity_id: string (required)
  1070. * - version: string (required)
  1071. * Variable
  1072. * - value: string (required)
  1073. * Endpoint
  1074. * - channel_ids: List[string] (required)
  1075. * - resource: string (required)
  1076. * - state: string
  1077. * - technology: string (required)
  1078. * TextMessage
  1079. * - body: string (required)
  1080. * - from: string (required)
  1081. * - to: string (required)
  1082. * - variables: List[TextMessageVariable]
  1083. * TextMessageVariable
  1084. * - key: string (required)
  1085. * - value: string (required)
  1086. * CallerID
  1087. * - name: string (required)
  1088. * - number: string (required)
  1089. * Channel
  1090. * - accountcode: string (required)
  1091. * - caller: CallerID (required)
  1092. * - connected: CallerID (required)
  1093. * - creationtime: Date (required)
  1094. * - dialplan: DialplanCEP (required)
  1095. * - id: string (required)
  1096. * - name: string (required)
  1097. * - state: string (required)
  1098. * Dialed
  1099. * DialplanCEP
  1100. * - context: string (required)
  1101. * - exten: string (required)
  1102. * - priority: long (required)
  1103. * Bridge
  1104. * - bridge_class: string (required)
  1105. * - bridge_type: string (required)
  1106. * - channels: List[string] (required)
  1107. * - creator: string (required)
  1108. * - id: string (required)
  1109. * - name: string (required)
  1110. * - technology: string (required)
  1111. * LiveRecording
  1112. * - cause: string
  1113. * - duration: int
  1114. * - format: string (required)
  1115. * - name: string (required)
  1116. * - silence_duration: int
  1117. * - state: string (required)
  1118. * - talking_duration: int
  1119. * - target_uri: string (required)
  1120. * StoredRecording
  1121. * - format: string (required)
  1122. * - name: string (required)
  1123. * FormatLangPair
  1124. * - format: string (required)
  1125. * - language: string (required)
  1126. * Sound
  1127. * - formats: List[FormatLangPair] (required)
  1128. * - id: string (required)
  1129. * - text: string
  1130. * Playback
  1131. * - id: string (required)
  1132. * - language: string
  1133. * - media_uri: string (required)
  1134. * - state: string (required)
  1135. * - target_uri: string (required)
  1136. * DeviceState
  1137. * - name: string (required)
  1138. * - state: string (required)
  1139. * Mailbox
  1140. * - name: string (required)
  1141. * - new_messages: int (required)
  1142. * - old_messages: int (required)
  1143. * ApplicationReplaced
  1144. * - type: string (required)
  1145. * - application: string (required)
  1146. * - timestamp: Date
  1147. * BridgeAttendedTransfer
  1148. * - type: string (required)
  1149. * - application: string (required)
  1150. * - timestamp: Date
  1151. * - destination_application: string
  1152. * - destination_bridge: string
  1153. * - destination_link_first_leg: Channel
  1154. * - destination_link_second_leg: Channel
  1155. * - destination_threeway_bridge: Bridge
  1156. * - destination_threeway_channel: Channel
  1157. * - destination_type: string (required)
  1158. * - is_external: boolean (required)
  1159. * - replace_channel: Channel
  1160. * - result: string (required)
  1161. * - transfer_target: Channel
  1162. * - transferee: Channel
  1163. * - transferer_first_leg: Channel (required)
  1164. * - transferer_first_leg_bridge: Bridge
  1165. * - transferer_second_leg: Channel (required)
  1166. * - transferer_second_leg_bridge: Bridge
  1167. * BridgeBlindTransfer
  1168. * - type: string (required)
  1169. * - application: string (required)
  1170. * - timestamp: Date
  1171. * - bridge: Bridge
  1172. * - channel: Channel (required)
  1173. * - context: string (required)
  1174. * - exten: string (required)
  1175. * - is_external: boolean (required)
  1176. * - replace_channel: Channel
  1177. * - result: string (required)
  1178. * - transferee: Channel
  1179. * BridgeCreated
  1180. * - type: string (required)
  1181. * - application: string (required)
  1182. * - timestamp: Date
  1183. * - bridge: Bridge (required)
  1184. * BridgeDestroyed
  1185. * - type: string (required)
  1186. * - application: string (required)
  1187. * - timestamp: Date
  1188. * - bridge: Bridge (required)
  1189. * BridgeMerged
  1190. * - type: string (required)
  1191. * - application: string (required)
  1192. * - timestamp: Date
  1193. * - bridge: Bridge (required)
  1194. * - bridge_from: Bridge (required)
  1195. * ChannelCallerId
  1196. * - type: string (required)
  1197. * - application: string (required)
  1198. * - timestamp: Date
  1199. * - caller_presentation: int (required)
  1200. * - caller_presentation_txt: string (required)
  1201. * - channel: Channel (required)
  1202. * ChannelCreated
  1203. * - type: string (required)
  1204. * - application: string (required)
  1205. * - timestamp: Date
  1206. * - channel: Channel (required)
  1207. * ChannelDestroyed
  1208. * - type: string (required)
  1209. * - application: string (required)
  1210. * - timestamp: Date
  1211. * - cause: int (required)
  1212. * - cause_txt: string (required)
  1213. * - channel: Channel (required)
  1214. * ChannelDialplan
  1215. * - type: string (required)
  1216. * - application: string (required)
  1217. * - timestamp: Date
  1218. * - channel: Channel (required)
  1219. * - dialplan_app: string (required)
  1220. * - dialplan_app_data: string (required)
  1221. * ChannelDtmfReceived
  1222. * - type: string (required)
  1223. * - application: string (required)
  1224. * - timestamp: Date
  1225. * - channel: Channel (required)
  1226. * - digit: string (required)
  1227. * - duration_ms: int (required)
  1228. * ChannelEnteredBridge
  1229. * - type: string (required)
  1230. * - application: string (required)
  1231. * - timestamp: Date
  1232. * - bridge: Bridge (required)
  1233. * - channel: Channel
  1234. * ChannelHangupRequest
  1235. * - type: string (required)
  1236. * - application: string (required)
  1237. * - timestamp: Date
  1238. * - cause: int
  1239. * - channel: Channel (required)
  1240. * - soft: boolean
  1241. * ChannelLeftBridge
  1242. * - type: string (required)
  1243. * - application: string (required)
  1244. * - timestamp: Date
  1245. * - bridge: Bridge (required)
  1246. * - channel: Channel (required)
  1247. * ChannelStateChange
  1248. * - type: string (required)
  1249. * - application: string (required)
  1250. * - timestamp: Date
  1251. * - channel: Channel (required)
  1252. * ChannelTalkingFinished
  1253. * - type: string (required)
  1254. * - application: string (required)
  1255. * - timestamp: Date
  1256. * - channel: Channel (required)
  1257. * - duration: int (required)
  1258. * ChannelTalkingStarted
  1259. * - type: string (required)
  1260. * - application: string (required)
  1261. * - timestamp: Date
  1262. * - channel: Channel (required)
  1263. * ChannelUserevent
  1264. * - type: string (required)
  1265. * - application: string (required)
  1266. * - timestamp: Date
  1267. * - bridge: Bridge
  1268. * - channel: Channel
  1269. * - endpoint: Endpoint
  1270. * - eventname: string (required)
  1271. * - userevent: object (required)
  1272. * ChannelVarset
  1273. * - type: string (required)
  1274. * - application: string (required)
  1275. * - timestamp: Date
  1276. * - channel: Channel
  1277. * - value: string (required)
  1278. * - variable: string (required)
  1279. * DeviceStateChanged
  1280. * - type: string (required)
  1281. * - application: string (required)
  1282. * - timestamp: Date
  1283. * - device_state: DeviceState (required)
  1284. * Dial
  1285. * - type: string (required)
  1286. * - application: string (required)
  1287. * - timestamp: Date
  1288. * - caller: Channel
  1289. * - dialstatus: string (required)
  1290. * - dialstring: string
  1291. * - forward: string
  1292. * - forwarded: Channel
  1293. * - peer: Channel (required)
  1294. * EndpointStateChange
  1295. * - type: string (required)
  1296. * - application: string (required)
  1297. * - timestamp: Date
  1298. * - endpoint: Endpoint (required)
  1299. * Event
  1300. * - type: string (required)
  1301. * - application: string (required)
  1302. * - timestamp: Date
  1303. * Message
  1304. * - type: string (required)
  1305. * MissingParams
  1306. * - type: string (required)
  1307. * - params: List[string] (required)
  1308. * PlaybackFinished
  1309. * - type: string (required)
  1310. * - application: string (required)
  1311. * - timestamp: Date
  1312. * - playback: Playback (required)
  1313. * PlaybackStarted
  1314. * - type: string (required)
  1315. * - application: string (required)
  1316. * - timestamp: Date
  1317. * - playback: Playback (required)
  1318. * RecordingFailed
  1319. * - type: string (required)
  1320. * - application: string (required)
  1321. * - timestamp: Date
  1322. * - recording: LiveRecording (required)
  1323. * RecordingFinished
  1324. * - type: string (required)
  1325. * - application: string (required)
  1326. * - timestamp: Date
  1327. * - recording: LiveRecording (required)
  1328. * RecordingStarted
  1329. * - type: string (required)
  1330. * - application: string (required)
  1331. * - timestamp: Date
  1332. * - recording: LiveRecording (required)
  1333. * StasisEnd
  1334. * - type: string (required)
  1335. * - application: string (required)
  1336. * - timestamp: Date
  1337. * - channel: Channel (required)
  1338. * StasisStart
  1339. * - type: string (required)
  1340. * - application: string (required)
  1341. * - timestamp: Date
  1342. * - args: List[string] (required)
  1343. * - channel: Channel (required)
  1344. * - replace_channel: Channel
  1345. * TextMessageReceived
  1346. * - type: string (required)
  1347. * - application: string (required)
  1348. * - timestamp: Date
  1349. * - endpoint: Endpoint
  1350. * - message: TextMessage (required)
  1351. * Application
  1352. * - bridge_ids: List[string] (required)
  1353. * - channel_ids: List[string] (required)
  1354. * - device_names: List[string] (required)
  1355. * - endpoint_ids: List[string] (required)
  1356. * - name: string (required)
  1357. */
  1358. #endif /* _ASTERISK_ARI_MODEL_H */