@chat-ads/chatads-sdk 0.1.11 → 0.1.12

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/README.md CHANGED
@@ -92,7 +92,6 @@ try {
92
92
  "offers": [
93
93
  {
94
94
  "link_text": "CRM tools",
95
- "confidence_level": "high",
96
95
  "url": "https://amazon.com/dp/example?tag=chatads-20"
97
96
  }
98
97
  ],
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { ChatAdsClient } from "./client.js";
2
2
  export { ChatAdsAPIError, ChatAdsSDKError } from "./errors.js";
3
3
  export type { ChatAdsClientOptions, AnalyzeOptions, AnalyzeMessageOptions, } from "./client.js";
4
- export type { ChatAdsResponseEnvelope, Offer, Product, AnalyzeData, ChatAdsError, ChatAdsMeta, UsageInfo, FunctionItemPayload, FunctionItemOptionalFields, Quality, ConfidenceLevel, ResponseStatus, ResolutionSource, } from "./models.js";
4
+ export type { ChatAdsResponseEnvelope, Offer, Product, AnalyzeData, ChatAdsError, ChatAdsMeta, UsageInfo, FunctionItemPayload, FunctionItemOptionalFields, Quality, ResponseStatus, } from "./models.js";
package/dist/models.d.ts CHANGED
@@ -1,6 +1,4 @@
1
1
  export type Quality = "fast" | "standard" | "best";
2
- export type ConfidenceLevel = "high" | "medium" | "low" | "very_low";
3
- export type ResolutionSource = "demo" | "serper" | "amazon_paapi" | "cache" | "vector";
4
2
  /** Top-level response status indicating the outcome of the request */
5
3
  export type ResponseStatus = "filled" | "partial_fill" | "no_offers_found" | "internal_error";
6
4
  /**
@@ -43,8 +41,8 @@ export interface Offer {
43
41
  search_term?: string;
44
42
  /** Confidence score (0.0-1.0) (verbose mode only) */
45
43
  confidence_score?: number | null;
46
- /** Confidence level classification */
47
- confidence_level: string;
44
+ /** Confidence level classification (verbose mode only) */
45
+ confidence_level?: string;
48
46
  /** Affiliate URL (always populated) */
49
47
  url: string;
50
48
  /** Source of the URL resolution (e.g., amazon, serper, vector) (verbose mode only) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chat-ads/chatads-sdk",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "TypeScript/JavaScript client for the ChatAds prospect scoring API",
5
5
  "license": "MIT",
6
6
  "type": "module",