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.
- package/CHANGELOG.md +62 -30
- package/LICENSE +1 -1
- package/README.md +88 -43
- package/client.d.mts +49 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +49 -29
- package/client.d.ts.map +1 -1
- package/client.js +89 -56
- package/client.js.map +1 -1
- package/client.mjs +89 -56
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +2 -2
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +2 -2
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts +2 -2
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +2 -2
- package/core/error.d.ts.map +1 -1
- package/core/error.js +4 -4
- package/core/error.js.map +1 -1
- package/core/error.mjs +2 -2
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts +75 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +75 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +139 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +132 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +3 -3
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +3 -3
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs.map +1 -1
- package/index.d.mts +4 -3
- package/index.d.mts.map +1 -1
- package/index.d.ts +4 -3
- package/index.d.ts.map +1 -1
- package/index.js +6 -4
- package/index.js.map +1 -1
- package/index.mjs +4 -3
- package/index.mjs.map +1 -1
- package/internal/parse.d.mts +2 -2
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +2 -2
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/shims.js +1 -1
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/uploads.d.mts +4 -4
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +4 -4
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.js +2 -2
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +3 -3
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts +3 -3
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +3 -3
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.js +1 -1
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +2 -2
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils/values.js +5 -5
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +6 -6
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +24 -3
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/creators.d.mts +326 -247
- package/resources/creators.d.mts.map +1 -1
- package/resources/creators.d.ts +326 -247
- package/resources/creators.d.ts.map +1 -1
- package/resources/creators.js +80 -63
- package/resources/creators.js.map +1 -1
- package/resources/creators.mjs +80 -63
- package/resources/creators.mjs.map +1 -1
- package/resources/health.d.mts +13 -1
- package/resources/health.d.mts.map +1 -1
- package/resources/health.d.ts +13 -1
- package/resources/health.d.ts.map +1 -1
- package/resources/health.js +4 -1
- package/resources/health.js.map +1 -1
- package/resources/health.mjs +4 -1
- package/resources/health.mjs.map +1 -1
- package/resources/index.d.mts +6 -7
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -7
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -3
- package/resources/index.mjs.map +1 -1
- package/resources/posts.d.mts +82 -202
- package/resources/posts.d.mts.map +1 -1
- package/resources/posts.d.ts +82 -202
- package/resources/posts.d.ts.map +1 -1
- package/resources/posts.js +17 -38
- package/resources/posts.js.map +1 -1
- package/resources/posts.mjs +17 -38
- package/resources/posts.mjs.map +1 -1
- package/resources/profiles.d.mts +208 -58
- package/resources/profiles.d.mts.map +1 -1
- package/resources/profiles.d.ts +208 -58
- package/resources/profiles.d.ts.map +1 -1
- package/resources/profiles.js +37 -41
- package/resources/profiles.js.map +1 -1
- package/resources/profiles.mjs +37 -41
- package/resources/profiles.mjs.map +1 -1
- package/resources/raw/index.d.mts +4 -0
- package/resources/raw/index.d.mts.map +1 -0
- package/resources/raw/index.d.ts +4 -0
- package/resources/raw/index.d.ts.map +1 -0
- package/resources/raw/index.js +11 -0
- package/resources/raw/index.js.map +1 -0
- package/resources/raw/index.mjs +5 -0
- package/resources/raw/index.mjs.map +1 -0
- package/resources/raw/instagram.d.mts +215 -0
- package/resources/raw/instagram.d.mts.map +1 -0
- package/resources/raw/instagram.d.ts +215 -0
- package/resources/raw/instagram.d.ts.map +1 -0
- package/resources/raw/instagram.js +31 -0
- package/resources/raw/instagram.js.map +1 -0
- package/resources/raw/instagram.mjs +27 -0
- package/resources/raw/instagram.mjs.map +1 -0
- package/resources/raw/raw.d.mts +14 -0
- package/resources/raw/raw.d.mts.map +1 -0
- package/resources/raw/raw.d.ts +14 -0
- package/resources/raw/raw.d.ts.map +1 -0
- package/resources/raw/raw.js +21 -0
- package/resources/raw/raw.js.map +1 -0
- package/resources/raw/raw.mjs +16 -0
- package/resources/raw/raw.mjs.map +1 -0
- package/resources/raw/youtube.d.mts +455 -0
- package/resources/raw/youtube.d.mts.map +1 -0
- package/resources/raw/youtube.d.ts +455 -0
- package/resources/raw/youtube.d.ts.map +1 -0
- package/resources/raw/youtube.js +61 -0
- package/resources/raw/youtube.js.map +1 -0
- package/resources/raw/youtube.mjs +57 -0
- package/resources/raw/youtube.mjs.map +1 -0
- package/resources/raw.d.mts +2 -0
- package/resources/raw.d.mts.map +1 -0
- package/resources/raw.d.ts +2 -0
- package/resources/raw.d.ts.map +1 -0
- package/resources/raw.js +6 -0
- package/resources/raw.js.map +1 -0
- package/resources/raw.mjs +3 -0
- package/resources/raw.mjs.map +1 -0
- package/resources/search.d.mts +126 -117
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +126 -117
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +46 -13
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +46 -13
- package/resources/search.mjs.map +1 -1
- package/resources/shared.d.mts +55 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +55 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/src/client.ts +153 -127
- package/src/core/api-promise.ts +4 -4
- package/src/core/error.ts +2 -2
- package/src/core/pagination.ts +232 -0
- package/src/core/resource.ts +3 -3
- package/src/index.ts +4 -3
- package/src/internal/parse.ts +8 -2
- package/src/internal/shims.ts +1 -1
- package/src/internal/uploads.ts +5 -5
- package/src/internal/utils/base64.ts +3 -3
- package/src/internal/utils/log.ts +3 -3
- package/src/internal/utils/path.ts +2 -2
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils/values.ts +6 -6
- package/src/internal/utils.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/creators.ts +369 -271
- package/src/resources/health.ts +13 -1
- package/src/resources/index.ts +22 -41
- package/src/resources/posts.ts +89 -232
- package/src/resources/profiles.ts +252 -59
- package/src/resources/raw/index.ts +16 -0
- package/src/resources/raw/instagram.ts +271 -0
- package/src/resources/raw/raw.ts +47 -0
- package/src/resources/raw/youtube.ts +585 -0
- package/src/resources/raw.ts +3 -0
- package/src/resources/search.ts +145 -131
- package/src/resources/shared.ts +66 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/brand-safety.d.mts +0 -234
- package/resources/brand-safety.d.mts.map +0 -1
- package/resources/brand-safety.d.ts +0 -234
- package/resources/brand-safety.d.ts.map +0 -1
- package/resources/brand-safety.js +0 -75
- package/resources/brand-safety.js.map +0 -1
- package/resources/brand-safety.mjs +0 -71
- package/resources/brand-safety.mjs.map +0 -1
- package/resources/lookalike.d.mts +0 -142
- package/resources/lookalike.d.mts.map +0 -1
- package/resources/lookalike.d.ts +0 -142
- package/resources/lookalike.d.ts.map +0 -1
- package/resources/lookalike.js +0 -28
- package/resources/lookalike.js.map +0 -1
- package/resources/lookalike.mjs +0 -24
- package/resources/lookalike.mjs.map +0 -1
- package/resources/match.d.mts +0 -90
- package/resources/match.d.mts.map +0 -1
- package/resources/match.d.ts +0 -90
- package/resources/match.d.ts.map +0 -1
- package/resources/match.js +0 -22
- package/resources/match.js.map +0 -1
- package/resources/match.mjs +0 -18
- package/resources/match.mjs.map +0 -1
- package/src/resources/brand-safety.ts +0 -304
- package/src/resources/lookalike.ts +0 -186
- package/src/resources/match.ts +0 -115
package/src/resources/search.ts
CHANGED
|
@@ -1,234 +1,248 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
-
import * as
|
|
4
|
+
import * as SearchAPI from './search';
|
|
5
|
+
import * as Shared from './shared';
|
|
5
6
|
import { APIPromise } from '../core/api-promise';
|
|
7
|
+
import { PagePromise, QueryCursor, type QueryCursorParams } from '../core/pagination';
|
|
6
8
|
import { RequestOptions } from '../internal/request-options';
|
|
9
|
+
import { path } from '../internal/utils/path';
|
|
7
10
|
|
|
11
|
+
/**
|
|
12
|
+
* AI-powered semantic search to find creators using natural language queries. Understands intent and context to match creators based on content themes, audience, and style.
|
|
13
|
+
*/
|
|
8
14
|
export class Search extends APIResource {
|
|
9
15
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
16
|
+
* Search for creators using natural language queries. The AI understands intent
|
|
17
|
+
* and context to match creators based on content themes, audience demographics,
|
|
18
|
+
* and style.
|
|
19
|
+
*
|
|
20
|
+
* The response includes a `search_id` that can be used with `GET /v1/search/{id}`
|
|
21
|
+
* to paginate through results for free.
|
|
22
|
+
*
|
|
23
|
+
* **Use cases:**
|
|
12
24
|
*
|
|
13
|
-
*
|
|
25
|
+
* - Find creators in a specific niche ("vegan food bloggers in LA")
|
|
26
|
+
* - Discover creators with specific audience characteristics ("fitness influencers
|
|
27
|
+
* with millennial audience")
|
|
28
|
+
* - Search by content style ("creators who post cinematic travel videos")
|
|
14
29
|
*
|
|
15
|
-
*
|
|
16
|
-
* - Detailed mode: Additional 0.05 credits per social account profile
|
|
17
|
-
* - **Example**: 10 creators in lite mode = 20 credits
|
|
18
|
-
* - **Example**: 10 creators with avg 2 profiles each in detailed mode = 20 + (10
|
|
19
|
-
* × 2 × 0.05) = 21 credits
|
|
30
|
+
* **Pricing**: 25 credits base + 2 credits per creator returned
|
|
20
31
|
*
|
|
21
32
|
* @example
|
|
22
33
|
* ```ts
|
|
23
|
-
* const
|
|
34
|
+
* const search = await client.search.create({
|
|
24
35
|
* query:
|
|
25
|
-
* 'fitness influencers with 100k+ followers who post workout
|
|
36
|
+
* 'fitness influencers with 100k+ followers who post workout videos',
|
|
26
37
|
* });
|
|
27
38
|
* ```
|
|
28
39
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
40
|
+
create(body: SearchCreateParams, options?: RequestOptions): APIPromise<SearchCreateResponse> {
|
|
41
|
+
return this._client.post('/v1/search', { body, ...options });
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Paginate through results from a previous search. Use the `search_id` returned by
|
|
46
|
+
* `POST /v1/search` to fetch additional pages.
|
|
47
|
+
*
|
|
48
|
+
* Search sessions expire after 1 hour. After expiry, a new search must be run.
|
|
49
|
+
*
|
|
50
|
+
* **Pricing**: 0 credits (included with initial search)
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* // Automatically fetches more pages as needed.
|
|
55
|
+
* for await (const searchRetrieveResponse of client.search.retrieve(
|
|
56
|
+
* '123e4567-e89b-12d3-a456-426614174000',
|
|
57
|
+
* )) {
|
|
58
|
+
* // ...
|
|
59
|
+
* }
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
retrieve(
|
|
63
|
+
id: string,
|
|
64
|
+
query: SearchRetrieveParams | null | undefined = {},
|
|
31
65
|
options?: RequestOptions,
|
|
32
|
-
):
|
|
33
|
-
|
|
34
|
-
|
|
66
|
+
): PagePromise<SearchRetrieveResponsesQueryCursor, SearchRetrieveResponse> {
|
|
67
|
+
return this._client.getAPIList(path`/v1/search/${id}`, QueryCursor<SearchRetrieveResponse>, {
|
|
68
|
+
query,
|
|
69
|
+
...options,
|
|
70
|
+
});
|
|
35
71
|
}
|
|
36
72
|
}
|
|
37
73
|
|
|
74
|
+
export type SearchRetrieveResponsesQueryCursor = QueryCursor<SearchRetrieveResponse>;
|
|
75
|
+
|
|
38
76
|
/**
|
|
39
|
-
* Search
|
|
77
|
+
* Search match information
|
|
40
78
|
*/
|
|
41
|
-
export interface
|
|
79
|
+
export interface MatchInfo {
|
|
42
80
|
/**
|
|
43
|
-
*
|
|
81
|
+
* Human-readable match reasons
|
|
44
82
|
*/
|
|
45
|
-
|
|
83
|
+
reasons: Array<string>;
|
|
46
84
|
|
|
47
85
|
/**
|
|
48
|
-
*
|
|
49
|
-
* query
|
|
86
|
+
* Match relevance score (0-1)
|
|
50
87
|
*/
|
|
51
|
-
|
|
88
|
+
score: number;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface SearchCreateResponse {
|
|
92
|
+
data: Array<SearchCreateResponse.Data>;
|
|
52
93
|
|
|
53
94
|
/**
|
|
54
|
-
*
|
|
95
|
+
* Whether more results are available
|
|
55
96
|
*/
|
|
56
|
-
|
|
97
|
+
has_more: boolean;
|
|
57
98
|
|
|
58
99
|
/**
|
|
59
|
-
*
|
|
100
|
+
* Cursor for the next page
|
|
60
101
|
*/
|
|
61
|
-
|
|
102
|
+
next_cursor: string | null;
|
|
62
103
|
|
|
63
104
|
/**
|
|
64
|
-
*
|
|
65
|
-
* for 24 hours.
|
|
105
|
+
* Search ID. Use with GET /v1/search/{id} for free pagination.
|
|
66
106
|
*/
|
|
67
|
-
|
|
107
|
+
search_id: string;
|
|
68
108
|
|
|
69
109
|
/**
|
|
70
|
-
*
|
|
71
|
-
* platforms. null if unavailable.
|
|
110
|
+
* Total number of results across all pages
|
|
72
111
|
*/
|
|
73
|
-
|
|
112
|
+
total: number;
|
|
74
113
|
}
|
|
75
114
|
|
|
76
|
-
export namespace
|
|
77
|
-
|
|
78
|
-
* AI-powered recommendation analysis explaining why this creator matches your
|
|
79
|
-
* query
|
|
80
|
-
*/
|
|
81
|
-
export interface AIRecommendation {
|
|
115
|
+
export namespace SearchCreateResponse {
|
|
116
|
+
export interface Data {
|
|
82
117
|
/**
|
|
83
|
-
*
|
|
84
|
-
* matching factors from the query.
|
|
118
|
+
* Basic creator information
|
|
85
119
|
*/
|
|
86
|
-
|
|
120
|
+
creator: Shared.CreatorBasic;
|
|
87
121
|
|
|
88
122
|
/**
|
|
89
|
-
*
|
|
90
|
-
* indicate strong relevance.
|
|
123
|
+
* Search match information
|
|
91
124
|
*/
|
|
92
|
-
|
|
125
|
+
match: SearchAPI.MatchInfo;
|
|
93
126
|
|
|
94
127
|
/**
|
|
95
|
-
*
|
|
96
|
-
* fact represents specific, verifiable information about the creator.
|
|
128
|
+
* Abbreviated profile information
|
|
97
129
|
*/
|
|
98
|
-
|
|
99
|
-
}
|
|
130
|
+
primary_profile: Shared.ProfileSummary | null;
|
|
100
131
|
|
|
101
|
-
export namespace AIRecommendation {
|
|
102
132
|
/**
|
|
103
|
-
*
|
|
104
|
-
* Facts are specific, verifiable pieces of information extracted from creator
|
|
105
|
-
* data.
|
|
133
|
+
* Abbreviated profile information
|
|
106
134
|
*/
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* The actual fact text describing specific information about the creator
|
|
110
|
-
*/
|
|
111
|
-
fact: string;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Unique identifier for this fact
|
|
115
|
-
*/
|
|
116
|
-
factId: string;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Combined relevance score (similarity × confidence × temporal decay). Higher
|
|
120
|
-
* scores indicate stronger evidence for the match.
|
|
121
|
-
*/
|
|
122
|
-
score: number;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* When this fact was created or observed (ISO 8601 format)
|
|
126
|
-
*/
|
|
127
|
-
created_at?: string;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Array of source post IDs where this fact originated. A single fact may come from
|
|
131
|
-
* multiple posts.
|
|
132
|
-
*/
|
|
133
|
-
source_post_id?: Array<string>;
|
|
134
|
-
}
|
|
135
|
+
relevant_profile: Shared.ProfileSummary | null;
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
138
|
|
|
138
|
-
export interface
|
|
139
|
+
export interface SearchRetrieveResponse {
|
|
139
140
|
/**
|
|
140
|
-
*
|
|
141
|
-
* with `has_more` to display "Showing 25 of 1,247 results" in your UI.
|
|
141
|
+
* Basic creator information
|
|
142
142
|
*/
|
|
143
|
-
|
|
143
|
+
creator: Shared.CreatorBasic;
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
147
|
-
* `next_cursor` value in your next request.
|
|
146
|
+
* Search match information
|
|
148
147
|
*/
|
|
149
|
-
|
|
148
|
+
match: MatchInfo;
|
|
150
149
|
|
|
151
|
-
|
|
150
|
+
/**
|
|
151
|
+
* Abbreviated profile information
|
|
152
|
+
*/
|
|
153
|
+
primary_profile: Shared.ProfileSummary | null;
|
|
152
154
|
|
|
153
155
|
/**
|
|
154
|
-
*
|
|
155
|
-
* `cursor` query parameter. Only present when `has_more` is true.
|
|
156
|
+
* Abbreviated profile information
|
|
156
157
|
*/
|
|
157
|
-
|
|
158
|
+
relevant_profile: Shared.ProfileSummary | null;
|
|
158
159
|
}
|
|
159
160
|
|
|
160
|
-
export interface
|
|
161
|
+
export interface SearchCreateParams {
|
|
161
162
|
/**
|
|
162
|
-
*
|
|
163
|
+
* Natural language search query
|
|
163
164
|
*/
|
|
164
165
|
query: string;
|
|
165
166
|
|
|
166
167
|
/**
|
|
167
|
-
*
|
|
168
|
-
* not construct manually.
|
|
168
|
+
* Additional filters
|
|
169
169
|
*/
|
|
170
|
-
|
|
170
|
+
filters?: SearchCreateParams.Filters;
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
|
-
*
|
|
173
|
+
* Maximum results to return
|
|
174
174
|
*/
|
|
175
175
|
limit?: number;
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
|
-
*
|
|
179
|
-
*/
|
|
180
|
-
filters?: SearchFindCreatorsParams.Filters;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Body param: Filter social accounts to only these platforms. Reduces payload
|
|
184
|
-
* size. Does not affect search results or costs.
|
|
178
|
+
* Filter results to specific platforms
|
|
185
179
|
*/
|
|
186
|
-
|
|
180
|
+
platforms?: Array<'instagram'>;
|
|
181
|
+
}
|
|
187
182
|
|
|
183
|
+
export namespace SearchCreateParams {
|
|
188
184
|
/**
|
|
189
|
-
*
|
|
190
|
-
* follower_count, engagement_rate). `detailed` adds avg_comments_recent,
|
|
191
|
-
* avg_video_views_recent, follower_change_rate, etc. Detailed mode costs 5x more
|
|
192
|
-
* (0.05 vs 0.01 credits per profile).
|
|
185
|
+
* Additional filters
|
|
193
186
|
*/
|
|
194
|
-
mode?: 'lite' | 'detailed';
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export namespace SearchFindCreatorsParams {
|
|
198
187
|
export interface Filters {
|
|
199
188
|
/**
|
|
200
|
-
*
|
|
189
|
+
* Filter by engagement rate
|
|
201
190
|
*/
|
|
202
|
-
|
|
191
|
+
engagement_rate?: Filters.EngagementRate;
|
|
203
192
|
|
|
204
193
|
/**
|
|
205
|
-
*
|
|
206
|
-
* `AND` = creator must match ALL platform filters. Default: OR.
|
|
194
|
+
* Filter by follower count
|
|
207
195
|
*/
|
|
208
|
-
|
|
196
|
+
followers?: Filters.Followers;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Filter by verified status
|
|
200
|
+
*/
|
|
201
|
+
verified?: boolean;
|
|
209
202
|
}
|
|
210
203
|
|
|
211
204
|
export namespace Filters {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
205
|
+
/**
|
|
206
|
+
* Filter by engagement rate
|
|
207
|
+
*/
|
|
208
|
+
export interface EngagementRate {
|
|
209
|
+
/**
|
|
210
|
+
* Maximum engagement rate (%)
|
|
211
|
+
*/
|
|
212
|
+
max?: number;
|
|
218
213
|
|
|
219
|
-
|
|
214
|
+
/**
|
|
215
|
+
* Minimum engagement rate (%)
|
|
216
|
+
*/
|
|
217
|
+
min?: number;
|
|
218
|
+
}
|
|
220
219
|
|
|
221
|
-
|
|
220
|
+
/**
|
|
221
|
+
* Filter by follower count
|
|
222
|
+
*/
|
|
223
|
+
export interface Followers {
|
|
224
|
+
/**
|
|
225
|
+
* Maximum follower count
|
|
226
|
+
*/
|
|
227
|
+
max?: number;
|
|
222
228
|
|
|
223
|
-
|
|
229
|
+
/**
|
|
230
|
+
* Minimum follower count
|
|
231
|
+
*/
|
|
232
|
+
min?: number;
|
|
224
233
|
}
|
|
225
234
|
}
|
|
226
235
|
}
|
|
227
236
|
|
|
237
|
+
export interface SearchRetrieveParams extends QueryCursorParams {}
|
|
238
|
+
|
|
228
239
|
export declare namespace Search {
|
|
229
240
|
export {
|
|
230
|
-
type
|
|
231
|
-
type
|
|
232
|
-
type
|
|
241
|
+
type MatchInfo as MatchInfo,
|
|
242
|
+
type SearchCreateResponse as SearchCreateResponse,
|
|
243
|
+
type SearchRetrieveResponse as SearchRetrieveResponse,
|
|
244
|
+
type SearchRetrieveResponsesQueryCursor as SearchRetrieveResponsesQueryCursor,
|
|
245
|
+
type SearchCreateParams as SearchCreateParams,
|
|
246
|
+
type SearchRetrieveParams as SearchRetrieveParams,
|
|
233
247
|
};
|
|
234
248
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Basic creator information
|
|
5
|
+
*/
|
|
6
|
+
export interface CreatorBasic {
|
|
7
|
+
/**
|
|
8
|
+
* Creator unique identifier
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Avatar URL
|
|
14
|
+
*/
|
|
15
|
+
avatar_url: string | null;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Creator bio
|
|
19
|
+
*/
|
|
20
|
+
bio: string | null;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Creator display name
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Abbreviated profile information
|
|
30
|
+
*/
|
|
31
|
+
export interface ProfileSummary {
|
|
32
|
+
/**
|
|
33
|
+
* Profile unique identifier
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Engagement rate as a percentage, null if unknown (e.g. 3.5 means 3.5%)
|
|
39
|
+
*/
|
|
40
|
+
engagement_rate: number | null;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Follower count (null if unknown)
|
|
44
|
+
*/
|
|
45
|
+
followers: number | null;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Whether the account is verified
|
|
49
|
+
*/
|
|
50
|
+
is_verified: boolean;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Social media platform
|
|
54
|
+
*/
|
|
55
|
+
platform: 'instagram';
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Profile URL
|
|
59
|
+
*/
|
|
60
|
+
url: string;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Profile username
|
|
64
|
+
*/
|
|
65
|
+
username: string;
|
|
66
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.2
|
|
1
|
+
export const VERSION = '0.3.2'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2
|
|
1
|
+
export declare const VERSION = "0.3.2";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2
|
|
1
|
+
export declare const VERSION = "0.3.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.2
|
|
1
|
+
export const VERSION = '0.3.2'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|