@recursiv/sdk 0.7.21 → 0.7.22

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
@@ -189,7 +189,7 @@ export type { UploadMediaInput, UploadUrlInput, UploadUrlResult } from './resour
189
189
  export { WalletResource } from './resources/wallet.js';
190
190
  export { ProtocolsResource } from './resources/protocols.js';
191
191
  export { PROTOCOL_ADAPTER_MATURITIES, PROTOCOL_CAPABILITY_OPERATIONS, PROTOCOL_CAPABILITY_STATUSES, } from './resources/protocols.js';
192
- export type { SocialProfile, SocialSubscription, SocialSubscriptionChange, SocialProfilePage, SocialNetwork, SocialPost, SocialAuthorFeed, SearchPublicProfilesParams, HostedProtocolConnections, HostedProtocol, HostedProtocolIdentity, HostedNostrChallenge, HostedNostrIdentityProof, HostedPostPreview, ConnectHostedIdentityInput, PreviewHostedPostInput, PublishHostedPostInput, ListProtocolCandidatesParams, ProtocolAdapterMaturity, ProtocolAdapterMetadata, ProtocolCandidateListResponse, ProtocolCandidatePageMeta, ProtocolCapabilityOperation, ProtocolCapabilityStatus, ProtocolCollectionStatus, ProtocolQuarantinedCandidate, ProtocolRefreshResult, ProtocolSettings, ProtocolSettingsUpdateResult, UpdateSettingsInput as UpdateProtocolSettingsInput, } from './resources/protocols.js';
192
+ export type { SocialProfile, SocialSubscription, SocialSubscriptionChange, SocialProfilePage, SocialNetwork, SocialPost, SocialAuthorFeed, SocialFollowingFeed, SocialFollowingSource, SearchPublicProfilesParams, HostedProtocolConnections, HostedProtocol, HostedProtocolIdentity, HostedNostrChallenge, HostedNostrIdentityProof, HostedPostPreview, ConnectHostedIdentityInput, PreviewHostedPostInput, PublishHostedPostInput, ListProtocolCandidatesParams, ProtocolAdapterMaturity, ProtocolAdapterMetadata, ProtocolCandidateListResponse, ProtocolCandidatePageMeta, ProtocolCapabilityOperation, ProtocolCapabilityStatus, ProtocolCollectionStatus, ProtocolQuarantinedCandidate, ProtocolRefreshResult, ProtocolSettings, ProtocolSettingsUpdateResult, UpdateSettingsInput as UpdateProtocolSettingsInput, } from './resources/protocols.js';
193
193
  export { InboxResource } from './resources/inbox.js';
194
194
  export { NetworkResource } from './resources/network.js';
195
195
  export { SimulatorResource } from './resources/simulator.js';
@@ -201,7 +201,7 @@ export interface SocialNetwork {
201
201
  url: string;
202
202
  };
203
203
  coverage: string;
204
- capabilities: Array<'profile_search' | 'profile_read' | 'original_author_posts' | 'minds_subscription'>;
204
+ capabilities: Array<'profile_search' | 'profile_read' | 'original_author_posts' | 'minds_subscription' | 'following_feed'>;
205
205
  profileSearchPagination: boolean;
206
206
  }
207
207
  /** Public source identity, independent of any local Minds user or handle. */
@@ -266,6 +266,23 @@ export interface SocialAuthorFeed {
266
266
  cursor: string | null;
267
267
  coverage: 'original_posts';
268
268
  }
269
+ export interface SocialFollowingSource {
270
+ subscriptionId: string;
271
+ protocol: string;
272
+ nativeId: string;
273
+ status: 'ok' | 'unavailable' | 'rate_limited' | 'unsupported_protocol';
274
+ moreAvailable: boolean | null;
275
+ }
276
+ /** A bounded batch of recent author windows. Continue the cursor to read more followed accounts. */
277
+ export interface SocialFollowingFeed {
278
+ items: SocialPost[];
279
+ cursor: string | null;
280
+ sources: SocialFollowingSource[];
281
+ accountsRead: number;
282
+ totalAccounts: number;
283
+ postsPerAccount: number;
284
+ coverage: 'recent_original_posts';
285
+ }
269
286
  export declare class ProtocolsResource {
270
287
  private client;
271
288
  private subscriptionListeners;
@@ -284,6 +301,11 @@ export declare class ProtocolsResource {
284
301
  cursor?: string;
285
302
  }): Promise<SingleResponse<SocialAuthorFeed>>;
286
303
  listSubscriptions(): Promise<SingleResponse<SocialSubscription[]>>;
304
+ /** Recent originals from the current app user's followed accounts, with explicit source failures. */
305
+ getFollowingFeed(params?: {
306
+ protocol?: string;
307
+ cursor?: string;
308
+ }): Promise<SingleResponse<SocialFollowingFeed>>;
287
309
  /** Save a private reading subscription after resolving the immutable native ID. */
288
310
  subscribeToProfile(input: {
289
311
  protocol: string;
@@ -74,6 +74,10 @@ export class ProtocolsResource {
74
74
  listSubscriptions() {
75
75
  return this.client.get('/protocols/social/subscriptions');
76
76
  }
77
+ /** Recent originals from the current app user's followed accounts, with explicit source failures. */
78
+ getFollowingFeed(params = {}) {
79
+ return this.client.get('/protocols/social/following-feed', { protocol: params.protocol, cursor: params.cursor });
80
+ }
77
81
  /** Save a private reading subscription after resolving the immutable native ID. */
78
82
  subscribeToProfile(input) {
79
83
  return this.client.post('/protocols/social/subscriptions', input).then(result => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recursiv/sdk",
3
- "version": "0.7.21",
3
+ "version": "0.7.22",
4
4
  "description": "TypeScript SDK for the Recursiv API",
5
5
  "license": "FSL-1.1-ALv2",
6
6
  "type": "module",