You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1831 lines
73 KiB

  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "spreed-backend-sipbridge",
  5. "version": "0.0.1",
  6. "description": "Chat, video & audio-conferencing using WebRTC",
  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. "features",
  27. "config",
  28. "version"
  29. ],
  30. "properties": {
  31. "features": {
  32. "type": "array",
  33. "items": {
  34. "type": "string"
  35. }
  36. },
  37. "config": {
  38. "type": "object",
  39. "required": [
  40. "attachments",
  41. "call",
  42. "chat",
  43. "conversations",
  44. "federation",
  45. "previews",
  46. "signaling"
  47. ],
  48. "properties": {
  49. "attachments": {
  50. "type": "object",
  51. "required": [
  52. "allowed"
  53. ],
  54. "properties": {
  55. "allowed": {
  56. "type": "boolean"
  57. },
  58. "folder": {
  59. "type": "string"
  60. }
  61. }
  62. },
  63. "call": {
  64. "type": "object",
  65. "required": [
  66. "enabled",
  67. "breakout-rooms",
  68. "recording",
  69. "recording-consent",
  70. "supported-reactions",
  71. "predefined-backgrounds",
  72. "can-upload-background",
  73. "sip-enabled",
  74. "sip-dialout-enabled",
  75. "can-enable-sip"
  76. ],
  77. "properties": {
  78. "enabled": {
  79. "type": "boolean"
  80. },
  81. "breakout-rooms": {
  82. "type": "boolean"
  83. },
  84. "recording": {
  85. "type": "boolean"
  86. },
  87. "recording-consent": {
  88. "type": "integer",
  89. "format": "int64"
  90. },
  91. "supported-reactions": {
  92. "type": "array",
  93. "items": {
  94. "type": "string"
  95. }
  96. },
  97. "predefined-backgrounds": {
  98. "type": "array",
  99. "items": {
  100. "type": "string"
  101. }
  102. },
  103. "can-upload-background": {
  104. "type": "boolean"
  105. },
  106. "sip-enabled": {
  107. "type": "boolean"
  108. },
  109. "sip-dialout-enabled": {
  110. "type": "boolean"
  111. },
  112. "can-enable-sip": {
  113. "type": "boolean"
  114. }
  115. }
  116. },
  117. "chat": {
  118. "type": "object",
  119. "required": [
  120. "max-length",
  121. "read-privacy",
  122. "has-translation-providers",
  123. "typing-privacy"
  124. ],
  125. "properties": {
  126. "max-length": {
  127. "type": "integer",
  128. "format": "int64"
  129. },
  130. "read-privacy": {
  131. "type": "integer",
  132. "format": "int64"
  133. },
  134. "has-translation-providers": {
  135. "type": "boolean"
  136. },
  137. "typing-privacy": {
  138. "type": "integer",
  139. "format": "int64"
  140. }
  141. }
  142. },
  143. "conversations": {
  144. "type": "object",
  145. "required": [
  146. "can-create"
  147. ],
  148. "properties": {
  149. "can-create": {
  150. "type": "boolean"
  151. }
  152. }
  153. },
  154. "federation": {
  155. "type": "object",
  156. "required": [
  157. "enabled",
  158. "incoming-enabled",
  159. "outgoing-enabled",
  160. "only-trusted-servers"
  161. ],
  162. "properties": {
  163. "enabled": {
  164. "type": "boolean"
  165. },
  166. "incoming-enabled": {
  167. "type": "boolean"
  168. },
  169. "outgoing-enabled": {
  170. "type": "boolean"
  171. },
  172. "only-trusted-servers": {
  173. "type": "boolean"
  174. }
  175. }
  176. },
  177. "previews": {
  178. "type": "object",
  179. "required": [
  180. "max-gif-size"
  181. ],
  182. "properties": {
  183. "max-gif-size": {
  184. "type": "integer",
  185. "format": "int64"
  186. }
  187. }
  188. },
  189. "signaling": {
  190. "type": "object",
  191. "required": [
  192. "session-ping-limit"
  193. ],
  194. "properties": {
  195. "session-ping-limit": {
  196. "type": "integer",
  197. "format": "int64"
  198. },
  199. "hello-v2-token-key": {
  200. "type": "string"
  201. }
  202. }
  203. }
  204. }
  205. },
  206. "version": {
  207. "type": "string"
  208. }
  209. }
  210. },
  211. "ChatMessage": {
  212. "type": "object",
  213. "required": [
  214. "actorDisplayName",
  215. "actorId",
  216. "actorType",
  217. "expirationTimestamp",
  218. "id",
  219. "isReplyable",
  220. "markdown",
  221. "message",
  222. "messageParameters",
  223. "messageType",
  224. "reactions",
  225. "referenceId",
  226. "systemMessage",
  227. "timestamp",
  228. "token"
  229. ],
  230. "properties": {
  231. "actorDisplayName": {
  232. "type": "string"
  233. },
  234. "actorId": {
  235. "type": "string"
  236. },
  237. "actorType": {
  238. "type": "string"
  239. },
  240. "deleted": {
  241. "type": "boolean",
  242. "enum": [
  243. true
  244. ]
  245. },
  246. "expirationTimestamp": {
  247. "type": "integer",
  248. "format": "int64"
  249. },
  250. "id": {
  251. "type": "integer",
  252. "format": "int64"
  253. },
  254. "isReplyable": {
  255. "type": "boolean"
  256. },
  257. "markdown": {
  258. "type": "boolean"
  259. },
  260. "message": {
  261. "type": "string"
  262. },
  263. "messageParameters": {
  264. "type": "object",
  265. "additionalProperties": {
  266. "$ref": "#/components/schemas/RichObjectParameter"
  267. }
  268. },
  269. "messageType": {
  270. "type": "string"
  271. },
  272. "reactions": {
  273. "type": "object",
  274. "additionalProperties": {
  275. "type": "integer",
  276. "format": "int64"
  277. }
  278. },
  279. "referenceId": {
  280. "type": "string"
  281. },
  282. "systemMessage": {
  283. "type": "string"
  284. },
  285. "timestamp": {
  286. "type": "integer",
  287. "format": "int64"
  288. },
  289. "token": {
  290. "type": "string"
  291. },
  292. "lastEditActorDisplayName": {
  293. "type": "string"
  294. },
  295. "lastEditActorId": {
  296. "type": "string"
  297. },
  298. "lastEditActorType": {
  299. "type": "string"
  300. },
  301. "lastEditTimestamp": {
  302. "type": "integer",
  303. "format": "int64"
  304. },
  305. "silent": {
  306. "type": "boolean"
  307. }
  308. }
  309. },
  310. "OCSMeta": {
  311. "type": "object",
  312. "required": [
  313. "status",
  314. "statuscode"
  315. ],
  316. "properties": {
  317. "status": {
  318. "type": "string"
  319. },
  320. "statuscode": {
  321. "type": "integer"
  322. },
  323. "message": {
  324. "type": "string"
  325. },
  326. "totalitems": {
  327. "type": "string"
  328. },
  329. "itemsperpage": {
  330. "type": "string"
  331. }
  332. }
  333. },
  334. "PublicCapabilities": {
  335. "oneOf": [
  336. {
  337. "type": "object",
  338. "required": [
  339. "spreed"
  340. ],
  341. "properties": {
  342. "spreed": {
  343. "$ref": "#/components/schemas/Capabilities"
  344. }
  345. }
  346. },
  347. {
  348. "type": "array",
  349. "maxLength": 0
  350. }
  351. ]
  352. },
  353. "RichObjectParameter": {
  354. "type": "object",
  355. "required": [
  356. "type",
  357. "id",
  358. "name"
  359. ],
  360. "properties": {
  361. "type": {
  362. "type": "string"
  363. },
  364. "id": {
  365. "type": "string"
  366. },
  367. "name": {
  368. "type": "string"
  369. },
  370. "server": {
  371. "type": "string"
  372. },
  373. "link": {
  374. "type": "string"
  375. },
  376. "call-type": {
  377. "type": "string",
  378. "enum": [
  379. "one2one",
  380. "group",
  381. "public"
  382. ]
  383. },
  384. "icon-url": {
  385. "type": "string"
  386. },
  387. "message-id": {
  388. "type": "string"
  389. },
  390. "boardname": {
  391. "type": "string"
  392. },
  393. "stackname": {
  394. "type": "string"
  395. },
  396. "size": {
  397. "type": "string"
  398. },
  399. "path": {
  400. "type": "string"
  401. },
  402. "mimetype": {
  403. "type": "string"
  404. },
  405. "preview-available": {
  406. "type": "string",
  407. "enum": [
  408. "yes",
  409. "no"
  410. ]
  411. },
  412. "mtime": {
  413. "type": "string"
  414. },
  415. "latitude": {
  416. "type": "string"
  417. },
  418. "longitude": {
  419. "type": "string"
  420. },
  421. "description": {
  422. "type": "string"
  423. },
  424. "thumb": {
  425. "type": "string"
  426. },
  427. "website": {
  428. "type": "string"
  429. },
  430. "visibility": {
  431. "type": "string",
  432. "enum": [
  433. "0",
  434. "1"
  435. ]
  436. },
  437. "assignable": {
  438. "type": "string",
  439. "enum": [
  440. "0",
  441. "1"
  442. ]
  443. },
  444. "conversation": {
  445. "type": "string"
  446. }
  447. }
  448. },
  449. "Room": {
  450. "type": "object",
  451. "required": [
  452. "actorId",
  453. "actorType",
  454. "attendeeId",
  455. "attendeePermissions",
  456. "attendeePin",
  457. "avatarVersion",
  458. "breakoutRoomMode",
  459. "breakoutRoomStatus",
  460. "callFlag",
  461. "callPermissions",
  462. "callRecording",
  463. "callStartTime",
  464. "canDeleteConversation",
  465. "canEnableSIP",
  466. "canLeaveConversation",
  467. "canStartCall",
  468. "defaultPermissions",
  469. "description",
  470. "displayName",
  471. "hasCall",
  472. "hasPassword",
  473. "id",
  474. "isCustomAvatar",
  475. "isFavorite",
  476. "lastActivity",
  477. "lastCommonReadMessage",
  478. "lastMessage",
  479. "lastPing",
  480. "lastReadMessage",
  481. "listable",
  482. "lobbyState",
  483. "lobbyTimer",
  484. "messageExpiration",
  485. "name",
  486. "notificationCalls",
  487. "notificationLevel",
  488. "objectId",
  489. "objectType",
  490. "participantFlags",
  491. "participantType",
  492. "permissions",
  493. "readOnly",
  494. "recordingConsent",
  495. "sessionId",
  496. "sipEnabled",
  497. "token",
  498. "type",
  499. "unreadMention",
  500. "unreadMentionDirect",
  501. "unreadMessages"
  502. ],
  503. "properties": {
  504. "actorId": {
  505. "type": "string"
  506. },
  507. "actorType": {
  508. "type": "string"
  509. },
  510. "attendeeId": {
  511. "type": "integer",
  512. "format": "int64"
  513. },
  514. "attendeePermissions": {
  515. "type": "integer",
  516. "format": "int64"
  517. },
  518. "attendeePin": {
  519. "type": "string",
  520. "nullable": true
  521. },
  522. "avatarVersion": {
  523. "type": "string"
  524. },
  525. "breakoutRoomMode": {
  526. "type": "integer",
  527. "format": "int64"
  528. },
  529. "breakoutRoomStatus": {
  530. "type": "integer",
  531. "format": "int64"
  532. },
  533. "callFlag": {
  534. "type": "integer",
  535. "format": "int64"
  536. },
  537. "callPermissions": {
  538. "type": "integer",
  539. "format": "int64"
  540. },
  541. "callRecording": {
  542. "type": "integer",
  543. "format": "int64"
  544. },
  545. "callStartTime": {
  546. "type": "integer",
  547. "format": "int64"
  548. },
  549. "canDeleteConversation": {
  550. "type": "boolean"
  551. },
  552. "canEnableSIP": {
  553. "type": "boolean"
  554. },
  555. "canLeaveConversation": {
  556. "type": "boolean"
  557. },
  558. "canStartCall": {
  559. "type": "boolean"
  560. },
  561. "defaultPermissions": {
  562. "type": "integer",
  563. "format": "int64"
  564. },
  565. "description": {
  566. "type": "string"
  567. },
  568. "displayName": {
  569. "type": "string"
  570. },
  571. "hasCall": {
  572. "type": "boolean"
  573. },
  574. "hasPassword": {
  575. "type": "boolean"
  576. },
  577. "id": {
  578. "type": "integer",
  579. "format": "int64"
  580. },
  581. "isCustomAvatar": {
  582. "type": "boolean"
  583. },
  584. "isFavorite": {
  585. "type": "boolean"
  586. },
  587. "lastActivity": {
  588. "type": "integer",
  589. "format": "int64"
  590. },
  591. "lastCommonReadMessage": {
  592. "type": "integer",
  593. "format": "int64"
  594. },
  595. "lastMessage": {
  596. "oneOf": [
  597. {
  598. "$ref": "#/components/schemas/RoomLastMessage"
  599. },
  600. {
  601. "type": "array",
  602. "maxLength": 0
  603. }
  604. ]
  605. },
  606. "lastPing": {
  607. "type": "integer",
  608. "format": "int64"
  609. },
  610. "lastReadMessage": {
  611. "type": "integer",
  612. "format": "int64"
  613. },
  614. "listable": {
  615. "type": "integer",
  616. "format": "int64"
  617. },
  618. "lobbyState": {
  619. "type": "integer",
  620. "format": "int64"
  621. },
  622. "lobbyTimer": {
  623. "type": "integer",
  624. "format": "int64"
  625. },
  626. "messageExpiration": {
  627. "type": "integer",
  628. "format": "int64"
  629. },
  630. "name": {
  631. "type": "string"
  632. },
  633. "notificationCalls": {
  634. "type": "integer",
  635. "format": "int64"
  636. },
  637. "notificationLevel": {
  638. "type": "integer",
  639. "format": "int64"
  640. },
  641. "objectId": {
  642. "type": "string"
  643. },
  644. "objectType": {
  645. "type": "string"
  646. },
  647. "participantFlags": {
  648. "type": "integer",
  649. "format": "int64"
  650. },
  651. "participantType": {
  652. "type": "integer",
  653. "format": "int64"
  654. },
  655. "permissions": {
  656. "type": "integer",
  657. "format": "int64"
  658. },
  659. "readOnly": {
  660. "type": "integer",
  661. "format": "int64"
  662. },
  663. "recordingConsent": {
  664. "type": "integer",
  665. "format": "int64"
  666. },
  667. "sessionId": {
  668. "type": "string"
  669. },
  670. "sipEnabled": {
  671. "type": "integer",
  672. "format": "int64"
  673. },
  674. "status": {
  675. "type": "string"
  676. },
  677. "statusClearAt": {
  678. "type": "integer",
  679. "format": "int64",
  680. "nullable": true
  681. },
  682. "statusIcon": {
  683. "type": "string",
  684. "nullable": true
  685. },
  686. "statusMessage": {
  687. "type": "string",
  688. "nullable": true
  689. },
  690. "token": {
  691. "type": "string"
  692. },
  693. "type": {
  694. "type": "integer",
  695. "format": "int64"
  696. },
  697. "unreadMention": {
  698. "type": "boolean"
  699. },
  700. "unreadMentionDirect": {
  701. "type": "boolean"
  702. },
  703. "unreadMessages": {
  704. "type": "integer",
  705. "format": "int64"
  706. }
  707. }
  708. },
  709. "RoomLastMessage": {
  710. "oneOf": [
  711. {
  712. "$ref": "#/components/schemas/ChatMessage"
  713. },
  714. {
  715. "$ref": "#/components/schemas/RoomProxyMessage"
  716. }
  717. ]
  718. },
  719. "RoomProxyMessage": {
  720. "type": "object",
  721. "required": [
  722. "actorDisplayName",
  723. "actorId",
  724. "actorType",
  725. "expirationTimestamp",
  726. "message",
  727. "messageParameters",
  728. "messageType",
  729. "systemMessage"
  730. ],
  731. "properties": {
  732. "actorDisplayName": {
  733. "type": "string"
  734. },
  735. "actorId": {
  736. "type": "string"
  737. },
  738. "actorType": {
  739. "type": "string"
  740. },
  741. "expirationTimestamp": {
  742. "type": "integer",
  743. "format": "int64"
  744. },
  745. "message": {
  746. "type": "string"
  747. },
  748. "messageParameters": {
  749. "type": "object",
  750. "additionalProperties": {
  751. "$ref": "#/components/schemas/RichObjectParameter"
  752. }
  753. },
  754. "messageType": {
  755. "type": "string"
  756. },
  757. "systemMessage": {
  758. "type": "string"
  759. }
  760. }
  761. }
  762. }
  763. },
  764. "paths": {
  765. "/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}": {
  766. "get": {
  767. "operationId": "room-get-single-room",
  768. "summary": "Get a room",
  769. "tags": [
  770. "room"
  771. ],
  772. "security": [
  773. {},
  774. {
  775. "bearer_auth": []
  776. },
  777. {
  778. "basic_auth": []
  779. }
  780. ],
  781. "parameters": [
  782. {
  783. "name": "apiVersion",
  784. "in": "path",
  785. "required": true,
  786. "schema": {
  787. "type": "string",
  788. "enum": [
  789. "v4"
  790. ],
  791. "default": "v4"
  792. }
  793. },
  794. {
  795. "name": "token",
  796. "in": "path",
  797. "description": "Token of the room",
  798. "required": true,
  799. "schema": {
  800. "type": "string",
  801. "pattern": "^[a-z0-9]{4,30}$"
  802. }
  803. },
  804. {
  805. "name": "OCS-APIRequest",
  806. "in": "header",
  807. "description": "Required to be true for the API request to pass",
  808. "required": true,
  809. "schema": {
  810. "type": "boolean",
  811. "default": true
  812. }
  813. }
  814. ],
  815. "responses": {
  816. "200": {
  817. "description": "Room returned",
  818. "headers": {
  819. "X-Nextcloud-Talk-Hash": {
  820. "schema": {
  821. "type": "string"
  822. }
  823. }
  824. },
  825. "content": {
  826. "application/json": {
  827. "schema": {
  828. "type": "object",
  829. "required": [
  830. "ocs"
  831. ],
  832. "properties": {
  833. "ocs": {
  834. "type": "object",
  835. "required": [
  836. "meta",
  837. "data"
  838. ],
  839. "properties": {
  840. "meta": {
  841. "$ref": "#/components/schemas/OCSMeta"
  842. },
  843. "data": {
  844. "$ref": "#/components/schemas/Room"
  845. }
  846. }
  847. }
  848. }
  849. }
  850. }
  851. }
  852. },
  853. "401": {
  854. "description": "SIP request invalid",
  855. "content": {
  856. "application/json": {
  857. "schema": {
  858. "type": "object",
  859. "required": [
  860. "ocs"
  861. ],
  862. "properties": {
  863. "ocs": {
  864. "type": "object",
  865. "required": [
  866. "meta",
  867. "data"
  868. ],
  869. "properties": {
  870. "meta": {
  871. "$ref": "#/components/schemas/OCSMeta"
  872. },
  873. "data": {
  874. "nullable": true
  875. }
  876. }
  877. }
  878. }
  879. }
  880. }
  881. }
  882. },
  883. "404": {
  884. "description": "Room not found",
  885. "content": {
  886. "application/json": {
  887. "schema": {
  888. "type": "object",
  889. "required": [
  890. "ocs"
  891. ],
  892. "properties": {
  893. "ocs": {
  894. "type": "object",
  895. "required": [
  896. "meta",
  897. "data"
  898. ],
  899. "properties": {
  900. "meta": {
  901. "$ref": "#/components/schemas/OCSMeta"
  902. },
  903. "data": {
  904. "nullable": true
  905. }
  906. }
  907. }
  908. }
  909. }
  910. }
  911. }
  912. }
  913. }
  914. }
  915. },
  916. "/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/pin/{pin}": {
  917. "get": {
  918. "operationId": "room-verify-dial-in-pin",
  919. "summary": "Verify a dial-in PIN (SIP bridge)",
  920. "tags": [
  921. "room"
  922. ],
  923. "security": [
  924. {},
  925. {
  926. "bearer_auth": []
  927. },
  928. {
  929. "basic_auth": []
  930. }
  931. ],
  932. "parameters": [
  933. {
  934. "name": "apiVersion",
  935. "in": "path",
  936. "required": true,
  937. "schema": {
  938. "type": "string",
  939. "enum": [
  940. "v4"
  941. ],
  942. "default": "v4"
  943. }
  944. },
  945. {
  946. "name": "token",
  947. "in": "path",
  948. "required": true,
  949. "schema": {
  950. "type": "string",
  951. "pattern": "^[a-z0-9]{4,30}$"
  952. }
  953. },
  954. {
  955. "name": "pin",
  956. "in": "path",
  957. "description": "PIN the participant used to dial-in",
  958. "required": true,
  959. "schema": {
  960. "type": "string",
  961. "pattern": "^\\d{7,32}$"
  962. }
  963. },
  964. {
  965. "name": "OCS-APIRequest",
  966. "in": "header",
  967. "description": "Required to be true for the API request to pass",
  968. "required": true,
  969. "schema": {
  970. "type": "boolean",
  971. "default": true
  972. }
  973. }
  974. ],
  975. "responses": {
  976. "200": {
  977. "description": "Participant returned",
  978. "content": {
  979. "application/json": {
  980. "schema": {
  981. "type": "object",
  982. "required": [
  983. "ocs"
  984. ],
  985. "properties": {
  986. "ocs": {
  987. "type": "object",
  988. "required": [
  989. "meta",
  990. "data"
  991. ],
  992. "properties": {
  993. "meta": {
  994. "$ref": "#/components/schemas/OCSMeta"
  995. },
  996. "data": {
  997. "$ref": "#/components/schemas/Room"
  998. }
  999. }
  1000. }
  1001. }
  1002. }
  1003. }
  1004. }
  1005. },
  1006. "401": {
  1007. "description": "SIP request invalid",
  1008. "content": {
  1009. "application/json": {
  1010. "schema": {
  1011. "type": "object",
  1012. "required": [
  1013. "ocs"
  1014. ],
  1015. "properties": {
  1016. "ocs": {
  1017. "type": "object",
  1018. "required": [
  1019. "meta",
  1020. "data"
  1021. ],
  1022. "properties": {
  1023. "meta": {
  1024. "$ref": "#/components/schemas/OCSMeta"
  1025. },
  1026. "data": {}
  1027. }
  1028. }
  1029. }
  1030. }
  1031. }
  1032. }
  1033. },
  1034. "404": {
  1035. "description": "Participant not found",
  1036. "content": {
  1037. "application/json": {
  1038. "schema": {
  1039. "type": "object",
  1040. "required": [
  1041. "ocs"
  1042. ],
  1043. "properties": {
  1044. "ocs": {
  1045. "type": "object",
  1046. "required": [
  1047. "meta",
  1048. "data"
  1049. ],
  1050. "properties": {
  1051. "meta": {
  1052. "$ref": "#/components/schemas/OCSMeta"
  1053. },
  1054. "data": {}
  1055. }
  1056. }
  1057. }
  1058. }
  1059. }
  1060. }
  1061. },
  1062. "501": {
  1063. "description": "SIP dial-in is not configured",
  1064. "content": {
  1065. "application/json": {
  1066. "schema": {
  1067. "type": "object",
  1068. "required": [
  1069. "ocs"
  1070. ],
  1071. "properties": {
  1072. "ocs": {
  1073. "type": "object",
  1074. "required": [
  1075. "meta",
  1076. "data"
  1077. ],
  1078. "properties": {
  1079. "meta": {
  1080. "$ref": "#/components/schemas/OCSMeta"
  1081. },
  1082. "data": {}
  1083. }
  1084. }
  1085. }
  1086. }
  1087. }
  1088. }
  1089. }
  1090. }
  1091. }
  1092. },
  1093. "/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/verify-dialin": {
  1094. "post": {
  1095. "operationId": "room-verify-dial-in-pin",
  1096. "summary": "Verify a dial-in PIN (SIP bridge)",
  1097. "tags": [
  1098. "room"
  1099. ],
  1100. "security": [
  1101. {},
  1102. {
  1103. "bearer_auth": []
  1104. },
  1105. {
  1106. "basic_auth": []
  1107. }
  1108. ],
  1109. "parameters": [
  1110. {
  1111. "name": "pin",
  1112. "in": "query",
  1113. "description": "PIN the participant used to dial-in",
  1114. "required": true,
  1115. "schema": {
  1116. "type": "string"
  1117. }
  1118. },
  1119. {
  1120. "name": "apiVersion",
  1121. "in": "path",
  1122. "required": true,
  1123. "schema": {
  1124. "type": "string",
  1125. "enum": [
  1126. "v4"
  1127. ],
  1128. "default": "v4"
  1129. }
  1130. },
  1131. {
  1132. "name": "token",
  1133. "in": "path",
  1134. "required": true,
  1135. "schema": {
  1136. "type": "string",
  1137. "pattern": "^[a-z0-9]{4,30}$"
  1138. }
  1139. },
  1140. {
  1141. "name": "OCS-APIRequest",
  1142. "in": "header",
  1143. "description": "Required to be true for the API request to pass",
  1144. "required": true,
  1145. "schema": {
  1146. "type": "boolean",
  1147. "default": true
  1148. }
  1149. }
  1150. ],
  1151. "responses": {
  1152. "200": {
  1153. "description": "Participant returned",
  1154. "content": {
  1155. "application/json": {
  1156. "schema": {
  1157. "type": "object",
  1158. "required": [
  1159. "ocs"
  1160. ],
  1161. "properties": {
  1162. "ocs": {
  1163. "type": "object",
  1164. "required": [
  1165. "meta",
  1166. "data"
  1167. ],
  1168. "properties": {
  1169. "meta": {
  1170. "$ref": "#/components/schemas/OCSMeta"
  1171. },
  1172. "data": {
  1173. "$ref": "#/components/schemas/Room"
  1174. }
  1175. }
  1176. }
  1177. }
  1178. }
  1179. }
  1180. }
  1181. },
  1182. "401": {
  1183. "description": "SIP request invalid",
  1184. "content": {
  1185. "application/json": {
  1186. "schema": {
  1187. "type": "object",
  1188. "required": [
  1189. "ocs"
  1190. ],
  1191. "properties": {
  1192. "ocs": {
  1193. "type": "object",
  1194. "required": [
  1195. "meta",
  1196. "data"
  1197. ],
  1198. "properties": {
  1199. "meta": {
  1200. "$ref": "#/components/schemas/OCSMeta"
  1201. },
  1202. "data": {}
  1203. }
  1204. }
  1205. }
  1206. }
  1207. }
  1208. }
  1209. },
  1210. "404": {
  1211. "description": "Participant not found",
  1212. "content": {
  1213. "application/json": {
  1214. "schema": {
  1215. "type": "object",
  1216. "required": [
  1217. "ocs"
  1218. ],
  1219. "properties": {
  1220. "ocs": {
  1221. "type": "object",
  1222. "required": [
  1223. "meta",
  1224. "data"
  1225. ],
  1226. "properties": {
  1227. "meta": {
  1228. "$ref": "#/components/schemas/OCSMeta"
  1229. },
  1230. "data": {}
  1231. }
  1232. }
  1233. }
  1234. }
  1235. }
  1236. }
  1237. },
  1238. "501": {
  1239. "description": "SIP dial-in is not configured",
  1240. "content": {
  1241. "application/json": {
  1242. "schema": {
  1243. "type": "object",
  1244. "required": [
  1245. "ocs"
  1246. ],
  1247. "properties": {
  1248. "ocs": {
  1249. "type": "object",
  1250. "required": [
  1251. "meta",
  1252. "data"
  1253. ],
  1254. "properties": {
  1255. "meta": {
  1256. "$ref": "#/components/schemas/OCSMeta"
  1257. },
  1258. "data": {}
  1259. }
  1260. }
  1261. }
  1262. }
  1263. }
  1264. }
  1265. }
  1266. }
  1267. }
  1268. },
  1269. "/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/verify-dialout": {
  1270. "post": {
  1271. "operationId": "room-verify-dial-out-number",
  1272. "summary": "Verify a dial-out number (SIP bridge)",
  1273. "tags": [
  1274. "room"
  1275. ],
  1276. "security": [
  1277. {},
  1278. {
  1279. "bearer_auth": []
  1280. },
  1281. {
  1282. "basic_auth": []
  1283. }
  1284. ],
  1285. "parameters": [
  1286. {
  1287. "name": "number",
  1288. "in": "query",
  1289. "description": "E164 formatted phone number",
  1290. "required": true,
  1291. "schema": {
  1292. "type": "string"
  1293. }
  1294. },
  1295. {
  1296. "name": "options",
  1297. "in": "query",
  1298. "description": "Additional details to verify the validity of the request",
  1299. "schema": {
  1300. "type": "string"
  1301. }
  1302. },
  1303. {
  1304. "name": "apiVersion",
  1305. "in": "path",
  1306. "required": true,
  1307. "schema": {
  1308. "type": "string",
  1309. "enum": [
  1310. "v4"
  1311. ],
  1312. "default": "v4"
  1313. }
  1314. },
  1315. {
  1316. "name": "token",
  1317. "in": "path",
  1318. "required": true,
  1319. "schema": {
  1320. "type": "string",
  1321. "pattern": "^[a-z0-9]{4,30}$"
  1322. }
  1323. },
  1324. {
  1325. "name": "OCS-APIRequest",
  1326. "in": "header",
  1327. "description": "Required to be true for the API request to pass",
  1328. "required": true,
  1329. "schema": {
  1330. "type": "boolean",
  1331. "default": true
  1332. }
  1333. }
  1334. ],
  1335. "responses": {
  1336. "200": {
  1337. "description": "Participant created successfully",
  1338. "content": {
  1339. "application/json": {
  1340. "schema": {
  1341. "type": "object",
  1342. "required": [
  1343. "ocs"
  1344. ],
  1345. "properties": {
  1346. "ocs": {
  1347. "type": "object",
  1348. "required": [
  1349. "meta",
  1350. "data"
  1351. ],
  1352. "properties": {
  1353. "meta": {
  1354. "$ref": "#/components/schemas/OCSMeta"
  1355. },
  1356. "data": {
  1357. "$ref": "#/components/schemas/Room"
  1358. }
  1359. }
  1360. }
  1361. }
  1362. }
  1363. }
  1364. }
  1365. },
  1366. "400": {
  1367. "description": "Phone number and details could not be confirmed",
  1368. "content": {
  1369. "application/json": {
  1370. "schema": {
  1371. "type": "object",
  1372. "required": [
  1373. "ocs"
  1374. ],
  1375. "properties": {
  1376. "ocs": {
  1377. "type": "object",
  1378. "required": [
  1379. "meta",
  1380. "data"
  1381. ],
  1382. "properties": {
  1383. "meta": {
  1384. "$ref": "#/components/schemas/OCSMeta"
  1385. },
  1386. "data": {}
  1387. }
  1388. }
  1389. }
  1390. }
  1391. }
  1392. }
  1393. },
  1394. "401": {
  1395. "description": "SIP request invalid",
  1396. "content": {
  1397. "application/json": {
  1398. "schema": {
  1399. "type": "object",
  1400. "required": [
  1401. "ocs"
  1402. ],
  1403. "properties": {
  1404. "ocs": {
  1405. "type": "object",
  1406. "required": [
  1407. "meta",
  1408. "data"
  1409. ],
  1410. "properties": {
  1411. "meta": {
  1412. "$ref": "#/components/schemas/OCSMeta"
  1413. },
  1414. "data": {}
  1415. }
  1416. }
  1417. }
  1418. }
  1419. }
  1420. }
  1421. },
  1422. "404": {
  1423. "description": "Phone number is not invited as a participant",
  1424. "content": {
  1425. "application/json": {
  1426. "schema": {
  1427. "type": "object",
  1428. "required": [
  1429. "ocs"
  1430. ],
  1431. "properties": {
  1432. "ocs": {
  1433. "type": "object",
  1434. "required": [
  1435. "meta",
  1436. "data"
  1437. ],
  1438. "properties": {
  1439. "meta": {
  1440. "$ref": "#/components/schemas/OCSMeta"
  1441. },
  1442. "data": {}
  1443. }
  1444. }
  1445. }
  1446. }
  1447. }
  1448. }
  1449. },
  1450. "501": {
  1451. "description": "SIP dial-out is not configured",
  1452. "content": {
  1453. "application/json": {
  1454. "schema": {
  1455. "type": "object",
  1456. "required": [
  1457. "ocs"
  1458. ],
  1459. "properties": {
  1460. "ocs": {
  1461. "type": "object",
  1462. "required": [
  1463. "meta",
  1464. "data"
  1465. ],
  1466. "properties": {
  1467. "meta": {
  1468. "$ref": "#/components/schemas/OCSMeta"
  1469. },
  1470. "data": {}
  1471. }
  1472. }
  1473. }
  1474. }
  1475. }
  1476. }
  1477. }
  1478. }
  1479. }
  1480. },
  1481. "/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/open-dial-in": {
  1482. "post": {
  1483. "operationId": "room-create-guest-by-dial-in",
  1484. "summary": "Create a guest by their dial-in",
  1485. "tags": [
  1486. "room"
  1487. ],
  1488. "security": [
  1489. {},
  1490. {
  1491. "bearer_auth": []
  1492. },
  1493. {
  1494. "basic_auth": []
  1495. }
  1496. ],
  1497. "parameters": [
  1498. {
  1499. "name": "apiVersion",
  1500. "in": "path",
  1501. "required": true,
  1502. "schema": {
  1503. "type": "string",
  1504. "enum": [
  1505. "v4"
  1506. ],
  1507. "default": "v4"
  1508. }
  1509. },
  1510. {
  1511. "name": "token",
  1512. "in": "path",
  1513. "required": true,
  1514. "schema": {
  1515. "type": "string",
  1516. "pattern": "^[a-z0-9]{4,30}$"
  1517. }
  1518. },
  1519. {
  1520. "name": "OCS-APIRequest",
  1521. "in": "header",
  1522. "description": "Required to be true for the API request to pass",
  1523. "required": true,
  1524. "schema": {
  1525. "type": "boolean",
  1526. "default": true
  1527. }
  1528. }
  1529. ],
  1530. "responses": {
  1531. "200": {
  1532. "description": "Participant created successfully",
  1533. "content": {
  1534. "application/json": {
  1535. "schema": {
  1536. "type": "object",
  1537. "required": [
  1538. "ocs"
  1539. ],
  1540. "properties": {
  1541. "ocs": {
  1542. "type": "object",
  1543. "required": [
  1544. "meta",
  1545. "data"
  1546. ],
  1547. "properties": {
  1548. "meta": {
  1549. "$ref": "#/components/schemas/OCSMeta"
  1550. },
  1551. "data": {
  1552. "$ref": "#/components/schemas/Room"
  1553. }
  1554. }
  1555. }
  1556. }
  1557. }
  1558. }
  1559. }
  1560. },
  1561. "400": {
  1562. "description": "SIP not enabled",
  1563. "content": {
  1564. "application/json": {
  1565. "schema": {
  1566. "type": "object",
  1567. "required": [
  1568. "ocs"
  1569. ],
  1570. "properties": {
  1571. "ocs": {
  1572. "type": "object",
  1573. "required": [
  1574. "meta",
  1575. "data"
  1576. ],
  1577. "properties": {
  1578. "meta": {
  1579. "$ref": "#/components/schemas/OCSMeta"
  1580. },
  1581. "data": {}
  1582. }
  1583. }
  1584. }
  1585. }
  1586. }
  1587. }
  1588. },
  1589. "401": {
  1590. "description": "SIP request invalid",
  1591. "content": {
  1592. "application/json": {
  1593. "schema": {
  1594. "type": "object",
  1595. "required": [
  1596. "ocs"
  1597. ],
  1598. "properties": {
  1599. "ocs": {
  1600. "type": "object",
  1601. "required": [
  1602. "meta",
  1603. "data"
  1604. ],
  1605. "properties": {
  1606. "meta": {
  1607. "$ref": "#/components/schemas/OCSMeta"
  1608. },
  1609. "data": {}
  1610. }
  1611. }
  1612. }
  1613. }
  1614. }
  1615. }
  1616. }
  1617. }
  1618. }
  1619. },
  1620. "/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/rejected-dialout": {
  1621. "delete": {
  1622. "operationId": "room-rejected-dial-out-request",
  1623. "summary": "Reset call ID of a dial-out participant when the SIP gateway rejected it",
  1624. "tags": [
  1625. "room"
  1626. ],
  1627. "security": [
  1628. {},
  1629. {
  1630. "bearer_auth": []
  1631. },
  1632. {
  1633. "basic_auth": []
  1634. }
  1635. ],
  1636. "parameters": [
  1637. {
  1638. "name": "callId",
  1639. "in": "query",
  1640. "description": "The call ID provided by the SIP bridge earlier to uniquely identify the call to terminate",
  1641. "required": true,
  1642. "schema": {
  1643. "type": "string"
  1644. }
  1645. },
  1646. {
  1647. "name": "options",
  1648. "in": "query",
  1649. "description": "Additional details to verify the validity of the request",
  1650. "schema": {
  1651. "type": "string"
  1652. }
  1653. },
  1654. {
  1655. "name": "apiVersion",
  1656. "in": "path",
  1657. "required": true,
  1658. "schema": {
  1659. "type": "string",
  1660. "enum": [
  1661. "v4"
  1662. ],
  1663. "default": "v4"
  1664. }
  1665. },
  1666. {
  1667. "name": "token",
  1668. "in": "path",
  1669. "required": true,
  1670. "schema": {
  1671. "type": "string",
  1672. "pattern": "^[a-z0-9]{4,30}$"
  1673. }
  1674. },
  1675. {
  1676. "name": "OCS-APIRequest",
  1677. "in": "header",
  1678. "description": "Required to be true for the API request to pass",
  1679. "required": true,
  1680. "schema": {
  1681. "type": "boolean",
  1682. "default": true
  1683. }
  1684. }
  1685. ],
  1686. "responses": {
  1687. "200": {
  1688. "description": "Call ID reset",
  1689. "content": {
  1690. "application/json": {
  1691. "schema": {
  1692. "type": "object",
  1693. "required": [
  1694. "ocs"
  1695. ],
  1696. "properties": {
  1697. "ocs": {
  1698. "type": "object",
  1699. "required": [
  1700. "meta",
  1701. "data"
  1702. ],
  1703. "properties": {
  1704. "meta": {
  1705. "$ref": "#/components/schemas/OCSMeta"
  1706. },
  1707. "data": {}
  1708. }
  1709. }
  1710. }
  1711. }
  1712. }
  1713. }
  1714. },
  1715. "400": {
  1716. "description": "Call ID mismatch or attendeeId not found in $options",
  1717. "content": {
  1718. "application/json": {
  1719. "schema": {
  1720. "type": "object",
  1721. "required": [
  1722. "ocs"
  1723. ],
  1724. "properties": {
  1725. "ocs": {
  1726. "type": "object",
  1727. "required": [
  1728. "meta",
  1729. "data"
  1730. ],
  1731. "properties": {
  1732. "meta": {
  1733. "$ref": "#/components/schemas/OCSMeta"
  1734. },
  1735. "data": {}
  1736. }
  1737. }
  1738. }
  1739. }
  1740. }
  1741. }
  1742. },
  1743. "401": {
  1744. "description": "SIP request invalid",
  1745. "content": {
  1746. "application/json": {
  1747. "schema": {
  1748. "type": "object",
  1749. "required": [
  1750. "ocs"
  1751. ],
  1752. "properties": {
  1753. "ocs": {
  1754. "type": "object",
  1755. "required": [
  1756. "meta",
  1757. "data"
  1758. ],
  1759. "properties": {
  1760. "meta": {
  1761. "$ref": "#/components/schemas/OCSMeta"
  1762. },
  1763. "data": {}
  1764. }
  1765. }
  1766. }
  1767. }
  1768. }
  1769. }
  1770. },
  1771. "404": {
  1772. "description": "Participant was not found",
  1773. "content": {
  1774. "application/json": {
  1775. "schema": {
  1776. "type": "object",
  1777. "required": [
  1778. "ocs"
  1779. ],
  1780. "properties": {
  1781. "ocs": {
  1782. "type": "object",
  1783. "required": [
  1784. "meta",
  1785. "data"
  1786. ],
  1787. "properties": {
  1788. "meta": {
  1789. "$ref": "#/components/schemas/OCSMeta"
  1790. },
  1791. "data": {}
  1792. }
  1793. }
  1794. }
  1795. }
  1796. }
  1797. }
  1798. },
  1799. "501": {
  1800. "description": "SIP dial-out is not configured",
  1801. "content": {
  1802. "application/json": {
  1803. "schema": {
  1804. "type": "object",
  1805. "required": [
  1806. "ocs"
  1807. ],
  1808. "properties": {
  1809. "ocs": {
  1810. "type": "object",
  1811. "required": [
  1812. "meta",
  1813. "data"
  1814. ],
  1815. "properties": {
  1816. "meta": {
  1817. "$ref": "#/components/schemas/OCSMeta"
  1818. },
  1819. "data": {}
  1820. }
  1821. }
  1822. }
  1823. }
  1824. }
  1825. }
  1826. }
  1827. }
  1828. }
  1829. }
  1830. },
  1831. "tags": []
  1832. }