@graph8/sdk 0.12.0 → 0.12.2

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/index.mjs CHANGED
@@ -1703,14 +1703,20 @@ var createIntentClient = (apiKey, apiUrl) => {
1703
1703
  /**
1704
1704
  * Find companies whose users visited a specific URL (intent search).
1705
1705
  *
1706
- * Note: this endpoint lives at the bare host (no `/api/v1` prefix), unlike the rest
1707
- * of the intent surface we call it directly here instead of through the shared `post()` helper.
1706
+ * Previously posted to the bare-host `/intent-search/url-companies`, bypassing
1707
+ * the shared `post()` helper. That route is JWT-only, so this method could
1708
+ * never actually work with an API key. It now goes through
1709
+ * `/api/v1/intent/url-companies` like the rest of the intent surface (g8 issue
1710
+ * #16536).
1711
+ *
1712
+ * Returns a bare aggregate, NOT the `{ data }` envelope — the previous
1713
+ * `{ data: IntentCompany[] }` signature never matched what the API sends.
1714
+ *
1715
+ * `date_from` / `date_to` are accepted for backwards compatibility but have
1716
+ * never been read by this endpoint; use `days` to set the lookback window.
1708
1717
  */
1709
1718
  async urlCompanies(url, params = {}) {
1710
- return request(baseUrl, "/intent-search/url-companies", apiKey, {
1711
- method: "POST",
1712
- body: { url, ...params }
1713
- });
1719
+ return post("/intent/url-companies", { url, ...params });
1714
1720
  }
1715
1721
  };
1716
1722
  };