@namespace("Switchboard") protocol PackageDetail { /** The main class for this protocol */ record Package { /** The primary key */ int id; string name; string short_description; boolean call; int call_duration_in_minutes; boolean document; int max_document_length_in_pages; boolean claim_game; boolean offline; int specialty_id; string how_it_works; string whats_included; string whats_not_included; string micro_description; string right_for_you_if; string hero_image_url; } record PackageFetchOption { /** Which page of records to fetch */ int page = 1; /** How many records per page */ int per_page = 10; int specialty_id; } /** Returns a list of Packages */ array index(PackageFetchOption options); /** Return a single Package */ array show(int id); }