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