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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../src/resources/creators.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../src/resources/creators.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,qBAAqB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,YAAY,CACV,KAAK,EAAE,yBAAyB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,SAAS,CACP,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,mCAAmC,EAAE,wBAAwB,CAAC;IAQ7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,KAAK,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG5F;AAED,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAAC,wBAAwB,CAAC,CAAC;AAEvF,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,uBAAuB,CAAC,IAAI,CAAC;IAEnC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,yBAAiB,uB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AG,CAAC,EAAE,MAAM,CAAC;YAEb;;eAEG;YACH,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAE5C;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC,MAAM,CAAC;CACnC;AAED,yBAAiB,kBAAkB,CAAC;IAClC;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,QAAQ,CAAC,EAAE,WAAW,CAAC;QAEvB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,MAAM;QACrB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,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"}
|
package/resources/creators.js
CHANGED
|
@@ -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
|
-
*
|
|
10
|
-
* their
|
|
13
|
+
* Retrieve a creator's profile including AI-generated summary, content themes, and
|
|
14
|
+
* optionally their linked social profiles.
|
|
11
15
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
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
|
-
* **
|
|
20
|
+
* **Include options:**
|
|
17
21
|
*
|
|
18
|
-
* -
|
|
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
|
|
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
|
-
*
|
|
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(
|
|
34
|
+
retrieve(id, query, options) {
|
|
35
|
+
return this._client.get((0, path_1.path) `/v1/creators/${id}`, { query, ...options });
|
|
33
36
|
}
|
|
34
37
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
50
|
-
*
|
|
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.
|
|
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
|
-
*
|
|
66
|
-
*
|
|
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
|
-
*
|
|
70
|
+
* **Use cases:**
|
|
69
71
|
*
|
|
70
|
-
* -
|
|
71
|
-
* -
|
|
72
|
-
* -
|
|
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
|
-
*
|
|
76
|
+
* **How it works:**
|
|
76
77
|
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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.
|
|
110
|
-
*
|
|
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
|
-
|
|
115
|
-
return this._client.
|
|
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;
|
|
1
|
+
{"version":3,"file":"creators.js","sourceRoot":"","sources":["../src/resources/creators.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CACN,EAAU,EACV,KAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,YAAY,CACV,KAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,SAAS,CACP,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,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"}
|
package/resources/creators.mjs
CHANGED
|
@@ -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
|
-
*
|
|
7
|
-
* their
|
|
10
|
+
* Retrieve a creator's profile including AI-generated summary, content themes, and
|
|
11
|
+
* optionally their linked social profiles.
|
|
8
12
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
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
|
-
* **
|
|
17
|
+
* **Include options:**
|
|
14
18
|
*
|
|
15
|
-
* -
|
|
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
|
|
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
|
-
*
|
|
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(
|
|
31
|
+
retrieve(id, query, options) {
|
|
32
|
+
return this._client.get(path `/v1/creators/${id}`, { query, ...options });
|
|
30
33
|
}
|
|
31
34
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
47
|
-
*
|
|
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.
|
|
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
|
-
*
|
|
63
|
-
*
|
|
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
|
-
*
|
|
67
|
+
* **Use cases:**
|
|
66
68
|
*
|
|
67
|
-
* -
|
|
68
|
-
* -
|
|
69
|
-
* -
|
|
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
|
-
*
|
|
73
|
+
* **How it works:**
|
|
73
74
|
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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.
|
|
107
|
-
*
|
|
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
|
-
|
|
112
|
-
return this._client.
|
|
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;
|
|
1
|
+
{"version":3,"file":"creators.mjs","sourceRoot":"","sources":["../src/resources/creators.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CACN,EAAU,EACV,KAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,YAAY,CACV,KAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,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"}
|
package/resources/health.d.mts
CHANGED
|
@@ -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
|
|
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"}
|
package/resources/health.d.ts
CHANGED
|
@@ -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
|
|
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"}
|
package/resources/health.js
CHANGED
|
@@ -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
|
|
11
|
+
* Check API health status. No authentication required.
|
|
9
12
|
*/
|
|
10
13
|
check(options) {
|
|
11
14
|
return this._client.get('/health', options);
|
package/resources/health.js.map
CHANGED
|
@@ -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"}
|
package/resources/health.mjs
CHANGED
|
@@ -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
|
|
8
|
+
* Check API health status. No authentication required.
|
|
6
9
|
*/
|
|
7
10
|
check(options) {
|
|
8
11
|
return this._client.get('/health', options);
|
package/resources/health.mjs.map
CHANGED
|
@@ -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"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { Creators, type
|
|
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 {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
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":"
|
|
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"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { Creators, type
|
|
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 {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
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
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"
|
|
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"}
|