@recursiv/sdk 0.7.49 → 0.7.50

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/index.d.ts CHANGED
@@ -180,7 +180,7 @@ export { VideoResource } from './resources/video.js';
180
180
  export type { VideoUploadCreds, CreateVideoUploadResult, VideoStatusInfo, VideoPlaybackToken, } from './resources/video.js';
181
181
  export { AppSubscriptionsResource } from './resources/app-subscriptions.js';
182
182
  export type { AppSubscriptionCheckoutResult, AppSubscriptionPortalResult, AppSubscriptionStatusResult, } from './resources/app-subscriptions.js';
183
- export type { CuratorSource, CuratorPrompt, CuratorRunInput, CuratorRunResult, CuratorTodayEdition, CuratorTodayResponse, CuratorTodaySource, CuratorTodayStory, } from './resources/curator.js';
183
+ export type { CuratorSource, CuratorPrompt, CuratorRunInput, CuratorRunResult, CuratorTodayEdition, CuratorTodayExcerpt, CuratorTodayLeadImage, CuratorTodayRadar, CuratorTodayReaction, CuratorTodayResponse, CuratorTodaySource, CuratorTodayStory, } from './resources/curator.js';
184
184
  export { ReportsResource } from './resources/reports.js';
185
185
  export type { ReportTargetType, ReportStatus, CreateReportInput, ReportRecord, ResolveReportInput, } from './resources/reports.js';
186
186
  export { ModerationResource } from './resources/moderation.js';
@@ -116,6 +116,40 @@ export interface CuratorTodaySource {
116
116
  url: string;
117
117
  published_at: string | null;
118
118
  }
119
+ /** One outlet's own words about a world story, quoted with the outlet. */
120
+ export interface CuratorTodayExcerpt {
121
+ outlet: string;
122
+ lane: CuratorOutletLane;
123
+ title: string;
124
+ url: string;
125
+ text: string;
126
+ }
127
+ /** An image a Minds member posted about the story. */
128
+ export interface CuratorTodayLeadImage {
129
+ url: string;
130
+ post_id: string;
131
+ author_name: string | null;
132
+ author_username: string | null;
133
+ }
134
+ /** A post the topic radar counted under the story. Remote posts carry no link to their own network. */
135
+ export interface CuratorTodayReaction {
136
+ cluster_id: string;
137
+ network: 'bluesky' | 'activitypub' | 'nostr' | 'minds';
138
+ text: string;
139
+ published_at: string;
140
+ likes: number;
141
+ reposts: number;
142
+ replies: number;
143
+ /** Minds reactions only: the post to open. */
144
+ post_id?: string;
145
+ }
146
+ /** The topic radar cluster a world story seeded. */
147
+ export interface CuratorTodayRadar {
148
+ cluster_id: string;
149
+ kind: 'breaking' | 'viral' | 'story';
150
+ sources: Partial<Record<'outlet' | 'hackernews' | 'bluesky' | 'activitypub' | 'nostr' | 'minds', number>>;
151
+ reactions: CuratorTodayReaction[];
152
+ }
119
153
  /** Distinct outlets per lane behind a world story. */
120
154
  export interface CuratorTodayLaneMix {
121
155
  mainstream: number;
@@ -152,6 +186,14 @@ export interface CuratorTodayStory {
152
186
  reply_count: number;
153
187
  /** Minds posts in the same shape as `sdk.posts.list()`. May be empty for a world story. */
154
188
  posts: Post[];
189
+ /** World stories only: up to three outlet teasers, one per outlet. */
190
+ excerpts?: CuratorTodayExcerpt[];
191
+ /** World stories only: 'outlet' when the dek is an outlet's sentence, 'editor' when the world editor model wrote it. */
192
+ dek_origin?: 'outlet' | 'editor' | null;
193
+ /** World stories only: the first image among the story's Minds posts. */
194
+ lead_image?: CuratorTodayLeadImage | null;
195
+ /** World stories only: the radar cluster the story seeded, or null. */
196
+ radar?: CuratorTodayRadar | null;
155
197
  }
156
198
  export interface CuratorTodayEdition {
157
199
  id: string;
@@ -1123,6 +1123,18 @@ export declare class ProtocolsResource {
1123
1123
  post: string;
1124
1124
  readRef?: string;
1125
1125
  }): Promise<SingleResponse<SocialConversation>>;
1126
+ /** Public, app-moderated actor identity without member subscription/account state. */
1127
+ getSharedProfile(projectId: string, params: {
1128
+ protocol: string;
1129
+ actor: string;
1130
+ }): Promise<SingleResponse<Omit<SocialProfile, 'subscription'>>>;
1131
+ /** Bounded original public posts by one actor, with current app moderation. */
1132
+ getSharedAuthorFeed(projectId: string, params: {
1133
+ protocol: string;
1134
+ actor: string;
1135
+ limit?: number;
1136
+ cursor?: string;
1137
+ }): Promise<SingleResponse<SocialAuthorFeed>>;
1126
1138
  /** Public, app-moderated discovery without account authority. Enrichment uses cached judgments only. */
1127
1139
  getSharedTrends(projectId: string, params: {
1128
1140
  protocol: string;
@@ -80,6 +80,15 @@ export class ProtocolsResource {
80
80
  protocol: params.protocol, post: params.post, readRef: params.readRef,
81
81
  });
82
82
  }
83
+ /** Public, app-moderated actor identity without member subscription/account state. */
84
+ getSharedProfile(projectId, params) {
85
+ return this.client.get(`/protocols/public/${encodeURIComponent(projectId)}/profile`, { protocol: params.protocol, actor: params.actor });
86
+ }
87
+ /** Bounded original public posts by one actor, with current app moderation. */
88
+ getSharedAuthorFeed(projectId, params) {
89
+ return this.client.get(`/protocols/public/${encodeURIComponent(projectId)}/author-feed`, { protocol: params.protocol, actor: params.actor,
90
+ limit: params.limit, cursor: params.cursor });
91
+ }
83
92
  /** Public, app-moderated discovery without account authority. Enrichment uses cached judgments only. */
84
93
  getSharedTrends(projectId, params) {
85
94
  return this.client.get(`/protocols/public/${encodeURIComponent(projectId)}/trends`, { protocol: params.protocol, limit: params.limit, cursor: params.cursor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recursiv/sdk",
3
- "version": "0.7.49",
3
+ "version": "0.7.50",
4
4
  "description": "TypeScript SDK for the Recursiv API",
5
5
  "license": "FSL-1.1-ALv2",
6
6
  "type": "module",