@@ -131,7 +131,7 @@ export async function fetchThoughts(
131131
132132export async function fetchThought (
133133 apiKey : string ,
134- id : number ,
134+ id : string ,
135135 excludeRestricted : boolean = true
136136) : Promise < Thought > {
137137 const qs = excludeRestricted ? "" : "?exclude_restricted=false" ;
@@ -140,10 +140,10 @@ export async function fetchThought(
140140
141141export async function updateThought (
142142 apiKey : string ,
143- id : number ,
143+ id : string ,
144144 data : { content ?: string ; type ?: string ; importance ?: number }
145- ) : Promise < { id : number ; action : string ; message : string } > {
146- return apiFetch < { id : number ; action : string ; message : string } > (
145+ ) : Promise < { id : string ; action : string ; message : string } > {
146+ return apiFetch < { id : string ; action : string ; message : string } > (
147147 apiKey ,
148148 `/thought/${ id } ` ,
149149 {
@@ -169,8 +169,8 @@ export async function fetchDuplicates(
169169
170170export interface DuplicateResolveResult {
171171 action : string ;
172- survivor_id : number | null ;
173- loser_id : number | null ;
172+ survivor_id : string | null ;
173+ loser_id : string | null ;
174174 reattached : {
175175 reflections : number ;
176176 thought_entities : number ;
@@ -180,8 +180,8 @@ export interface DuplicateResolveResult {
180180export async function resolveDuplicate (
181181 apiKey : string ,
182182 params : {
183- thought_id_a : number ;
184- thought_id_b : number ;
183+ thought_id_a : string ;
184+ thought_id_b : string ;
185185 action : "keep_a" | "keep_b" | "keep_both" ;
186186 }
187187) : Promise < DuplicateResolveResult > {
@@ -193,7 +193,7 @@ export async function resolveDuplicate(
193193
194194export async function deleteThought (
195195 apiKey : string ,
196- id : number
196+ id : string
197197) : Promise < void > {
198198 await apiFetch < unknown > ( apiKey , `/thought/${ id } ` , { method : "DELETE" } ) ;
199199}
@@ -236,7 +236,7 @@ export async function fetchStats(
236236}
237237
238238export interface CaptureResult {
239- thought_id : number ;
239+ thought_id : string ;
240240 action : string ;
241241 type : string ;
242242 sensitivity_tier : string ;
0 commit comments