@recursiv/sdk 0.7.15 → 0.7.16

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.
@@ -1,5 +1,5 @@
1
1
  import type { HttpClient } from '../client.js';
2
- import type { SingleResponse, PaginatedResponse } from '../types.js';
2
+ import type { PaginatedResponse, SingleResponse } from '../types.js';
3
3
  export type ReportTargetType = 'post' | 'user' | 'community' | 'message';
4
4
  export type ReportStatus = 'pending' | 'resolved' | 'dismissed';
5
5
  export interface CreateReportInput {
@@ -21,6 +21,8 @@ export interface ReportRecord {
21
21
  }
22
22
  export interface ResolveReportInput {
23
23
  action?: 'down_rank' | 'label' | 'remove' | 'suspend' | 'ban' | 'none';
24
+ /** Apply a user action to the author of a reported post. Defaults to the report target. */
25
+ action_target?: 'report_target' | 'post_author';
24
26
  label?: string;
25
27
  reason?: string;
26
28
  actor_type?: 'human' | 'ai';
@@ -42,6 +44,9 @@ export declare class ReportsResource {
42
44
  resolve(reportId: string, input?: ResolveReportInput): Promise<SingleResponse<{
43
45
  success: true;
44
46
  action_taken: string;
47
+ action_target_type: string | null;
48
+ action_target_id: string | null;
49
+ moderation_action_id: string | null;
45
50
  }>>;
46
51
  /** Dismiss a report without taking enforcement action. */
47
52
  dismiss(reportId: string): Promise<SingleResponse<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recursiv/sdk",
3
- "version": "0.7.15",
3
+ "version": "0.7.16",
4
4
  "description": "TypeScript SDK for the Recursiv API",
5
5
  "license": "FSL-1.1-ALv2",
6
6
  "type": "module",