Skip to content
Snippets Groups Projects
tank-types.ts 38.5 KiB
Newer Older
  • Learn to ignore specific revisions
  •  * This file was auto-generated by `make update-types` at 2023-06-07 10:59:39.668Z.
    
     * DO NOT make changes to this file.
     */
    
    export interface paths {
      '/api/v1/playlists': {
        /**
         * List playlists
         * @description Lists all playlists.
         */
        get: {
          /**
           * List playlists
           * @description Lists all playlists.
           */
          parameters?: {
            /** @description Limit number of results */
            /** @description Start listing from offset */
            query?: {
              limit?: number
              offset?: number
            }
          }
          responses: {
            /** @description OK */
            200: {
              content: {
                'application/json': components['schemas']['v1.PlaylistsListing']
              }
            }
            /** @description Bad Request */
            400: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
      }
      '/api/v1/playlists/{id}': {
        /**
         * Retrieve playlist
         * @description Retrieves a playlist.
         */
        get: {
          /**
           * Retrieve playlist
           * @description Retrieves a playlist.
           */
          parameters: {
            /** @description ID of the playlist */
            path: {
              id: number
            }
          }
          responses: {
            /** @description OK */
            200: {
              content: {
                'application/json': components['schemas']['store.Playlist']
              }
            }
            /** @description Bad Request */
            400: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Not Found */
            404: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
      }
      '/api/v1/shows': {
        /**
         * List shows
         * @description Lists all existing shows
         */
        get: {
          /**
           * List shows
           * @description Lists all existing shows
           */
          parameters?: {
            /** @description Limit number of results */
            /** @description Start listing from offset */
            query?: {
              limit?: number
              offset?: number
            }
          }
          responses: {
            /** @description OK */
            200: {
              content: {
                'application/json': components['schemas']['v1.ShowsListing']
              }
            }
            /** @description Bad Request */
            400: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
      }
      '/api/v1/shows/{name}': {
        /**
         * Create show
         * @description Creates a new show
         */
        post: {
          /**
           * Create show
           * @description Creates a new show
           */
          parameters: {
            /** @description If given, all files and playlists will be copied from the show */
            query?: {
    
            }
            /** @description Name of the show to be created */
            path: {
              name: string
            }
          }
          responses: {
            /** @description Created */
            201: {
              content: {
                'application/json': components['schemas']['store.Show']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Not Found */
            404: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Conflict */
            409: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
        /**
         * Delete show
         * @description Deletes a show
         */
        delete: {
          /**
           * Delete show
           * @description Deletes a show
           */
          parameters: {
            /** @description Name of the show to be deleted */
            path: {
              name: string
            }
          }
          responses: {
            /** @description No Content */
            204: {
              content: {}
            }
            /** @description Forbidden */
            403: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
      }
      '/api/v1/shows/{name}/files': {
        /**
         * List files
         * @description Lists files of show
         */
        get: {
          /**
           * List files
           * @description Lists files of show
           */
          parameters: {
            /** @description Limit number of results */
            /** @description Start listing from offset */
            query?: {
              limit?: number
              offset?: number
            }
            /** @description Name of the show */
            path: {
              name: string
            }
          }
          responses: {
            /** @description OK */
            200: {
              content: {
                'application/json': components['schemas']['v1.FilesListing']
              }
            }
            /** @description Bad Request */
            400: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
        /**
         * Add file
         * @description Adds a file and starts import
         */
        post: {
          /**
           * Add file
           * @description Adds a file and starts import
           */
          parameters: {
            /** @description running|done - If given, return not before import has the given state */
            query?: {
    
            }
            /** @description Name of the show */
            path: {
              name: string
            }
          }
          /** @description URI of the file */
          requestBody: {
            content: {
              'application/json': components['schemas']['v1.FileCreateRequest']
            }
          }
          responses: {
            /** @description Created */
            201: {
              content: {
                'application/json': components['schemas']['store.File']
              }
            }
            /** @description Bad Request */
            400: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
      }
      '/api/v1/shows/{name}/files/{id}': {
        /**
         * Retrieve file
         * @description Retrieves file object.
         */
        get: {
          /**
           * Retrieve file
           * @description Retrieves file object.
           */
          parameters: {
            /** @description Name of the show */
            /** @description ID of the file */
            path: {
              name: string
              id: number
            }
          }
          responses: {
            /** @description OK */
            200: {
              content: {
                'application/json': components['schemas']['store.File']
              }
            }
            /** @description Bad Request */
            400: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Not Found */
            404: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
        /**
         * Delete file
         * @description Removes a file.
         */
        delete: {
          /**
           * Delete file
           * @description Removes a file.
           */
          parameters: {
            /** @description Name of the show */
            /** @description ID of the file */
            path: {
              name: string
              id: number
            }
          }
          responses: {
            /** @description No Content */
            204: {
              content: {}
            }
            /** @description Bad Request */
            400: {
              content: {
                '*/*': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                '*/*': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Not Found */
            404: {
              content: {
                '*/*': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Conflict */
            409: {
              content: {
                '*/*': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                '*/*': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
        /**
         * Update file
         * @description Updates file metadata.
         */
        patch: {
          /**
           * Update file
           * @description Updates file metadata.
           */
          parameters: {
            /** @description Name of the show */
            /** @description ID of the file */
            path: {
              name: string
              id: number
            }
          }
          /** @description File metadata */
          requestBody?: {
            content: {
              'application/json': components['schemas']['store.FileMetadata']
            }
          }
          responses: {
            /** @description OK */
            200: {
              content: {
                'application/json': components['schemas']['store.File']
              }
            }
            /** @description Bad Request */
            400: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Not Found */
            404: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
      }
      '/api/v1/shows/{name}/files/{id}/import': {
        /**
         * Retrieve import status
         * @description Retrieves import status of the file.
         */
        get: {
          /**
           * Retrieve import status
           * @description Retrieves import status of the file.
           */
          parameters: {
            /** @description running|done - If given, return not before import has the given state */
            query?: {
    
    510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000
            }
            /** @description Name of the show */
            /** @description ID of the file */
            path: {
              name: string
              id: number
            }
          }
          responses: {
            /** @description OK */
            200: {
              content: {
                'application/json': components['schemas']['importer.Job']
              }
            }
            /** @description Bad Request */
            400: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description No job for this file */
            404: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
        /**
         * Cancel file import
         * @description Cancels import of file.
         */
        delete: {
          /**
           * Cancel file import
           * @description Cancels import of file.
           */
          parameters: {
            /** @description Name of the show */
            /** @description ID of the file */
            path: {
              name: string
              id: number
            }
          }
          responses: {
            /** @description No Content */
            204: {
              content: {}
            }
            /** @description Bad Request */
            400: {
              content: {
                '*/*': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                '*/*': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description No job for this file */
            404: {
              content: {
                '*/*': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                '*/*': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
      }
      '/api/v1/shows/{name}/files/{id}/logs': {
        /**
         * Retrieve import logs
         * @description Retrieves import logs of the file.
         */
        get: {
          /**
           * Retrieve import logs
           * @description Retrieves import logs of the file.
           */
          parameters: {
            /** @description Name of the show */
            /** @description ID of the file */
            path: {
              name: string
              id: number
            }
          }
          responses: {
            /** @description OK */
            200: {
              content: {
                'application/json': components['schemas']['v1.FileImportLogs']
              }
            }
            /** @description Bad Request */
            400: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Not Found */
            404: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
      }
      '/api/v1/shows/{name}/files/{id}/upload': {
        /**
         * Upload file content
         * @description Uploads file content. Only available if file was created using SourceURI set to upload://-type and file import state is running.
         */
        get: {
          /**
           * Upload file content
           * @description Uploads file content. Only available if file was created using SourceURI set to upload://-type and file import state is running.
           */
          parameters: {
            /** @description A unique identifier for the uploaded file */
            query: {
              flowIdentifier: string
            }
            /** @description Name of the show */
            /** @description ID of the file */
            path: {
              name: string
              id: number
            }
          }
          responses: {
            /** @description OK */
            200: {
              content: {}
            }
            /** @description No Content */
            204: {
              content: {}
            }
            /** @description Bad Request */
            400: {
              content: {
                '*/*': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                '*/*': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Conflict */
            409: {
              content: {
                '*/*': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                '*/*': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
        /**
         * Upload file content
         * @description Uploads file content. Only available if file was created using SourceURI set to upload://-type and file import state is running.
         */
        put: {
          /**
           * Upload file content
           * @description Uploads file content. Only available if file was created using SourceURI set to upload://-type and file import state is running.
           */
          parameters: {
            /** @description Name of the show */
            /** @description ID of the file */
            path: {
              name: string
              id: number
            }
          }
          responses: {
            /** @description OK */
            200: {
              content: {}
            }
            /** @description Bad Request */
            400: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Not Found */
            404: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
        /**
         * Upload file content
         * @description Uploads file content via flow.js. Only available if file was created using SourceURI set to upload://-type and file import state is running.
         */
        post: {
          /**
           * Upload file content
           * @description Uploads file content via flow.js. Only available if file was created using SourceURI set to upload://-type and file import state is running.
           */
          parameters: {
            /** @description Name of the show */
            /** @description ID of the file */
            path: {
              name: string
              id: number
            }
          }
          responses: {
            /** @description OK */
            200: {
              content: {}
            }
            /** @description Bad Request */
            400: {
              content: {
                '*/*': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                '*/*': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Conflict */
            409: {
              content: {
                '*/*': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                '*/*': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
      }
      '/api/v1/shows/{name}/files/{id}/usage': {
        /**
         * List referring playlists
         * @description Lists playlists referring to the file.
         */
        get: {
          /**
           * List referring playlists
           * @description Lists playlists referring to the file.
           */
          parameters: {
            /** @description Name of the show */
            /** @description ID of the file */
            path: {
              name: string
              id: number
            }
          }
          responses: {
            /** @description OK */
            200: {
              content: {
                'application/json': components['schemas']['v1.FileUsageListing']
              }
            }
            /** @description Bad Request */
            400: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Not Found */
            404: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
      }
      '/api/v1/shows/{name}/imports': {
        /**
         * List imports
         * @description Lists all running and pending imports
         */
        get: {
          /**
           * List imports
           * @description Lists all running and pending imports
           */
          parameters: {
            /** @description Limit number of results */
            /** @description Start listing from offset */
            query?: {
              limit?: number
              offset?: number
            }
            /** @description Name of the show */
            path: {
              name: string
            }
          }
          responses: {
            /** @description OK */
            200: {
              content: {
                'application/json': components['schemas']['v1.JobsListing']
              }
            }
            /** @description Bad Request */
            400: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
      }
      '/api/v1/shows/{name}/playlists': {
        /**
         * List playlists
         * @description Lists playlists of show.
         */
        get: {
          /**
           * List playlists
           * @description Lists playlists of show.
           */
          parameters: {
            /** @description Limit number of results */
            /** @description Start listing from offset */
            query?: {
              limit?: number
              offset?: number
            }
            /** @description Name of the show */
            path: {
              name: string
            }
          }
          responses: {
            /** @description OK */
            200: {
              content: {
                'application/json': components['schemas']['v1.PlaylistsListing']
              }
            }
            /** @description Bad Request */
            400: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
          }
        }
        /**
         * Create playlist
         * @description Creates a new playlist for the show.
         */
        post: {
          /**
           * Create playlist
           * @description Creates a new playlist for the show.
           */
          parameters: {
            /** @description Name of the show */
            path: {
              name: string
            }
          }
          /** @description Playlist data */
          requestBody: {
            content: {
              'application/json': components['schemas']['store.Playlist']
            }
          }
          responses: {
            /** @description Created */
            201: {
              content: {
                'application/json': components['schemas']['store.Playlist']
              }
            }
            /** @description Bad Request */
            400: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Forbidden */
            403: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']
              }
            }
            /** @description Internal Server Error */
            500: {
              content: {
                'application/json': components['schemas']['v1.ErrorResponse']