1
0

openapi.json 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165
  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "user_status",
  5. "version": "0.0.1",
  6. "description": "User status",
  7. "license": {
  8. "name": "agpl"
  9. }
  10. },
  11. "components": {
  12. "securitySchemes": {
  13. "basic_auth": {
  14. "type": "http",
  15. "scheme": "basic"
  16. },
  17. "bearer_auth": {
  18. "type": "http",
  19. "scheme": "bearer"
  20. }
  21. },
  22. "schemas": {
  23. "Capabilities": {
  24. "type": "object",
  25. "required": [
  26. "user_status"
  27. ],
  28. "properties": {
  29. "user_status": {
  30. "type": "object",
  31. "required": [
  32. "enabled",
  33. "restore",
  34. "supports_emoji"
  35. ],
  36. "properties": {
  37. "enabled": {
  38. "type": "boolean"
  39. },
  40. "restore": {
  41. "type": "boolean"
  42. },
  43. "supports_emoji": {
  44. "type": "boolean"
  45. }
  46. }
  47. }
  48. }
  49. },
  50. "ClearAt": {
  51. "type": "object",
  52. "required": [
  53. "type",
  54. "time"
  55. ],
  56. "properties": {
  57. "type": {
  58. "type": "string",
  59. "enum": [
  60. "period",
  61. "end-of"
  62. ]
  63. },
  64. "time": {
  65. "anyOf": [
  66. {
  67. "type": "integer",
  68. "format": "int64"
  69. },
  70. {
  71. "$ref": "#/components/schemas/ClearAtTimeType"
  72. }
  73. ]
  74. }
  75. }
  76. },
  77. "ClearAtTimeType": {
  78. "type": "string",
  79. "enum": [
  80. "day",
  81. "week"
  82. ]
  83. },
  84. "OCSMeta": {
  85. "type": "object",
  86. "required": [
  87. "status",
  88. "statuscode"
  89. ],
  90. "properties": {
  91. "status": {
  92. "type": "string"
  93. },
  94. "statuscode": {
  95. "type": "integer"
  96. },
  97. "message": {
  98. "type": "string"
  99. },
  100. "totalitems": {
  101. "type": "string"
  102. },
  103. "itemsperpage": {
  104. "type": "string"
  105. }
  106. }
  107. },
  108. "Predefined": {
  109. "type": "object",
  110. "required": [
  111. "id",
  112. "icon",
  113. "message",
  114. "clearAt",
  115. "visible"
  116. ],
  117. "properties": {
  118. "id": {
  119. "type": "string"
  120. },
  121. "icon": {
  122. "type": "string"
  123. },
  124. "message": {
  125. "type": "string"
  126. },
  127. "clearAt": {
  128. "$ref": "#/components/schemas/ClearAt",
  129. "nullable": true
  130. },
  131. "visible": {
  132. "type": "boolean",
  133. "nullable": true
  134. }
  135. }
  136. },
  137. "Private": {
  138. "allOf": [
  139. {
  140. "$ref": "#/components/schemas/Public"
  141. },
  142. {
  143. "type": "object",
  144. "required": [
  145. "messageId",
  146. "messageIsPredefined",
  147. "statusIsUserDefined"
  148. ],
  149. "properties": {
  150. "messageId": {
  151. "type": "string",
  152. "nullable": true
  153. },
  154. "messageIsPredefined": {
  155. "type": "boolean"
  156. },
  157. "statusIsUserDefined": {
  158. "type": "boolean"
  159. }
  160. }
  161. }
  162. ]
  163. },
  164. "Public": {
  165. "type": "object",
  166. "required": [
  167. "userId",
  168. "message",
  169. "icon",
  170. "clearAt",
  171. "status"
  172. ],
  173. "properties": {
  174. "userId": {
  175. "type": "string"
  176. },
  177. "message": {
  178. "type": "string",
  179. "nullable": true
  180. },
  181. "icon": {
  182. "type": "string",
  183. "nullable": true
  184. },
  185. "clearAt": {
  186. "type": "integer",
  187. "format": "int64",
  188. "nullable": true
  189. },
  190. "status": {
  191. "$ref": "#/components/schemas/Type"
  192. }
  193. }
  194. },
  195. "Type": {
  196. "type": "string",
  197. "enum": [
  198. "online",
  199. "away",
  200. "dnd",
  201. "busy",
  202. "offline",
  203. "invisible"
  204. ]
  205. }
  206. }
  207. },
  208. "paths": {
  209. "/ocs/v2.php/apps/user_status/api/v1/heartbeat": {
  210. "put": {
  211. "operationId": "heartbeat-heartbeat",
  212. "summary": "Keep the status alive",
  213. "tags": [
  214. "heartbeat"
  215. ],
  216. "security": [
  217. {
  218. "bearer_auth": []
  219. },
  220. {
  221. "basic_auth": []
  222. }
  223. ],
  224. "requestBody": {
  225. "required": true,
  226. "content": {
  227. "application/json": {
  228. "schema": {
  229. "type": "object",
  230. "required": [
  231. "status"
  232. ],
  233. "properties": {
  234. "status": {
  235. "type": "string",
  236. "description": "Only online, away"
  237. }
  238. }
  239. }
  240. }
  241. }
  242. },
  243. "parameters": [
  244. {
  245. "name": "OCS-APIRequest",
  246. "in": "header",
  247. "description": "Required to be true for the API request to pass",
  248. "required": true,
  249. "schema": {
  250. "type": "boolean",
  251. "default": true
  252. }
  253. }
  254. ],
  255. "responses": {
  256. "200": {
  257. "description": "Status successfully updated",
  258. "content": {
  259. "application/json": {
  260. "schema": {
  261. "type": "object",
  262. "required": [
  263. "ocs"
  264. ],
  265. "properties": {
  266. "ocs": {
  267. "type": "object",
  268. "required": [
  269. "meta",
  270. "data"
  271. ],
  272. "properties": {
  273. "meta": {
  274. "$ref": "#/components/schemas/OCSMeta"
  275. },
  276. "data": {
  277. "$ref": "#/components/schemas/Private"
  278. }
  279. }
  280. }
  281. }
  282. }
  283. }
  284. }
  285. },
  286. "400": {
  287. "description": "Invalid status to update",
  288. "content": {
  289. "application/json": {
  290. "schema": {
  291. "type": "object",
  292. "required": [
  293. "ocs"
  294. ],
  295. "properties": {
  296. "ocs": {
  297. "type": "object",
  298. "required": [
  299. "meta",
  300. "data"
  301. ],
  302. "properties": {
  303. "meta": {
  304. "$ref": "#/components/schemas/OCSMeta"
  305. },
  306. "data": {}
  307. }
  308. }
  309. }
  310. }
  311. }
  312. }
  313. },
  314. "500": {
  315. "description": "",
  316. "content": {
  317. "application/json": {
  318. "schema": {
  319. "type": "object",
  320. "required": [
  321. "ocs"
  322. ],
  323. "properties": {
  324. "ocs": {
  325. "type": "object",
  326. "required": [
  327. "meta",
  328. "data"
  329. ],
  330. "properties": {
  331. "meta": {
  332. "$ref": "#/components/schemas/OCSMeta"
  333. },
  334. "data": {}
  335. }
  336. }
  337. }
  338. }
  339. }
  340. }
  341. },
  342. "204": {
  343. "description": "User has no status to keep alive"
  344. }
  345. }
  346. }
  347. },
  348. "/ocs/v2.php/apps/user_status/api/v1/predefined_statuses": {
  349. "get": {
  350. "operationId": "predefined_status-find-all",
  351. "summary": "Get all predefined messages",
  352. "tags": [
  353. "predefined_status"
  354. ],
  355. "security": [
  356. {
  357. "bearer_auth": []
  358. },
  359. {
  360. "basic_auth": []
  361. }
  362. ],
  363. "parameters": [
  364. {
  365. "name": "OCS-APIRequest",
  366. "in": "header",
  367. "description": "Required to be true for the API request to pass",
  368. "required": true,
  369. "schema": {
  370. "type": "boolean",
  371. "default": true
  372. }
  373. }
  374. ],
  375. "responses": {
  376. "200": {
  377. "description": "Predefined statuses returned",
  378. "content": {
  379. "application/json": {
  380. "schema": {
  381. "type": "object",
  382. "required": [
  383. "ocs"
  384. ],
  385. "properties": {
  386. "ocs": {
  387. "type": "object",
  388. "required": [
  389. "meta",
  390. "data"
  391. ],
  392. "properties": {
  393. "meta": {
  394. "$ref": "#/components/schemas/OCSMeta"
  395. },
  396. "data": {
  397. "type": "array",
  398. "items": {
  399. "$ref": "#/components/schemas/Predefined"
  400. }
  401. }
  402. }
  403. }
  404. }
  405. }
  406. }
  407. }
  408. }
  409. }
  410. }
  411. },
  412. "/ocs/v2.php/apps/user_status/api/v1/statuses": {
  413. "get": {
  414. "operationId": "statuses-find-all",
  415. "summary": "Find statuses of users",
  416. "tags": [
  417. "statuses"
  418. ],
  419. "security": [
  420. {
  421. "bearer_auth": []
  422. },
  423. {
  424. "basic_auth": []
  425. }
  426. ],
  427. "requestBody": {
  428. "required": false,
  429. "content": {
  430. "application/json": {
  431. "schema": {
  432. "type": "object",
  433. "properties": {
  434. "limit": {
  435. "type": "integer",
  436. "format": "int64",
  437. "nullable": true,
  438. "description": "Maximum number of statuses to find"
  439. },
  440. "offset": {
  441. "type": "integer",
  442. "format": "int64",
  443. "nullable": true,
  444. "description": "Offset for finding statuses"
  445. }
  446. }
  447. }
  448. }
  449. }
  450. },
  451. "parameters": [
  452. {
  453. "name": "OCS-APIRequest",
  454. "in": "header",
  455. "description": "Required to be true for the API request to pass",
  456. "required": true,
  457. "schema": {
  458. "type": "boolean",
  459. "default": true
  460. }
  461. }
  462. ],
  463. "responses": {
  464. "200": {
  465. "description": "Statuses returned",
  466. "content": {
  467. "application/json": {
  468. "schema": {
  469. "type": "object",
  470. "required": [
  471. "ocs"
  472. ],
  473. "properties": {
  474. "ocs": {
  475. "type": "object",
  476. "required": [
  477. "meta",
  478. "data"
  479. ],
  480. "properties": {
  481. "meta": {
  482. "$ref": "#/components/schemas/OCSMeta"
  483. },
  484. "data": {
  485. "type": "array",
  486. "items": {
  487. "$ref": "#/components/schemas/Public"
  488. }
  489. }
  490. }
  491. }
  492. }
  493. }
  494. }
  495. }
  496. }
  497. }
  498. }
  499. },
  500. "/ocs/v2.php/apps/user_status/api/v1/statuses/{userId}": {
  501. "get": {
  502. "operationId": "statuses-find",
  503. "summary": "Find the status of a user",
  504. "tags": [
  505. "statuses"
  506. ],
  507. "security": [
  508. {
  509. "bearer_auth": []
  510. },
  511. {
  512. "basic_auth": []
  513. }
  514. ],
  515. "parameters": [
  516. {
  517. "name": "userId",
  518. "in": "path",
  519. "description": "ID of the user",
  520. "required": true,
  521. "schema": {
  522. "type": "string"
  523. }
  524. },
  525. {
  526. "name": "OCS-APIRequest",
  527. "in": "header",
  528. "description": "Required to be true for the API request to pass",
  529. "required": true,
  530. "schema": {
  531. "type": "boolean",
  532. "default": true
  533. }
  534. }
  535. ],
  536. "responses": {
  537. "200": {
  538. "description": "Status returned",
  539. "content": {
  540. "application/json": {
  541. "schema": {
  542. "type": "object",
  543. "required": [
  544. "ocs"
  545. ],
  546. "properties": {
  547. "ocs": {
  548. "type": "object",
  549. "required": [
  550. "meta",
  551. "data"
  552. ],
  553. "properties": {
  554. "meta": {
  555. "$ref": "#/components/schemas/OCSMeta"
  556. },
  557. "data": {
  558. "$ref": "#/components/schemas/Public"
  559. }
  560. }
  561. }
  562. }
  563. }
  564. }
  565. }
  566. },
  567. "404": {
  568. "description": "The user was not found",
  569. "content": {
  570. "application/json": {
  571. "schema": {
  572. "type": "object",
  573. "required": [
  574. "ocs"
  575. ],
  576. "properties": {
  577. "ocs": {
  578. "type": "object",
  579. "required": [
  580. "meta",
  581. "data"
  582. ],
  583. "properties": {
  584. "meta": {
  585. "$ref": "#/components/schemas/OCSMeta"
  586. },
  587. "data": {}
  588. }
  589. }
  590. }
  591. }
  592. }
  593. }
  594. }
  595. }
  596. }
  597. },
  598. "/ocs/v2.php/apps/user_status/api/v1/user_status": {
  599. "get": {
  600. "operationId": "user_status-get-status",
  601. "summary": "Get the status of the current user",
  602. "tags": [
  603. "user_status"
  604. ],
  605. "security": [
  606. {
  607. "bearer_auth": []
  608. },
  609. {
  610. "basic_auth": []
  611. }
  612. ],
  613. "parameters": [
  614. {
  615. "name": "OCS-APIRequest",
  616. "in": "header",
  617. "description": "Required to be true for the API request to pass",
  618. "required": true,
  619. "schema": {
  620. "type": "boolean",
  621. "default": true
  622. }
  623. }
  624. ],
  625. "responses": {
  626. "200": {
  627. "description": "The status was found successfully",
  628. "content": {
  629. "application/json": {
  630. "schema": {
  631. "type": "object",
  632. "required": [
  633. "ocs"
  634. ],
  635. "properties": {
  636. "ocs": {
  637. "type": "object",
  638. "required": [
  639. "meta",
  640. "data"
  641. ],
  642. "properties": {
  643. "meta": {
  644. "$ref": "#/components/schemas/OCSMeta"
  645. },
  646. "data": {
  647. "$ref": "#/components/schemas/Private"
  648. }
  649. }
  650. }
  651. }
  652. }
  653. }
  654. }
  655. },
  656. "404": {
  657. "description": "The user was not found",
  658. "content": {
  659. "application/json": {
  660. "schema": {
  661. "type": "object",
  662. "required": [
  663. "ocs"
  664. ],
  665. "properties": {
  666. "ocs": {
  667. "type": "object",
  668. "required": [
  669. "meta",
  670. "data"
  671. ],
  672. "properties": {
  673. "meta": {
  674. "$ref": "#/components/schemas/OCSMeta"
  675. },
  676. "data": {}
  677. }
  678. }
  679. }
  680. }
  681. }
  682. }
  683. }
  684. }
  685. }
  686. },
  687. "/ocs/v2.php/apps/user_status/api/v1/user_status/status": {
  688. "put": {
  689. "operationId": "user_status-set-status",
  690. "summary": "Update the status type of the current user",
  691. "tags": [
  692. "user_status"
  693. ],
  694. "security": [
  695. {
  696. "bearer_auth": []
  697. },
  698. {
  699. "basic_auth": []
  700. }
  701. ],
  702. "requestBody": {
  703. "required": true,
  704. "content": {
  705. "application/json": {
  706. "schema": {
  707. "type": "object",
  708. "required": [
  709. "statusType"
  710. ],
  711. "properties": {
  712. "statusType": {
  713. "type": "string",
  714. "description": "The new status type"
  715. }
  716. }
  717. }
  718. }
  719. }
  720. },
  721. "parameters": [
  722. {
  723. "name": "OCS-APIRequest",
  724. "in": "header",
  725. "description": "Required to be true for the API request to pass",
  726. "required": true,
  727. "schema": {
  728. "type": "boolean",
  729. "default": true
  730. }
  731. }
  732. ],
  733. "responses": {
  734. "200": {
  735. "description": "The status was updated successfully",
  736. "content": {
  737. "application/json": {
  738. "schema": {
  739. "type": "object",
  740. "required": [
  741. "ocs"
  742. ],
  743. "properties": {
  744. "ocs": {
  745. "type": "object",
  746. "required": [
  747. "meta",
  748. "data"
  749. ],
  750. "properties": {
  751. "meta": {
  752. "$ref": "#/components/schemas/OCSMeta"
  753. },
  754. "data": {
  755. "$ref": "#/components/schemas/Private"
  756. }
  757. }
  758. }
  759. }
  760. }
  761. }
  762. }
  763. },
  764. "400": {
  765. "description": "The status type is invalid",
  766. "content": {
  767. "application/json": {
  768. "schema": {
  769. "type": "object",
  770. "required": [
  771. "ocs"
  772. ],
  773. "properties": {
  774. "ocs": {
  775. "type": "object",
  776. "required": [
  777. "meta",
  778. "data"
  779. ],
  780. "properties": {
  781. "meta": {
  782. "$ref": "#/components/schemas/OCSMeta"
  783. },
  784. "data": {}
  785. }
  786. }
  787. }
  788. }
  789. }
  790. }
  791. }
  792. }
  793. }
  794. },
  795. "/ocs/v2.php/apps/user_status/api/v1/user_status/message/predefined": {
  796. "put": {
  797. "operationId": "user_status-set-predefined-message",
  798. "summary": "Set the message to a predefined message for the current user",
  799. "tags": [
  800. "user_status"
  801. ],
  802. "security": [
  803. {
  804. "bearer_auth": []
  805. },
  806. {
  807. "basic_auth": []
  808. }
  809. ],
  810. "requestBody": {
  811. "required": true,
  812. "content": {
  813. "application/json": {
  814. "schema": {
  815. "type": "object",
  816. "required": [
  817. "messageId"
  818. ],
  819. "properties": {
  820. "messageId": {
  821. "type": "string",
  822. "description": "ID of the predefined message"
  823. },
  824. "clearAt": {
  825. "type": "integer",
  826. "format": "int64",
  827. "nullable": true,
  828. "description": "When the message should be cleared"
  829. }
  830. }
  831. }
  832. }
  833. }
  834. },
  835. "parameters": [
  836. {
  837. "name": "OCS-APIRequest",
  838. "in": "header",
  839. "description": "Required to be true for the API request to pass",
  840. "required": true,
  841. "schema": {
  842. "type": "boolean",
  843. "default": true
  844. }
  845. }
  846. ],
  847. "responses": {
  848. "200": {
  849. "description": "The message was updated successfully",
  850. "content": {
  851. "application/json": {
  852. "schema": {
  853. "type": "object",
  854. "required": [
  855. "ocs"
  856. ],
  857. "properties": {
  858. "ocs": {
  859. "type": "object",
  860. "required": [
  861. "meta",
  862. "data"
  863. ],
  864. "properties": {
  865. "meta": {
  866. "$ref": "#/components/schemas/OCSMeta"
  867. },
  868. "data": {
  869. "$ref": "#/components/schemas/Private"
  870. }
  871. }
  872. }
  873. }
  874. }
  875. }
  876. }
  877. },
  878. "400": {
  879. "description": "The clearAt or message-id is invalid",
  880. "content": {
  881. "application/json": {
  882. "schema": {
  883. "type": "object",
  884. "required": [
  885. "ocs"
  886. ],
  887. "properties": {
  888. "ocs": {
  889. "type": "object",
  890. "required": [
  891. "meta",
  892. "data"
  893. ],
  894. "properties": {
  895. "meta": {
  896. "$ref": "#/components/schemas/OCSMeta"
  897. },
  898. "data": {}
  899. }
  900. }
  901. }
  902. }
  903. }
  904. }
  905. }
  906. }
  907. }
  908. },
  909. "/ocs/v2.php/apps/user_status/api/v1/user_status/message/custom": {
  910. "put": {
  911. "operationId": "user_status-set-custom-message",
  912. "summary": "Set the message to a custom message for the current user",
  913. "tags": [
  914. "user_status"
  915. ],
  916. "security": [
  917. {
  918. "bearer_auth": []
  919. },
  920. {
  921. "basic_auth": []
  922. }
  923. ],
  924. "requestBody": {
  925. "required": false,
  926. "content": {
  927. "application/json": {
  928. "schema": {
  929. "type": "object",
  930. "properties": {
  931. "statusIcon": {
  932. "type": "string",
  933. "nullable": true,
  934. "description": "Icon of the status"
  935. },
  936. "message": {
  937. "type": "string",
  938. "nullable": true,
  939. "description": "Message of the status"
  940. },
  941. "clearAt": {
  942. "type": "integer",
  943. "format": "int64",
  944. "nullable": true,
  945. "description": "When the message should be cleared"
  946. }
  947. }
  948. }
  949. }
  950. }
  951. },
  952. "parameters": [
  953. {
  954. "name": "OCS-APIRequest",
  955. "in": "header",
  956. "description": "Required to be true for the API request to pass",
  957. "required": true,
  958. "schema": {
  959. "type": "boolean",
  960. "default": true
  961. }
  962. }
  963. ],
  964. "responses": {
  965. "200": {
  966. "description": "The message was updated successfully",
  967. "content": {
  968. "application/json": {
  969. "schema": {
  970. "type": "object",
  971. "required": [
  972. "ocs"
  973. ],
  974. "properties": {
  975. "ocs": {
  976. "type": "object",
  977. "required": [
  978. "meta",
  979. "data"
  980. ],
  981. "properties": {
  982. "meta": {
  983. "$ref": "#/components/schemas/OCSMeta"
  984. },
  985. "data": {
  986. "$ref": "#/components/schemas/Private"
  987. }
  988. }
  989. }
  990. }
  991. }
  992. }
  993. }
  994. },
  995. "400": {
  996. "description": "The clearAt or icon is invalid or the message is too long",
  997. "content": {
  998. "application/json": {
  999. "schema": {
  1000. "type": "object",
  1001. "required": [
  1002. "ocs"
  1003. ],
  1004. "properties": {
  1005. "ocs": {
  1006. "type": "object",
  1007. "required": [
  1008. "meta",
  1009. "data"
  1010. ],
  1011. "properties": {
  1012. "meta": {
  1013. "$ref": "#/components/schemas/OCSMeta"
  1014. },
  1015. "data": {}
  1016. }
  1017. }
  1018. }
  1019. }
  1020. }
  1021. }
  1022. }
  1023. }
  1024. }
  1025. },
  1026. "/ocs/v2.php/apps/user_status/api/v1/user_status/message": {
  1027. "delete": {
  1028. "operationId": "user_status-clear-message",
  1029. "summary": "Clear the message of the current user",
  1030. "tags": [
  1031. "user_status"
  1032. ],
  1033. "security": [
  1034. {
  1035. "bearer_auth": []
  1036. },
  1037. {
  1038. "basic_auth": []
  1039. }
  1040. ],
  1041. "parameters": [
  1042. {
  1043. "name": "OCS-APIRequest",
  1044. "in": "header",
  1045. "description": "Required to be true for the API request to pass",
  1046. "required": true,
  1047. "schema": {
  1048. "type": "boolean",
  1049. "default": true
  1050. }
  1051. }
  1052. ],
  1053. "responses": {
  1054. "200": {
  1055. "description": "Message cleared successfully",
  1056. "content": {
  1057. "application/json": {
  1058. "schema": {
  1059. "type": "object",
  1060. "required": [
  1061. "ocs"
  1062. ],
  1063. "properties": {
  1064. "ocs": {
  1065. "type": "object",
  1066. "required": [
  1067. "meta",
  1068. "data"
  1069. ],
  1070. "properties": {
  1071. "meta": {
  1072. "$ref": "#/components/schemas/OCSMeta"
  1073. },
  1074. "data": {}
  1075. }
  1076. }
  1077. }
  1078. }
  1079. }
  1080. }
  1081. }
  1082. }
  1083. }
  1084. },
  1085. "/ocs/v2.php/apps/user_status/api/v1/user_status/revert/{messageId}": {
  1086. "delete": {
  1087. "operationId": "user_status-revert-status",
  1088. "summary": "Revert the status to the previous status",
  1089. "tags": [
  1090. "user_status"
  1091. ],
  1092. "security": [
  1093. {
  1094. "bearer_auth": []
  1095. },
  1096. {
  1097. "basic_auth": []
  1098. }
  1099. ],
  1100. "parameters": [
  1101. {
  1102. "name": "messageId",
  1103. "in": "path",
  1104. "description": "ID of the message to delete",
  1105. "required": true,
  1106. "schema": {
  1107. "type": "string"
  1108. }
  1109. },
  1110. {
  1111. "name": "OCS-APIRequest",
  1112. "in": "header",
  1113. "description": "Required to be true for the API request to pass",
  1114. "required": true,
  1115. "schema": {
  1116. "type": "boolean",
  1117. "default": true
  1118. }
  1119. }
  1120. ],
  1121. "responses": {
  1122. "200": {
  1123. "description": "Status reverted",
  1124. "content": {
  1125. "application/json": {
  1126. "schema": {
  1127. "type": "object",
  1128. "required": [
  1129. "ocs"
  1130. ],
  1131. "properties": {
  1132. "ocs": {
  1133. "type": "object",
  1134. "required": [
  1135. "meta",
  1136. "data"
  1137. ],
  1138. "properties": {
  1139. "meta": {
  1140. "$ref": "#/components/schemas/OCSMeta"
  1141. },
  1142. "data": {
  1143. "anyOf": [
  1144. {
  1145. "$ref": "#/components/schemas/Private"
  1146. },
  1147. {
  1148. "type": "array",
  1149. "maxItems": 0
  1150. }
  1151. ]
  1152. }
  1153. }
  1154. }
  1155. }
  1156. }
  1157. }
  1158. }
  1159. }
  1160. }
  1161. }
  1162. }
  1163. },
  1164. "tags": []
  1165. }