glitch-javascript-sdk 3.2.25 → 3.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -31844,7 +31844,7 @@ var Mcp = /** @class */ (function () {
31844
31844
  * Route declarations for the PR Directory API.
31845
31845
  *
31846
31846
  * These mirror the Laravel routes under `/api/pr/*` and the title-scoped
31847
- * matcher route under `/api/titles/{title_id}/pr/matches`. Keeping the URL
31847
+ * matcher/research routes under `/api/titles/{title_id}/pr/*`. Keeping the URL
31848
31848
  * templates in one place lets the SDK methods stay small and consistent with
31849
31849
  * the rest of the package's route-wrapper pattern.
31850
31850
  */
@@ -31856,10 +31856,17 @@ var PrDirectoryRoutes = /** @class */ (function () {
31856
31856
  viewPublication: { url: "/pr/publications/{publication_id}", method: HTTP_METHODS.GET },
31857
31857
  listPeople: { url: "/pr/people", method: HTTP_METHODS.GET },
31858
31858
  viewPerson: { url: "/pr/people/{person_id}", method: HTTP_METHODS.GET },
31859
+ listFeeds: { url: "/pr/feeds", method: HTTP_METHODS.GET },
31860
+ viewFeed: { url: "/pr/feeds/{feed_id}", method: HTTP_METHODS.GET },
31861
+ listStories: { url: "/pr/stories", method: HTTP_METHODS.GET },
31862
+ viewStory: { url: "/pr/stories/{story_id}", method: HTTP_METHODS.GET },
31859
31863
  listTags: { url: "/pr/tags", method: HTTP_METHODS.GET },
31860
31864
  report: { url: "/pr/report", method: HTTP_METHODS.GET },
31861
31865
  titleMatches: { url: "/titles/{title_id}/pr/matches", method: HTTP_METHODS.GET },
31866
+ titleResearch: { url: "/titles/{title_id}/pr/research", method: HTTP_METHODS.GET },
31867
+ titleDraft: { url: "/titles/{title_id}/pr/drafts", method: HTTP_METHODS.POST },
31862
31868
  queueVerification: { url: "/admin/pr/verification/queue", method: HTTP_METHODS.POST },
31869
+ refreshFeeds: { url: "/admin/pr/feeds/refresh", method: HTTP_METHODS.POST },
31863
31870
  };
31864
31871
  return PrDirectoryRoutes;
31865
31872
  }());
@@ -31868,9 +31875,9 @@ var PrDirectoryRoutes = /** @class */ (function () {
31868
31875
  * SDK wrapper for the PR Directory API.
31869
31876
  *
31870
31877
  * The PR directory is read-friendly by default: public endpoints expose
31871
- * searchable publications, people, tags, and reporting metrics. Authenticated
31872
- * title admins can request title-specific PR matches, and site admins can queue
31873
- * monthly-style verification jobs.
31878
+ * searchable publications, people, feeds, stories, tags, and reporting metrics.
31879
+ * Authenticated title admins can request title-specific research and review-only
31880
+ * outreach drafts, and site admins can queue verification or feed refresh jobs.
31874
31881
  */
31875
31882
  var PrDirectory = /** @class */ (function () {
31876
31883
  function PrDirectory() {
@@ -31920,6 +31927,31 @@ var PrDirectory = /** @class */ (function () {
31920
31927
  PrDirectory.viewPerson = function (person_id, params) {
31921
31928
  return Requests.processRoute(PrDirectoryRoutes.routes.viewPerson, {}, { person_id: person_id }, params);
31922
31929
  };
31930
+ /**
31931
+ * Search discovered RSS/Atom/JSON feeds across known publications.
31932
+ */
31933
+ PrDirectory.listFeeds = function (params) {
31934
+ return Requests.processRoute(PrDirectoryRoutes.routes.listFeeds, {}, {}, params);
31935
+ };
31936
+ /**
31937
+ * Retrieve one feed with freshness metadata and recent imported stories.
31938
+ * Pass `include_raw: true` to request the stored XML/RSS payload.
31939
+ */
31940
+ PrDirectory.viewFeed = function (feed_id, params) {
31941
+ return Requests.processRoute(PrDirectoryRoutes.routes.viewFeed, {}, { feed_id: feed_id }, params);
31942
+ };
31943
+ /**
31944
+ * Search imported stories, reviews, guides, and episodes by outlet or byline.
31945
+ */
31946
+ PrDirectory.listStories = function (params) {
31947
+ return Requests.processRoute(PrDirectoryRoutes.routes.listStories, {}, {}, params);
31948
+ };
31949
+ /**
31950
+ * Retrieve one imported story with feed, publication, and byline evidence.
31951
+ */
31952
+ PrDirectory.viewStory = function (story_id, params) {
31953
+ return Requests.processRoute(PrDirectoryRoutes.routes.viewStory, {}, { story_id: story_id }, params);
31954
+ };
31923
31955
  /**
31924
31956
  * List the normalized tag vocabulary used for PR search, filters, matching,
31925
31957
  * and reporting.
@@ -31941,6 +31973,20 @@ var PrDirectory = /** @class */ (function () {
31941
31973
  PrDirectory.titleMatches = function (title_id, params) {
31942
31974
  return Requests.processRoute(PrDirectoryRoutes.routes.titleMatches, {}, { title_id: title_id }, params);
31943
31975
  };
31976
+ /**
31977
+ * Get a title-scoped PR research workspace with outlet matches, recent story
31978
+ * context, media kit readiness, and next steps.
31979
+ */
31980
+ PrDirectory.titleResearch = function (title_id, params) {
31981
+ return Requests.processRoute(PrDirectoryRoutes.routes.titleResearch, {}, { title_id: title_id }, params);
31982
+ };
31983
+ /**
31984
+ * Create a formatted, review-only PR email draft for a selected title target.
31985
+ * The backend returns HTML with paragraphs, bullets, and links but sends no email.
31986
+ */
31987
+ PrDirectory.titleDraft = function (title_id, data, params) {
31988
+ return Requests.processRoute(PrDirectoryRoutes.routes.titleDraft, data || {}, { title_id: title_id }, params);
31989
+ };
31944
31990
  /**
31945
31991
  * Queue PR verification jobs. Requires a site-admin auth token.
31946
31992
  *
@@ -31952,6 +31998,13 @@ var PrDirectory = /** @class */ (function () {
31952
31998
  PrDirectory.queueVerification = function (data, params) {
31953
31999
  return Requests.processRoute(PrDirectoryRoutes.routes.queueVerification, data || {}, {}, params);
31954
32000
  };
32001
+ /**
32002
+ * Discover, queue, or synchronously refresh PR feeds. Requires a site-admin
32003
+ * auth token.
32004
+ */
32005
+ PrDirectory.refreshFeeds = function (data, params) {
32006
+ return Requests.processRoute(PrDirectoryRoutes.routes.refreshFeeds, data || {}, {}, params);
32007
+ };
31955
32008
  return PrDirectory;
31956
32009
  }());
31957
32010