@contenthero/sdk 0.3.4 → 0.3.5

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/dist/client.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  * SDK offers both a fire-and-forget `generate` and a `generateAndWait` that
7
7
  * polls to a terminal state for you.
8
8
  */
9
- import type { Folder, DerivedFolder, FolderItem, FolderItemRef, CreateFolderInput, UpdateFolderInput, AddAssetInput, AddBrandKitSectionInput, AddBrandKnowledgeInput, AddDestinationInput, Avatar, AvatarSummary, Balance, BrandAccountPerformance, BrandKit, BrandKitSectionRecord, BrandKitSummary, BrandKnowledgeDetail, BrandKnowledgeItem, BrandKnowledgeListResult, BrandKnowledgeMatch, ConnectedAccount, ListTrackedAccountsOptions, SearchBrandKnowledgeOptions, CostEstimate, CreatePostInput, UpdateBrandKitInput, CreateBrandKitInput, ExtractionOutcome, UpdateBrandKitSectionInput, InspirationAccountDetail, InspirationContent, ListOutliersOptions, OutliersResult, TrackedAccount, GenerateBoardRequest, GenerateRequest, GenerateResult, Generation, EditAudioRequest, EditAudioResult, ListMediaOptions, ListVoicesOptions, ListBrandKitsOptions, ListPostsOptions, FavoriteInput, ArchiveInput, ApplyEditorOpsInput, ApplyEditorOpsResult, ProjectSummary, ProjectDetail, LiveContextResult, GetContextInput, PreviewInput, PreviewJob, PreviewStatus, ListProjectsInput, CreateProjectInput, ImportProjectInput, StartExportInput, ExportJob, ExportFormatCatalog, LayerTypeCatalog, TimelineTypeCatalog, TranscriptResult, MediaItem, MediaSummary, MediaSource, SearchMediaResult, SearchMediaOptions, MediaBatchItem, MediaBatchResult, CreateMediaUploadInput, CreateMediaUploadResult, ImportMediaInput, UploadedMedia, ModelInfo, PlatformSummary, PlatformSchema, Element, CreateElementRequest, PipelineStage, PostAsset, PostDestination, PostDetail, PostListResult, PostPlatform, PostSummary, Tag, PublishPostResult, TranscribeRequest, Transcription, UpdateDestinationInput, UpdatePostInput, Voice, VoiceSummary, WaitOptions } from './types.js';
9
+ import type { Folder, DerivedFolder, FolderItem, CreateFolderInput, UpdateFolderInput, AddBrandKnowledgeInput, Avatar, AvatarSummary, Balance, BrandKit, BrandKitSummary, BrandKnowledgeDetail, BrandKnowledgeItem, BrandKnowledgeListResult, BrandKnowledgeMatch, ConnectedAccount, ListAccountsOptions, ListContentOptions, GetContentOptions, ContentListResult, ContentDetail, AccountDetail, SearchBrandKnowledgeOptions, CostEstimate, CreatePostInput, UpdateBrandKitInput, CreateBrandKitInput, ExtractionOutcome, TrackedAccount, GenerateBoardRequest, GenerateRequest, GenerateResult, Generation, EditAudioRequest, EditAudioResult, ListMediaOptions, ListVoicesOptions, ListBrandKitsOptions, ListPostsOptions, FavoriteInput, ArchiveInput, ApplyEditorOpsInput, ApplyEditorOpsResult, ProjectSummary, ProjectDetail, LiveContextResult, GetContextInput, PreviewInput, PreviewJob, PreviewStatus, ListProjectsInput, CreateProjectInput, ImportProjectInput, StartExportInput, ExportJob, ExportFormatCatalog, LayerTypeCatalog, TimelineTypeCatalog, TranscriptResult, MediaItem, MediaSummary, MediaSource, SearchMediaResult, SearchMediaOptions, MediaBatchItem, MediaBatchResult, CreateMediaUploadInput, CreateMediaUploadResult, ImportMediaInput, UploadedMedia, ModelInfo, PlatformSummary, PlatformSchema, Element, CreateElementRequest, PipelineStage, PostDetail, PostListResult, PostPlatform, PostSummary, Tag, PublishPostResult, TranscribeRequest, Transcription, UpdatePostInput, Voice, VoiceSummary, WaitOptions } from './types.js';
10
10
  /** Minimal fetch signature, so a custom implementation can be injected. */
