higherdata-sdk 0.2.0 → 0.3.1

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.d.ts CHANGED
@@ -184,6 +184,11 @@ interface components {
184
184
  id: string;
185
185
  };
186
186
  scopes: string[];
187
+ /**
188
+ * @description Current AI key source; no key values or metadata are exposed.
189
+ * @enum {string}
190
+ */
191
+ aiMode?: "byok" | "platform" | "none";
187
192
  };
188
193
  "agent.get.input": Record<string, never>;
189
194
  "agent.get.output": {
@@ -6957,6 +6962,8 @@ interface components {
6957
6962
  }[];
6958
6963
  suppressedCount: number;
6959
6964
  zeroResults: boolean;
6965
+ /** @description A single email, phone, LinkedIn profile or record-id match can open directly. */
6966
+ exactMatch?: boolean;
6960
6967
  };
6961
6968
  "lookup.person.input": {
6962
6969
  /**
package/dist/index.js CHANGED
@@ -7628,6 +7628,10 @@ function retryAfter(response, data, now) {
7628
7628
  const date = Date.parse(value);
7629
7629
  if (Number.isFinite(date)) return Math.max(0, (date - now) / 1e3);
7630
7630
  }
7631
+ if (response.status === 429) {
7632
+ const reset = response.headers.get("ratelimit-reset");
7633
+ if (reset !== null && /^\d+(?:\.\d+)?$/.test(reset.trim())) return Number(reset);
7634
+ }
7631
7635
  const parsed = failure.safeParse(data);
7632
7636
  return parsed.success && typeof parsed.data.error !== "string" ? parsed.data.error.retry_after : void 0;
7633
7637
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "higherdata-sdk",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "Typed HigherData API client generated from the tool registry.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",