influship 0.3.3 → 0.10.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/CHANGELOG.md +170 -0
- package/README.md +2 -2
- package/client.d.mts +1 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -0
- package/client.d.ts.map +1 -1
- package/client.js +11 -0
- package/client.js.map +1 -1
- package/client.mjs +11 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +3 -2
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +3 -2
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +9 -15
- package/resources/creators.d.mts +32 -6
- package/resources/creators.d.mts.map +1 -1
- package/resources/creators.d.ts +32 -6
- package/resources/creators.d.ts.map +1 -1
- package/resources/creators.js +15 -5
- package/resources/creators.js.map +1 -1
- package/resources/creators.mjs +15 -5
- package/resources/creators.mjs.map +1 -1
- package/resources/posts.d.mts +3 -0
- package/resources/posts.d.mts.map +1 -1
- package/resources/posts.d.ts +3 -0
- package/resources/posts.d.ts.map +1 -1
- package/resources/posts.js +3 -0
- package/resources/posts.js.map +1 -1
- package/resources/posts.mjs +3 -0
- package/resources/posts.mjs.map +1 -1
- package/resources/profiles.d.mts +11 -0
- package/resources/profiles.d.mts.map +1 -1
- package/resources/profiles.d.ts +11 -0
- package/resources/profiles.d.ts.map +1 -1
- package/resources/profiles.js +11 -0
- package/resources/profiles.js.map +1 -1
- package/resources/profiles.mjs +11 -0
- package/resources/profiles.mjs.map +1 -1
- package/resources/raw/index.d.mts +1 -1
- package/resources/raw/index.d.mts.map +1 -1
- package/resources/raw/index.d.ts +1 -1
- package/resources/raw/index.d.ts.map +1 -1
- package/resources/raw/index.js.map +1 -1
- package/resources/raw/index.mjs +1 -1
- package/resources/raw/index.mjs.map +1 -1
- package/resources/raw/instagram.d.mts +429 -159
- package/resources/raw/instagram.d.mts.map +1 -1
- package/resources/raw/instagram.d.ts +429 -159
- package/resources/raw/instagram.d.ts.map +1 -1
- package/resources/raw/instagram.js +83 -0
- package/resources/raw/instagram.js.map +1 -1
- package/resources/raw/instagram.mjs +83 -0
- package/resources/raw/instagram.mjs.map +1 -1
- package/resources/raw/raw.d.mts +2 -2
- package/resources/raw/raw.d.mts.map +1 -1
- package/resources/raw/raw.d.ts +2 -2
- package/resources/raw/raw.d.ts.map +1 -1
- package/resources/raw/raw.js.map +1 -1
- package/resources/raw/raw.mjs +1 -1
- package/resources/raw/raw.mjs.map +1 -1
- package/resources/raw/youtube.d.mts +98 -25
- package/resources/raw/youtube.d.mts.map +1 -1
- package/resources/raw/youtube.d.ts +98 -25
- package/resources/raw/youtube.d.ts.map +1 -1
- package/resources/raw/youtube.js +29 -0
- package/resources/raw/youtube.js.map +1 -1
- package/resources/raw/youtube.mjs +29 -0
- package/resources/raw/youtube.mjs.map +1 -1
- package/resources/search.d.mts +9 -2
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +9 -2
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +4 -2
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +4 -2
- package/resources/search.mjs.map +1 -1
- package/resources/shared.d.mts +6 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +6 -0
- package/resources/shared.d.ts.map +1 -1
- package/src/client.ts +13 -0
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/env.ts +2 -2
- package/src/internal/utils/log.ts +2 -1
- package/src/resources/creators.ts +36 -6
- package/src/resources/posts.ts +3 -0
- package/src/resources/profiles.ts +11 -0
- package/src/resources/raw/index.ts +14 -1
- package/src/resources/raw/instagram.ts +673 -178
- package/src/resources/raw/raw.ts +23 -1
- package/src/resources/raw/youtube.ts +110 -27
- package/src/resources/search.ts +10 -2
- package/src/resources/shared.ts +10 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -23,19 +23,21 @@ export class Creators extends APIResource {
|
|
|
23
23
|
*
|
|
24
24
|
* - `profiles`: Include all linked social profiles with metrics
|
|
25
25
|
*
|
|
26
|
+
* Also callable as the `get_creator` MCP tool — see
|
|
27
|
+
* [the MCP server guide](/guides/mcp-server) for setup.
|
|
28
|
+
*
|
|
26
29
|
* **Pricing**: 0.1 credits per request ($0.001)
|
|
27
30
|
*
|
|
28
31
|
* @example
|
|
29
32
|
* ```ts
|
|
30
33
|
* const creator = await client.creators.retrieve(
|
|
31
34
|
* '123e4567-e89b-12d3-a456-426614174000',
|
|
32
|
-
* { include: ['profiles'] },
|
|
33
35
|
* );
|
|
34
36
|
* ```
|
|
35
37
|
*/
|
|
36
38
|
retrieve(
|
|
37
39
|
id: string,
|
|
38
|
-
query: CreatorRetrieveParams,
|
|
40
|
+
query: CreatorRetrieveParams | null | undefined = {},
|
|
39
41
|
options?: RequestOptions,
|
|
40
42
|
): APIPromise<CreatorRetrieveResponse> {
|
|
41
43
|
return this._client.get(path`/v1/creators/${id}`, { query, ...options });
|
|
@@ -57,6 +59,9 @@ export class Creators extends APIResource {
|
|
|
57
59
|
* - `matched_platforms`: Return only profiles that matched the query
|
|
58
60
|
* - `all_platforms`: Return all linked profiles (default)
|
|
59
61
|
*
|
|
62
|
+
* Also callable as the `autocomplete_creators` MCP tool — see
|
|
63
|
+
* [the MCP server guide](/guides/mcp-server) for setup.
|
|
64
|
+
*
|
|
60
65
|
* **Pricing**: 0.05 credits per request ($0.0005)
|
|
61
66
|
*
|
|
62
67
|
* @example
|
|
@@ -90,6 +95,9 @@ export class Creators extends APIResource {
|
|
|
90
95
|
* 2. Optionally weight seeds to prioritize certain creators
|
|
91
96
|
* 3. Get ranked results with similarity scores and shared traits
|
|
92
97
|
*
|
|
98
|
+
* Also callable as the `find_lookalike_creators` MCP tool — see
|
|
99
|
+
* [the MCP server guide](/guides/mcp-server) for setup.
|
|
100
|
+
*
|
|
93
101
|
* **Pricing**: 1.5 credits per creator returned ($0.015)
|
|
94
102
|
*
|
|
95
103
|
* @example
|
|
@@ -130,15 +138,17 @@ export class Creators extends APIResource {
|
|
|
130
138
|
* 2. Provide up to 100 creators to evaluate
|
|
131
139
|
* 3. Get detailed scores with explanations and evidence
|
|
132
140
|
*
|
|
141
|
+
* Also callable as the `match_creators` MCP tool — see
|
|
142
|
+
* [the MCP server guide](/guides/mcp-server) for setup.
|
|
143
|
+
*
|
|
133
144
|
* **Pricing**: 1 credit per creator scored ($0.01)
|
|
134
145
|
*
|
|
135
146
|
* @example
|
|
136
147
|
* ```ts
|
|
137
148
|
* const response = await client.creators.match({
|
|
138
|
-
* creators: [{}],
|
|
149
|
+
* creators: [{}, {}],
|
|
139
150
|
* intent: {
|
|
140
|
-
* query:
|
|
141
|
-
* 'Looking for fitness influencers to promote our new protein bar',
|
|
151
|
+
* query: 'Promote our new plant-based protein powder',
|
|
142
152
|
* },
|
|
143
153
|
* });
|
|
144
154
|
* ```
|
|
@@ -178,6 +188,11 @@ export namespace CreatorRetrieveResponse {
|
|
|
178
188
|
*/
|
|
179
189
|
ai_summary: string | null;
|
|
180
190
|
|
|
191
|
+
/**
|
|
192
|
+
* Synthesized audience demographic summary
|
|
193
|
+
*/
|
|
194
|
+
audience_demographics: string | null;
|
|
195
|
+
|
|
181
196
|
/**
|
|
182
197
|
* Avatar URL
|
|
183
198
|
*/
|
|
@@ -188,16 +203,31 @@ export namespace CreatorRetrieveResponse {
|
|
|
188
203
|
*/
|
|
189
204
|
bio: string | null;
|
|
190
205
|
|
|
206
|
+
/**
|
|
207
|
+
* Brand categories this creator is likely to align with
|
|
208
|
+
*/
|
|
209
|
+
brand_alignment: Array<string>;
|
|
210
|
+
|
|
191
211
|
/**
|
|
192
212
|
* Content themes/topics
|
|
193
213
|
*/
|
|
194
214
|
content_themes: Array<string>;
|
|
195
215
|
|
|
216
|
+
/**
|
|
217
|
+
* Synthesized facts and notable context about the creator
|
|
218
|
+
*/
|
|
219
|
+
key_facts: Array<string>;
|
|
220
|
+
|
|
196
221
|
/**
|
|
197
222
|
* Creator display name
|
|
198
223
|
*/
|
|
199
224
|
name: string;
|
|
200
225
|
|
|
226
|
+
/**
|
|
227
|
+
* Synthesized description of visual style and tone
|
|
228
|
+
*/
|
|
229
|
+
vibe_and_aesthetics: string | null;
|
|
230
|
+
|
|
201
231
|
/**
|
|
202
232
|
* Social profiles (only included when include=profiles)
|
|
203
233
|
*/
|
|
@@ -368,7 +398,7 @@ export interface CreatorRetrieveParams {
|
|
|
368
398
|
/**
|
|
369
399
|
* Additional data to include in response
|
|
370
400
|
*/
|
|
371
|
-
include
|
|
401
|
+
include?: Array<'profiles'>;
|
|
372
402
|
}
|
|
373
403
|
|
|
374
404
|
export interface CreatorAutocompleteParams {
|
package/src/resources/posts.ts
CHANGED
|
@@ -24,6 +24,9 @@ export class Posts extends APIResource {
|
|
|
24
24
|
* - `most_views`: Most views first (video content)
|
|
25
25
|
* - `most_comments`: Most comments first
|
|
26
26
|
*
|
|
27
|
+
* Also callable as the `get_posts` MCP tool — see
|
|
28
|
+
* [the MCP server guide](/guides/mcp-server) for setup.
|
|
29
|
+
*
|
|
27
30
|
* **Pricing**: 0.05 credits per post returned ($0.0005)
|
|
28
31
|
*/
|
|
29
32
|
list(
|
|
@@ -20,6 +20,9 @@ export class Profiles extends APIResource {
|
|
|
20
20
|
* - Growth data (30-day follower growth, monthly rate)
|
|
21
21
|
* - Activity data (last post date, posting frequency)
|
|
22
22
|
*
|
|
23
|
+
* Also callable as the `get_profile` MCP tool — see
|
|
24
|
+
* [the MCP server guide](/guides/mcp-server) for setup.
|
|
25
|
+
*
|
|
23
26
|
* **Pricing**: 0.1 credits per request ($0.001)
|
|
24
27
|
*
|
|
25
28
|
* @example
|
|
@@ -45,6 +48,9 @@ export class Profiles extends APIResource {
|
|
|
45
48
|
* - `not_found`: Array of profiles that weren't found (consider live scraping
|
|
46
49
|
* these)
|
|
47
50
|
*
|
|
51
|
+
* Also callable as the `lookup_profiles` MCP tool — see
|
|
52
|
+
* [the MCP server guide](/guides/mcp-server) for setup.
|
|
53
|
+
*
|
|
48
54
|
* **Pricing**: 0.1 credits per profile ($0.001)
|
|
49
55
|
*
|
|
50
56
|
* @example
|
|
@@ -55,6 +61,11 @@ export class Profiles extends APIResource {
|
|
|
55
61
|
* platform: 'instagram',
|
|
56
62
|
* username: 'fitness_coach_jane',
|
|
57
63
|
* },
|
|
64
|
+
* { platform: 'instagram', username: 'wellness_guru' },
|
|
65
|
+
* {
|
|
66
|
+
* platform: 'instagram',
|
|
67
|
+
* username: 'healthy_eating_tips',
|
|
68
|
+
* },
|
|
58
69
|
* ],
|
|
59
70
|
* });
|
|
60
71
|
* ```
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export {
|
|
4
|
+
Instagram,
|
|
5
|
+
type InstagramSinglePostResponse,
|
|
6
|
+
type InstagramTranscriptResponse,
|
|
7
|
+
type InstagramGetPostResponse,
|
|
8
|
+
type InstagramGetPostsResponse,
|
|
9
|
+
type InstagramGetProfileResponse,
|
|
10
|
+
type InstagramGetTranscriptResponse,
|
|
11
|
+
type InstagramGetTranscriptsResponse,
|
|
12
|
+
type InstagramGetPostsParams,
|
|
13
|
+
type InstagramGetProfileParams,
|
|
14
|
+
type InstagramGetTranscriptParams,
|
|
15
|
+
type InstagramGetTranscriptsParams,
|
|
16
|
+
} from './instagram';
|
|
4
17
|
export { Raw } from './raw';
|
|
5
18
|
export {
|
|
6
19
|
Youtube,
|