11
11
  export type FetchLike = (input: string, init?: RequestInit) => Promise<Response>;
12
12
  export interface ContentHeroOptions {
@@ -166,10 +166,6 @@ export declare class ContentHero {
166
166
  * updated kit.
167
167
  */
168
168
  updateBrandKit(brandKitId: string, input: UpdateBrandKitInput): Promise<BrandKit>;
169
- /** Add a curated section to a brand kit. Requires the `brandkit:write` scope. */
170
- addBrandKitSection(brandKitId: string, input: AddBrandKitSectionInput): Promise<BrandKitSectionRecord>;
171
- /** Update a brand-kit section. Requires the `brandkit:write` scope. */
172
- updateBrandKitSection(brandKitId: string, sectionId: string, input: UpdateBrandKitSectionInput): Promise<BrandKitSectionRecord>;
173
169
  /** The complete, paginated index of a brand kit's knowledge items. Requires `brandkit:read`. */
174
170
  listBrandKnowledge(brandKitId: string, options?: {
175
171
  limit?: number;
@@ -220,11 +216,17 @@ export declare class ContentHero {
220
216
  items: FolderItem[];
221
217
  }>;
222
218
  createFolder(input: CreateFolderInput): Promise<Folder>;
219
+ /**
220
+ * Update a folder: rename it, move it (`parentId`), re-query a smart folder, and file or unfile items.
221
+ *
222
+ * `addItems` / `removeItems` are DELTAS, because folder membership is many-to-many: an item lives in
223
+ * several folders at once, so a declarative list would silently unfile everything absent from it.
224
+ * `folderIds` applies the patch to several folders; attribute fields still need exactly one.
225
+ */
223
226
  updateFolder(folderId: string, patch: UpdateFolderInput): Promise<Folder>;
227
+ /** Patch several folders at once (bulk moves and filing). Returns every folder that was found. */
228
+ updateFolders(folderIds: string[], patch: UpdateFolderInput): Promise<Folder[]>;
224
229
  deleteFolder(folderId: string): Promise<void>;
225
- /** File an item into a manual folder (a pointer; no bytes move). */
226
- addToFolder(folderId: string, ref: FolderItemRef): Promise<void>;
227
- removeFromFolder(folderId: string, ref: FolderItemRef): Promise<void>;
228
230
  /**
229
231
  * Resolve a batch of media references to vision-ready URLs + light metadata (the
230
232
  * micro drill-in behind get_context's macro screenshot). Each item is a raw
@@ -328,25 +330,6 @@ export declare class ContentHero {
328
330
  * per-account customizable.
329
331
  */
330
332
  listPipelineStages(): Promise<PipelineStage[]>;
331
- /** Attach (or replace) a destination on a post. Upserts on platform. */
332
- addPostDestination(postId: string, input: AddDestinationInput): Promise<PostDestination>;
333
- /** Update one of a post's destinations. */
334
- updatePostDestination(postId: string, destinationId: string, input: UpdateDestinationInput): Promise<PostDestination>;
335
- /** Attach an asset to a post by URL or outputId. */
336
- addPostAsset(postId: string, input: AddAssetInput): Promise<PostAsset>;
337
- /**
338
- * Reorder a post's assets (e.g. carousel slide order). `assetIds` must list all
339
- * of the post's asset ids in the desired order. Returns the assets reordered.
340
- */
341
- reorderPostAssets(postId: string, assetIds: string[]): Promise<PostAsset[]>;
342
- /** Detach an asset from a post. */
343
- removePostAsset(postId: string, assetId: string): Promise<{
344
- id: string;
345
- }>;
346
- /** Detach a destination from a post. */
347
- removePostDestination(postId: string, destinationId: string): Promise<{
348
- id: string;
349
- }>;
350
333
  /** List the account's tags. */
351
334
  listTags(): Promise<Tag[]>;
352
335
  /** Create a tag (the name is lowercased). Throws if it already exists. */
@@ -357,11 +340,6 @@ export declare class ContentHero {
357
340
  deleteTag(id: string): Promise<{
358
341
  id: string;
359
342
  }>;
360
- /**
361
- * Schedule a post: set (or clear, with null) the publish time on the post and
362
- * all its destinations. This queues; publishing now is `publishPost`.
363
- */
364
- schedulePost(postId: string, scheduledAt: string | null): Promise<PostSummary>;
365
343
  /**
366
344
  * Publish a post NOW. Publishes a single platform when `platform` is given,
367
345
  * otherwise every destination. Requires a key with the `publish:write` scope.
@@ -370,18 +348,35 @@ export declare class ContentHero {
370
348
  publishPost(postId: string, options?: {
371
349
  platform?: PostPlatform;
372
350
  }): Promise<PublishPostResult>;
373
- /** List the account's tracked inspiration accounts (creators/competitors). */
374
- listInspirationAccounts(options?: ListTrackedAccountsOptions): Promise<TrackedAccount[]>;
375
- /** Get one inspiration account with its content count and top outliers. */
376
- getInspirationAccount(accountId: string): Promise<InspirationAccountDetail>;
377
- /** List top-performing content from the creators the account tracks, by outlier score. */
378
- listOutliers(options?: ListOutliersOptions): Promise<OutliersResult>;
379
- /** Get one tracked-content item in full (incl. transcript, engagement, hashtags). */
380
- getInspirationContent(contentId: string): Promise<InspirationContent>;
381
- /** List the account's own brand social accounts (the basis for own-performance reads). */
382
- listBrandAccounts(options?: ListTrackedAccountsOptions): Promise<TrackedAccount[]>;
383
- /** Get the performance summary for one of the account's brand accounts. */
384
- getBrandAccountPerformance(accountId: string): Promise<BrandAccountPerformance>;
351
+ /**
352
+ * The social accounts the caller tracks, both tiers by default.
353
+ *
354
+ * `accountType` narrows to `inspiration` (creators and competitors they learn from) or `brand` (their own
355
+ * profiles). Every row reports its own `accountType`, so one list answers both questions. This replaces
356
+ * `listInspirationAccounts` and `listBrandAccounts`, which were one query with a different literal.
357
+ */
358
+ listAccounts(options?: ListAccountsOptions): Promise<TrackedAccount[]>;
359
+ /**
360
+ * One tracked account with its performance: content count, totals, averages, top and recent content.
361
+ * Works for either tier; the tier is reported, not required.
362
+ */
363
+ getAccount(accountId: string): Promise<AccountDetail>;
364
+ /**
365
+ * The social content the caller tracks, ranked by outlier score by default.
366
+ *
367
+ * Spans the creators they watch AND their own posts (`scope`, default `all`); each row carries `isOwn`.
368
+ * Filter by platform, content type, a published window, and ranges over score, views, duration and
369
+ * follower count.
370
+ */
371
+ listContent(options?: ListContentOptions): Promise<ContentListResult>;
372
+ /**
373
+ * One tracked post in full: engagement, outlier score, hashtags, keywords, mentions, audio info.
374
+ *
375
+ * The transcript is OPT-IN and windowable, because a sixty-minute video is a large document: ask for
376
+ * `text` or `segments`, and narrow segments with `startMs`/`endMs` or `transcriptSearch`. Throws
377
+ * NotFoundError both when the post does not exist and when the caller has no relationship to it.
378
+ */
379
+ getContent(contentId: string, options?: GetContentOptions): Promise<ContentDetail>;
385
380
  /** List the account's connected social accounts (publish targets), default first. */
386
381
  listConnectedAccounts(): Promise<ConnectedAccount[]>;
387
382
  /** Get one connected account by id. Throws NotFoundError if absent. */
@@ -392,28 +387,22 @@ export declare class ContentHero {
392
387
  * Pass `{ assetType, id }` for a top-level asset (post, voice, brand_kit,
393
388
  * project, inspiration_content, gallery), or `{ id, variationIndex }` to
394
389
  * favorite a single studio output variation slot (id is a studio output id).
395
- * Idempotent.
390
+ *
391
+ * `favorited` defaults to true; pass false to CLEAR it. That boolean is what replaced the separate
392
+ * `unfavorite` method, which was this call with one value flipped. Idempotent in both directions.
396
393
  */
397
394
  favorite(input: FavoriteInput): Promise<void>;
398
- /**
399
- * Clear the favorite flag on an asset. Requires the `favorites:write` scope.
400
- * Same target shape as `favorite`. Idempotent.
401
- */
402
- unfavorite(input: FavoriteInput): Promise<void>;
403
395
  /**
404
396
  * Archive an asset. Requires the `favorites:write` scope.
405
397
  *
406
398
  * Pass `{ assetType, id }` for a top-level asset (post, brand_kit,
407
399
  * brand_kit_section, project), or `{ id, variationIndex }` to archive a single
408
400
  * studio output variation slot. Archiving a post sets its status to 'archived'.
409
- * Idempotent.
401
+ *
402
+ * `archived` defaults to true; pass false to RESTORE (a post goes back to 'draft'). That boolean is what
403
+ * replaced the separate `unarchive` method. Idempotent in both directions.
410
404
  */
411
405
  archive(input: ArchiveInput): Promise<void>;
412
- /**
413
- * Unarchive an asset. Requires the `favorites:write` scope. Same target shape
414
- * as `archive`. Unarchiving a post restores it to 'draft'. Idempotent.
415
- */
416
- unarchive(input: ArchiveInput): Promise<void>;
417
406
  /**
418
407
  * List the caller's projects (both editor + canvas) as lightweight summaries. Filter by archived /
419
408
  * favorited state, by `kind`, or by a title search. Requires the `editor:read` scope.
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH,OAAO,KAAK,EACV,MAAM,EACN,aAAa,EACb,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,MAAM,EACN,aAAa,EACb,OAAO,EACP,uBAAuB,EACvB,QAAQ,EACR,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,wBAAwB,EACxB,mBAAmB,EACnB,gBAAgB,EAChB,0BAA0B,EAC1B,2BAA2B,EAC3B,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EA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"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH,OAAO,KAAK,EACV,MAAM,EACN,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EAEjB,sBAAsB,EACtB,MAAM,EACN,aAAa,EACb,OAAO,EACP,QAAQ,EACR,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,wBAAwB,EACxB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,2BAA2B,EAC3B,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,SAAS,EACT,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,eAAe,EACf,cAAc,EACd,OAAO,EACP,oBAAoB,EACpB,aAAa,EAGb,UAAU,EACV,cAAc,EACd,YAAY,EACZ,WAAW,EACX,GAAG,EACH,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,eAAe,EAGf,KAAK,EACL,YAAY,EACZ,WAAW,EACZ,MA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,CAAA;QACxB,cAAc,CAAC,EAAE,MAAM,CAAA;QACvB,YAAY,CAAC,EAAE,MAAM,CAAA;KACjB,GACL,OAAO,CAAC,gBAAgB,CAAC;IAY5B,gFAAgF;YAClE,OAAO;CAoCtB"}
package/dist/client.js CHANGED
@@ -283,16 +283,6 @@ export class ContentHero {
283
283
  async updateBrandKit(brandKitId, input) {
284
284
  return this.request('PATCH', `/api/v1/brand-kits/${encodeURIComponent(brandKitId)}`, input);
285
285
  }
286
- /** Add a curated section to a brand kit. Requires the `brandkit:write` scope. */
287
- async addBrandKitSection(brandKitId, input) {
288
- const data = await this.request('POST', `/api/v1/brand-kits/${encodeURIComponent(brandKitId)}/sections`, input);
289
- return data.section;
290
- }
291
- /** Update a brand-kit section. Requires the `brandkit:write` scope. */
292
- async updateBrandKitSection(brandKitId, sectionId, input) {
293
- const data = await this.request('PATCH', `/api/v1/brand-kits/${encodeURIComponent(brandKitId)}/sections/${encodeURIComponent(sectionId)}`, input);
294
- return data.section;
295
- }
296
286
  // -------------------------------------------------------------------------
297
287
  // Brand knowledge (a brand kit's knowledge base)
298
288
  // -------------------------------------------------------------------------
@@ -400,20 +390,31 @@ export class ContentHero {
400
390
  const data = await this.request('POST', '/api/v1/library/folders', input);
401
391
  return data.folder;
402
392
  }
393
+ /**
394
+ * Update a folder: rename it, move it (`parentId`), re-query a smart folder, and file or unfile items.
395
+ *
396
+ * `addItems` / `removeItems` are DELTAS, because folder membership is many-to-many: an item lives in
397
+ * several folders at once, so a declarative list would silently unfile everything absent from it.
398
+ * `folderIds` applies the patch to several folders; attribute fields still need exactly one.
399
+ */
403
400
  async updateFolder(folderId, patch) {
404
401
  const data = await this.request('PATCH', `/api/v1/library/folders/${encodeURIComponent(folderId)}`, patch);
405
402
  return data.folder;
406
403
  }
404
+ /** Patch several folders at once (bulk moves and filing). Returns every folder that was found. */
405
+ async updateFolders(folderIds, patch) {
406
+ const first = folderIds[0];
407
+ if (!first)
408
+ throw new Error('updateFolders needs at least one folder id');
409
+ const data = await this.request('PATCH',
410
+ // The path names one folder because the route is per-folder; `folderIds` in the body is what widens
411
+ // it. The first id is as good as any for addressing.
412
+ `/api/v1/library/folders/${encodeURIComponent(first)}`, { ...patch, folderIds });
413
+ return data.folders;
414
+ }
407
415
  async deleteFolder(folderId) {
408
416
  await this.request('DELETE', `/api/v1/library/folders/${encodeURIComponent(folderId)}`);
409
417
  }
410
- /** File an item into a manual folder (a pointer; no bytes move). */
411
- async addToFolder(folderId, ref) {
412
- await this.request('POST', `/api/v1/library/folders/${encodeURIComponent(folderId)}/items`, ref);
413
- }
414
- async removeFromFolder(folderId, ref) {
415
- await this.request('DELETE', `/api/v1/library/folders/${encodeURIComponent(folderId)}/items`, ref);
416
- }
417
418
  /**
418
419
  * Resolve a batch of media references to vision-ready URLs + light metadata (the
419
420
  * micro drill-in behind get_context's macro screenshot). Each item is a raw
@@ -576,8 +577,6 @@ export class ContentHero {
576
577
  q.set('platform', options.platform);
577
578
  if (options.pipelineStage)
578
579
  q.set('pipeline_stage', options.pipelineStage);
579
- if (options.folderId)
580
- q.set('folder_id', options.folderId);
581
580
  if (options.isFavorite)
582
581
  q.set('is_favorite', 'true');
583
582
  if (options.search)
@@ -613,37 +612,6 @@ export class ContentHero {
613
612
  const data = await this.request('GET', '/api/v1/pipeline-stages');
614
613
  return data.stages;
615
614
  }
616
- /** Attach (or replace) a destination on a post. Upserts on platform. */
617
- async addPostDestination(postId, input) {
618
- const data = await this.request('POST', `/api/v1/posts/${encodeURIComponent(postId)}/destinations`, input);
619
- return data.destination;
620
- }
621
- /** Update one of a post's destinations. */
622
- async updatePostDestination(postId, destinationId, input) {
623
- const data = await this.request('PATCH', `/api/v1/posts/${encodeURIComponent(postId)}/destinations?destination_id=${encodeURIComponent(destinationId)}`, input);
624
- return data.destination;
625
- }
626
- /** Attach an asset to a post by URL or outputId. */
627
- async addPostAsset(postId, input) {
628
- const data = await this.request('POST', `/api/v1/posts/${encodeURIComponent(postId)}/assets`, input);
629
- return data.asset;
630
- }
631
- /**
632
- * Reorder a post's assets (e.g. carousel slide order). `assetIds` must list all
633
- * of the post's asset ids in the desired order. Returns the assets reordered.
634
- */
635
- async reorderPostAssets(postId, assetIds) {
636
- const data = await this.request('PATCH', `/api/v1/posts/${encodeURIComponent(postId)}/assets`, { assetIds });
637
- return data.assets;
638
- }
639
- /** Detach an asset from a post. */
640
- async removePostAsset(postId, assetId) {
641
- return this.request('DELETE', `/api/v1/posts/${encodeURIComponent(postId)}/assets?asset_id=${encodeURIComponent(assetId)}`);
642
- }
643
- /** Detach a destination from a post. */
644
- async removePostDestination(postId, destinationId) {
645
- return this.request('DELETE', `/api/v1/posts/${encodeURIComponent(postId)}/destinations?destination_id=${encodeURIComponent(destinationId)}`);
646
- }
647
615
  // -------------------------------------------------------------------------
648
616
  // Tags (the organizational tag library; set a post's tags via the `tags`
649
617
  // field on createPost / updatePost)
@@ -667,14 +635,6 @@ export class ContentHero {
667
635
  async deleteTag(id) {
668
636
  return this.request('DELETE', `/api/v1/tags/${encodeURIComponent(id)}`);
669
637
  }
670
- /**
671
- * Schedule a post: set (or clear, with null) the publish time on the post and
672
- * all its destinations. This queues; publishing now is `publishPost`.
673
- */
674
- async schedulePost(postId, scheduledAt) {
675
- const data = await this.request('POST', `/api/v1/posts/${encodeURIComponent(postId)}/schedule`, { scheduledAt });
676
- return data.post;
677
- }
678
638
  /**
679
639
  * Publish a post NOW. Publishes a single platform when `platform` is given,
680
640
  * otherwise every destination. Requires a key with the `publish:write` scope.
@@ -686,29 +646,77 @@ export class ContentHero {
686
646
  // -------------------------------------------------------------------------
687
647
  // Inspiration / research reads
688
648
  // -------------------------------------------------------------------------
689
- /** List the account's tracked inspiration accounts (creators/competitors). */
690
- async listInspirationAccounts(options = {}) {
691
- const qs = options.brandKitId ? `?brand_kit_id=${encodeURIComponent(options.brandKitId)}` : '';
692
- const data = await this.request('GET', `/api/v1/inspiration/accounts${qs}`);
649
+ /**
650
+ * The social accounts the caller tracks, both tiers by default.
651
+ *
652
+ * `accountType` narrows to `inspiration` (creators and competitors they learn from) or `brand` (their own
653
+ * profiles). Every row reports its own `accountType`, so one list answers both questions. This replaces
654
+ * `listInspirationAccounts` and `listBrandAccounts`, which were one query with a different literal.
655
+ */
656
+ async listAccounts(options = {}) {
657
+ const q = new URLSearchParams();
658
+ if (options.accountType)
659
+ q.set('account_type', options.accountType);
660
+ if (options.brandKitId)
661
+ q.set('brand_kit_id', options.brandKitId);
662
+ const qs = q.toString();
663
+ const data = await this.request('GET', `/api/v1/accounts${qs ? `?${qs}` : ''}`);
693
664
  return data.accounts;
694
665
  }
695
- /** Get one inspiration account with its content count and top outliers. */
696
- async getInspirationAccount(accountId) {
697
- return this.request('GET', `/api/v1/inspiration/accounts/${encodeURIComponent(accountId)}`);
666
+ /**
667
+ * One tracked account with its performance: content count, totals, averages, top and recent content.
668
+ * Works for either tier; the tier is reported, not required.
669
+ */
670
+ async getAccount(accountId) {
671
+ return this.request('GET', `/api/v1/accounts/${encodeURIComponent(accountId)}`);
698
672
  }
699
- /** List top-performing content from the creators the account tracks, by outlier score. */
700
- async listOutliers(options = {}) {
673
+ /**
674
+ * The social content the caller tracks, ranked by outlier score by default.
675
+ *
676
+ * Spans the creators they watch AND their own posts (`scope`, default `all`); each row carries `isOwn`.
677
+ * Filter by platform, content type, a published window, and ranges over score, views, duration and
678
+ * follower count.
679
+ */
680
+ async listContent(options = {}) {
701
681
  const q = new URLSearchParams();
682
+ if (options.scope)
683
+ q.set('scope', options.scope);
702
684
  if (options.platform)
703
685
  q.set('platform', options.platform);
704
686
  if (options.contentType)
705
687
  q.set('content_type', options.contentType);
706
- if (options.minOutlierScore != null)
707
- q.set('min_outlier_score', String(options.minOutlierScore));
688
+ if (options.outlierScoreMin != null)
689
+ q.set('outlier_score_min', String(options.outlierScoreMin));
690
+ if (options.outlierScoreMax != null)
691
+ q.set('outlier_score_max', String(options.outlierScoreMax));
692
+ if (options.viewsMin != null)
693
+ q.set('views_min', String(options.viewsMin));
694
+ if (options.viewsMax != null)
695
+ q.set('views_max', String(options.viewsMax));
696
+ if (options.durationMin != null)
697
+ q.set('duration_min', String(options.durationMin));
698
+ if (options.durationMax != null)
699
+ q.set('duration_max', String(options.durationMax));
700
+ if (options.subscribersMin != null)
701
+ q.set('subscribers_min', String(options.subscribersMin));
702
+ if (options.subscribersMax != null)
703
+ q.set('subscribers_max', String(options.subscribersMax));
704
+ if (options.publishedAfter)
705
+ q.set('published_after', options.publishedAfter);
706
+ if (options.publishedBefore)
707
+ q.set('published_before', options.publishedBefore);
708
+ if (options.publicationDate)
709
+ q.set('publication_date', options.publicationDate);
708
710
  if (options.search)
709
711
  q.set('search', options.search);
710
712
  if (options.sortBy)
711
713
  q.set('sort_by', options.sortBy);
714
+ if (options.sortOrder)
715
+ q.set('sort_order', options.sortOrder);
716
+ if (options.accountIds?.length)
717
+ q.set('account_ids', options.accountIds.join(','));
718
+ if (options.addedByYou)
719
+ q.set('added_by_you', 'true');
712
720
  if (options.brandKitId)
713
721
  q.set('brand_kit_id', options.brandKitId);
714
722
  if (options.favorited)
@@ -718,22 +726,27 @@ export class ContentHero {
718
726
  if (options.offset != null)
719
727
  q.set('offset', String(options.offset));
720
728
  const qs = q.toString();
721
- return this.request('GET', `/api/v1/inspiration/outliers${qs ? `?${qs}` : ''}`);
722
- }
723
- /** Get one tracked-content item in full (incl. transcript, engagement, hashtags). */
724
- async getInspirationContent(contentId) {
725
- const data = await this.request('GET', `/api/v1/inspiration/content/${encodeURIComponent(contentId)}`);
726
- return data.content;
729
+ return this.request('GET', `/api/v1/content${qs ? `?${qs}` : ''}`);
727
730
  }
728
- /** List the account's own brand social accounts (the basis for own-performance reads). */
729
- async listBrandAccounts(options = {}) {
730
- const qs = options.brandKitId ? `?brand_kit_id=${encodeURIComponent(options.brandKitId)}` : '';
731
- const data = await this.request('GET', `/api/v1/brand-accounts${qs}`);
732
- return data.accounts;
733
- }
734
- /** Get the performance summary for one of the account's brand accounts. */
735
- async getBrandAccountPerformance(accountId) {
736
- return this.request('GET', `/api/v1/brand-accounts/${encodeURIComponent(accountId)}/performance`);
731
+ /**
732
+ * One tracked post in full: engagement, outlier score, hashtags, keywords, mentions, audio info.
733
+ *
734
+ * The transcript is OPT-IN and windowable, because a sixty-minute video is a large document: ask for
735
+ * `text` or `segments`, and narrow segments with `startMs`/`endMs` or `transcriptSearch`. Throws
736
+ * NotFoundError both when the post does not exist and when the caller has no relationship to it.
737
+ */
738
+ async getContent(contentId, options = {}) {
739
+ const q = new URLSearchParams();
740
+ if (options.transcript)
741
+ q.set('transcript', options.transcript);
742
+ if (options.startMs != null)
743
+ q.set('start_ms', String(options.startMs));
744
+ if (options.endMs != null)
745
+ q.set('end_ms', String(options.endMs));
746
+ if (options.transcriptSearch)
747
+ q.set('transcript_search', options.transcriptSearch);
748
+ const qs = q.toString();
749
+ return this.request('GET', `/api/v1/content/${encodeURIComponent(contentId)}${qs ? `?${qs}` : ''}`);
737
750
  }
738
751
  // -------------------------------------------------------------------------
739
752
  // Connected accounts (publish targets)
@@ -757,36 +770,26 @@ export class ContentHero {
757
770
  * Pass `{ assetType, id }` for a top-level asset (post, voice, brand_kit,
758
771
  * project, inspiration_content, gallery), or `{ id, variationIndex }` to
759
772
  * favorite a single studio output variation slot (id is a studio output id).
760
- * Idempotent.
773
+ *
774
+ * `favorited` defaults to true; pass false to CLEAR it. That boolean is what replaced the separate
775
+ * `unfavorite` method, which was this call with one value flipped. Idempotent in both directions.
761
776
  */
762
777
  async favorite(input) {
763
778
  await this.request('POST', '/api/v1/favorite', input);
764
779
  }
765
- /**
766
- * Clear the favorite flag on an asset. Requires the `favorites:write` scope.
767
- * Same target shape as `favorite`. Idempotent.
768
- */
769
- async unfavorite(input) {
770
- await this.request('POST', '/api/v1/unfavorite', input);
771
- }
772
780
  /**
773
781
  * Archive an asset. Requires the `favorites:write` scope.
774
782
  *
775
783
  * Pass `{ assetType, id }` for a top-level asset (post, brand_kit,
776
784
  * brand_kit_section, project), or `{ id, variationIndex }` to archive a single
777
785
  * studio output variation slot. Archiving a post sets its status to 'archived'.
778
- * Idempotent.
786
+ *
787
+ * `archived` defaults to true; pass false to RESTORE (a post goes back to 'draft'). That boolean is what
788
+ * replaced the separate `unarchive` method. Idempotent in both directions.
779
789
  */
780
790
  async archive(input) {
781
791
  await this.request('POST', '/api/v1/archive', input);
782
792
  }
783
- /**
784
- * Unarchive an asset. Requires the `favorites:write` scope. Same target shape
785
- * as `archive`. Unarchiving a post restores it to 'draft'. Idempotent.
786
- */
787
- async unarchive(input) {
788
- await this.request('POST', '/api/v1/unarchive', input);
789
- }
790
793
  // -------------------------------------------------------------------------
791
794
  // Editor / canvas ops (programmatic parity with the manual UI + in-app agent)
792
795
  // -------------------------------------------------------------------------