influship 0.2.0 → 0.3.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.
Files changed (262) hide show
  1. package/CHANGELOG.md +62 -30
  2. package/LICENSE +1 -1
  3. package/README.md +88 -43
  4. package/client.d.mts +49 -29
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +49 -29
  7. package/client.d.ts.map +1 -1
  8. package/client.js +89 -56
  9. package/client.js.map +1 -1
  10. package/client.mjs +89 -56
  11. package/client.mjs.map +1 -1
  12. package/core/api-promise.d.mts +2 -2
  13. package/core/api-promise.d.mts.map +1 -1
  14. package/core/api-promise.d.ts +2 -2
  15. package/core/api-promise.d.ts.map +1 -1
  16. package/core/api-promise.js.map +1 -1
  17. package/core/api-promise.mjs.map +1 -1
  18. package/core/error.d.mts +2 -2
  19. package/core/error.d.mts.map +1 -1
  20. package/core/error.d.ts +2 -2
  21. package/core/error.d.ts.map +1 -1
  22. package/core/error.js +4 -4
  23. package/core/error.js.map +1 -1
  24. package/core/error.mjs +2 -2
  25. package/core/error.mjs.map +1 -1
  26. package/core/pagination.d.mts +75 -0
  27. package/core/pagination.d.mts.map +1 -0
  28. package/core/pagination.d.ts +75 -0
  29. package/core/pagination.d.ts.map +1 -0
  30. package/core/pagination.js +139 -0
  31. package/core/pagination.js.map +1 -0
  32. package/core/pagination.mjs +132 -0
  33. package/core/pagination.mjs.map +1 -0
  34. package/core/resource.d.mts +3 -3
  35. package/core/resource.d.mts.map +1 -1
  36. package/core/resource.d.ts +3 -3
  37. package/core/resource.d.ts.map +1 -1
  38. package/core/resource.js.map +1 -1
  39. package/core/resource.mjs.map +1 -1
  40. package/index.d.mts +4 -3
  41. package/index.d.mts.map +1 -1
  42. package/index.d.ts +4 -3
  43. package/index.d.ts.map +1 -1
  44. package/index.js +6 -4
  45. package/index.js.map +1 -1
  46. package/index.mjs +4 -3
  47. package/index.mjs.map +1 -1
  48. package/internal/parse.d.mts +2 -2
  49. package/internal/parse.d.mts.map +1 -1
  50. package/internal/parse.d.ts +2 -2
  51. package/internal/parse.d.ts.map +1 -1
  52. package/internal/parse.js +5 -0
  53. package/internal/parse.js.map +1 -1
  54. package/internal/parse.mjs +5 -0
  55. package/internal/parse.mjs.map +1 -1
  56. package/internal/shims.js +1 -1
  57. package/internal/shims.js.map +1 -1
  58. package/internal/shims.mjs +1 -1
  59. package/internal/shims.mjs.map +1 -1
  60. package/internal/tslib.js +17 -17
  61. package/internal/uploads.d.mts +4 -4
  62. package/internal/uploads.d.mts.map +1 -1
  63. package/internal/uploads.d.ts +4 -4
  64. package/internal/uploads.d.ts.map +1 -1
  65. package/internal/uploads.js.map +1 -1
  66. package/internal/uploads.mjs.map +1 -1
  67. package/internal/utils/base64.js +2 -2
  68. package/internal/utils/base64.js.map +1 -1
  69. package/internal/utils/base64.mjs +3 -3
  70. package/internal/utils/base64.mjs.map +1 -1
  71. package/internal/utils/log.d.mts +3 -3
  72. package/internal/utils/log.d.mts.map +1 -1
  73. package/internal/utils/log.d.ts +3 -3
  74. package/internal/utils/log.d.ts.map +1 -1
  75. package/internal/utils/log.js.map +1 -1
  76. package/internal/utils/log.mjs.map +1 -1
  77. package/internal/utils/path.js +1 -1
  78. package/internal/utils/path.js.map +1 -1
  79. package/internal/utils/path.mjs +2 -2
  80. package/internal/utils/path.mjs.map +1 -1
  81. package/internal/utils/query.d.mts +2 -0
  82. package/internal/utils/query.d.mts.map +1 -0
  83. package/internal/utils/query.d.ts +2 -0
  84. package/internal/utils/query.d.ts.map +1 -0
  85. package/internal/utils/query.js +10 -0
  86. package/internal/utils/query.js.map +1 -0
  87. package/internal/utils/query.mjs +6 -0
  88. package/internal/utils/query.mjs.map +1 -0
  89. package/internal/utils/values.js +5 -5
  90. package/internal/utils/values.js.map +1 -1
  91. package/internal/utils/values.mjs +6 -6
  92. package/internal/utils/values.mjs.map +1 -1
  93. package/internal/utils.d.mts +1 -0
  94. package/internal/utils.d.ts +1 -0
  95. package/internal/utils.js +1 -0
  96. package/internal/utils.js.map +1 -1
  97. package/internal/utils.mjs +1 -0
  98. package/package.json +24 -3
  99. package/pagination.d.mts +2 -0
  100. package/pagination.d.mts.map +1 -0
  101. package/pagination.d.ts +2 -0
  102. package/pagination.d.ts.map +1 -0
  103. package/pagination.js +6 -0
  104. package/pagination.js.map +1 -0
  105. package/pagination.mjs +2 -0
  106. package/pagination.mjs.map +1 -0
  107. package/resources/creators.d.mts +326 -247
  108. package/resources/creators.d.mts.map +1 -1
  109. package/resources/creators.d.ts +326 -247
  110. package/resources/creators.d.ts.map +1 -1
  111. package/resources/creators.js +80 -63
  112. package/resources/creators.js.map +1 -1
  113. package/resources/creators.mjs +80 -63
  114. package/resources/creators.mjs.map +1 -1
  115. package/resources/health.d.mts +13 -1
  116. package/resources/health.d.mts.map +1 -1
  117. package/resources/health.d.ts +13 -1
  118. package/resources/health.d.ts.map +1 -1
  119. package/resources/health.js +4 -1
  120. package/resources/health.js.map +1 -1
  121. package/resources/health.mjs +4 -1
  122. package/resources/health.mjs.map +1 -1
  123. package/resources/index.d.mts +6 -7
  124. package/resources/index.d.mts.map +1 -1
  125. package/resources/index.d.ts +6 -7
  126. package/resources/index.d.ts.map +1 -1
  127. package/resources/index.js +5 -7
  128. package/resources/index.js.map +1 -1
  129. package/resources/index.mjs +2 -3
  130. package/resources/index.mjs.map +1 -1
  131. package/resources/posts.d.mts +82 -202
  132. package/resources/posts.d.mts.map +1 -1
  133. package/resources/posts.d.ts +82 -202
  134. package/resources/posts.d.ts.map +1 -1
  135. package/resources/posts.js +17 -38
  136. package/resources/posts.js.map +1 -1
  137. package/resources/posts.mjs +17 -38
  138. package/resources/posts.mjs.map +1 -1
  139. package/resources/profiles.d.mts +208 -58
  140. package/resources/profiles.d.mts.map +1 -1
  141. package/resources/profiles.d.ts +208 -58
  142. package/resources/profiles.d.ts.map +1 -1
  143. package/resources/profiles.js +37 -41
  144. package/resources/profiles.js.map +1 -1
  145. package/resources/profiles.mjs +37 -41
  146. package/resources/profiles.mjs.map +1 -1
  147. package/resources/raw/index.d.mts +4 -0
  148. package/resources/raw/index.d.mts.map +1 -0
  149. package/resources/raw/index.d.ts +4 -0
  150. package/resources/raw/index.d.ts.map +1 -0
  151. package/resources/raw/index.js +11 -0
  152. package/resources/raw/index.js.map +1 -0
  153. package/resources/raw/index.mjs +5 -0
  154. package/resources/raw/index.mjs.map +1 -0
  155. package/resources/raw/instagram.d.mts +215 -0
  156. package/resources/raw/instagram.d.mts.map +1 -0
  157. package/resources/raw/instagram.d.ts +215 -0
  158. package/resources/raw/instagram.d.ts.map +1 -0
  159. package/resources/raw/instagram.js +31 -0
  160. package/resources/raw/instagram.js.map +1 -0
  161. package/resources/raw/instagram.mjs +27 -0
  162. package/resources/raw/instagram.mjs.map +1 -0
  163. package/resources/raw/raw.d.mts +14 -0
  164. package/resources/raw/raw.d.mts.map +1 -0
  165. package/resources/raw/raw.d.ts +14 -0
  166. package/resources/raw/raw.d.ts.map +1 -0
  167. package/resources/raw/raw.js +21 -0
  168. package/resources/raw/raw.js.map +1 -0
  169. package/resources/raw/raw.mjs +16 -0
  170. package/resources/raw/raw.mjs.map +1 -0
  171. package/resources/raw/youtube.d.mts +455 -0
  172. package/resources/raw/youtube.d.mts.map +1 -0
  173. package/resources/raw/youtube.d.ts +455 -0
  174. package/resources/raw/youtube.d.ts.map +1 -0
  175. package/resources/raw/youtube.js +61 -0
  176. package/resources/raw/youtube.js.map +1 -0
  177. package/resources/raw/youtube.mjs +57 -0
  178. package/resources/raw/youtube.mjs.map +1 -0
  179. package/resources/raw.d.mts +2 -0
  180. package/resources/raw.d.mts.map +1 -0
  181. package/resources/raw.d.ts +2 -0
  182. package/resources/raw.d.ts.map +1 -0
  183. package/resources/raw.js +6 -0
  184. package/resources/raw.js.map +1 -0
  185. package/resources/raw.mjs +3 -0
  186. package/resources/raw.mjs.map +1 -0
  187. package/resources/search.d.mts +126 -117
  188. package/resources/search.d.mts.map +1 -1
  189. package/resources/search.d.ts +126 -117
  190. package/resources/search.d.ts.map +1 -1
  191. package/resources/search.js +46 -13
  192. package/resources/search.js.map +1 -1
  193. package/resources/search.mjs +46 -13
  194. package/resources/search.mjs.map +1 -1
  195. package/resources/shared.d.mts +55 -0
  196. package/resources/shared.d.mts.map +1 -0
  197. package/resources/shared.d.ts +55 -0
  198. package/resources/shared.d.ts.map +1 -0
  199. package/resources/shared.js +4 -0
  200. package/resources/shared.js.map +1 -0
  201. package/resources/shared.mjs +3 -0
  202. package/resources/shared.mjs.map +1 -0
  203. package/src/client.ts +153 -127
  204. package/src/core/api-promise.ts +4 -4
  205. package/src/core/error.ts +2 -2
  206. package/src/core/pagination.ts +232 -0
  207. package/src/core/resource.ts +3 -3
  208. package/src/index.ts +4 -3
  209. package/src/internal/parse.ts +8 -2
  210. package/src/internal/shims.ts +1 -1
  211. package/src/internal/uploads.ts +5 -5
  212. package/src/internal/utils/base64.ts +3 -3
  213. package/src/internal/utils/log.ts +3 -3
  214. package/src/internal/utils/path.ts +2 -2
  215. package/src/internal/utils/query.ts +7 -0
  216. package/src/internal/utils/values.ts +6 -6
  217. package/src/internal/utils.ts +1 -0
  218. package/src/pagination.ts +2 -0
  219. package/src/resources/creators.ts +369 -271
  220. package/src/resources/health.ts +13 -1
  221. package/src/resources/index.ts +22 -41
  222. package/src/resources/posts.ts +89 -232
  223. package/src/resources/profiles.ts +252 -59
  224. package/src/resources/raw/index.ts +16 -0
  225. package/src/resources/raw/instagram.ts +271 -0
  226. package/src/resources/raw/raw.ts +47 -0
  227. package/src/resources/raw/youtube.ts +585 -0
  228. package/src/resources/raw.ts +3 -0
  229. package/src/resources/search.ts +145 -131
  230. package/src/resources/shared.ts +66 -0
  231. package/src/version.ts +1 -1
  232. package/version.d.mts +1 -1
  233. package/version.d.ts +1 -1
  234. package/version.js +1 -1
  235. package/version.mjs +1 -1
  236. package/resources/brand-safety.d.mts +0 -234
  237. package/resources/brand-safety.d.mts.map +0 -1
  238. package/resources/brand-safety.d.ts +0 -234
  239. package/resources/brand-safety.d.ts.map +0 -1
  240. package/resources/brand-safety.js +0 -75
  241. package/resources/brand-safety.js.map +0 -1
  242. package/resources/brand-safety.mjs +0 -71
  243. package/resources/brand-safety.mjs.map +0 -1
  244. package/resources/lookalike.d.mts +0 -142
  245. package/resources/lookalike.d.mts.map +0 -1
  246. package/resources/lookalike.d.ts +0 -142
  247. package/resources/lookalike.d.ts.map +0 -1
  248. package/resources/lookalike.js +0 -28
  249. package/resources/lookalike.js.map +0 -1
  250. package/resources/lookalike.mjs +0 -24
  251. package/resources/lookalike.mjs.map +0 -1
  252. package/resources/match.d.mts +0 -90
  253. package/resources/match.d.mts.map +0 -1
  254. package/resources/match.d.ts +0 -90
  255. package/resources/match.d.ts.map +0 -1
  256. package/resources/match.js +0 -22
  257. package/resources/match.js.map +0 -1
  258. package/resources/match.mjs +0 -18
  259. package/resources/match.mjs.map +0 -1
  260. package/src/resources/brand-safety.ts +0 -304
  261. package/src/resources/lookalike.ts +0 -186
  262. package/src/resources/match.ts +0 -115
