@recursiv/sdk 0.7.34 → 0.7.35
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/README.md +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/resources/protocols.d.ts +31 -1
- package/dist/resources/protocols.js +10 -1
- package/llm.md +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -111,7 +111,7 @@ for await (const chunk of r.agents.chatStream(agent.id, { message: 'Hello!' }))
|
|
|
111
111
|
| `r.admin` | User management, stats, content reports (`listReports`, `resolveReport`, `dismissReport`) |
|
|
112
112
|
| `r.dispatcher` | Task queue, claims, signals, outcomes, webhooks |
|
|
113
113
|
| `r.goals` | Org goals with task rollups (group dispatcher tasks) |
|
|
114
|
-
| `r.protocols` | Private Minds safety: `sourceControls` (current enablement and saved choices), `setSourceControl`, `onSourceControlChange`, `reportSource`. Delegated accounts: `nativeSocialAccounts`, `startNativeSocialConnection`, `finishNativeSocialConnection`, `disconnectNativeSocialAccount`. Native follows: `nativeFollowState`, `prepareNativeFollow`, `submitNativeFollow`, `nativeFollowStatus` (native following or pending approval, distinct from a Minds feed subscription; preserve the complete signed Nostr list). Native reposts and undo: `nativeRepostState`, `prepareNativeRepost`, `submitNativeRepost`, `nativeRepostStatus` (public posts, explicit approval, connected account, no uncertain retries). Native likes and unlikes: `nativeLikeState`, `prepareNativeLike`, `submitNativeLike`, `nativeLikeStatus` (connected authority, app enablement and explicit approval; resume pending actions instead of duplicating them). Reviewed replies and optional linked posts: `prepareNativeReply`, `submitNativeReply`, `nativeReplyStatus`, `nativeReplyHistory`, `prepareNativeReplyRemoval`, `removeNativeReply` (require deployed API support and app enablement). Keyless shared post links: `sharedNetworks(projectId)`, `getSharedConversation(projectId, { protocol, post, readRef? })`. Member public reading: `publicNetworks`, `searchPublicProfiles`, `getPublicProfile`, `getPublicAuthorFeed`, `getFollowingFeed`, `getPublicConversation`, `getPublicTrends`, `getPublicTrendFeed`; private app subscriptions: `listSubscriptions`, `subscribeToProfile`, `unsubscribeFromProfile`, `onSubscriptionChange`. `list` returns bounded adapter `maturity`, `limitations`, and exhaustive `supported`/`planned`/`unsupported` implementation capabilities (not provider health or enablement); settings, candidate refresh/status, search, and read-only quarantined candidate review via `listCandidates` / `getCandidate` |
|
|
114
|
+
| `r.protocols` | Private Minds safety: `sourceControls` (current enablement and saved choices), `setSourceControl`, `onSourceControlChange`, `reportSource`. Delegated accounts: `nativeSocialAccounts`, `startNativeSocialConnection`, `finishNativeSocialConnection`, `disconnectNativeSocialAccount`. Native follows: `nativeFollowState`, `prepareNativeFollow`, `submitNativeFollow`, `nativeFollowStatus` (native following or pending approval, distinct from a Minds feed subscription; preserve the complete signed Nostr list). Native reposts and undo: `nativeRepostState`, `prepareNativeRepost`, `submitNativeRepost`, `nativeRepostStatus` (public posts, explicit approval, connected account, no uncertain retries). Native likes and unlikes: `nativeLikeState`, `prepareNativeLike`, `submitNativeLike`, `nativeLikeStatus` (connected authority, app enablement and explicit approval; resume pending actions instead of duplicating them). Reviewed replies and optional linked posts: `prepareNativeReply`, `submitNativeReply`, `nativeReplyStatus`, `nativeReplyHistory`, `prepareNativeReplyRemoval`, `removeNativeReply` (require deployed API support and app enablement). Keyless shared post links: `sharedNetworks(projectId)`, `getSharedConversation(projectId, { protocol, post, readRef? })`. Member public reading: `searchPublicPosts` (selected account required for Bluesky/ActivityPub; public Nostr search), `getConnectedSocialConversation` (preserve result readerAccountId/readRef), `publicNetworks`, `searchPublicProfiles`, `getPublicProfile`, `getPublicAuthorFeed`, `getFollowingFeed`, `getPublicConversation`, `getPublicTrends`, `getPublicTrendFeed`; private app subscriptions: `listSubscriptions`, `subscribeToProfile`, `unsubscribeFromProfile`, `onSubscriptionChange`. `list` returns bounded adapter `maturity`, `limitations`, and exhaustive `supported`/`planned`/`unsupported` implementation capabilities (not provider health or enablement); settings, candidate refresh/status, search, and read-only quarantined candidate review via `listCandidates` / `getCandidate` |
|
|
115
115
|
|
|
116
116
|
Full reference: see [llm.md](./llm.md) (ships with this package) or the type definitions in `dist/`.
|
|
117
117
|
|
package/dist/index.d.ts
CHANGED
|
@@ -194,7 +194,7 @@ export type { UploadMediaInput, UploadUrlInput, UploadUrlResult } from './resour
|
|
|
194
194
|
export { WalletResource } from './resources/wallet.js';
|
|
195
195
|
export { ProtocolsResource } from './resources/protocols.js';
|
|
196
196
|
export { PROTOCOL_ADAPTER_MATURITIES, PROTOCOL_CAPABILITY_OPERATIONS, PROTOCOL_CAPABILITY_STATUSES, } from './resources/protocols.js';
|
|
197
|
-
export type { SocialProfile, SocialSubscription, SocialSubscriptionChange, SocialProfilePage, SocialNetwork, SocialPost, SocialConversation, SocialTrend, SocialTrendProvenance, SocialTrends, SocialTrendFeed, SocialPopularProfiles, SocialAuthorFeed, SocialFollowingFeed, SocialFollowingSource, SearchPublicProfilesParams, HostedProtocolConnections, HostedProtocol, HostedProtocolIdentity, HostedNostrChallenge, HostedNostrIdentityProof, NativeNostrPrepareInput, NativeNostrPrepared, NativeNostrAccount, NativeNostrPostState, NativeNostrReceipt, NativeSocialProtocol, FederationIdentity, FederationIdentityView, NativeSocialAccount, NativeSocialCallbackInput, NativeReplyPrepareInput, NativePostPrepareInput, NativePostBatch, NativePostHistory, NativeFollowSourceInput, NativeFollowPrepareInput, NativeFollowTarget, NativeFollowReceipt, NativeFollowState, NativeFollowReview, NativeLikeSourceInput, NativeRepostSourceInput, NativeLikePrepareInput, NativeRepostPrepareInput, NativeLikeTarget, NativeRepostTarget, NativeLikeReceipt, NativeRepostReceipt, NativeLikeState, NativeRepostState, NativeLikeReview, NativeRepostReview, NativeReplyReceipt, NativeReplyBatch, NativeReplyHistory, NativeDelegatedReplyHistoryItem, NativeNostrReplyResult, NativeNostrReplyHistoryItem, NativeReplyRemovalReceipt, NativeReplyRemovalPreview, SocialSourceRef, SocialSourceControl, SocialSourceControlChange, HostedPostPreview, ConnectHostedIdentityInput, PreviewHostedPostInput, PublishHostedPostInput, ListProtocolCandidatesParams, ProtocolAdapterMaturity, ProtocolAdapterMetadata, ProtocolCandidateListResponse, ProtocolCandidatePageMeta, ProtocolCapabilityOperation, ProtocolCapabilityStatus, ProtocolCollectionStatus, ProtocolIngestionReplayResult, ProtocolIngestionStatus, ProtocolQuarantinedCandidate, ProtocolRefreshResult, ProtocolSettings, ProtocolSettingsUpdateResult, ReplayProtocolIngestionJobInput, UpdateSettingsInput as UpdateProtocolSettingsInput, } from './resources/protocols.js';
|
|
197
|
+
export type { SocialProfile, SocialSubscription, SocialSubscriptionChange, SocialProfilePage, SocialNetwork, SocialPost, SocialConversation, SocialTrend, SocialTrendProvenance, SocialTrends, SocialTrendFeed, SocialPopularProfiles, SocialAuthorFeed, SocialFollowingFeed, SocialFollowingSource, SearchPublicProfilesParams, SearchPublicPostsParams, SocialPostSearch, HostedProtocolConnections, HostedProtocol, HostedProtocolIdentity, HostedNostrChallenge, HostedNostrIdentityProof, NativeNostrPrepareInput, NativeNostrPrepared, NativeNostrAccount, NativeNostrPostState, NativeNostrReceipt, NativeSocialProtocol, FederationIdentity, FederationIdentityView, NativeSocialAccount, NativeSocialCallbackInput, NativeReplyPrepareInput, NativePostPrepareInput, NativePostBatch, NativePostHistory, NativeFollowSourceInput, NativeFollowPrepareInput, NativeFollowTarget, NativeFollowReceipt, NativeFollowState, NativeFollowReview, NativeLikeSourceInput, NativeRepostSourceInput, NativeLikePrepareInput, NativeRepostPrepareInput, NativeLikeTarget, NativeRepostTarget, NativeLikeReceipt, NativeRepostReceipt, NativeLikeState, NativeRepostState, NativeLikeReview, NativeRepostReview, NativeReplyReceipt, NativeReplyBatch, NativeReplyHistory, NativeDelegatedReplyHistoryItem, NativeNostrReplyResult, NativeNostrReplyHistoryItem, NativeReplyRemovalReceipt, NativeReplyRemovalPreview, SocialSourceRef, SocialSourceControl, SocialSourceControlChange, HostedPostPreview, ConnectHostedIdentityInput, PreviewHostedPostInput, PublishHostedPostInput, ListProtocolCandidatesParams, ProtocolAdapterMaturity, ProtocolAdapterMetadata, ProtocolCandidateListResponse, ProtocolCandidatePageMeta, ProtocolCapabilityOperation, ProtocolCapabilityStatus, ProtocolCollectionStatus, ProtocolIngestionReplayResult, ProtocolIngestionStatus, ProtocolQuarantinedCandidate, ProtocolRefreshResult, ProtocolSettings, ProtocolSettingsUpdateResult, ReplayProtocolIngestionJobInput, UpdateSettingsInput as UpdateProtocolSettingsInput, } from './resources/protocols.js';
|
|
198
198
|
export { InboxResource } from './resources/inbox.js';
|
|
199
199
|
export { NetworkResource } from './resources/network.js';
|
|
200
200
|
export { SimulatorResource } from './resources/simulator.js';
|
|
@@ -767,8 +767,9 @@ export interface SocialNetwork {
|
|
|
767
767
|
url: string;
|
|
768
768
|
};
|
|
769
769
|
coverage: string;
|
|
770
|
-
capabilities: Array<'profile_search' | 'profile_read' | 'original_author_posts' | 'minds_subscription' | 'following_feed' | 'conversation_read' | 'public_trends' | 'trend_feed' | 'popular_accounts'>;
|
|
770
|
+
capabilities: Array<'profile_search' | 'profile_read' | 'original_author_posts' | 'minds_subscription' | 'following_feed' | 'conversation_read' | 'public_trends' | 'trend_feed' | 'popular_accounts' | 'post_search'>;
|
|
771
771
|
profileSearchPagination: boolean;
|
|
772
|
+
postSearchAccountRequired?: boolean;
|
|
772
773
|
conversationCoverage?: string;
|
|
773
774
|
}
|
|
774
775
|
/** Public source identity, independent of any local Minds user or handle. */
|
|
@@ -830,6 +831,25 @@ export interface SocialPost {
|
|
|
830
831
|
}>;
|
|
831
832
|
hasAdditionalContent: boolean;
|
|
832
833
|
}
|
|
834
|
+
export interface SocialPostSearch {
|
|
835
|
+
items: SocialPost[];
|
|
836
|
+
cursor: string | null;
|
|
837
|
+
query: string;
|
|
838
|
+
provider: {
|
|
839
|
+
name: string;
|
|
840
|
+
url: string;
|
|
841
|
+
};
|
|
842
|
+
observedAt: string;
|
|
843
|
+
coverage: 'provider_search_window';
|
|
844
|
+
readerAccountId: string | null;
|
|
845
|
+
}
|
|
846
|
+
export interface SearchPublicPostsParams {
|
|
847
|
+
protocol: 'bluesky' | 'activitypub' | 'nostr';
|
|
848
|
+
query: string;
|
|
849
|
+
accountId?: string;
|
|
850
|
+
limit?: number;
|
|
851
|
+
cursor?: string;
|
|
852
|
+
}
|
|
833
853
|
export interface SocialAuthorFeed {
|
|
834
854
|
items: SocialPost[];
|
|
835
855
|
cursor: string | null;
|
|
@@ -932,6 +952,15 @@ export declare class ProtocolsResource {
|
|
|
932
952
|
}): Promise<SingleResponse<SocialConversation>>;
|
|
933
953
|
publicNetworks(): Promise<SingleResponse<SocialNetwork[]>>;
|
|
934
954
|
/** Query the live public network. It does not import users or posts. */
|
|
955
|
+
searchPublicPosts(params: SearchPublicPostsParams): Promise<SingleResponse<SocialPostSearch>>;
|
|
956
|
+
/** Read public-only conversation content through the current owner's selected account. */
|
|
957
|
+
getConnectedSocialConversation(params: {
|
|
958
|
+
protocol: 'bluesky' | 'activitypub';
|
|
959
|
+
accountId: string;
|
|
960
|
+
post: string;
|
|
961
|
+
readRef?: string;
|
|
962
|
+
}): Promise<SingleResponse<SocialConversation>>;
|
|
963
|
+
/** Search public profiles from a network's configured provider. */
|
|
935
964
|
searchPublicProfiles(params: SearchPublicProfilesParams): Promise<SingleResponse<SocialProfilePage>>;
|
|
936
965
|
getPublicProfile(protocol: string, actor: string): Promise<SingleResponse<SocialProfile>>;
|
|
937
966
|
getPublicAuthorFeed(params: {
|
|
@@ -1101,6 +1130,7 @@ export declare class ProtocolsResource {
|
|
|
1101
1130
|
reportSource(input: {
|
|
1102
1131
|
source: SocialSourceRef;
|
|
1103
1132
|
readRef?: string;
|
|
1133
|
+
accountId?: string;
|
|
1104
1134
|
reason: string;
|
|
1105
1135
|
details?: string;
|
|
1106
1136
|
scope: 'minds';
|
|
@@ -74,6 +74,15 @@ export class ProtocolsResource {
|
|
|
74
74
|
return this.client.get('/protocols/social/networks');
|
|
75
75
|
}
|
|
76
76
|
/** Query the live public network. It does not import users or posts. */
|
|
77
|
+
searchPublicPosts(params) {
|
|
78
|
+
return this.client.get('/protocols/social/post-search', { protocol: params.protocol, query: params.query,
|
|
79
|
+
accountId: params.accountId, limit: params.limit, cursor: params.cursor });
|
|
80
|
+
}
|
|
81
|
+
/** Read public-only conversation content through the current owner's selected account. */
|
|
82
|
+
getConnectedSocialConversation(params) {
|
|
83
|
+
return this.client.get('/protocols/social/connected-conversation', { protocol: params.protocol, accountId: params.accountId, post: params.post, readRef: params.readRef });
|
|
84
|
+
}
|
|
85
|
+
/** Search public profiles from a network's configured provider. */
|
|
77
86
|
searchPublicProfiles(params) {
|
|
78
87
|
return this.client.get('/protocols/social/profiles', {
|
|
79
88
|
protocol: params.protocol, query: params.query, limit: params.limit, cursor: params.cursor,
|
|
@@ -268,7 +277,7 @@ export class ProtocolsResource {
|
|
|
268
277
|
/** File a report in the app's existing moderation queue, using server-read public source evidence. */
|
|
269
278
|
reportSource(input) {
|
|
270
279
|
return this.client.post('/protocols/social/reports', { source: { protocol: input.source.protocol, kind: input.source.kind, nativeId: input.source.nativeId },
|
|
271
|
-
readRef: input.readRef, reason: input.reason, details: input.details, scope: input.scope }, { retry: false });
|
|
280
|
+
readRef: input.readRef, ...(input.accountId ? { accountId: input.accountId } : {}), reason: input.reason, details: input.details, scope: input.scope }, { retry: false });
|
|
272
281
|
}
|
|
273
282
|
/** Open the returned authorization URL in the user's browser; never submit passwords or tokens. */
|
|
274
283
|
startNativeSocialConnection(input) {
|
package/llm.md
CHANGED
|
@@ -822,3 +822,5 @@ user/app-bound result IDs and discard UI state after an account switch. The last
|
|
|
822
822
|
read-back observation is separate from retained publication/deletion evidence.
|
|
823
823
|
|
|
824
824
|
Standalone public text posts: `prepareNativePost({ clientMutationId, text, accountIds })` → review → `submitNativePost(id, { approve: true, deliveryIds })`. Use `nativePostStatus(id)` / `nativePostHistory({limit,cursor})` for private durable outcomes and `prepareNativePostRemoval(id,{deliveryIds})` → `removeNativePost(id,{approve:true,removals:[{deliveryId,removalId}]})` for reviewed own-post removal. Check `publish_text` capability; no media, reply parent or audience override. Preserve mutation IDs, never create a new send to recover uncertainty.
|
|
825
|
+
|
|
826
|
+
Public post search (API/SDK 0.7.35): `const { data: page } = await r.protocols.searchPublicPosts({ protocol: 'nostr', query: 'open social', limit: 10 })`. Bluesky/ActivityPub require a selected `accountId` from `nativeSocialAccounts()` with `post_search`; older Bluesky grants must reconnect with consent. Open their results with `getConnectedSocialConversation({ protocol, accountId: page.readerAccountId, post: item.nativeId, readRef: item.readRef })` and pass the same accountId to `reportSource` for post reports. Nostr uses `getPublicConversation`. Pages report provider/observedAt and bounded coverage; no invented exhaustive or global search. Keep cursors paired with the exact owner, query, account, limit and connection revision. No writes, credentials or new ingestion are part of search.
|