influship 0.2.0
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 -0
- package/LICENSE +201 -0
- package/README.md +372 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +198 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +198 -0
- package/client.d.ts.map +1 -0
- package/client.js +469 -0
- package/client.js.map +1 -0
- package/client.mjs +465 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +86 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +80 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +138 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/brand-safety.d.mts +234 -0
- package/resources/brand-safety.d.mts.map +1 -0
- package/resources/brand-safety.d.ts +234 -0
- package/resources/brand-safety.d.ts.map +1 -0
- package/resources/brand-safety.js +75 -0
- package/resources/brand-safety.js.map +1 -0
- package/resources/brand-safety.mjs +71 -0
- package/resources/brand-safety.mjs.map +1 -0
- package/resources/creators.d.mts +364 -0
- package/resources/creators.d.mts.map +1 -0
- package/resources/creators.d.ts +364 -0
- package/resources/creators.d.ts.map +1 -0
- package/resources/creators.js +119 -0
- package/resources/creators.js.map +1 -0
- package/resources/creators.mjs +115 -0
- package/resources/creators.mjs.map +1 -0
- package/resources/health.d.mts +17 -0
- package/resources/health.d.mts.map +1 -0
- package/resources/health.d.ts +17 -0
- package/resources/health.d.ts.map +1 -0
- package/resources/health.js +15 -0
- package/resources/health.js.map +1 -0
- package/resources/health.mjs +11 -0
- package/resources/health.mjs.map +1 -0
- package/resources/index.d.mts +9 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +9 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +21 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +10 -0
- package/resources/index.mjs.map +1 -0
- package/resources/lookalike.d.mts +142 -0
- package/resources/lookalike.d.mts.map +1 -0
- package/resources/lookalike.d.ts +142 -0
- package/resources/lookalike.d.ts.map +1 -0
- package/resources/lookalike.js +28 -0
- package/resources/lookalike.js.map +1 -0
- package/resources/lookalike.mjs +24 -0
- package/resources/lookalike.mjs.map +1 -0
- package/resources/match.d.mts +90 -0
- package/resources/match.d.mts.map +1 -0
- package/resources/match.d.ts +90 -0
- package/resources/match.d.ts.map +1 -0
- package/resources/match.js +22 -0
- package/resources/match.js.map +1 -0
- package/resources/match.mjs +18 -0
- package/resources/match.mjs.map +1 -0
- package/resources/posts.d.mts +284 -0
- package/resources/posts.d.mts.map +1 -0
- package/resources/posts.d.ts +284 -0
- package/resources/posts.d.ts.map +1 -0
- package/resources/posts.js +55 -0
- package/resources/posts.js.map +1 -0
- package/resources/posts.mjs +51 -0
- package/resources/posts.mjs.map +1 -0
- package/resources/profiles.d.mts +99 -0
- package/resources/profiles.d.mts.map +1 -0
- package/resources/profiles.d.ts +99 -0
- package/resources/profiles.d.ts.map +1 -0
- package/resources/profiles.js +69 -0
- package/resources/profiles.js.map +1 -0
- package/resources/profiles.mjs +65 -0
- package/resources/profiles.mjs.map +1 -0
- package/resources/search.d.mts +189 -0
- package/resources/search.d.mts.map +1 -0
- package/resources/search.d.ts +189 -0
- package/resources/search.d.ts.map +1 -0
- package/resources/search.js +33 -0
- package/resources/search.js.map +1 -0
- package/resources/search.mjs +29 -0
- package/resources/search.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +845 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +127 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/brand-safety.ts +304 -0
- package/src/resources/creators.ts +450 -0
- package/src/resources/health.ts +24 -0
- package/src/resources/index.ts +62 -0
- package/src/resources/lookalike.ts +186 -0
- package/src/resources/match.ts +115 -0
- package/src/resources/posts.ts +347 -0
- package/src/resources/profiles.ts +114 -0
- package/src/resources/search.ts +234 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class Health extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Check the health status of the API
|
|
6
|
+
*/
|
|
7
|
+
check(options) {
|
|
8
|
+
return this._client.get('/health', options);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=health.mjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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";
|
|
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";
|
|
9
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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";
|
|
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";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Search = exports.Profiles = exports.Posts = exports.Match = exports.Lookalike = exports.Health = exports.Creators = exports.BrandSafety = void 0;
|
|
5
|
+
var brand_safety_1 = require("./brand-safety.js");
|
|
6
|
+
Object.defineProperty(exports, "BrandSafety", { enumerable: true, get: function () { return brand_safety_1.BrandSafety; } });
|
|
7
|
+
var creators_1 = require("./creators.js");
|
|
8
|
+
Object.defineProperty(exports, "Creators", { enumerable: true, get: function () { return creators_1.Creators; } });
|
|
9
|
+
var health_1 = require("./health.js");
|
|
10
|
+
Object.defineProperty(exports, "Health", { enumerable: true, get: function () { return health_1.Health; } });
|
|
11
|
+
var lookalike_1 = require("./lookalike.js");
|
|
12
|
+
Object.defineProperty(exports, "Lookalike", { enumerable: true, get: function () { return lookalike_1.Lookalike; } });
|
|
13
|
+
var match_1 = require("./match.js");
|
|
14
|
+
Object.defineProperty(exports, "Match", { enumerable: true, get: function () { return match_1.Match; } });
|
|
15
|
+
var posts_1 = require("./posts.js");
|
|
16
|
+
Object.defineProperty(exports, "Posts", { enumerable: true, get: function () { return posts_1.Posts; } });
|
|
17
|
+
var profiles_1 = require("./profiles.js");
|
|
18
|
+
Object.defineProperty(exports, "Profiles", { enumerable: true, get: function () { return profiles_1.Profiles; } });
|
|
19
|
+
var search_1 = require("./search.js");
|
|
20
|
+
Object.defineProperty(exports, "Search", { enumerable: true, get: function () { return search_1.Search; } });
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAWwB;AAVtB,2GAAA,WAAW,OAAA;AAWb,0CAYoB;AAXlB,oGAAA,QAAQ,OAAA;AAYV,sCAA4D;AAAnD,gGAAA,MAAM,OAAA;AACf,4CAKqB;AAJnB,sGAAA,SAAS,OAAA;AAKX,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,oCAQiB;AAPf,8FAAA,KAAK,OAAA;AAQP,0CAKoB;AAJlB,oGAAA,QAAQ,OAAA;AAKV,sCAKkB;AAJhB,gGAAA,MAAM,OAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { BrandSafety, } from "./brand-safety.mjs";
|
|
3
|
+
export { Creators, } from "./creators.mjs";
|
|
4
|
+
export { Health } from "./health.mjs";
|
|
5
|
+
export { Lookalike, } from "./lookalike.mjs";
|
|
6
|
+
export { Match, } from "./match.mjs";
|
|
7
|
+
export { Posts, } from "./posts.mjs";
|
|
8
|
+
export { Profiles, } from "./profiles.mjs";
|
|
9
|
+
export { Search, } from "./search.mjs";
|
|
10
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAUZ;OACM,EACL,QAAQ,GAWT;OACM,EAAE,MAAM,EAA4B;OACpC,EACL,SAAS,GAIV;OACM,EACL,KAAK,GAKN;OACM,EACL,KAAK,GAON;OACM,EACL,QAAQ,GAIT;OACM,EACL,MAAM,GAIP"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as LookalikeAPI from "./lookalike.mjs";
|
|
3
|
+
import * as MatchAPI from "./match.mjs";
|
|
4
|
+
import * as ProfilesAPI from "./profiles.mjs";
|
|
5
|
+
import * as SearchAPI from "./search.mjs";
|
|
6
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
7
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
8
|
+
export declare class Lookalike extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Find creators similar to your seed creators using AI-powered similarity
|
|
11
|
+
* analysis.
|
|
12
|
+
*
|
|
13
|
+
* This endpoint analyzes your seed creators and finds similar influencers based on
|
|
14
|
+
* audience demographics, content style, and engagement patterns.
|
|
15
|
+
*
|
|
16
|
+
* **Pricing**:
|
|
17
|
+
*
|
|
18
|
+
* - Base: 1.0 credit per creator returned
|
|
19
|
+
* - Detailed mode: Additional 0.05 credits per social account profile
|
|
20
|
+
* - **Example**: 25 lookalike creators in lite mode = 25 credits
|
|
21
|
+
* - **Example**: 25 creators with avg 3 profiles each in detailed mode = 25 + (25
|
|
22
|
+
* × 3 × 0.05) = 28.75 credits
|
|
23
|
+
*/
|
|
24
|
+
findSimilarCreators(params: LookalikeFindSimilarCreatorsParams, options?: RequestOptions): APIPromise<LookalikeFindSimilarCreatorsResponse>;
|
|
25
|
+
}
|
|
26
|
+
export interface LookalikeSeedBase {
|
|
27
|
+
/**
|
|
28
|
+
* Weight for this seed in similarity calculation
|
|
29
|
+
*/
|
|
30
|
+
weight?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface LookalikeFindSimilarCreatorsResponse {
|
|
33
|
+
/**
|
|
34
|
+
* Current billing plan
|
|
35
|
+
*/
|
|
36
|
+
billing_plan?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Credits consumed for this request
|
|
39
|
+
*/
|
|
40
|
+
credits_charged?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Features used in this request
|
|
43
|
+
*/
|
|
44
|
+
features?: Array<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Total number of results after filtering
|
|
47
|
+
*/
|
|
48
|
+
filtered_total?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Whether there are more results available
|
|
51
|
+
*/
|
|
52
|
+
has_more?: boolean;
|
|
53
|
+
items?: Array<SearchAPI.SearchItem>;
|
|
54
|
+
/**
|
|
55
|
+
* Cursor for next page of results
|
|
56
|
+
*/
|
|
57
|
+
next_cursor?: string;
|
|
58
|
+
rate_limit?: LookalikeFindSimilarCreatorsResponse.RateLimit;
|
|
59
|
+
}
|
|
60
|
+
export declare namespace LookalikeFindSimilarCreatorsResponse {
|
|
61
|
+
interface RateLimit {
|
|
62
|
+
/**
|
|
63
|
+
* Rate limit for this endpoint
|
|
64
|
+
*/
|
|
65
|
+
limit?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Remaining requests in current window
|
|
68
|
+
*/
|
|
69
|
+
remaining?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Unix timestamp when rate limit resets
|
|
72
|
+
*/
|
|
73
|
+
reset?: number;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export interface LookalikeFindSimilarCreatorsParams {
|
|
77
|
+
/**
|
|
78
|
+
* Body param: Seed creators to find lookalikes for. Max 10 seeds, each with
|
|
79
|
+
* optional weight (0-10, default 1).
|
|
80
|
+
*/
|
|
81
|
+
seeds: Array<LookalikeFindSimilarCreatorsParams.LookalikeSeedByID | LookalikeFindSimilarCreatorsParams.LookalikeSeedByHandle>;
|
|
82
|
+
/**
|
|
83
|
+
* Query param: Opaque pagination cursor from previous response's `next_cursor`. Do
|
|
84
|
+
* not construct manually.
|
|
85
|
+
*/
|
|
86
|
+
cursor?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Query param: Maximum number of results to return
|
|
89
|
+
*/
|
|
90
|
+
limit?: number;
|
|
91
|
+
/**
|
|
92
|
+
* Body param:
|
|
93
|
+
*/
|
|
94
|
+
filters?: LookalikeFindSimilarCreatorsParams.Filters;
|
|
95
|
+
/**
|
|
96
|
+
* Body param: Response detail level
|
|
97
|
+
*/
|
|
98
|
+
mode?: 'lite' | 'detailed';
|
|
99
|
+
/**
|
|
100
|
+
* Body param: Filter which social media profiles to include in the response for
|
|
101
|
+
* each creator.
|
|
102
|
+
*
|
|
103
|
+
* - If not specified, all profiles for each creator are returned
|
|
104
|
+
* - If specified, only profiles from these platforms are included
|
|
105
|
+
* - This allows you to control which platforms you want to see results from
|
|
106
|
+
* - Independent of your seed creators' platforms - you can mix seed types freely
|
|
107
|
+
* Example: ["instagram"] to only see instagram profiles, ["instagram", "tiktok"]
|
|
108
|
+
* for both
|
|
109
|
+
* - This allows you to get cross-platform creators but only show specific platform
|
|
110
|
+
* profiles
|
|
111
|
+
*/
|
|
112
|
+
profile_platforms?: Array<'instagram' | 'tiktok'>;
|
|
113
|
+
}
|
|
114
|
+
export declare namespace LookalikeFindSimilarCreatorsParams {
|
|
115
|
+
interface LookalikeSeedByID extends LookalikeAPI.LookalikeSeedBase, MatchAPI.CreatorReferenceByID {
|
|
116
|
+
}
|
|
117
|
+
interface LookalikeSeedByHandle extends LookalikeAPI.LookalikeSeedBase, ProfilesAPI.CreatorReferenceByHandle {
|
|
118
|
+
}
|
|
119
|
+
interface Filters {
|
|
120
|
+
audience_size?: Filters.AudienceSize;
|
|
121
|
+
engagement_rate?: Filters.EngagementRate;
|
|
122
|
+
/**
|
|
123
|
+
* Filter by platforms
|
|
124
|
+
*/
|
|
125
|
+
platform?: Array<string>;
|
|
126
|
+
verified?: boolean;
|
|
127
|
+
}
|
|
128
|
+
namespace Filters {
|
|
129
|
+
interface AudienceSize {
|
|
130
|
+
max?: number;
|
|
131
|
+
min?: number;
|
|
132
|
+
}
|
|
133
|
+
interface EngagementRate {
|
|
134
|
+
max?: number;
|
|
135
|
+
min?: number;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
export declare namespace Lookalike {
|
|
140
|
+
export { type LookalikeSeedBase as LookalikeSeedBase, type LookalikeFindSimilarCreatorsResponse as LookalikeFindSimilarCreatorsResponse, type LookalikeFindSimilarCreatorsParams as LookalikeFindSimilarCreatorsParams, };
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=lookalike.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookalike.d.mts","sourceRoot":"","sources":["../src/resources/lookalike.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,KAAK,QAAQ;OACb,KAAK,WAAW;OAChB,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;OAcG;IACH,mBAAmB,CACjB,MAAM,EAAE,kCAAkC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oCAAoC,CAAC;CAIpD;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oCAAoC;IACnD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAEpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,UAAU,CAAC,EAAE,oCAAoC,CAAC,SAAS,CAAC;CAC7D;AAED,yBAAiB,oCAAoC,CAAC;IACpD,UAAiB,SAAS;QACxB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,kCAAkC;IACjD;;;OAGG;IACH,KAAK,EAAE,KAAK,CACR,kCAAkC,CAAC,iBAAiB,GACpD,kCAAkC,CAAC,qBAAqB,CAC3D,CAAC;IAEF;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,kCAAkC,CAAC,OAAO,CAAC;IAErD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAE3B;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,QAAQ,CAAC,CAAC;CACnD;AAED,yBAAiB,kCAAkC,CAAC;IAClD,UAAiB,iBAAkB,SAAQ,YAAY,CAAC,iBAAiB,EAAE,QAAQ,CAAC,oBAAoB;KAAG;IAE3G,UAAiB,qBACf,SAAQ,YAAY,CAAC,iBAAiB,EACpC,WAAW,CAAC,wBAAwB;KAAG;IAE3C,UAAiB,OAAO;QACtB,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;QAErC,eAAe,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC;QAEzC;;WAEG;QACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEzB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB;IAED,UAAiB,OAAO,CAAC;QACvB,UAAiB,YAAY;YAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;YAEb,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;QAED,UAAiB,cAAc;YAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;YAEb,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,kCAAkC,IAAI,kCAAkC,GAC9E,CAAC;CACH"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as LookalikeAPI from "./lookalike.js";
|
|
3
|
+
import * as MatchAPI from "./match.js";
|
|
4
|
+
import * as ProfilesAPI from "./profiles.js";
|
|
5
|
+
import * as SearchAPI from "./search.js";
|
|
6
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
7
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
8
|
+
export declare class Lookalike extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Find creators similar to your seed creators using AI-powered similarity
|
|
11
|
+
* analysis.
|
|
12
|
+
*
|
|
13
|
+
* This endpoint analyzes your seed creators and finds similar influencers based on
|
|
14
|
+
* audience demographics, content style, and engagement patterns.
|
|
15
|
+
*
|
|
16
|
+
* **Pricing**:
|
|
17
|
+
*
|
|
18
|
+
* - Base: 1.0 credit per creator returned
|
|
19
|
+
* - Detailed mode: Additional 0.05 credits per social account profile
|
|
20
|
+
* - **Example**: 25 lookalike creators in lite mode = 25 credits
|
|
21
|
+
* - **Example**: 25 creators with avg 3 profiles each in detailed mode = 25 + (25
|
|
22
|
+
* × 3 × 0.05) = 28.75 credits
|
|
23
|
+
*/
|
|
24
|
+
findSimilarCreators(params: LookalikeFindSimilarCreatorsParams, options?: RequestOptions): APIPromise<LookalikeFindSimilarCreatorsResponse>;
|
|
25
|
+
}
|
|
26
|
+
export interface LookalikeSeedBase {
|
|
27
|
+
/**
|
|
28
|
+
* Weight for this seed in similarity calculation
|
|
29
|
+
*/
|
|
30
|
+
weight?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface LookalikeFindSimilarCreatorsResponse {
|
|
33
|
+
/**
|
|
34
|
+
* Current billing plan
|
|
35
|
+
*/
|
|
36
|
+
billing_plan?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Credits consumed for this request
|
|
39
|
+
*/
|
|
40
|
+
credits_charged?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Features used in this request
|
|
43
|
+
*/
|
|
44
|
+
features?: Array<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Total number of results after filtering
|
|
47
|
+
*/
|
|
48
|
+
filtered_total?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Whether there are more results available
|
|
51
|
+
*/
|
|
52
|
+
has_more?: boolean;
|
|
53
|
+
items?: Array<SearchAPI.SearchItem>;
|
|
54
|
+
/**
|
|
55
|
+
* Cursor for next page of results
|
|
56
|
+
*/
|
|
57
|
+
next_cursor?: string;
|
|
58
|
+
rate_limit?: LookalikeFindSimilarCreatorsResponse.RateLimit;
|
|
59
|
+
}
|
|
60
|
+
export declare namespace LookalikeFindSimilarCreatorsResponse {
|
|
61
|
+
interface RateLimit {
|
|
62
|
+
/**
|
|
63
|
+
* Rate limit for this endpoint
|
|
64
|
+
*/
|
|
65
|
+
limit?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Remaining requests in current window
|
|
68
|
+
*/
|
|
69
|
+
remaining?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Unix timestamp when rate limit resets
|
|
72
|
+
*/
|
|
73
|
+
reset?: number;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export interface LookalikeFindSimilarCreatorsParams {
|
|
77
|
+
/**
|
|
78
|
+
* Body param: Seed creators to find lookalikes for. Max 10 seeds, each with
|
|
79
|
+
* optional weight (0-10, default 1).
|
|
80
|
+
*/
|
|
81
|
+
seeds: Array<LookalikeFindSimilarCreatorsParams.LookalikeSeedByID | LookalikeFindSimilarCreatorsParams.LookalikeSeedByHandle>;
|
|
82
|
+
/**
|
|
83
|
+
* Query param: Opaque pagination cursor from previous response's `next_cursor`. Do
|
|
84
|
+
* not construct manually.
|
|
85
|
+
*/
|
|
86
|
+
cursor?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Query param: Maximum number of results to return
|
|
89
|
+
*/
|
|
90
|
+
limit?: number;
|
|
91
|
+
/**
|
|
92
|
+
* Body param:
|
|
93
|
+
*/
|
|
94
|
+
filters?: LookalikeFindSimilarCreatorsParams.Filters;
|
|
95
|
+
/**
|
|
96
|
+
* Body param: Response detail level
|
|
97
|
+
*/
|
|
98
|
+
mode?: 'lite' | 'detailed';
|
|
99
|
+
/**
|
|
100
|
+
* Body param: Filter which social media profiles to include in the response for
|
|
101
|
+
* each creator.
|
|
102
|
+
*
|
|
103
|
+
* - If not specified, all profiles for each creator are returned
|
|
104
|
+
* - If specified, only profiles from these platforms are included
|
|
105
|
+
* - This allows you to control which platforms you want to see results from
|
|
106
|
+
* - Independent of your seed creators' platforms - you can mix seed types freely
|
|
107
|
+
* Example: ["instagram"] to only see instagram profiles, ["instagram", "tiktok"]
|
|
108
|
+
* for both
|
|
109
|
+
* - This allows you to get cross-platform creators but only show specific platform
|
|
110
|
+
* profiles
|
|
111
|
+
*/
|
|
112
|
+
profile_platforms?: Array<'instagram' | 'tiktok'>;
|
|
113
|
+
}
|
|
114
|
+
export declare namespace LookalikeFindSimilarCreatorsParams {
|
|
115
|
+
interface LookalikeSeedByID extends LookalikeAPI.LookalikeSeedBase, MatchAPI.CreatorReferenceByID {
|
|
116
|
+
}
|
|
117
|
+
interface LookalikeSeedByHandle extends LookalikeAPI.LookalikeSeedBase, ProfilesAPI.CreatorReferenceByHandle {
|
|
118
|
+
}
|
|
119
|
+
interface Filters {
|
|
120
|
+
audience_size?: Filters.AudienceSize;
|
|
121
|
+
engagement_rate?: Filters.EngagementRate;
|
|
122
|
+
/**
|
|
123
|
+
* Filter by platforms
|
|
124
|
+
*/
|
|
125
|
+
platform?: Array<string>;
|
|
126
|
+
verified?: boolean;
|
|
127
|
+
}
|
|
128
|
+
namespace Filters {
|
|
129
|
+
interface AudienceSize {
|
|
130
|
+
max?: number;
|
|
131
|
+
min?: number;
|
|
132
|
+
}
|
|
133
|
+
interface EngagementRate {
|
|
134
|
+
max?: number;
|
|
135
|
+
min?: number;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
export declare namespace Lookalike {
|
|
140
|
+
export { type LookalikeSeedBase as LookalikeSeedBase, type LookalikeFindSimilarCreatorsResponse as LookalikeFindSimilarCreatorsResponse, type LookalikeFindSimilarCreatorsParams as LookalikeFindSimilarCreatorsParams, };
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=lookalike.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookalike.d.ts","sourceRoot":"","sources":["../src/resources/lookalike.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,KAAK,QAAQ;OACb,KAAK,WAAW;OAChB,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;OAcG;IACH,mBAAmB,CACjB,MAAM,EAAE,kCAAkC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oCAAoC,CAAC;CAIpD;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oCAAoC;IACnD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAEpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,UAAU,CAAC,EAAE,oCAAoC,CAAC,SAAS,CAAC;CAC7D;AAED,yBAAiB,oCAAoC,CAAC;IACpD,UAAiB,SAAS;QACxB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,kCAAkC;IACjD;;;OAGG;IACH,KAAK,EAAE,KAAK,CACR,kCAAkC,CAAC,iBAAiB,GACpD,kCAAkC,CAAC,qBAAqB,CAC3D,CAAC;IAEF;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,kCAAkC,CAAC,OAAO,CAAC;IAErD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAE3B;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,QAAQ,CAAC,CAAC;CACnD;AAED,yBAAiB,kCAAkC,CAAC;IAClD,UAAiB,iBAAkB,SAAQ,YAAY,CAAC,iBAAiB,EAAE,QAAQ,CAAC,oBAAoB;KAAG;IAE3G,UAAiB,qBACf,SAAQ,YAAY,CAAC,iBAAiB,EACpC,WAAW,CAAC,wBAAwB;KAAG;IAE3C,UAAiB,OAAO;QACtB,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;QAErC,eAAe,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC;QAEzC;;WAEG;QACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEzB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB;IAED,UAAiB,OAAO,CAAC;QACvB,UAAiB,YAAY;YAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;YAEb,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;QAED,UAAiB,cAAc;YAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;YAEb,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,kCAAkC,IAAI,kCAAkC,GAC9E,CAAC;CACH"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Lookalike = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Lookalike extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Find creators similar to your seed creators using AI-powered similarity
|
|
9
|
+
* analysis.
|
|
10
|
+
*
|
|
11
|
+
* This endpoint analyzes your seed creators and finds similar influencers based on
|
|
12
|
+
* audience demographics, content style, and engagement patterns.
|
|
13
|
+
*
|
|
14
|
+
* **Pricing**:
|
|
15
|
+
*
|
|
16
|
+
* - Base: 1.0 credit per creator returned
|
|
17
|
+
* - Detailed mode: Additional 0.05 credits per social account profile
|
|
18
|
+
* - **Example**: 25 lookalike creators in lite mode = 25 credits
|
|
19
|
+
* - **Example**: 25 creators with avg 3 profiles each in detailed mode = 25 + (25
|
|
20
|
+
* × 3 × 0.05) = 28.75 credits
|
|
21
|
+
*/
|
|
22
|
+
findSimilarCreators(params, options) {
|
|
23
|
+
const { cursor, limit, ...body } = params;
|
|
24
|
+
return this._client.post('/v1/lookalike', { query: { cursor, limit }, body, ...options });
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.Lookalike = Lookalike;
|
|
28
|
+
//# sourceMappingURL=lookalike.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookalike.js","sourceRoot":"","sources":["../src/resources/lookalike.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAQ/C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;;;OAcG;IACH,mBAAmB,CACjB,MAA0C,EAC1C,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF;AAvBD,8BAuBC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class Lookalike extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Find creators similar to your seed creators using AI-powered similarity
|
|
6
|
+
* analysis.
|
|
7
|
+
*
|
|
8
|
+
* This endpoint analyzes your seed creators and finds similar influencers based on
|
|
9
|
+
* audience demographics, content style, and engagement patterns.
|
|
10
|
+
*
|
|
11
|
+
* **Pricing**:
|
|
12
|
+
*
|
|
13
|
+
* - Base: 1.0 credit per creator returned
|
|
14
|
+
* - Detailed mode: Additional 0.05 credits per social account profile
|
|
15
|
+
* - **Example**: 25 lookalike creators in lite mode = 25 credits
|
|
16
|
+
* - **Example**: 25 creators with avg 3 profiles each in detailed mode = 25 + (25
|
|
17
|
+
* × 3 × 0.05) = 28.75 credits
|
|
18
|
+
*/
|
|
19
|
+
findSimilarCreators(params, options) {
|
|
20
|
+
const { cursor, limit, ...body } = params;
|
|
21
|
+
return this._client.post('/v1/lookalike', { query: { cursor, limit }, body, ...options });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=lookalike.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookalike.mjs","sourceRoot":"","sources":["../src/resources/lookalike.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAQtB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;OAcG;IACH,mBAAmB,CACjB,MAA0C,EAC1C,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as ProfilesAPI from "./profiles.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class Match extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Evaluate how well creators align with campaign requirements using AI-powered
|
|
8
|
+
* analysis.
|
|
9
|
+
*
|
|
10
|
+
* Provide creator references and campaign description to receive match scores
|
|
11
|
+
* (0-100), AI decisions (good/neutral/avoid), explanations, and supporting
|
|
12
|
+
* evidence.
|
|
13
|
+
*
|
|
14
|
+
* **Pricing**: 0.1 credits per creator analyzed
|
|
15
|
+
*/
|
|
16
|
+
analyze(body: MatchAnalyzeParams, options?: RequestOptions): APIPromise<MatchAnalyzeResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface CreatorReferenceByID {
|
|
19
|
+
/**
|
|
20
|
+
* Unique creator identifier
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* Platform name (optional when using the ID)
|
|
25
|
+
*/
|
|
26
|
+
platform?: 'instagram';
|
|
27
|
+
}
|
|
28
|
+
export interface MatchResult {
|
|
29
|
+
creator?: MatchResult.Creator;
|
|
30
|
+
/**
|
|
31
|
+
* AI recommendation decision:
|
|
32
|
+
*
|
|
33
|
+
* - `good`: Strong fit for the campaign, recommended
|
|
34
|
+
* - `neutral`: Acceptable fit, evaluate based on other factors
|
|
35
|
+
* - `avoid`: Not recommended for this campaign
|
|
36
|
+
*/
|
|
37
|
+
decision?: 'good' | 'neutral' | 'avoid';
|
|
38
|
+
/**
|
|
39
|
+
* Array of specific evidence supporting the match decision. Includes relevant
|
|
40
|
+
* content examples and audience insights.
|
|
41
|
+
*/
|
|
42
|
+
evidence?: Array<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Human-readable explanation of the match assessment. Summarizes why this creator
|
|
45
|
+
* fits or doesn't fit the campaign.
|
|
46
|
+
*/
|
|
47
|
+
explanation?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Match score from 0 to 100 indicating campaign fit.
|
|
50
|
+
*
|
|
51
|
+
* - 80-100: Excellent match
|
|
52
|
+
* - 60-79: Good match
|
|
53
|
+
* - 40-59: Moderate match
|
|
54
|
+
* - 0-39: Poor match
|
|
55
|
+
*/
|
|
56
|
+
match_score?: number;
|
|
57
|
+
}
|
|
58
|
+
export declare namespace MatchResult {
|
|
59
|
+
interface Creator {
|
|
60
|
+
id?: string;
|
|
61
|
+
platform?: 'instagram';
|
|
62
|
+
username?: string;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export interface MatchAnalyzeResponse {
|
|
66
|
+
items?: Array<MatchResult>;
|
|
67
|
+
}
|
|
68
|
+
export interface MatchAnalyzeParams {
|
|
69
|
+
/**
|
|
70
|
+
* Creators to match against campaign. Max 100 creators per request.
|
|
71
|
+
*/
|
|
72
|
+
creators: Array<CreatorReferenceByID | ProfilesAPI.CreatorReferenceByHandle>;
|
|
73
|
+
search_intent: MatchAnalyzeParams.SearchIntent;
|
|
74
|
+
}
|
|
75
|
+
export declare namespace MatchAnalyzeParams {
|
|
76
|
+
interface SearchIntent {
|
|
77
|
+
/**
|
|
78
|
+
* Campaign search intent
|
|
79
|
+
*/
|
|
80
|
+
query: string;
|
|
81
|
+
/**
|
|
82
|
+
* Additional context for matching
|
|
83
|
+
*/
|
|
84
|
+
context?: string;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
export declare namespace Match {
|
|
88
|
+
export { type CreatorReferenceByID as CreatorReferenceByID, type MatchResult as MatchResult, type MatchAnalyzeResponse as MatchAnalyzeResponse, type MatchAnalyzeParams as MatchAnalyzeParams, };
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=match.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match.d.mts","sourceRoot":"","sources":["../src/resources/match.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;OASG;IACH,OAAO,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG9F;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;CACxB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC;IAE9B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAExC;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,yBAAiB,WAAW,CAAC;IAC3B,UAAiB,OAAO;QACtB,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ,QAAQ,CAAC,EAAE,WAAW,CAAC;QAEvB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,oBAAoB,GAAG,WAAW,CAAC,wBAAwB,CAAC,CAAC;IAE7E,aAAa,EAAE,kBAAkB,CAAC,YAAY,CAAC;CAChD;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,YAAY;QAC3B;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as ProfilesAPI from "./profiles.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class Match extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Evaluate how well creators align with campaign requirements using AI-powered
|
|
8
|
+
* analysis.
|
|
9
|
+
*
|
|
10
|
+
* Provide creator references and campaign description to receive match scores
|
|
11
|
+
* (0-100), AI decisions (good/neutral/avoid), explanations, and supporting
|
|
12
|
+
* evidence.
|
|
13
|
+
*
|
|
14
|
+
* **Pricing**: 0.1 credits per creator analyzed
|
|
15
|
+
*/
|
|
16
|
+
analyze(body: MatchAnalyzeParams, options?: RequestOptions): APIPromise<MatchAnalyzeResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface CreatorReferenceByID {
|
|
19
|
+
/**
|
|
20
|
+
* Unique creator identifier
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* Platform name (optional when using the ID)
|
|
25
|
+
*/
|
|
26
|
+
platform?: 'instagram';
|
|
27
|
+
}
|
|
28
|
+
export interface MatchResult {
|
|
29
|
+
creator?: MatchResult.Creator;
|
|
30
|
+
/**
|
|
31
|
+
* AI recommendation decision:
|
|
32
|
+
*
|
|
33
|
+
* - `good`: Strong fit for the campaign, recommended
|
|
34
|
+
* - `neutral`: Acceptable fit, evaluate based on other factors
|
|
35
|
+
* - `avoid`: Not recommended for this campaign
|
|
36
|
+
*/
|
|
37
|
+
decision?: 'good' | 'neutral' | 'avoid';
|
|
38
|
+
/**
|
|
39
|
+
* Array of specific evidence supporting the match decision. Includes relevant
|
|
40
|
+
* content examples and audience insights.
|
|
41
|
+
*/
|
|
42
|
+
evidence?: Array<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Human-readable explanation of the match assessment. Summarizes why this creator
|
|
45
|
+
* fits or doesn't fit the campaign.
|
|
46
|
+
*/
|
|
47
|
+
explanation?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Match score from 0 to 100 indicating campaign fit.
|
|
50
|
+
*
|
|
51
|
+
* - 80-100: Excellent match
|
|
52
|
+
* - 60-79: Good match
|
|
53
|
+
* - 40-59: Moderate match
|
|
54
|
+
* - 0-39: Poor match
|
|
55
|
+
*/
|
|
56
|
+
match_score?: number;
|
|
57
|
+
}
|
|
58
|
+
export declare namespace MatchResult {
|
|
59
|
+
interface Creator {
|
|
60
|
+
id?: string;
|
|
61
|
+
platform?: 'instagram';
|
|
62
|
+
username?: string;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export interface MatchAnalyzeResponse {
|
|
66
|
+
items?: Array<MatchResult>;
|
|
67
|
+
}
|
|
68
|
+
export interface MatchAnalyzeParams {
|
|
69
|
+
/**
|
|
70
|
+
* Creators to match against campaign. Max 100 creators per request.
|
|
71
|
+
*/
|
|
72
|
+
creators: Array<CreatorReferenceByID | ProfilesAPI.CreatorReferenceByHandle>;
|
|
73
|
+
search_intent: MatchAnalyzeParams.SearchIntent;
|
|
74
|
+
}
|
|
75
|
+
export declare namespace MatchAnalyzeParams {
|
|
76
|
+
interface SearchIntent {
|
|
77
|
+
/**
|
|
78
|
+
* Campaign search intent
|
|
79
|
+
*/
|
|
80
|
+
query: string;
|
|
81
|
+
/**
|
|
82
|
+
* Additional context for matching
|
|
83
|
+
*/
|
|
84
|
+
context?: string;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
export declare namespace Match {
|
|
88
|
+
export { type CreatorReferenceByID as CreatorReferenceByID, type MatchResult as MatchResult, type MatchAnalyzeResponse as MatchAnalyzeResponse, type MatchAnalyzeParams as MatchAnalyzeParams, };
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=match.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../src/resources/match.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;OASG;IACH,OAAO,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG9F;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;CACxB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC;IAE9B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAExC;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,yBAAiB,WAAW,CAAC;IAC3B,UAAiB,OAAO;QACtB,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ,QAAQ,CAAC,EAAE,WAAW,CAAC;QAEvB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,oBAAoB,GAAG,WAAW,CAAC,wBAAwB,CAAC,CAAC;IAE7E,aAAa,EAAE,kBAAkB,CAAC,YAAY,CAAC;CAChD;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,YAAY;QAC3B;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|