@@ -1 +1 @@
1
- {"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../src/resources/creators.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,KAAK,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIrG;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,YAAY,CACV,KAAK,EAAE,yBAAyB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiDG;IACH,YAAY,CACV,EAAE,EAAE,MAAM,E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mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -3,53 +3,54 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Creators = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
+ const pagination_1 = require("../core/pagination.js");
6
7
  const path_1 = require("../internal/utils/path.js");
8
+ /**
9
+ * Retrieve creator profiles and discover new creators through search, autocomplete, and lookalike matching. Creators are cross-platform entities that may have profiles on multiple social networks.
10
+ */
7
11
  class Creators extends resource_1.APIResource {
8
12
  /**
9
- * Get creator-level information (person data) for one or multiple creators by
10
- * their IDs.
13
+ * Retrieve a creator's profile including AI-generated summary, content themes, and
14
+ * optionally their linked social profiles.
11
15
  *
12
- * This endpoint returns basic creator profile data including name, bio, avatar,
13
- * and status information. For platform-specific data (follower counts, engagement
14
- * rates, etc.), use the `/v1/creators/{id}/profiles` endpoint.
16
+ * **What is a Creator?** A creator is a cross-platform entity representing a
17
+ * person or brand. They may have profiles on multiple social networks (Instagram,
18
+ * YouTube, TikTok, etc.) that are linked together.
15
19
  *
16
- * **Creator vs Profile Data:**
20
+ * **Include options:**
17
21
  *
18
- * - **Creator data**: Person-level information (name, bio, avatar, status)
19
- * - **Profile data**: Platform-specific data (follower counts, engagement,
20
- * metrics)
22
+ * - `profiles`: Include all linked social profiles with metrics
21
23
  *
22
- * **Pricing**: 0.1 credits per creator profile returned
24
+ * **Pricing**: 0.1 credits per request ($0.001)
23
25
  *
24
26
  * @example
25
27
  * ```ts
26
- * const creator = await client.creators.retrieve({
27
- * creator_ids: 'creator_ids',
28
- * });
28
+ * const creator = await client.creators.retrieve(
29
+ * '123e4567-e89b-12d3-a456-426614174000',
30
+ * { include: ['profiles'] },
31
+ * );
29
32
  * ```
30
33
  */
31
- retrieve(query, options) {
32
- return this._client.get('/v1/creators', { query, ...options });
34
+ retrieve(id, query, options) {
35
+ return this._client.get((0, path_1.path) `/v1/creators/${id}`, { query, ...options });
33
36
  }
34
37
  /**
35
- * Search creators by partial name or on-platform username for autocomplete
36
- * suggestions.
38
+ * Fast typeahead search for creators by name or username. Optimized for
39
+ * search-as-you-type UIs with sub-100ms response times.
37
40
  *
38
- * This endpoint searches across both global creator names and platform-specific
39
- * usernames/display names from all platforms. Use the platform parameter to filter
40
- * results to only show creators that have profiles on the specified platform.
41
+ * **Matching behavior:**
41
42
  *
42
- * Use the scope parameter to control response granularity:
43
+ * - Matches against creator name, username, and display name
44
+ * - Results include which field matched and the matching value
45
+ * - Prefix matching (e.g., "fit" matches "fitness_coach")
43
46
  *
44
- * - `creator_only`: Returns only creator profile data (id, name, avatar)
45
- * - `matched_platforms`: Returns creator data + only the social accounts that
46
- * matched the search
47
- * - `all_platforms`: Returns creator data + all social accounts (default)
47
+ * **Scope options:**
48
48
  *
49
- * This endpoint is optimized for fast autocomplete functionality and returns
50
- * lightweight results suitable for dropdown suggestions.
49
+ * - `creator_only`: Return only the creator entity
50
+ * - `matched_platforms`: Return only profiles that matched the query
51
+ * - `all_platforms`: Return all linked profiles (default)
51
52
  *
52
- * **Pricing**: 0.001 credits per request
53
+ * **Pricing**: 0.05 credits per request ($0.0005)
53
54
  *
54
55
  * @example
55
56
  * ```ts
@@ -62,57 +63,73 @@ class Creators extends resource_1.APIResource {
62
63
  return this._client.get('/v1/creators/autocomplete', { query, ...options });
63
64
  }
64
65
  /**
65
- * **EXPLORATION ENDPOINT**: Get all social account data when you know a creator
66
- * UUID.
66
+ * Find creators similar to provided seed creators using AI-powered similarity
67
+ * matching. Analyzes content themes, audience overlap, posting style, and
68
+ * engagement patterns.
67
69
  *
68
- * **🎯 When to use this endpoint:**
70
+ * **Use cases:**
69
71
  *
70
- * - You have a creator UUID (from `/v1/creators` or `/v1/profiles` response)
71
- * - You want to see all social accounts for a creator (Instagram, TikTok, etc.)
72
- * - You need comprehensive social account data for a creator
73
- * - ✅ You want to explore all platforms a creator is on
72
+ * - Expand campaigns with creators similar to proven performers
73
+ * - Find alternatives when preferred creators are unavailable
74
+ * - Discover emerging creators in the same niche
74
75
  *
75
- * **❌ When NOT to use this endpoint:**
76
+ * **How it works:**
76
77
  *
77
- * - You only have a username and platform (use `/v1/profiles` instead)
78
- * - You don't have a creator UUID (use `/v1/profiles` to discover first)
78
+ * 1. Provide 1-10 seed creators (by ID or platform/username)
79
+ * 2. Optionally weight seeds to prioritize certain creators
80
+ * 3. Get ranked results with similarity scores and shared traits
79
81
  *
80
- * **📊 Response Format:** Returns `SocialAccountLite` or `SocialAccountDetailed`
81
- * objects with identical structure to `/v1/profiles`. Both endpoints return the
82
- * same data structure for consistency.
82
+ * **Pricing**: 1.5 credits per creator returned ($0.015)
83
83
  *
84
- * **🔗 Data Relationships:**
84
+ * @example
85
+ * ```ts
86
+ * // Automatically fetches more pages as needed.
87
+ * for await (const creatorLookalikeResponse of client.creators.lookalike(
88
+ * { seeds: [{}] },
89
+ * )) {
90
+ * // ...
91
+ * }
92
+ * ```
93
+ */
94
+ lookalike(body, options) {
95
+ return this._client.getAPIList('/v1/creators/lookalike', (pagination_1.BodyCursor), {
96
+ body,
97
+ method: 'post',
98
+ ...options,
99
+ });
100
+ }
101
+ /**
102
+ * Evaluate how well creators match a specific campaign using AI analysis. Returns
103
+ * a fit score (0-1), decision recommendation (good/neutral/avoid), and
104
+ * evidence-based explanations.
85
105
  *
86
- * - This endpoint requires a creator UUID (not a social account ID)
87
- * - Use `creator_profile_id` from `/v1/profiles` response as the `{id}` parameter
88
- * - Returns all social accounts associated with that creator
89
- * - Filter by platform using the `platforms` query parameter
106
+ * **Use cases:**
90
107
  *
91
- * **🔄 Typical Workflow:**
108
+ * - Vet shortlisted creators before outreach
109
+ * - Rank candidates for a specific campaign
110
+ * - Get AI-generated talking points for why a creator fits
92
111
  *
93
- * 1. **Discovery**: Call `/v1/profiles` with username+platform → get social
94
- * account data + creator_profile_id
95
- * 2. **All Accounts**: Call `/v1/creators/{creator_profile_id}/profiles` → get all
96
- * social accounts for that creator
97
- * 3. **Creator Data**: Call `/v1/creators` with creator_profile_id → get
98
- * creator-level data
112
+ * **How it works:**
99
113
  *
100
- * **⚙️ Parameters:**
114
+ * 1. Describe your campaign intent and target audience
115
+ * 2. Provide up to 100 creators to evaluate
116
+ * 3. Get detailed scores with explanations and evidence
101
117
  *
102
- * - `mode`: `lite` (default) or `detailed` - controls response detail level
103
- * - `platforms`: Comma-separated list of platforms to filter (e.g.,
104
- * `instagram,tiktok`) **Pricing**: 0.01-0.05 credits per social account
105
- * (lite/detailed mode)
118
+ * **Pricing**: 1 credit per creator scored ($0.01)
106
119
  *
107
120
  * @example
108
121
  * ```ts
109
- * const response = await client.creators.listProfiles(
110
- * '123e4567-e89b-12d3-a456-426614174000',
111
- * );
122
+ * const response = await client.creators.match({
123
+ * creators: [{}],
124
+ * intent: {
125
+ * query:
126
+ * 'Looking for fitness influencers to promote our new protein bar',
127
+ * },
128
+ * });
112
129
  * ```
113
130
  */
114
- listProfiles(id, query = {}, options) {
115
- return this._client.get((0, path_1.path) `/v1/creators/${id}/profiles`, { query, ...options });
131
+ match(body, options) {
132
+ return this._client.post('/v1/creators/match', { body, ...options });
116
133
  }
117
134
  }
118
135
  exports.Creators = Creators;
@@ -1 +1 @@
1
- {"version":3,"file":"creators.js","sourceRoot":"","sources":["../src/resources/creators.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,KAA4B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;;;;;;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B,EAAE,CAAA,uBAAoC,CAAA,EAAE;YAC7F,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,KAAK,CAAC,IAAwB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAxID,4BAwIC"}
@@ -1,52 +1,53 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../core/resource.mjs";
3
+ import { BodyCursor } from "../core/pagination.mjs";
3
4
  import { path } from "../internal/utils/path.mjs";
5
+ /**
6
+ * Retrieve creator profiles and discover new creators through search, autocomplete, and lookalike matching. Creators are cross-platform entities that may have profiles on multiple social networks.
7
+ */
4
8
  export class Creators extends APIResource {
5
9
  /**
6
- * Get creator-level information (person data) for one or multiple creators by
7
- * their IDs.
10
+ * Retrieve a creator's profile including AI-generated summary, content themes, and
11
+ * optionally their linked social profiles.
8
12
  *
9
- * This endpoint returns basic creator profile data including name, bio, avatar,
10
- * and status information. For platform-specific data (follower counts, engagement
11
- * rates, etc.), use the `/v1/creators/{id}/profiles` endpoint.
13
+ * **What is a Creator?** A creator is a cross-platform entity representing a
14
+ * person or brand. They may have profiles on multiple social networks (Instagram,
15
+ * YouTube, TikTok, etc.) that are linked together.
12
16
  *
13
- * **Creator vs Profile Data:**
17
+ * **Include options:**
14
18
  *
15
- * - **Creator data**: Person-level information (name, bio, avatar, status)
16
- * - **Profile data**: Platform-specific data (follower counts, engagement,
17
- * metrics)
19
+ * - `profiles`: Include all linked social profiles with metrics
18
20
  *
19
- * **Pricing**: 0.1 credits per creator profile returned
21
+ * **Pricing**: 0.1 credits per request ($0.001)
20
22
  *
21
23
  * @example
22
24
  * ```ts
23
- * const creator = await client.creators.retrieve({
24
- * creator_ids: 'creator_ids',
25
- * });
25
+ * const creator = await client.creators.retrieve(
26
+ * '123e4567-e89b-12d3-a456-426614174000',
27
+ * { include: ['profiles'] },
28
+ * );
26
29
  * ```
27
30
  */
28
- retrieve(query, options) {
29
- return this._client.get('/v1/creators', { query, ...options });
31
+ retrieve(id, query, options) {
32
+ return this._client.get(path `/v1/creators/${id}`, { query, ...options });
30
33
  }
31
34
  /**
32
- * Search creators by partial name or on-platform username for autocomplete
33
- * suggestions.
35
+ * Fast typeahead search for creators by name or username. Optimized for
36
+ * search-as-you-type UIs with sub-100ms response times.
34
37
  *
35
- * This endpoint searches across both global creator names and platform-specific
36
- * usernames/display names from all platforms. Use the platform parameter to filter
37
- * results to only show creators that have profiles on the specified platform.
38
+ * **Matching behavior:**
38
39
  *
39
- * Use the scope parameter to control response granularity:
40
+ * - Matches against creator name, username, and display name
41
+ * - Results include which field matched and the matching value
42
+ * - Prefix matching (e.g., "fit" matches "fitness_coach")
40
43
  *
41
- * - `creator_only`: Returns only creator profile data (id, name, avatar)
42
- * - `matched_platforms`: Returns creator data + only the social accounts that
43
- * matched the search
44
- * - `all_platforms`: Returns creator data + all social accounts (default)
44
+ * **Scope options:**
45
45
  *
46
- * This endpoint is optimized for fast autocomplete functionality and returns
47
- * lightweight results suitable for dropdown suggestions.
46
+ * - `creator_only`: Return only the creator entity
47
+ * - `matched_platforms`: Return only profiles that matched the query
48
+ * - `all_platforms`: Return all linked profiles (default)
48
49
  *
49
- * **Pricing**: 0.001 credits per request
50
+ * **Pricing**: 0.05 credits per request ($0.0005)
50
51
  *
51
52
  * @example
52
53
  * ```ts
@@ -59,57 +60,73 @@ export class Creators extends APIResource {
59
60
  return this._client.get('/v1/creators/autocomplete', { query, ...options });
60
61
  }
61
62
  /**
62
- * **EXPLORATION ENDPOINT**: Get all social account data when you know a creator
63
- * UUID.
63
+ * Find creators similar to provided seed creators using AI-powered similarity
64
+ * matching. Analyzes content themes, audience overlap, posting style, and
65
+ * engagement patterns.
64
66
  *
65
- * **🎯 When to use this endpoint:**
67
+ * **Use cases:**
66
68
  *
67
- * - You have a creator UUID (from `/v1/creators` or `/v1/profiles` response)
68
- * - You want to see all social accounts for a creator (Instagram, TikTok, etc.)
69
- * - You need comprehensive social account data for a creator
70
- * - ✅ You want to explore all platforms a creator is on
69
+ * - Expand campaigns with creators similar to proven performers
70
+ * - Find alternatives when preferred creators are unavailable
71
+ * - Discover emerging creators in the same niche
71
72
  *
72
- * **❌ When NOT to use this endpoint:**
73
+ * **How it works:**
73
74
  *
74
- * - You only have a username and platform (use `/v1/profiles` instead)
75
- * - You don't have a creator UUID (use `/v1/profiles` to discover first)
75
+ * 1. Provide 1-10 seed creators (by ID or platform/username)
76
+ * 2. Optionally weight seeds to prioritize certain creators
77
+ * 3. Get ranked results with similarity scores and shared traits
76
78
  *
77
- * **📊 Response Format:** Returns `SocialAccountLite` or `SocialAccountDetailed`
78
- * objects with identical structure to `/v1/profiles`. Both endpoints return the
79
- * same data structure for consistency.
79
+ * **Pricing**: 1.5 credits per creator returned ($0.015)
80
80
  *
81
- * **🔗 Data Relationships:**
81
+ * @example
82
+ * ```ts
83
+ * // Automatically fetches more pages as needed.
84
+ * for await (const creatorLookalikeResponse of client.creators.lookalike(
85
+ * { seeds: [{}] },
86
+ * )) {
87
+ * // ...
88
+ * }
89
+ * ```
90
+ */
91
+ lookalike(body, options) {
92
+ return this._client.getAPIList('/v1/creators/lookalike', (BodyCursor), {
93
+ body,
94
+ method: 'post',
95
+ ...options,
96
+ });
97
+ }
98
+ /**
99
+ * Evaluate how well creators match a specific campaign using AI analysis. Returns
100
+ * a fit score (0-1), decision recommendation (good/neutral/avoid), and
101
+ * evidence-based explanations.
82
102
  *
83
- * - This endpoint requires a creator UUID (not a social account ID)
84
- * - Use `creator_profile_id` from `/v1/profiles` response as the `{id}` parameter
85
- * - Returns all social accounts associated with that creator
86
- * - Filter by platform using the `platforms` query parameter
103
+ * **Use cases:**
87
104
  *
88
- * **🔄 Typical Workflow:**
105
+ * - Vet shortlisted creators before outreach
106
+ * - Rank candidates for a specific campaign
107
+ * - Get AI-generated talking points for why a creator fits
89
108
  *
90
- * 1. **Discovery**: Call `/v1/profiles` with username+platform → get social
91
- * account data + creator_profile_id
92
- * 2. **All Accounts**: Call `/v1/creators/{creator_profile_id}/profiles` → get all
93
- * social accounts for that creator
94
- * 3. **Creator Data**: Call `/v1/creators` with creator_profile_id → get
95
- * creator-level data
109
+ * **How it works:**
96
110
  *
97
- * **⚙️ Parameters:**
111
+ * 1. Describe your campaign intent and target audience
112
+ * 2. Provide up to 100 creators to evaluate
113
+ * 3. Get detailed scores with explanations and evidence
98
114
  *
99
- * - `mode`: `lite` (default) or `detailed` - controls response detail level
100
- * - `platforms`: Comma-separated list of platforms to filter (e.g.,
101
- * `instagram,tiktok`) **Pricing**: 0.01-0.05 credits per social account
102
- * (lite/detailed mode)
115
+ * **Pricing**: 1 credit per creator scored ($0.01)
103
116
  *
104
117
  * @example
105
118
  * ```ts
106
- * const response = await client.creators.listProfiles(
107
- * '123e4567-e89b-12d3-a456-426614174000',
108
- * );
119
+ * const response = await client.creators.match({
120
+ * creators: [{}],
121
+ * intent: {
122
+ * query:
123
+ * 'Looking for fitness influencers to promote our new protein bar',
124
+ * },
125
+ * });
109
126
  * ```
110
127
  */
111
- listProfiles(id, query = {}, options) {
112
- return this._client.get(path `/v1/creators/${id}/profiles`, { query, ...options });
128
+ match(body, options) {
129
+ return this._client.post('/v1/creators/match', { body, ...options });
113
130
  }
114
131
  }
115
132
  //# sourceMappingURL=creators.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"creators.mjs","sourceRoot":"","sources":["../src/resources/creators.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,KAA4B,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AAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,SAAS,CACP,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAA,UAAoC,CAAA,EAAE;YAC7F,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,KAAK,CAAC,IAAwB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
@@ -1,14 +1,26 @@
1
1
  import { APIResource } from "../core/resource.mjs";
2
2
  import { APIPromise } from "../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../internal/request-options.mjs";
4
+ /**
5
+ * API health and status endpoints
6
+ */
4
7
  export declare class Health extends APIResource {
5
8
  /**
6
- * Check the health status of the API
9
+ * Check API health status. No authentication required.
7
10
  */
8
11
  check(options?: RequestOptions): APIPromise<HealthCheckResponse>;
9
12
  }
13
+ /**
14
+ * Health check response
15
+ */
10
16
  export interface HealthCheckResponse {
17
+ /**
18
+ * Service health status
19
+ */
11
20
  ok: boolean;
21
+ /**
22
+ * Current server timestamp
23
+ */
12
24
  timestamp: string;
13
25
  }
14
26
  export declare namespace Health {
@@ -1 +1 @@
1
- {"version":3,"file":"health.d.mts","sourceRoot":"","sources":["../src/resources/health.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGjE;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,OAAO,CAAC;IAEZ,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC5D"}
1
+ {"version":3,"file":"health.d.mts","sourceRoot":"","sources":["../src/resources/health.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGjE;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,EAAE,EAAE,OAAO,CAAC;IAEZ;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC5D"}
@@ -1,14 +1,26 @@
1
1
  import { APIResource } from "../core/resource.js";
2
2
  import { APIPromise } from "../core/api-promise.js";
3
3
  import { RequestOptions } from "../internal/request-options.js";
4
+ /**
5
+ * API health and status endpoints
6
+ */
4
7
  export declare class Health extends APIResource {
5
8
  /**
6
- * Check the health status of the API
9
+ * Check API health status. No authentication required.
7
10
  */
8
11
  check(options?: RequestOptions): APIPromise<HealthCheckResponse>;
9
12
  }
13
+ /**
14
+ * Health check response
15
+ */
10
16
  export interface HealthCheckResponse {
17
+ /**
18
+ * Service health status
19
+ */
11
20
  ok: boolean;
21
+ /**
22
+ * Current server timestamp
23
+ */
12
24
  timestamp: string;
13
25
  }
14
26
  export declare namespace Health {
@@ -1 +1 @@
1
- {"version":3,"file":"health.d.ts","sourceRoot":"","sources":["../src/resources/health.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGjE;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,OAAO,CAAC;IAEZ,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC5D"}
1
+ {"version":3,"file":"health.d.ts","sourceRoot":"","sources":["../src/resources/health.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGjE;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,EAAE,EAAE,OAAO,CAAC;IAEZ;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC5D"}
@@ -3,9 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Health = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
+ /**
7
+ * API health and status endpoints
8
+ */
6
9
  class Health extends resource_1.APIResource {
7
10
  /**
8
- * Check the health status of the API
11
+ * Check API health status. No authentication required.
9
12
  */
10
13
  check(options) {
11
14
  return this._client.get('/health', options);
@@ -1 +1 @@
1
- {"version":3,"file":"health.js","sourceRoot":"","sources":["../src/resources/health.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,KAAK,CAAC,OAAwB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;CACF;AAPD,wBAOC"}
1
+ {"version":3,"file":"health.js","sourceRoot":"","sources":["../src/resources/health.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,KAAK,CAAC,OAAwB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;CACF;AAPD,wBAOC"}
@@ -1,8 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../core/resource.mjs";
3
+ /**
4
+ * API health and status endpoints
5
+ */
3
6
  export class Health extends APIResource {
4
7
  /**
5
- * Check the health status of the API
8
+ * Check API health status. No authentication required.
6
9
  */
7
10
  check(options) {
8
11
  return this._client.get('/health', options);
@@ -1 +1 @@
1
- {"version":3,"file":"health.mjs","sourceRoot":"","sources":["../src/resources/health.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,KAAK,CAAC,OAAwB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;CACF"}
1
+ {"version":3,"file":"health.mjs","sourceRoot":"","sources":["../src/resources/health.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,KAAK,CAAC,OAAwB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;CACF"}
@@ -1,9 +1,8 @@
1
- export { BrandSafety, type BrandSafetyAnalysis, type BrandSafetyFlag, type BrandSafetyResult, type BrandSafetyAnalyzeCreatorsResponse, type BrandSafetyAnalyzePostsResponse, type BrandSafetyAnalyzeProfilesResponse, type BrandSafetyAnalyzeCreatorsParams, type BrandSafetyAnalyzePostsParams, type BrandSafetyAnalyzeProfilesParams, } from "./brand-safety.mjs";
2
- export { Creators, type Creator, type CreatorAutocomplete, type SocialAccountDetailed, type SocialAccountLite, type CreatorRetrieveResponse, type CreatorAutocompleteResponse, type CreatorListProfilesResponse, type CreatorRetrieveParams, type CreatorAutocompleteParams, type CreatorListProfilesParams, } from "./creators.mjs";
1
+ export * from "./shared.mjs";
2
+ export { Creators, type CreatorRetrieveResponse, type CreatorAutocompleteResponse, type CreatorLookalikeResponse, type CreatorMatchResponse, type CreatorRetrieveParams, type CreatorAutocompleteParams, type CreatorLookalikeParams, type CreatorMatchParams, type CreatorLookalikeResponsesBodyCursor, } from "./creators.mjs";
3
3
  export { Health, type HealthCheckResponse } from "./health.mjs";
4
- export { Lookalike, type LookalikeSeedBase, type LookalikeFindSimilarCreatorsResponse, type LookalikeFindSimilarCreatorsParams, } from "./lookalike.mjs";
5
- export { Match, type CreatorReferenceByID, type MatchResult, type MatchAnalyzeResponse, type MatchAnalyzeParams, } from "./match.mjs";
6
- export { Posts, type AIAnalysis, type CursorPagination, type PostAnalysis, type PostListByCreatorResponse, type PostAnalyzeParams, type PostListByCreatorParams, } from "./posts.mjs";
7
- export { Profiles, type CreatorReferenceByHandle, type ProfileLookupResponse, type ProfileLookupParams, } from "./profiles.mjs";
8
- export { Search, type SearchItem, type SearchFindCreatorsResponse, type SearchFindCreatorsParams, } from "./search.mjs";
4
+ export { Posts, type PostListResponse, type PostListParams, type PostListResponsesQueryCursor, } from "./posts.mjs";
5
+ export { Profiles, type ProfileActivity, type ProfileGrowth, type ProfileMetrics, type ProfileResponseData, type ProfileGetResponse, type ProfileLookupResponse, type ProfileGetParams, type ProfileLookupParams, } from "./profiles.mjs";
6
+ export { Raw } from "./raw/raw.mjs";
7
+ export { Search, type MatchInfo, type SearchCreateResponse, type SearchRetrieveResponse, type SearchCreateParams, type SearchRetrieveParams, type SearchRetrieveResponsesQueryCursor, } from "./search.mjs";
9
8
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,kCAAkC,EACvC,KAAK,+BAA+B,EACpC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,GACtC;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EACL,SAAS,EACT,KAAK,iBAAiB,EACtB,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,GACxC;OACM,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB;OACM,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,GAC7B;OACM,EACL,QAAQ,EACR,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB;OACM,EACL,MAAM,EACN,KAAK,UAAU,EACf,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,mCAAmC,GACzC;OACM,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,4BAA4B,GAClC;OACM,EACL,QAAQ,EACR,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,GACzB;OACM,EAAE,GAAG,EAAE;OACP,EACL,MAAM,EACN,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,GACxC"}
@@ -1,9 +1,8 @@
1
- export { BrandSafety, type BrandSafetyAnalysis, type BrandSafetyFlag, type BrandSafetyResult, type BrandSafetyAnalyzeCreatorsResponse, type BrandSafetyAnalyzePostsResponse, type BrandSafetyAnalyzeProfilesResponse, type BrandSafetyAnalyzeCreatorsParams, type BrandSafetyAnalyzePostsParams, type BrandSafetyAnalyzeProfilesParams, } from "./brand-safety.js";
2
- export { Creators, type Creator, type CreatorAutocomplete, type SocialAccountDetailed, type SocialAccountLite, type CreatorRetrieveResponse, type CreatorAutocompleteResponse, type CreatorListProfilesResponse, type CreatorRetrieveParams, type CreatorAutocompleteParams, type CreatorListProfilesParams, } from "./creators.js";
1
+ export * from "./shared.js";
2
+ export { Creators, type CreatorRetrieveResponse, type CreatorAutocompleteResponse, type CreatorLookalikeResponse, type CreatorMatchResponse, type CreatorRetrieveParams, type CreatorAutocompleteParams, type CreatorLookalikeParams, type CreatorMatchParams, type CreatorLookalikeResponsesBodyCursor, } from "./creators.js";
3
3
  export { Health, type HealthCheckResponse } from "./health.js";
4
- export { Lookalike, type LookalikeSeedBase, type LookalikeFindSimilarCreatorsResponse, type LookalikeFindSimilarCreatorsParams, } from "./lookalike.js";
5
- export { Match, type CreatorReferenceByID, type MatchResult, type MatchAnalyzeResponse, type MatchAnalyzeParams, } from "./match.js";
6
- export { Posts, type AIAnalysis, type CursorPagination, type PostAnalysis, type PostListByCreatorResponse, type PostAnalyzeParams, type PostListByCreatorParams, } from "./posts.js";
7
- export { Profiles, type CreatorReferenceByHandle, type ProfileLookupResponse, type ProfileLookupParams, } from "./profiles.js";
8
- export { Search, type SearchItem, type SearchFindCreatorsResponse, type SearchFindCreatorsParams, } from "./search.js";
4
+ export { Posts, type PostListResponse, type PostListParams, type PostListResponsesQueryCursor, } from "./posts.js";
5
+ export { Profiles, type ProfileActivity, type ProfileGrowth, type ProfileMetrics, type ProfileResponseData, type ProfileGetResponse, type ProfileLookupResponse, type ProfileGetParams, type ProfileLookupParams, } from "./profiles.js";
6
+ export { Raw } from "./raw/raw.js";
7
+ export { Search, type MatchInfo, type SearchCreateResponse, type SearchRetrieveResponse, type SearchCreateParams, type SearchRetrieveParams, type SearchRetrieveResponsesQueryCursor, } from "./search.js";
9
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,kCAAkC,EACvC,KAAK,+BAA+B,EACpC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,GACtC;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EACL,SAAS,EACT,KAAK,iBAAiB,EACtB,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,GACxC;OACM,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB;OACM,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,GAC7B;OACM,EACL,QAAQ,EACR,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB;OACM,EACL,MAAM,EACN,KAAK,UAAU,EACf,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,mCAAmC,GACzC;OACM,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,4BAA4B,GAClC;OACM,EACL,QAAQ,EACR,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,GACzB;OACM,EAAE,GAAG,EAAE;OACP,EACL,MAAM,EACN,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,GACxC"}