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,234 +0,0 @@
|
|
|
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 BrandSafety extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Analyze creators for brand safety risks using AI-powered content analysis.
|
|
8
|
-
*
|
|
9
|
-
* This endpoint evaluates creators for potential brand safety issues including
|
|
10
|
-
* controversial content, inappropriate associations, and reputation risks.
|
|
11
|
-
*
|
|
12
|
-
* **Pricing**: 2.0 credits per creator analyzed
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const response = await client.brandSafety.analyzeCreators({
|
|
17
|
-
* creator_ids: [
|
|
18
|
-
* '123e4567-e89b-12d3-a456-426614174000',
|
|
19
|
-
* '987fcdeb-51a2-43d1-9f12-345678901234',
|
|
20
|
-
* ],
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
analyzeCreators(body: BrandSafetyAnalyzeCreatorsParams, options?: RequestOptions): APIPromise<BrandSafetyAnalyzeCreatorsResponse>;
|
|
25
|
-
/**
|
|
26
|
-
* Analyze individual posts for brand safety risks.
|
|
27
|
-
*
|
|
28
|
-
* This endpoint evaluates specific posts for potential brand safety issues.
|
|
29
|
-
*
|
|
30
|
-
* **Pricing**: 0.5 credits per post analyzed
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```ts
|
|
34
|
-
* const response = await client.brandSafety.analyzePosts({
|
|
35
|
-
* posts: [
|
|
36
|
-
* {
|
|
37
|
-
* platform: 'instagram',
|
|
38
|
-
* url: 'https://www.instagram.com/p/Cx123Sample/',
|
|
39
|
-
* },
|
|
40
|
-
* {
|
|
41
|
-
* platform: 'instagram',
|
|
42
|
-
* post_id: '9876543210987654321',
|
|
43
|
-
* },
|
|
44
|
-
* ],
|
|
45
|
-
* });
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
analyzePosts(body: BrandSafetyAnalyzePostsParams, options?: RequestOptions): APIPromise<BrandSafetyAnalyzePostsResponse>;
|
|
49
|
-
/**
|
|
50
|
-
* Analyze social media profiles for brand safety risks.
|
|
51
|
-
*
|
|
52
|
-
* This endpoint evaluates profiles by username for potential brand safety issues.
|
|
53
|
-
*
|
|
54
|
-
* **Pricing**: 2.0 credits per profile analyzed
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```ts
|
|
58
|
-
* const response = await client.brandSafety.analyzeProfiles({
|
|
59
|
-
* profiles: [
|
|
60
|
-
* { platform: 'instagram', username: 'wellnessdaily' },
|
|
61
|
-
* ],
|
|
62
|
-
* });
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
analyzeProfiles(body: BrandSafetyAnalyzeProfilesParams, options?: RequestOptions): APIPromise<BrandSafetyAnalyzeProfilesResponse>;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Brand safety analysis results
|
|
69
|
-
*/
|
|
70
|
-
export interface BrandSafetyAnalysis {
|
|
71
|
-
/**
|
|
72
|
-
* Specific safety concerns detected. Empty array = no issues found.
|
|
73
|
-
*/
|
|
74
|
-
flags: Array<BrandSafetyFlag>;
|
|
75
|
-
metadata: BrandSafetyAnalysis.Metadata;
|
|
76
|
-
/**
|
|
77
|
-
* Whether the analysis completed successfully
|
|
78
|
-
*/
|
|
79
|
-
ok: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Confidence score (0-1) for the rating. >0.8 = high confidence.
|
|
82
|
-
*/
|
|
83
|
-
overall_confidence: number;
|
|
84
|
-
/**
|
|
85
|
-
* Brand safety rating. A = safe (no risks), B = moderate concerns, C = significant
|
|
86
|
-
* risks.
|
|
87
|
-
*/
|
|
88
|
-
rating: 'A' | 'B' | 'C';
|
|
89
|
-
/**
|
|
90
|
-
* Detailed reasoning explaining the analysis result. Includes context about
|
|
91
|
-
* content analyzed and decision factors.
|
|
92
|
-
*/
|
|
93
|
-
reasoning: string;
|
|
94
|
-
/**
|
|
95
|
-
* Human-readable summary of the assessment.
|
|
96
|
-
*/
|
|
97
|
-
summary: string;
|
|
98
|
-
}
|
|
99
|
-
export declare namespace BrandSafetyAnalysis {
|
|
100
|
-
interface Metadata {
|
|
101
|
-
/**
|
|
102
|
-
* When the analysis was performed
|
|
103
|
-
*/
|
|
104
|
-
analysis_date: string;
|
|
105
|
-
/**
|
|
106
|
-
* Information about the content that was analyzed
|
|
107
|
-
*/
|
|
108
|
-
content_analyzed: Metadata.ContentAnalyzed;
|
|
109
|
-
/**
|
|
110
|
-
* Version of the AI model used for analysis
|
|
111
|
-
*/
|
|
112
|
-
model_version: string;
|
|
113
|
-
/**
|
|
114
|
-
* Processing time in milliseconds
|
|
115
|
-
*/
|
|
116
|
-
processing_time_ms: number;
|
|
117
|
-
}
|
|
118
|
-
namespace Metadata {
|
|
119
|
-
/**
|
|
120
|
-
* Information about the content that was analyzed
|
|
121
|
-
*/
|
|
122
|
-
interface ContentAnalyzed {
|
|
123
|
-
/**
|
|
124
|
-
* Number of posts analyzed (for profile/creator analysis)
|
|
125
|
-
*/
|
|
126
|
-
posts_count?: number;
|
|
127
|
-
/**
|
|
128
|
-
* Length of text content analyzed
|
|
129
|
-
*/
|
|
130
|
-
text_length?: number;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Individual brand safety flag with detailed information
|
|
136
|
-
*/
|
|
137
|
-
export interface BrandSafetyFlag {
|
|
138
|
-
/**
|
|
139
|
-
* Confidence score for this specific flag (0-1). Higher values indicate greater
|
|
140
|
-
* certainty about this concern.
|
|
141
|
-
*/
|
|
142
|
-
confidence: number;
|
|
143
|
-
/**
|
|
144
|
-
* Human-readable description explaining the concern. Provides context about what
|
|
145
|
-
* was detected.
|
|
146
|
-
*/
|
|
147
|
-
description: string;
|
|
148
|
-
/**
|
|
149
|
-
* Severity level of the concern:
|
|
150
|
-
*
|
|
151
|
-
* - `low`: Minor issue, may be acceptable for some brands
|
|
152
|
-
* - `medium`: Moderate concern, evaluate based on brand guidelines
|
|
153
|
-
* - `high`: Significant risk, likely unsuitable for most brands
|
|
154
|
-
*/
|
|
155
|
-
severity: 'low' | 'medium' | 'high';
|
|
156
|
-
/**
|
|
157
|
-
* Category of brand safety concern detected:
|
|
158
|
-
*
|
|
159
|
-
* - `adult_sexual_content`: Sexually explicit or suggestive content
|
|
160
|
-
* - `profanity_strong_language`: Profanity or offensive language
|
|
161
|
-
* - `drugs_alcohol_tobacco`: Drug, alcohol, or tobacco-related content
|
|
162
|
-
* - `violence_weapons`: Violent content or weapon references
|
|
163
|
-
* - `hate_discrimination`: Hate speech or discriminatory content
|
|
164
|
-
* - `political_social_issues`: Politically divisive or controversial topics
|
|
165
|
-
* - `misinformation_conspiracy`: Misinformation or conspiracy theories
|
|
166
|
-
* - `misc`: Other brand safety concerns
|
|
167
|
-
*/
|
|
168
|
-
type: 'adult_sexual_content' | 'profanity_strong_language' | 'drugs_alcohol_tobacco' | 'violence_weapons' | 'hate_discrimination' | 'political_social_issues' | 'misinformation_conspiracy' | 'misc';
|
|
169
|
-
/**
|
|
170
|
-
* Specific examples or evidence that triggered this flag. May include post
|
|
171
|
-
* excerpts or contextual information.
|
|
172
|
-
*/
|
|
173
|
-
evidence?: Array<string>;
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Result of brand safety analysis
|
|
177
|
-
*/
|
|
178
|
-
export interface BrandSafetyResult {
|
|
179
|
-
/**
|
|
180
|
-
* Unique identifier for the analysis result
|
|
181
|
-
*/
|
|
182
|
-
id: string;
|
|
183
|
-
/**
|
|
184
|
-
* Brand safety analysis results
|
|
185
|
-
*/
|
|
186
|
-
analysis: BrandSafetyAnalysis;
|
|
187
|
-
}
|
|
188
|
-
export interface BrandSafetyAnalyzeCreatorsResponse {
|
|
189
|
-
results?: Array<BrandSafetyResult>;
|
|
190
|
-
}
|
|
191
|
-
export interface BrandSafetyAnalyzePostsResponse {
|
|
192
|
-
results?: Array<BrandSafetyResult>;
|
|
193
|
-
}
|
|
194
|
-
export interface BrandSafetyAnalyzeProfilesResponse {
|
|
195
|
-
results?: Array<BrandSafetyResult>;
|
|
196
|
-
}
|
|
197
|
-
export interface BrandSafetyAnalyzeCreatorsParams {
|
|
198
|
-
/**
|
|
199
|
-
* Creator IDs to analyze
|
|
200
|
-
*/
|
|
201
|
-
creator_ids: Array<string>;
|
|
202
|
-
}
|
|
203
|
-
export interface BrandSafetyAnalyzePostsParams {
|
|
204
|
-
posts: Array<BrandSafetyAnalyzePostsParams.BrandSafetyPostByURL | BrandSafetyAnalyzePostsParams.BrandSafetyPostByID>;
|
|
205
|
-
}
|
|
206
|
-
export declare namespace BrandSafetyAnalyzePostsParams {
|
|
207
|
-
interface BrandSafetyPostByURL {
|
|
208
|
-
/**
|
|
209
|
-
* Social media platform hosting the post
|
|
210
|
-
*/
|
|
211
|
-
platform: 'instagram';
|
|
212
|
-
/**
|
|
213
|
-
* URL of the post to scan
|
|
214
|
-
*/
|
|
215
|
-
url: string;
|
|
216
|
-
}
|
|
217
|
-
interface BrandSafetyPostByID {
|
|
218
|
-
/**
|
|
219
|
-
* Social media platform hosting the post
|
|
220
|
-
*/
|
|
221
|
-
platform: 'instagram';
|
|
222
|
-
/**
|
|
223
|
-
* Platform-specific post identifier
|
|
224
|
-
*/
|
|
225
|
-
post_id: string;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
export interface BrandSafetyAnalyzeProfilesParams {
|
|
229
|
-
profiles: Array<ProfilesAPI.CreatorReferenceByHandle>;
|
|
230
|
-
}
|
|
231
|
-
export declare namespace BrandSafety {
|
|
232
|
-
export { type BrandSafetyAnalysis as BrandSafetyAnalysis, type BrandSafetyFlag as BrandSafetyFlag, type BrandSafetyResult as BrandSafetyResult, type BrandSafetyAnalyzeCreatorsResponse as BrandSafetyAnalyzeCreatorsResponse, type BrandSafetyAnalyzePostsResponse as BrandSafetyAnalyzePostsResponse, type BrandSafetyAnalyzeProfilesResponse as BrandSafetyAnalyzeProfilesResponse, type BrandSafetyAnalyzeCreatorsParams as BrandSafetyAnalyzeCreatorsParams, type BrandSafetyAnalyzePostsParams as BrandSafetyAnalyzePostsParams, type BrandSafetyAnalyzeProfilesParams as BrandSafetyAnalyzeProfilesParams, };
|
|
233
|
-
}
|
|
234
|
-
//# sourceMappingURL=brand-safety.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brand-safety.d.mts","sourceRoot":"","sources":["../src/resources/brand-safety.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,234 +0,0 @@
|
|
|
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 BrandSafety extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Analyze creators for brand safety risks using AI-powered content analysis.
|
|
8
|
-
*
|
|
9
|
-
* This endpoint evaluates creators for potential brand safety issues including
|
|
10
|
-
* controversial content, inappropriate associations, and reputation risks.
|
|
11
|
-
*
|
|
12
|
-
* **Pricing**: 2.0 credits per creator analyzed
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const response = await client.brandSafety.analyzeCreators({
|
|
17
|
-
* creator_ids: [
|
|
18
|
-
* '123e4567-e89b-12d3-a456-426614174000',
|
|
19
|
-
* '987fcdeb-51a2-43d1-9f12-345678901234',
|
|
20
|
-
* ],
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
analyzeCreators(body: BrandSafetyAnalyzeCreatorsParams, options?: RequestOptions): APIPromise<BrandSafetyAnalyzeCreatorsResponse>;
|
|
25
|
-
/**
|
|
26
|
-
* Analyze individual posts for brand safety risks.
|
|
27
|
-
*
|
|
28
|
-
* This endpoint evaluates specific posts for potential brand safety issues.
|
|
29
|
-
*
|
|
30
|
-
* **Pricing**: 0.5 credits per post analyzed
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```ts
|
|
34
|
-
* const response = await client.brandSafety.analyzePosts({
|
|
35
|
-
* posts: [
|
|
36
|
-
* {
|
|
37
|
-
* platform: 'instagram',
|
|
38
|
-
* url: 'https://www.instagram.com/p/Cx123Sample/',
|
|
39
|
-
* },
|
|
40
|
-
* {
|
|
41
|
-
* platform: 'instagram',
|
|
42
|
-
* post_id: '9876543210987654321',
|
|
43
|
-
* },
|
|
44
|
-
* ],
|
|
45
|
-
* });
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
analyzePosts(body: BrandSafetyAnalyzePostsParams, options?: RequestOptions): APIPromise<BrandSafetyAnalyzePostsResponse>;
|
|
49
|
-
/**
|
|
50
|
-
* Analyze social media profiles for brand safety risks.
|
|
51
|
-
*
|
|
52
|
-
* This endpoint evaluates profiles by username for potential brand safety issues.
|
|
53
|
-
*
|
|
54
|
-
* **Pricing**: 2.0 credits per profile analyzed
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```ts
|
|
58
|
-
* const response = await client.brandSafety.analyzeProfiles({
|
|
59
|
-
* profiles: [
|
|
60
|
-
* { platform: 'instagram', username: 'wellnessdaily' },
|
|
61
|
-
* ],
|
|
62
|
-
* });
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
analyzeProfiles(body: BrandSafetyAnalyzeProfilesParams, options?: RequestOptions): APIPromise<BrandSafetyAnalyzeProfilesResponse>;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Brand safety analysis results
|
|
69
|
-
*/
|
|
70
|
-
export interface BrandSafetyAnalysis {
|
|
71
|
-
/**
|
|
72
|
-
* Specific safety concerns detected. Empty array = no issues found.
|
|
73
|
-
*/
|
|
74
|
-
flags: Array<BrandSafetyFlag>;
|
|
75
|
-
metadata: BrandSafetyAnalysis.Metadata;
|
|
76
|
-
/**
|
|
77
|
-
* Whether the analysis completed successfully
|
|
78
|
-
*/
|
|
79
|
-
ok: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Confidence score (0-1) for the rating. >0.8 = high confidence.
|
|
82
|
-
*/
|
|
83
|
-
overall_confidence: number;
|
|
84
|
-
/**
|
|
85
|
-
* Brand safety rating. A = safe (no risks), B = moderate concerns, C = significant
|
|
86
|
-
* risks.
|
|
87
|
-
*/
|
|
88
|
-
rating: 'A' | 'B' | 'C';
|
|
89
|
-
/**
|
|
90
|
-
* Detailed reasoning explaining the analysis result. Includes context about
|
|
91
|
-
* content analyzed and decision factors.
|
|
92
|
-
*/
|
|
93
|
-
reasoning: string;
|
|
94
|
-
/**
|
|
95
|
-
* Human-readable summary of the assessment.
|
|
96
|
-
*/
|
|
97
|
-
summary: string;
|
|
98
|
-
}
|
|
99
|
-
export declare namespace BrandSafetyAnalysis {
|
|
100
|
-
interface Metadata {
|
|
101
|
-
/**
|
|
102
|
-
* When the analysis was performed
|
|
103
|
-
*/
|
|
104
|
-
analysis_date: string;
|
|
105
|
-
/**
|
|
106
|
-
* Information about the content that was analyzed
|
|
107
|
-
*/
|
|
108
|
-
content_analyzed: Metadata.ContentAnalyzed;
|
|
109
|
-
/**
|
|
110
|
-
* Version of the AI model used for analysis
|
|
111
|
-
*/
|
|
112
|
-
model_version: string;
|
|
113
|
-
/**
|
|
114
|
-
* Processing time in milliseconds
|
|
115
|
-
*/
|
|
116
|
-
processing_time_ms: number;
|
|
117
|
-
}
|
|
118
|
-
namespace Metadata {
|
|
119
|
-
/**
|
|
120
|
-
* Information about the content that was analyzed
|
|
121
|
-
*/
|
|
122
|
-
interface ContentAnalyzed {
|
|
123
|
-
/**
|
|
124
|
-
* Number of posts analyzed (for profile/creator analysis)
|
|
125
|
-
*/
|
|
126
|
-
posts_count?: number;
|
|
127
|
-
/**
|
|
128
|
-
* Length of text content analyzed
|
|
129
|
-
*/
|
|
130
|
-
text_length?: number;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Individual brand safety flag with detailed information
|
|
136
|
-
*/
|
|
137
|
-
export interface BrandSafetyFlag {
|
|
138
|
-
/**
|
|
139
|
-
* Confidence score for this specific flag (0-1). Higher values indicate greater
|
|
140
|
-
* certainty about this concern.
|
|
141
|
-
*/
|
|
142
|
-
confidence: number;
|
|
143
|
-
/**
|
|
144
|
-
* Human-readable description explaining the concern. Provides context about what
|
|
145
|
-
* was detected.
|
|
146
|
-
*/
|
|
147
|
-
description: string;
|
|
148
|
-
/**
|
|
149
|
-
* Severity level of the concern:
|
|
150
|
-
*
|
|
151
|
-
* - `low`: Minor issue, may be acceptable for some brands
|
|
152
|
-
* - `medium`: Moderate concern, evaluate based on brand guidelines
|
|
153
|
-
* - `high`: Significant risk, likely unsuitable for most brands
|
|
154
|
-
*/
|
|
155
|
-
severity: 'low' | 'medium' | 'high';
|
|
156
|
-
/**
|
|
157
|
-
* Category of brand safety concern detected:
|
|
158
|
-
*
|
|
159
|
-
* - `adult_sexual_content`: Sexually explicit or suggestive content
|
|
160
|
-
* - `profanity_strong_language`: Profanity or offensive language
|
|
161
|
-
* - `drugs_alcohol_tobacco`: Drug, alcohol, or tobacco-related content
|
|
162
|
-
* - `violence_weapons`: Violent content or weapon references
|
|
163
|
-
* - `hate_discrimination`: Hate speech or discriminatory content
|
|
164
|
-
* - `political_social_issues`: Politically divisive or controversial topics
|
|
165
|
-
* - `misinformation_conspiracy`: Misinformation or conspiracy theories
|
|
166
|
-
* - `misc`: Other brand safety concerns
|
|
167
|
-
*/
|
|
168
|
-
type: 'adult_sexual_content' | 'profanity_strong_language' | 'drugs_alcohol_tobacco' | 'violence_weapons' | 'hate_discrimination' | 'political_social_issues' | 'misinformation_conspiracy' | 'misc';
|
|
169
|
-
/**
|
|
170
|
-
* Specific examples or evidence that triggered this flag. May include post
|
|
171
|
-
* excerpts or contextual information.
|
|
172
|
-
*/
|
|
173
|
-
evidence?: Array<string>;
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Result of brand safety analysis
|
|
177
|
-
*/
|
|
178
|
-
export interface BrandSafetyResult {
|
|
179
|
-
/**
|
|
180
|
-
* Unique identifier for the analysis result
|
|
181
|
-
*/
|
|
182
|
-
id: string;
|
|
183
|
-
/**
|
|
184
|
-
* Brand safety analysis results
|
|
185
|
-
*/
|
|
186
|
-
analysis: BrandSafetyAnalysis;
|
|
187
|
-
}
|
|
188
|
-
export interface BrandSafetyAnalyzeCreatorsResponse {
|
|
189
|
-
results?: Array<BrandSafetyResult>;
|
|
190
|
-
}
|
|
191
|
-
export interface BrandSafetyAnalyzePostsResponse {
|
|
192
|
-
results?: Array<BrandSafetyResult>;
|
|
193
|
-
}
|
|
194
|
-
export interface BrandSafetyAnalyzeProfilesResponse {
|
|
195
|
-
results?: Array<BrandSafetyResult>;
|
|
196
|
-
}
|
|
197
|
-
export interface BrandSafetyAnalyzeCreatorsParams {
|
|
198
|
-
/**
|
|
199
|
-
* Creator IDs to analyze
|
|
200
|
-
*/
|
|
201
|
-
creator_ids: Array<string>;
|
|
202
|
-
}
|
|
203
|
-
export interface BrandSafetyAnalyzePostsParams {
|
|
204
|
-
posts: Array<BrandSafetyAnalyzePostsParams.BrandSafetyPostByURL | BrandSafetyAnalyzePostsParams.BrandSafetyPostByID>;
|
|
205
|
-
}
|
|
206
|
-
export declare namespace BrandSafetyAnalyzePostsParams {
|
|
207
|
-
interface BrandSafetyPostByURL {
|
|
208
|
-
/**
|
|
209
|
-
* Social media platform hosting the post
|
|
210
|
-
*/
|
|
211
|
-
platform: 'instagram';
|
|
212
|
-
/**
|
|
213
|
-
* URL of the post to scan
|
|
214
|
-
*/
|
|
215
|
-
url: string;
|
|
216
|
-
}
|
|
217
|
-
interface BrandSafetyPostByID {
|
|
218
|
-
/**
|
|
219
|
-
* Social media platform hosting the post
|
|
220
|
-
*/
|
|
221
|
-
platform: 'instagram';
|
|
222
|
-
/**
|
|
223
|
-
* Platform-specific post identifier
|
|
224
|
-
*/
|
|
225
|
-
post_id: string;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
export interface BrandSafetyAnalyzeProfilesParams {
|
|
229
|
-
profiles: Array<ProfilesAPI.CreatorReferenceByHandle>;
|
|
230
|
-
}
|
|
231
|
-
export declare namespace BrandSafety {
|
|
232
|
-
export { type BrandSafetyAnalysis as BrandSafetyAnalysis, type BrandSafetyFlag as BrandSafetyFlag, type BrandSafetyResult as BrandSafetyResult, type BrandSafetyAnalyzeCreatorsResponse as BrandSafetyAnalyzeCreatorsResponse, type BrandSafetyAnalyzePostsResponse as BrandSafetyAnalyzePostsResponse, type BrandSafetyAnalyzeProfilesResponse as BrandSafetyAnalyzeProfilesResponse, type BrandSafetyAnalyzeCreatorsParams as BrandSafetyAnalyzeCreatorsParams, type BrandSafetyAnalyzePostsParams as BrandSafetyAnalyzePostsParams, type BrandSafetyAnalyzeProfilesParams as BrandSafetyAnalyzeProfilesParams, };
|
|
233
|
-
}
|
|
234
|
-
//# sourceMappingURL=brand-safety.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brand-safety.d.ts","sourceRoot":"","sources":["../src/resources/brand-safety.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,75 +0,0 @@
|
|
|
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.BrandSafety = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
class BrandSafety extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Analyze creators for brand safety risks using AI-powered content analysis.
|
|
9
|
-
*
|
|
10
|
-
* This endpoint evaluates creators for potential brand safety issues including
|
|
11
|
-
* controversial content, inappropriate associations, and reputation risks.
|
|
12
|
-
*
|
|
13
|
-
* **Pricing**: 2.0 credits per creator analyzed
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* const response = await client.brandSafety.analyzeCreators({
|
|
18
|
-
* creator_ids: [
|
|
19
|
-
* '123e4567-e89b-12d3-a456-426614174000',
|
|
20
|
-
* '987fcdeb-51a2-43d1-9f12-345678901234',
|
|
21
|
-
* ],
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
analyzeCreators(body, options) {
|
|
26
|
-
return this._client.post('/v1/brand-safety/creators', { body, ...options });
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Analyze individual posts for brand safety risks.
|
|
30
|
-
*
|
|
31
|
-
* This endpoint evaluates specific posts for potential brand safety issues.
|
|
32
|
-
*
|
|
33
|
-
* **Pricing**: 0.5 credits per post analyzed
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```ts
|
|
37
|
-
* const response = await client.brandSafety.analyzePosts({
|
|
38
|
-
* posts: [
|
|
39
|
-
* {
|
|
40
|
-
* platform: 'instagram',
|
|
41
|
-
* url: 'https://www.instagram.com/p/Cx123Sample/',
|
|
42
|
-
* },
|
|
43
|
-
* {
|
|
44
|
-
* platform: 'instagram',
|
|
45
|
-
* post_id: '9876543210987654321',
|
|
46
|
-
* },
|
|
47
|
-
* ],
|
|
48
|
-
* });
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
analyzePosts(body, options) {
|
|
52
|
-
return this._client.post('/v1/brand-safety/posts', { body, ...options });
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Analyze social media profiles for brand safety risks.
|
|
56
|
-
*
|
|
57
|
-
* This endpoint evaluates profiles by username for potential brand safety issues.
|
|
58
|
-
*
|
|
59
|
-
* **Pricing**: 2.0 credits per profile analyzed
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* ```ts
|
|
63
|
-
* const response = await client.brandSafety.analyzeProfiles({
|
|
64
|
-
* profiles: [
|
|
65
|
-
* { platform: 'instagram', username: 'wellnessdaily' },
|
|
66
|
-
* ],
|
|
67
|
-
* });
|
|
68
|
-
* ```
|
|
69
|
-
*/
|
|
70
|
-
analyzeProfiles(body, options) {
|
|
71
|
-
return this._client.post('/v1/brand-safety/profiles', { body, ...options });
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
exports.BrandSafety = BrandSafety;
|
|
75
|
-
//# sourceMappingURL=brand-safety.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brand-safety.js","sourceRoot":"","sources":["../src/resources/brand-safety.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,CACb,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,YAAY,CACV,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,eAAe,CACb,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF;AA9ED,kCA8EC"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
export class BrandSafety extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Analyze creators for brand safety risks using AI-powered content analysis.
|
|
6
|
-
*
|
|
7
|
-
* This endpoint evaluates creators for potential brand safety issues including
|
|
8
|
-
* controversial content, inappropriate associations, and reputation risks.
|
|
9
|
-
*
|
|
10
|
-
* **Pricing**: 2.0 credits per creator analyzed
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const response = await client.brandSafety.analyzeCreators({
|
|
15
|
-
* creator_ids: [
|
|
16
|
-
* '123e4567-e89b-12d3-a456-426614174000',
|
|
17
|
-
* '987fcdeb-51a2-43d1-9f12-345678901234',
|
|
18
|
-
* ],
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
analyzeCreators(body, options) {
|
|
23
|
-
return this._client.post('/v1/brand-safety/creators', { body, ...options });
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Analyze individual posts for brand safety risks.
|
|
27
|
-
*
|
|
28
|
-
* This endpoint evaluates specific posts for potential brand safety issues.
|
|
29
|
-
*
|
|
30
|
-
* **Pricing**: 0.5 credits per post analyzed
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```ts
|
|
34
|
-
* const response = await client.brandSafety.analyzePosts({
|
|
35
|
-
* posts: [
|
|
36
|
-
* {
|
|
37
|
-
* platform: 'instagram',
|
|
38
|
-
* url: 'https://www.instagram.com/p/Cx123Sample/',
|
|
39
|
-
* },
|
|
40
|
-
* {
|
|
41
|
-
* platform: 'instagram',
|
|
42
|
-
* post_id: '9876543210987654321',
|
|
43
|
-
* },
|
|
44
|
-
* ],
|
|
45
|
-
* });
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
analyzePosts(body, options) {
|
|
49
|
-
return this._client.post('/v1/brand-safety/posts', { body, ...options });
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Analyze social media profiles for brand safety risks.
|
|
53
|
-
*
|
|
54
|
-
* This endpoint evaluates profiles by username for potential brand safety issues.
|
|
55
|
-
*
|
|
56
|
-
* **Pricing**: 2.0 credits per profile analyzed
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```ts
|
|
60
|
-
* const response = await client.brandSafety.analyzeProfiles({
|
|
61
|
-
* profiles: [
|
|
62
|
-
* { platform: 'instagram', username: 'wellnessdaily' },
|
|
63
|
-
* ],
|
|
64
|
-
* });
|
|
65
|
-
* ```
|
|
66
|
-
*/
|
|
67
|
-
analyzeProfiles(body, options) {
|
|
68
|
-
return this._client.post('/v1/brand-safety/profiles', { body, ...options });
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=brand-safety.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brand-safety.mjs","sourceRoot":"","sources":["../src/resources/brand-safety.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,CACb,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,YAAY,CACV,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,eAAe,CACb,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF"}
|