@recursiv/sdk 0.7.31 → 0.7.33

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 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 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: `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, NativeLikeSourceInput, NativeLikePrepareInput, NativeLikeTarget, NativeLikeReceipt, NativeLikeState, NativeLikeReview, 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, HostedProtocolConnections, HostedProtocol, HostedProtocolIdentity, HostedNostrChallenge, HostedNostrIdentityProof, NativeNostrPrepareInput, NativeNostrPrepared, NativeNostrAccount, NativeNostrPostState, NativeNostrReceipt, NativeSocialProtocol, FederationIdentity, FederationIdentityView, NativeSocialAccount, NativeSocialCallbackInput, NativeReplyPrepareInput, 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';
@@ -317,6 +317,67 @@ export interface NativeReplyPrepareInput {
317
317
  deliveryIds: string[];
318
318
  };
319
319
  }
320
+ export interface NativeFollowSourceInput {
321
+ accountId: string;
322
+ protocol: SocialSourceRef['protocol'];
323
+ nativeId: string;
324
+ }
325
+ export interface NativeFollowPrepareInput extends NativeFollowSourceInput {
326
+ clientMutationId: string;
327
+ action: 'follow' | 'unfollow';
328
+ }
329
+ export type NativeFollowTarget = {
330
+ nativeId: string;
331
+ sourceUrl: string;
332
+ handle: string;
333
+ revision: string;
334
+ followAllowed: boolean;
335
+ } & ({
336
+ protocol: 'bluesky';
337
+ } | {
338
+ protocol: 'activitypub';
339
+ localId: string;
340
+ } | {
341
+ protocol: 'nostr';
342
+ });
343
+ export interface NativeFollowReceipt {
344
+ state: 'following' | 'requested' | 'unfollowed' | 'unknown' | 'rejected';
345
+ acknowledged: boolean;
346
+ reference: {
347
+ nativeId: string;
348
+ revision: string;
349
+ } | null;
350
+ }
351
+ export interface NativeFollowState extends NativeFollowReceipt {
352
+ accountId: string;
353
+ account: {
354
+ nativeId: string;
355
+ handle: string;
356
+ serverUrl: string;
357
+ };
358
+ target: NativeFollowTarget;
359
+ /** Resume this account's unresolved review after a browser refresh. Never start a duplicate action. */
360
+ pendingActionId: string | null;
361
+ /** An earlier connection or another target profile has an unresolved attempt. Read again to reconcile; do not prepare a new write. */
362
+ pendingActionBlocked: boolean;
363
+ }
364
+ export interface NativeFollowReview {
365
+ id: string;
366
+ clientMutationId: string;
367
+ expiresAt: string;
368
+ accountId: string;
369
+ account: NativeFollowState['account'];
370
+ target: NativeFollowTarget;
371
+ action: 'follow' | 'unfollow';
372
+ attemptedAt: string | null;
373
+ receipt: NativeFollowReceipt | null;
374
+ checkedAt: string | null;
375
+ /** Sign this exact event with the displayed account. Never send a private key. */
376
+ signing?: {
377
+ event: Omit<HostedNostrIdentityProof, 'sig'>;
378
+ relay: string;
379
+ };
380
+ }
320
381
  export interface NativeLikeSourceInput {
321
382
  accountId: string;
322
383
  protocol: SocialSourceRef['protocol'];
@@ -383,6 +444,73 @@ export interface NativeLikeReview {
383
444
  relay: string;
384
445
  };
385
446
  }
447
+ export interface NativeRepostSourceInput {
448
+ accountId: string;
449
+ protocol: SocialSourceRef['protocol'];
450
+ nativeId: string;
451
+ }
452
+ export interface NativeRepostPrepareInput extends NativeRepostSourceInput {
453
+ clientMutationId: string;
454
+ action: 'repost' | 'unrepost';
455
+ }
456
+ export type NativeRepostTarget = {
457
+ nativeId: string;
458
+ sourceUrl: string;
459
+ authorId: string;
460
+ authorHandle: string;
461
+ text: string;
462
+ revision: string;
463
+ } & ({
464
+ protocol: 'bluesky';
465
+ cid: string;
466
+ } | {
467
+ protocol: 'activitypub';
468
+ localId: string;
469
+ } | {
470
+ protocol: 'nostr';
471
+ relay: string;
472
+ sourceEvent: HostedNostrIdentityProof;
473
+ });
474
+ export interface NativeRepostReceipt {
475
+ state: 'reposted' | 'unreposted' | 'unknown' | 'rejected';
476
+ acknowledged: boolean;
477
+ reference: {
478
+ nativeId: string;
479
+ revision: string;
480
+ eventIds?: string[];
481
+ } | null;
482
+ readBack: 'reposted' | 'unreposted' | 'unavailable';
483
+ }
484
+ export interface NativeRepostState extends NativeRepostReceipt {
485
+ accountId: string;
486
+ account: {
487
+ nativeId: string;
488
+ handle: string;
489
+ serverUrl: string;
490
+ };
491
+ target: NativeRepostTarget;
492
+ /** Resume this account's unresolved review after a browser refresh. Never start a duplicate action. */
493
+ pendingActionId: string | null;
494
+ /** An earlier connection has an unresolved attempt. Read again to reconcile; do not prepare a new write. */
495
+ pendingActionBlocked: boolean;
496
+ }
497
+ export interface NativeRepostReview {
498
+ id: string;
499
+ clientMutationId: string;
500
+ expiresAt: string;
501
+ accountId: string;
502
+ account: NativeRepostState['account'];
503
+ target: NativeRepostTarget;
504
+ action: 'repost' | 'unrepost';
505
+ attemptedAt: string | null;
506
+ receipt: NativeRepostReceipt | null;
507
+ checkedAt: string | null;
508
+ /** Sign this exact event with the displayed account. Never send a private key. */
509
+ signing?: {
510
+ event: Omit<HostedNostrIdentityProof, 'sig'>;
511
+ relay: string;
512
+ };
513
+ }
386
514
  export interface NativeReplyReceipt {
387
515
  state: 'published' | 'accepted' | 'unknown' | 'rejected';
388
516
  nativeId: string | null;
@@ -549,7 +677,7 @@ export interface NativeNostrPrepared {
549
677
  export interface NativeNostrAccount {
550
678
  enabled: boolean;
551
679
  identity: HostedProtocolIdentity | null;
552
- capabilities: Array<'publish_original_text' | 'request_own_post_deletion' | 'reply_text_note' | 'publish_linked_text' | 'like' | 'unlike'>;
680
+ capabilities: Array<'publish_original_text' | 'request_own_post_deletion' | 'reply_text_note' | 'publish_linked_text' | 'like' | 'unlike' | 'repost' | 'unrepost' | 'follow' | 'unfollow'>;
553
681
  signing?: 'client';
554
682
  }
555
683
  export interface NativeNostrPostState {
@@ -818,6 +946,17 @@ export declare class ProtocolsResource {
818
946
  limit?: number;
819
947
  cursor?: string;
820
948
  }): Promise<SingleResponse<SocialPopularProfiles>>;
949
+ /** Read this connected account's current native following; never infer it from a public count. */
950
+ nativeFollowState(input: NativeFollowSourceInput): Promise<SingleResponse<NativeFollowState>>;
951
+ /** Prepare a follow/unfollow for explicit approval. Preserve the mutation ID after a lost response. */
952
+ prepareNativeFollow(input: NativeFollowPrepareInput): Promise<SingleResponse<NativeFollowReview>>;
953
+ /** Submit one approved action. Only Nostr supplies a public signed event. Automatic retries are disabled. */
954
+ submitNativeFollow(id: string, input: {
955
+ approve: true;
956
+ event?: HostedNostrIdentityProof;
957
+ }): Promise<SingleResponse<NativeFollowReview>>;
958
+ /** Reconcile the saved action without sending another native write. */
959
+ nativeFollowStatus(id: string): Promise<SingleResponse<NativeFollowReview>>;
821
960
  /** Read this connected account's current native like; never infer it from a public count. */
822
961
  nativeLikeState(input: NativeLikeSourceInput): Promise<SingleResponse<NativeLikeState>>;
823
962
  /** Prepare a like/unlike for explicit approval. Preserve the mutation ID after a lost response. */
@@ -829,6 +968,17 @@ export declare class ProtocolsResource {
829
968
  }): Promise<SingleResponse<NativeLikeReview>>;
830
969
  /** Reconcile the saved action without sending another native write. */
831
970
  nativeLikeStatus(id: string): Promise<SingleResponse<NativeLikeReview>>;
971
+ /** Read this connected account's current native repost; never infer it from a public count. */
972
+ nativeRepostState(input: NativeRepostSourceInput): Promise<SingleResponse<NativeRepostState>>;
973
+ /** Prepare a repost/unrepost for explicit approval. Preserve the mutation ID after a lost response. */
974
+ prepareNativeRepost(input: NativeRepostPrepareInput): Promise<SingleResponse<NativeRepostReview>>;
975
+ /** Submit one approved action. Only Nostr supplies a public signed event. Automatic retries are disabled. */
976
+ submitNativeRepost(id: string, input: {
977
+ approve: true;
978
+ event?: HostedNostrIdentityProof;
979
+ }): Promise<SingleResponse<NativeRepostReview>>;
980
+ /** Reconcile the saved action without sending another native write. */
981
+ nativeRepostStatus(id: string): Promise<SingleResponse<NativeRepostReview>>;
832
982
  /** Prepare one exact shared reply preview. Keep the mutation ID across uncertain responses. */
833
983
  prepareNativeReply(input: NativeReplyPrepareInput): Promise<SingleResponse<NativeReplyBatch>>;
834
984
  /** Send only explicitly approved delivery IDs from this preview. Repeated submissions reconcile; they do not replay a write. */
@@ -110,6 +110,28 @@ export class ProtocolsResource {
110
110
  getPublicPopularProfiles(params) {
111
111
  return this.client.get('/protocols/social/popular-profiles', { protocol: params.protocol, limit: params.limit, cursor: params.cursor });
112
112
  }
113
+ /** Read this connected account's current native following; never infer it from a public count. */
114
+ nativeFollowState(input) {
115
+ return this.client.get('/protocols/social/follows/state', { accountId: input.accountId, protocol: input.protocol, nativeId: input.nativeId });
116
+ }
117
+ /** Prepare a follow/unfollow for explicit approval. Preserve the mutation ID after a lost response. */
118
+ prepareNativeFollow(input) {
119
+ return this.client.post('/protocols/social/follows/prepare', { clientMutationId: input.clientMutationId, accountId: input.accountId,
120
+ protocol: input.protocol, nativeId: input.nativeId, action: input.action }, { retry: false });
121
+ }
122
+ /** Submit one approved action. Only Nostr supplies a public signed event. Automatic retries are disabled. */
123
+ submitNativeFollow(id, input) {
124
+ hostedIdentityPath(id);
125
+ const event = input.event;
126
+ return this.client.post(`/protocols/social/follows/${encodeURIComponent(id)}/submit`, { approve: input.approve,
127
+ ...(event ? { event: { id: event.id, pubkey: event.pubkey, sig: event.sig, kind: event.kind,
128
+ created_at: event.created_at, content: event.content, tags: event.tags } } : {}) }, { retry: false });
129
+ }
130
+ /** Reconcile the saved action without sending another native write. */
131
+ nativeFollowStatus(id) {
132
+ hostedIdentityPath(id);
133
+ return this.client.get(`/protocols/social/follows/${encodeURIComponent(id)}`);
134
+ }
113
135
  /** Read this connected account's current native like; never infer it from a public count. */
114
136
  nativeLikeState(input) {
115
137
  return this.client.get('/protocols/social/likes/state', { accountId: input.accountId, protocol: input.protocol, nativeId: input.nativeId });
@@ -132,6 +154,28 @@ export class ProtocolsResource {
132
154
  hostedIdentityPath(id);
133
155
  return this.client.get(`/protocols/social/likes/${encodeURIComponent(id)}`);
134
156
  }
157
+ /** Read this connected account's current native repost; never infer it from a public count. */
158
+ nativeRepostState(input) {
159
+ return this.client.get('/protocols/social/reposts/state', { accountId: input.accountId, protocol: input.protocol, nativeId: input.nativeId });
160
+ }
161
+ /** Prepare a repost/unrepost for explicit approval. Preserve the mutation ID after a lost response. */
162
+ prepareNativeRepost(input) {
163
+ return this.client.post('/protocols/social/reposts/prepare', { clientMutationId: input.clientMutationId, accountId: input.accountId,
164
+ protocol: input.protocol, nativeId: input.nativeId, action: input.action }, { retry: false });
165
+ }
166
+ /** Submit one approved action. Only Nostr supplies a public signed event. Automatic retries are disabled. */
167
+ submitNativeRepost(id, input) {
168
+ hostedIdentityPath(id);
169
+ const event = input.event;
170
+ return this.client.post(`/protocols/social/reposts/${encodeURIComponent(id)}/submit`, { approve: input.approve,
171
+ ...(event ? { event: { id: event.id, pubkey: event.pubkey, sig: event.sig, kind: event.kind,
172
+ created_at: event.created_at, content: event.content, tags: event.tags } } : {}) }, { retry: false });
173
+ }
174
+ /** Reconcile the saved action without sending another native write. */
175
+ nativeRepostStatus(id) {
176
+ hostedIdentityPath(id);
177
+ return this.client.get(`/protocols/social/reposts/${encodeURIComponent(id)}`);
178
+ }
135
179
  /** Prepare one exact shared reply preview. Keep the mutation ID across uncertain responses. */
136
180
  prepareNativeReply(input) {
137
181
  return this.client.post('/protocols/social/replies/prepare', { clientMutationId: input.clientMutationId, text: input.text,
package/llm.md CHANGED
@@ -632,7 +632,8 @@ if (subscription.active) {
632
632
  - `r.admin` — Admin operations (user management, stats, network settings); content reports: `listReports({ status? })`, `resolveReport(id)`, `dismissReport(id)` (project-bound keys see only their app's reports)
633
633
  - `r.inviteCodes` / `r.inviteCodesAdmin` — Invite code management
634
634
  - `r.organizationSettings` / `r.organizationSecurity` — Org configuration
635
- - Native likes: `nativeLikeState({ accountId, protocol, nativeId })`, `prepareNativeLike({ clientMutationId, accountId, protocol, nativeId, action: "like" | "unlike" })`, `submitNativeLike(id, { approve: true, event? })`, and `nativeLikeStatus(id)`. Display the selected account, source and action before approval. Only Nostr supplies `event`: sign the exact public `signing.event` in the review; never transmit a private key. Preserve mutation IDs on ambiguous responses and refresh unknown results instead of resending. Read capabilities before offering actions; old reply-only connections need reconnecting for likes. Nostr results describe the connected relay, not every public relay. The app-specific `NATIVE_SOCIAL_LIKE_PROJECTS` switch and source controls must be enabled on the API.
635
+ - Native follows: `nativeFollowState({ accountId, protocol, nativeId })`, `prepareNativeFollow({ clientMutationId, accountId, protocol, nativeId, action: "follow" | "unfollow" })`, `submitNativeFollow(id, { approve: true, event? })`, `nativeFollowStatus(id)`. Show the acting identity and native following/requested/unfollowed state separately from the Minds feed subscription. Nostr must sign the complete review event without dropping other contacts; stale lists require a fresh review. Keep mutation IDs and reconcile ambiguous outcomes without replay. Requires current follow scopes and API `NATIVE_SOCIAL_FOLLOW_PROJECTS` plus source controls.
636
+ - Native reposts: `nativeRepostState({ accountId, protocol, nativeId })`, `prepareNativeRepost({ clientMutationId, accountId, protocol, nativeId, action: "repost" | "unrepost" })`, `submitNativeRepost(id, { approve: true, event? })`, `nativeRepostStatus(id)`. Requires `NATIVE_SOCIAL_REPOST_PROJECTS`, account capability and explicit approval; Nostr signs the exact review (kind 6 or own kind 5). Unknown attempts only reconcile. Bluesky connections need the new repost scope; ActivityPub uses write:statuses. Native likes: `nativeLikeState({ accountId, protocol, nativeId })`, `prepareNativeLike({ clientMutationId, accountId, protocol, nativeId, action: "like" | "unlike" })`, `submitNativeLike(id, { approve: true, event? })`, and `nativeLikeStatus(id)`. Display the selected account, source and action before approval. Only Nostr supplies `event`: sign the exact public `signing.event` in the review; never transmit a private key. Preserve mutation IDs on ambiguous responses and refresh unknown results instead of resending. Read capabilities before offering actions; old reply-only connections need reconnecting for likes. Nostr results describe the connected relay, not every public relay. The app-specific `NATIVE_SOCIAL_LIKE_PROJECTS` switch and source controls must be enabled on the API.
636
637
  - Delegated social accounts: `r.protocols.nativeSocialAccounts()`, `startNativeSocialConnection({ protocol, identifier })`, `finishNativeSocialConnection({ protocol, state, code?, iss?, error? })`, `disconnectNativeSocialAccount(id)`. Example: `const { data } = await r.protocols.startNativeSocialConnection({ protocol: "bluesky", identifier: "alice.bsky.social" })`; open `data.authorizationUrl`, then complete with the same signed-in app user. Never log callback codes, send passwords, or auto-retry OAuth callbacks. Shared replies (off until schema/API deployment and live verification): `prepareNativeReply({ clientMutationId, text, parent: { protocol, nativeId, readRef? }, accountIds, linkedPostAccountIds?, recoverFrom?: { batchId, deliveryIds } })`, `submitNativeReply(id, { approve: true, deliveryIds })`, `nativeReplyStatus(id)`, `nativeReplyHistory({ limit?, cursor? })`, `prepareNativeReplyRemoval(id, { deliveryIds })`, `removeNativeReply(id, { approve: true, removals })`. Review account, destination, `kind`, source and exact `wireText`; connection is not publication approval. `linkedPostAccountIds` explicitly selects different-network standalone posts with a source link, never matching threaded replies or a same-network denial fallback. Preserve mutation IDs, show per-destination results and reconcile uncertain attempts without reposting. To review selected unsent or definitively rejected deliveries again, use recoverFrom with a new mutation ID, the same source/accounts and freshly reviewed text; preserve that ID on uncertain preparation. Only saved recoverable destinations qualify, current gates still apply, and replacedBy disables old sends atomically. Never restart unknown, accepted or published deliveries. The new preview still needs explicit approval. Saved delegated drafts/results: `const { data: history } = await r.protocols.nativeReplyHistory({ limit: 20 })`; use its opaque cursor for the next page and `nativeReplyStatus(item.id)` for details. This is a private read, not a write or provider refresh, and includes Nostr results marked type=nostr. Use nativeNostrReplyResult(item.id) to check that recorded event on its relay without signing or resending. Discard page state on owner/app changes. See README for examples and the callback, revocation and removal contracts.
637
638
  - `r.protocols` — Private app safety: `sourceControls` returns current `enabled` plus paged saved choices; `setSourceControl`, `onSourceControlChange` and `reportSource` share app scope. Example: `const choices = new Map(); const stop = r.protocols.onSourceControlChange(change => choices.set(JSON.stringify([change.source, change.control]), change.enabled));` then `await r.protocols.setSourceControl({ source: { protocol: "bluesky", kind: "actor", nativeId: "did:plc:aaaaaaaaaaaaaaaaaaaaaaaa" }, control: "mute", enabled: true, scope: "minds" });` and call `stop(); choices.clear()` on account change/unmount. Notifications follow an exact server confirmation, never an uncertain response. These preferences and reports apply in Minds, not on the remote network. Keyless post links: `const visitor = new Recursiv({ anonymous: true }); const { data: thread } = await visitor.protocols.getSharedConversation(projectId, { protocol: 'nostr', post: publicEventId })`; `sharedNetworks(projectId)` lists public conversation capabilities. Only configured apps; app moderation and rate limits apply, no member state or write authority. Member public reading: `publicNetworks`, `searchPublicProfiles`, `getPublicProfile`, `getPublicAuthorFeed`, `getFollowingFeed`, `getPublicConversation`, `getPublicTrends`, `getPublicTrendFeed`; private app subscriptions: `listSubscriptions`, `subscribeToProfile`, `unsubscribeFromProfile`, `onSubscriptionChange`. Example after selecting a returned source post: `const { data: thread } = await r.protocols.getPublicConversation({ protocol: post.protocol, post: post.nativeId, readRef: post.readRef })`. Render `focus`, oldest-first `ancestors` and direct `replies`; `public_provider_window` never promises every reply, and `limited` marks known omissions. Requires both `users:read` and `posts:read` on the current human app key. Protocol discovery/settings: `const { data: adapters } = await r.protocols.list()` returns bounded `{ id, name, icon, color, maturity, capabilities, limitations }` metadata; `supported` means implemented, not configured, healthy, authorized, or enabled. Methods: `list`, `status`, `listCandidates`, `getCandidate`, `search`, `getSettings`, `refresh`, `updateSettings`.
638
639
  - Native Nostr: `const { data: preview } = await r.protocols.prepareNativeNostr(identityId, { action: "publish", content: draft })`; review and sign the exact public event, then `submitNativeNostr(identityId, { intent: preview.intent, event, approve: true })`. Preparation/submission never auto-retry. After uncertainty, use `getNativeNostrPost(identityId, preview.postId ?? preview.eventId)` before a user-selected retry of the identical intent/event: deletion checks the original note's `postId`, publication checks `eventId`. Check `nativeNostrAccount()` enablement first; keys stay with the signer. For replies, after `nativeNostrAccount()` advertises `reply_text_note`, use `prepareNativeNostr(identityId, { action: "reply", content: draft, parentId: post.nativeId })`. Review returned parent/root/participants/relay and exact event, sign with the connected client signer, then `submitNativeNostr(identityId, { intent, event, approve: true })`. Requires users:read, posts:read and posts:write. Kind1 public notes only; reply enablement and shared UI/live proof remain pending. Do not inherit arbitrary notification tags or relay hints. Signing mutations never auto-retry; check `getNativeNostrPost(identityId, eventId)` after uncertainty before a user-selected identical-event retry.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recursiv/sdk",
3
- "version": "0.7.31",
3
+ "version": "0.7.33",
4
4
  "description": "TypeScript SDK for the Recursiv API",
5
5
  "license": "FSL-1.1-ALv2",
6
6
  "type": "module",