@recursiv/sdk 0.7.19 → 0.7.20

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, SocialProfilePage, 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, 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';
193
193
  export { InboxResource } from './resources/inbox.js';
194
194
  export { NetworkResource } from './resources/network.js';
195
195
  export { SimulatorResource } from './resources/simulator.js';
@@ -192,6 +192,18 @@ export interface PublishHostedPostInput extends PreviewHostedPostInput {
192
192
  /** Explicitly publish the previewed text publicly in this app. */
193
193
  publishPublicly: true;
194
194
  }
195
+ /** Installed on-demand reading clients, their source coverage and supported UI. */
196
+ export interface SocialNetwork {
197
+ protocol: string;
198
+ name: string;
199
+ provider: {
200
+ name: string;
201
+ url: string;
202
+ };
203
+ coverage: string;
204
+ capabilities: Array<'profile_search' | 'profile_read' | 'original_author_posts' | 'minds_subscription'>;
205
+ profileSearchPagination: boolean;
206
+ }
195
207
  /** Public source identity, independent of any local Minds user or handle. */
196
208
  export interface SocialProfile {
197
209
  protocol: string;
@@ -250,6 +262,7 @@ export interface SocialAuthorFeed {
250
262
  export declare class ProtocolsResource {
251
263
  private client;
252
264
  constructor(client: HttpClient);
265
+ publicNetworks(): Promise<SingleResponse<SocialNetwork[]>>;
253
266
  /** Query the live public network. It does not import users or posts. */
254
267
  searchPublicProfiles(params: SearchPublicProfilesParams): Promise<SingleResponse<SocialProfilePage>>;
255
268
  getPublicProfile(protocol: string, actor: string): Promise<SingleResponse<SocialProfile>>;
@@ -39,6 +39,9 @@ export class ProtocolsResource {
39
39
  constructor(client) {
40
40
  this.client = client;
41
41
  }
42
+ publicNetworks() {
43
+ return this.client.get('/protocols/social/networks');
44
+ }
42
45
  /** Query the live public network. It does not import users or posts. */
43
46
  searchPublicProfiles(params) {
44
47
  return this.client.get('/protocols/social/profiles', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recursiv/sdk",
3
- "version": "0.7.19",
3
+ "version": "0.7.20",
4
4
  "description": "TypeScript SDK for the Recursiv API",
5
5
  "license": "FSL-1.1-ALv2",
6
6
  "type": "module",