@burdenoff/microfe-theculturepost 2026.1110.3 → 2026.1112.2

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,7 +1,7 @@
1
- import { useTcpAddCitation as e, useTcpAddStoryClaim as t, useTcpAiContextRuns as n, useTcpArchiveItem as r, useTcpArchiveItems as i, useTcpArchiveTopic as a, useTcpCitations as o, useTcpCollection as s, useTcpCollections as c, useTcpCreateArchiveItem as l, useTcpCreateCollection as u, useTcpCreateStory as d, useTcpCreateTopic as f, useTcpDiscussion as p, useTcpDiscussions as m, useTcpGenerateAiContext as h, useTcpLinkCitationToClaim as g, useTcpLockDiscussion as _, useTcpModerateReply as v, useTcpMySavedStories as y, useTcpOpenDiscussion as b, useTcpOralHistories as x, useTcpPostReply as S, useTcpRecordOralHistory as C, useTcpRemoveStoryClaim as w, useTcpReplies as T, useTcpReviewAiContext as E, useTcpStories as D, useTcpStory as O, useTcpStoryClaims as k, useTcpToggleStoryBookmark as A, useTcpTopic as j, useTcpTopics as M, useTcpTransitionStory as N, useTcpUpdateStory as P, useTcpUpdateStoryClaim as F, useTcpUpdateTopic as I, useTcpVerifyCitation as L } from "./useTcpApi.js";
2
- import { useCursorPager as R } from "./useCursorPager.js";
3
- import { FILE_FOLDERS as z, uploadImageToFiles as B, useFileUrl as V } from "./useFiles.js";
4
- import { stripBasePath as H, usePageAnalytics as U } from "./usePageAnalytics.js";
5
- import { useTr as W } from "./useTr.js";
6
- import { usePendingOralHistorySync as G } from "./usePendingOralHistorySync.js";
7
- export { z as FILE_FOLDERS, H as stripBasePath, B as uploadImageToFiles, R as useCursorPager, V as useFileUrl, U as usePageAnalytics, G as usePendingOralHistorySync, e as useTcpAddCitation, t as useTcpAddStoryClaim, n as useTcpAiContextRuns, r as useTcpArchiveItem, i as useTcpArchiveItems, a as useTcpArchiveTopic, o as useTcpCitations, s as useTcpCollection, c as useTcpCollections, l as useTcpCreateArchiveItem, u as useTcpCreateCollection, d as useTcpCreateStory, f as useTcpCreateTopic, p as useTcpDiscussion, m as useTcpDiscussions, h as useTcpGenerateAiContext, g as useTcpLinkCitationToClaim, _ as useTcpLockDiscussion, v as useTcpModerateReply, y as useTcpMySavedStories, b as useTcpOpenDiscussion, x as useTcpOralHistories, S as useTcpPostReply, C as useTcpRecordOralHistory, w as useTcpRemoveStoryClaim, T as useTcpReplies, E as useTcpReviewAiContext, D as useTcpStories, O as useTcpStory, k as useTcpStoryClaims, A as useTcpToggleStoryBookmark, j as useTcpTopic, M as useTcpTopics, N as useTcpTransitionStory, P as useTcpUpdateStory, F as useTcpUpdateStoryClaim, I as useTcpUpdateTopic, L as useTcpVerifyCitation, W as useTr };
1
+ import { TcpApiError as e, useTcpAddCitation as t, useTcpAddStoryClaim as n, useTcpAiContextRuns as r, useTcpArchiveItem as i, useTcpArchiveItems as a, useTcpArchiveTopic as o, useTcpCitations as s, useTcpCollection as c, useTcpCollections as l, useTcpCreateArchiveItem as u, useTcpCreateCollection as d, useTcpCreateStory as f, useTcpCreateTopic as p, useTcpDiscussion as m, useTcpDiscussions as h, useTcpGenerateAiContext as g, useTcpLinkCitationToClaim as _, useTcpLockDiscussion as v, useTcpModerateReply as y, useTcpMySavedStories as b, useTcpOpenDiscussion as x, useTcpOralHistories as S, useTcpPostReply as C, useTcpRecordOralHistory as w, useTcpRemoveStoryClaim as T, useTcpReplies as E, useTcpReviewAiContext as D, useTcpStories as O, useTcpStory as k, useTcpStoryClaims as A, useTcpToggleStoryBookmark as j, useTcpTopic as M, useTcpTopics as N, useTcpTransitionStory as P, useTcpUpdateStory as F, useTcpUpdateStoryClaim as I, useTcpUpdateTopic as L, useTcpVerifyCitation as R } from "./useTcpApi.js";
2
+ import { useCursorPager as z } from "./useCursorPager.js";
3
+ import { FILE_FOLDERS as B, uploadImageToFiles as V, useFileUrl as H } from "./useFiles.js";
4
+ import { stripBasePath as U, usePageAnalytics as W } from "./usePageAnalytics.js";
5
+ import { useTr as G } from "./useTr.js";
6
+ import { usePendingOralHistorySync as K } from "./usePendingOralHistorySync.js";
7
+ export { B as FILE_FOLDERS, e as TcpApiError, U as stripBasePath, V as uploadImageToFiles, z as useCursorPager, H as useFileUrl, W as usePageAnalytics, K as usePendingOralHistorySync, t as useTcpAddCitation, n as useTcpAddStoryClaim, r as useTcpAiContextRuns, i as useTcpArchiveItem, a as useTcpArchiveItems, o as useTcpArchiveTopic, s as useTcpCitations, c as useTcpCollection, l as useTcpCollections, u as useTcpCreateArchiveItem, d as useTcpCreateCollection, f as useTcpCreateStory, p as useTcpCreateTopic, m as useTcpDiscussion, h as useTcpDiscussions, g as useTcpGenerateAiContext, _ as useTcpLinkCitationToClaim, v as useTcpLockDiscussion, y as useTcpModerateReply, b as useTcpMySavedStories, x as useTcpOpenDiscussion, S as useTcpOralHistories, C as useTcpPostReply, w as useTcpRecordOralHistory, T as useTcpRemoveStoryClaim, E as useTcpReplies, D as useTcpReviewAiContext, O as useTcpStories, k as useTcpStory, A as useTcpStoryClaims, j as useTcpToggleStoryBookmark, M as useTcpTopic, N as useTcpTopics, P as useTcpTransitionStory, F as useTcpUpdateStory, I as useTcpUpdateStoryClaim, L as useTcpUpdateTopic, R as useTcpVerifyCitation, G as useTr };
@@ -1,4 +1,9 @@
1
1
  import { TcpConnection, TcpStory, TcpStoryStatus, TcpTopic, TcpTopicCategory, TcpCitation, TcpVerificationStatus, TcpDiscussion, TcpReply, TcpModerationStatus, TcpCollection, TcpArchiveItem, TcpArchiveItemKind, TcpAccessLevel, TcpOralHistory, TcpCreateStoryInput, TcpUpdateStoryInput, TcpCreateTopicInput, TcpUpdateTopicInput, TcpCreateCitationInput, TcpStoryClaim, TcpCreateStoryClaimInput, TcpUpdateStoryClaimInput, TcpCreateDiscussionInput, TcpCreateReplyInput, TcpCreateCollectionInput, TcpCreateArchiveItemInput, TcpUpdateArchiveItemInput, TcpCreateOralHistoryInput, TcpAgentRun, TcpGenerateAiContextInput, PaginationInput } from '../types';
2
+ /** A GraphQL failure carrying the server's `extensions.code` so callers can map it to friendly copy. */
3
+ export declare class TcpApiError extends Error {
4
+ readonly code: string | null;
5
+ constructor(message: string, code: string | null);
6
+ }
2
7
  export interface StoryFilters {
3
8
  status?: TcpStoryStatus;
4
9
  topicId?: string;
@@ -7,8 +7,13 @@ import { clearGraphqlResponseCache as r } from "../lib/graphql-cache.js";
7
7
  import { useMutation as i, useQuery as a, useQueryClient as o } from "@tanstack/react-query";
8
8
  import { graphqlFetch as s } from "@burdenoff/fe-libs/shared/graphql";
9
9
  // src/theculturepost/hooks/useTcpApi.ts
10
- var c = (e) => /^\s*mutation\b/.test(e), l = async (e, t, n) => {
11
- let i = c(e);
10
+ var c = class extends Error {
11
+ code;
12
+ constructor(e, t) {
13
+ super(e), this.name = "TcpApiError", this.code = t;
14
+ }
15
+ }, ee = (e) => /^\s*mutation\b/.test(e), l = async (e, t, n) => {
16
+ let i = ee(e);
12
17
  i && r();
13
18
  let a = await s({
14
19
  gateway: "workspace",
@@ -17,7 +22,10 @@ var c = (e) => /^\s*mutation\b/.test(e), l = async (e, t, n) => {
17
22
  variables: t,
18
23
  workspaceToken: !0
19
24
  });
20
- if (i && r(), a.errors?.length) throw Error(a.errors[0]?.message ?? "GraphQL request failed");
25
+ if (i && r(), a.errors?.length) {
26
+ let e = a.errors[0], t = e?.extensions?.code;
27
+ throw new c(e?.message ?? "GraphQL request failed", typeof t == "string" ? t : null);
28
+ }
21
29
  if (!a.data) throw Error("GraphQL response did not include data");
22
30
  return a.data;
23
31
  }, u = {
@@ -95,7 +103,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
95
103
  status: e.tcpModerationStatus ?? "PENDING",
96
104
  createdAt: e.createdAt,
97
105
  updatedAt: e.tcpModeratedAt ?? e.updatedAt
98
- }), S = "\n id workspaceId title description kind accessLevel collectionId file { id }\n provenance origin languages tags datedAt createdAt updatedAt\n", C = "\n id workspaceId title summary transcript narratorName language accessLevel collectionId\n recording { id } durationSecs recordedAt consentGiven tags createdAt updatedAt\n", w = "\n id workspaceId name slug description tradition cover { id } itemCount createdAt updatedAt\n", T = "\n id workspaceId actorId actorType trigger useCase storyId collectionId oralHistoryId\n provider model promptSummary groundingRefs { kind refId title }\n content uncertainty status error reviewStatus reviewNotes reviewedAt reviewedBy\n costUsd latencyMs tokensIn tokensOut createdAt\n", ee = (t = {}) => {
106
+ }), S = "\n id workspaceId title description kind accessLevel collectionId file { id }\n provenance origin languages tags datedAt createdAt updatedAt\n", C = "\n id workspaceId title summary transcript narratorName language accessLevel collectionId\n recording { id } durationSecs recordedAt consentGiven tags createdAt updatedAt\n", w = "\n id workspaceId name slug description tradition cover { id } itemCount createdAt updatedAt\n", T = "\n id workspaceId actorId actorType trigger useCase storyId collectionId oralHistoryId\n provider model promptSummary groundingRefs { kind refId title }\n content uncertainty status error reviewStatus reviewNotes reviewedAt reviewedBy\n costUsd latencyMs tokensIn tokensOut createdAt\n", E = (t = {}) => {
99
107
  let { apiGatewayUrl: n } = e();
100
108
  return a({
101
109
  queryKey: [...u.stories, t],
@@ -111,7 +119,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
111
119
  pagination: f(t.pagination)
112
120
  }, n)).tcpListStories
113
121
  });
114
- }, E = (t) => {
122
+ }, D = (t) => {
115
123
  let { apiGatewayUrl: n } = e();
116
124
  return a({
117
125
  queryKey: u.story(t ?? ""),
@@ -120,35 +128,35 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
120
128
  tcpStory(id: $id) { ${_} }
121
129
  }`, { id: t }, n)).tcpStory)
122
130
  });
123
- }, D = () => {
131
+ }, O = () => {
124
132
  let { apiGatewayUrl: r } = e(), a = o(), s = n();
125
133
  return i({
126
134
  mutationFn: async (e) => v((await l(`mutation TcpCreateStory($input: TcpCreateStoryInput!) {
127
135
  tcpCreateStory(input: $input) { ${_} }
128
136
  }`, { input: e }, r)).tcpCreateStory),
129
- onSuccess: (e) => (s(t.storyDraftCreated(e)), a.invalidateQueries({ queryKey: u.stories }))
137
+ onSuccess: (e) => (s(t.storyDraftCreated(e)), a.setQueryData(u.story(e.id), e), a.invalidateQueries({ queryKey: u.stories }))
130
138
  });
131
- }, O = () => {
139
+ }, k = () => {
132
140
  let { apiGatewayUrl: t } = e(), n = o();
133
141
  return i({
134
142
  mutationFn: async (e) => v((await l(`mutation TcpUpdateStory($id: ID!, $input: TcpUpdateStoryInput!) {
135
143
  tcpUpdateStory(id: $id, input: $input) { ${_} }
136
144
  }`, e, t)).tcpUpdateStory),
137
145
  onSuccess: (e) => {
138
- n.invalidateQueries({ queryKey: u.stories }), n.invalidateQueries({ queryKey: u.story(e.id) });
146
+ n.setQueryData(u.story(e.id), e), n.invalidateQueries({ queryKey: u.stories }), n.invalidateQueries({ queryKey: u.story(e.id) });
139
147
  }
140
148
  });
141
- }, k = () => {
149
+ }, A = () => {
142
150
  let { apiGatewayUrl: r } = e(), a = o(), s = n();
143
151
  return i({
144
152
  mutationFn: async (e) => v((await l(`mutation TcpTransitionStory($id: ID!, $status: TcpStoryStatus!) {
145
153
  tcpTransitionStory(id: $id, status: $status) { ${_} }
146
154
  }`, e, r)).tcpTransitionStory),
147
155
  onSuccess: (e) => {
148
- e.status === "PUBLISHED" && s(t.storyPublished(e)), a.invalidateQueries({ queryKey: u.stories }), a.invalidateQueries({ queryKey: u.story(e.id) });
156
+ e.status === "PUBLISHED" && s(t.storyPublished(e)), a.setQueryData(u.story(e.id), e), a.invalidateQueries({ queryKey: u.stories }), a.invalidateQueries({ queryKey: u.story(e.id) });
149
157
  }
150
158
  });
151
- }, A = (t) => {
159
+ }, j = (t) => {
152
160
  let { apiGatewayUrl: n } = e();
153
161
  return a({
154
162
  queryKey: [
@@ -163,7 +171,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
163
171
  }
164
172
  }`, { pagination: f(t) }, n)).tcpMySavedStories
165
173
  });
166
- }, j = () => {
174
+ }, M = () => {
167
175
  let { apiGatewayUrl: r, workspaceId: a } = e(), s = o(), c = n();
168
176
  return i({
169
177
  mutationFn: async (e) => (await l("mutation TcpToggleStoryBookmark($storyId: ID!) { tcpToggleStoryBookmark(storyId: $storyId) }", { storyId: e }, r)).tcpToggleStoryBookmark,
@@ -171,7 +179,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
171
179
  e && c(t.storySaved(a, n)), s.invalidateQueries({ queryKey: u.stories }), s.invalidateQueries({ queryKey: u.story(n) });
172
180
  }
173
181
  });
174
- }, M = (t) => {
182
+ }, N = (t) => {
175
183
  let { apiGatewayUrl: n } = e();
176
184
  return a({
177
185
  queryKey: u.citations(t ?? ""),
@@ -180,7 +188,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
180
188
  tcpListCitations(storyId: $storyId) { items { ${h} } pageInfo { cursor hasMore } }
181
189
  }`, { storyId: t }, n)).tcpListCitations.items
182
190
  });
183
- }, N = () => {
191
+ }, P = () => {
184
192
  let { apiGatewayUrl: r } = e(), a = o(), s = n();
185
193
  return i({
186
194
  mutationFn: async (e) => (await l(`mutation TcpAddCitation($input: TcpCreateCitationInput!) {
@@ -190,7 +198,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
190
198
  s(t.citationAttached(e)), a.invalidateQueries({ queryKey: u.citations(e.storyId) }), a.invalidateQueries({ queryKey: u.claims(e.storyId) }), a.invalidateQueries({ queryKey: u.story(e.storyId) });
191
199
  }
192
200
  });
193
- }, P = () => {
201
+ }, F = () => {
194
202
  let { apiGatewayUrl: t } = e(), n = o();
195
203
  return i({
196
204
  mutationFn: async (e) => (await l(`mutation TcpVerifyCitation($id: ID!, $verification: TcpVerificationStatus!) {
@@ -200,7 +208,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
200
208
  n.invalidateQueries({ queryKey: u.citations(e.storyId) }), n.invalidateQueries({ queryKey: u.claims(e.storyId) }), n.invalidateQueries({ queryKey: u.story(e.storyId) });
201
209
  }
202
210
  });
203
- }, F = () => {
211
+ }, I = () => {
204
212
  let { apiGatewayUrl: t } = e(), n = o();
205
213
  return i({
206
214
  mutationFn: async (e) => (await l(`mutation TcpLinkCitationToClaim($citationId: ID!, $claimId: ID) {
@@ -210,7 +218,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
210
218
  n.invalidateQueries({ queryKey: u.citations(e.storyId) }), n.invalidateQueries({ queryKey: u.claims(e.storyId) });
211
219
  }
212
220
  });
213
- }, I = (t) => {
221
+ }, L = (t) => {
214
222
  let { apiGatewayUrl: n } = e();
215
223
  return a({
216
224
  queryKey: u.claims(t ?? ""),
@@ -219,7 +227,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
219
227
  tcpListStoryClaims(storyId: $storyId) { ${g} }
220
228
  }`, { storyId: t }, n)).tcpListStoryClaims
221
229
  });
222
- }, L = () => {
230
+ }, R = () => {
223
231
  let { apiGatewayUrl: t } = e(), n = o();
224
232
  return i({
225
233
  mutationFn: async (e) => (await l(`mutation TcpAddStoryClaim($input: TcpCreateStoryClaimInput!) {
@@ -229,7 +237,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
229
237
  n.invalidateQueries({ queryKey: u.claims(e.storyId) });
230
238
  }
231
239
  });
232
- }, R = () => {
240
+ }, z = () => {
233
241
  let { apiGatewayUrl: t } = e(), n = o();
234
242
  return i({
235
243
  mutationFn: async (e) => (await l(`mutation TcpUpdateStoryClaim($id: ID!, $input: TcpUpdateStoryClaimInput!) {
@@ -239,7 +247,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
239
247
  n.invalidateQueries({ queryKey: u.claims(e.storyId) });
240
248
  }
241
249
  });
242
- }, z = () => {
250
+ }, B = () => {
243
251
  let { apiGatewayUrl: t } = e(), n = o();
244
252
  return i({
245
253
  mutationFn: async (e) => (await l("mutation TcpRemoveStoryClaim($id: ID!) { tcpRemoveStoryClaim(id: $id) }", { id: e.id }, t)).tcpRemoveStoryClaim,
@@ -247,7 +255,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
247
255
  n.invalidateQueries({ queryKey: u.claims(t.storyId) }), n.invalidateQueries({ queryKey: u.citations(t.storyId) });
248
256
  }
249
257
  });
250
- }, B = (t = {}) => {
258
+ }, V = (t = {}) => {
251
259
  let { apiGatewayUrl: n } = e();
252
260
  return a({
253
261
  queryKey: [...u.topics, t],
@@ -261,7 +269,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
261
269
  pagination: f(t.pagination)
262
270
  }, n)).tcpListTopics
263
271
  });
264
- }, V = (t) => {
272
+ }, te = (t) => {
265
273
  let { apiGatewayUrl: n } = e();
266
274
  return a({
267
275
  queryKey: u.topic(t ?? ""),
@@ -279,7 +287,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
279
287
  } : null;
280
288
  }
281
289
  });
282
- }, te = () => {
290
+ }, H = () => {
283
291
  let { apiGatewayUrl: t } = e(), n = o();
284
292
  return i({
285
293
  mutationFn: async (e) => (await l(`mutation TcpCreateTopic($input: TcpCreateTopicInput!) {
@@ -287,7 +295,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
287
295
  }`, { input: e }, t)).tcpCreateTopic,
288
296
  onSuccess: () => n.invalidateQueries({ queryKey: u.topics })
289
297
  });
290
- }, H = () => {
298
+ }, U = () => {
291
299
  let { apiGatewayUrl: t } = e(), n = o();
292
300
  return i({
293
301
  mutationFn: async (e) => (await l(`mutation TcpUpdateTopic($id: ID!, $input: TcpUpdateTopicInput!) {
@@ -297,7 +305,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
297
305
  n.invalidateQueries({ queryKey: u.topics }), n.invalidateQueries({ queryKey: u.topic(e.id) });
298
306
  }
299
307
  });
300
- }, U = () => {
308
+ }, W = () => {
301
309
  let { apiGatewayUrl: t } = e(), n = o();
302
310
  return i({
303
311
  mutationFn: async (e) => (await l("mutation TcpArchiveTopic($id: ID!) { tcpArchiveTopic(id: $id) }", { id: e }, t)).tcpArchiveTopic,
@@ -305,7 +313,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
305
313
  n.invalidateQueries({ queryKey: u.topics }), n.invalidateQueries({ queryKey: u.topic(t) });
306
314
  }
307
315
  });
308
- }, W = (t = {}) => {
316
+ }, G = (t = {}) => {
309
317
  let { apiGatewayUrl: n } = e();
310
318
  return a({
311
319
  queryKey: [...u.discussions, t],
@@ -320,7 +328,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
320
328
  pagination: f(t.pagination)
321
329
  }, n)).tcpListDiscussions
322
330
  });
323
- }, G = (t) => {
331
+ }, K = (t) => {
324
332
  let { apiGatewayUrl: n } = e();
325
333
  return a({
326
334
  queryKey: u.discussion(t ?? ""),
@@ -338,7 +346,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
338
346
  } : null;
339
347
  }
340
348
  });
341
- }, K = (t, n) => {
349
+ }, q = (t, n) => {
342
350
  let { apiGatewayUrl: r } = e();
343
351
  return a({
344
352
  queryKey: [...u.replies(t ?? ""), n ?? "all"],
@@ -350,7 +358,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
350
358
  status: n
351
359
  }, r)).tcpListReplies.items.map(x)
352
360
  });
353
- }, q = () => {
361
+ }, J = () => {
354
362
  let { apiGatewayUrl: r } = e(), a = o(), s = n();
355
363
  return i({
356
364
  mutationFn: async (e) => (await l(`mutation TcpOpenDiscussion($input: TcpCreateDiscussionInput!) {
@@ -358,7 +366,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
358
366
  }`, { input: e }, r)).tcpOpenDiscussion,
359
367
  onSuccess: (e) => (s(t.discussionOpened(e)), a.invalidateQueries({ queryKey: u.discussions }))
360
368
  });
361
- }, J = () => {
369
+ }, Y = () => {
362
370
  let { apiGatewayUrl: r } = e(), a = o(), s = n();
363
371
  return i({
364
372
  mutationFn: async (e) => x((await l(`mutation TcpPostReply($input: TcpCreateReplyInput!) {
@@ -368,7 +376,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
368
376
  s(t.discussionReplied(e)), a.invalidateQueries({ queryKey: u.replies(e.discussionId) }), a.invalidateQueries({ queryKey: u.discussion(e.discussionId) }), a.invalidateQueries({ queryKey: u.discussions });
369
377
  }
370
378
  });
371
- }, Y = () => {
379
+ }, X = () => {
372
380
  let { apiGatewayUrl: t } = e(), n = o();
373
381
  return i({
374
382
  mutationFn: async (e) => x((await l(`mutation TcpModerateReply($id: ID!, $status: TcpModerationStatus!) {
@@ -378,7 +386,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
378
386
  n.invalidateQueries({ queryKey: u.replies(e.discussionId) }), n.invalidateQueries({ queryKey: u.discussion(e.discussionId) });
379
387
  }
380
388
  });
381
- }, X = () => {
389
+ }, Z = () => {
382
390
  let { apiGatewayUrl: t } = e(), n = o();
383
391
  return i({
384
392
  mutationFn: async (e) => (await l(`mutation TcpLockDiscussion($id: ID!) {
@@ -388,7 +396,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
388
396
  n.invalidateQueries({ queryKey: u.discussions }), n.invalidateQueries({ queryKey: u.discussion(e.id) });
389
397
  }
390
398
  });
391
- }, Z = (t) => {
399
+ }, Q = (t) => {
392
400
  let { apiGatewayUrl: n } = e();
393
401
  return a({
394
402
  queryKey: [...u.collections, t],
@@ -396,7 +404,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
396
404
  tcpListCollections(pagination: $pagination) { items { ${w} } pageInfo { cursor hasMore } }
397
405
  }`, { pagination: f(t) }, n)).tcpListCollections.items
398
406
  });
399
- }, Q = (t) => {
407
+ }, ne = (t) => {
400
408
  let { apiGatewayUrl: n } = e();
401
409
  return a({
402
410
  queryKey: u.collection(t ?? ""),
@@ -416,7 +424,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
416
424
  } : null;
417
425
  }
418
426
  });
419
- }, ne = () => {
427
+ }, re = () => {
420
428
  let { apiGatewayUrl: r } = e(), a = o(), s = n();
421
429
  return i({
422
430
  mutationFn: async (e) => (await l(`mutation TcpCreateCollection($input: TcpCreateCollectionInput!) {
@@ -424,7 +432,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
424
432
  }`, { input: e }, r)).tcpCreateCollection,
425
433
  onSuccess: (e) => (s(t.collectionCreated(e)), a.invalidateQueries({ queryKey: u.collections }))
426
434
  });
427
- }, re = (t = {}) => {
435
+ }, ie = (t = {}) => {
428
436
  let { apiGatewayUrl: n } = e();
429
437
  return a({
430
438
  queryKey: [...u.archiveItems, t],
@@ -440,7 +448,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
440
448
  pagination: f(t.pagination)
441
449
  }, n)).tcpListArchiveItems
442
450
  });
443
- }, ie = (t) => {
451
+ }, ae = (t) => {
444
452
  let { apiGatewayUrl: n } = e();
445
453
  return a({
446
454
  queryKey: u.archiveItem(t ?? ""),
@@ -452,7 +460,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
452
460
  }
453
461
  }`, { id: t }, n)).tcpArchiveItem
454
462
  });
455
- }, ae = () => {
463
+ }, oe = () => {
456
464
  let { apiGatewayUrl: r } = e(), a = o(), s = n();
457
465
  return i({
458
466
  mutationFn: async (e) => (await l(`mutation TcpCreateArchiveItem($input: TcpCreateArchiveItemInput!) {
@@ -462,7 +470,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
462
470
  s(t.archiveItemUploaded(e)), a.invalidateQueries({ queryKey: u.archiveItems }), e.collectionId && a.invalidateQueries({ queryKey: u.collection(e.collectionId) });
463
471
  }
464
472
  });
465
- }, oe = (t) => {
473
+ }, $ = (t) => {
466
474
  let { apiGatewayUrl: n } = e();
467
475
  return a({
468
476
  queryKey: [...u.oralHistories, t ?? "all"],
@@ -470,7 +478,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
470
478
  tcpListOralHistories(collectionId: $collectionId) { items { ${C} } pageInfo { cursor hasMore } }
471
479
  }`, { collectionId: t }, n)).tcpListOralHistories.items
472
480
  });
473
- }, $ = () => {
481
+ }, se = () => {
474
482
  let { apiGatewayUrl: r } = e(), a = o(), s = n();
475
483
  return i({
476
484
  mutationFn: async (e) => (await l(`mutation TcpRecordOralHistory($input: TcpCreateOralHistoryInput!) {
@@ -480,7 +488,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
480
488
  s(t.oralHistoryRecorded(e)), a.invalidateQueries({ queryKey: u.oralHistories }), e.collectionId && a.invalidateQueries({ queryKey: u.collection(e.collectionId) });
481
489
  }
482
490
  });
483
- }, se = (t = {}) => {
491
+ }, ce = (t = {}) => {
484
492
  let { apiGatewayUrl: n } = e();
485
493
  return a({
486
494
  queryKey: [...u.aiRuns, t],
@@ -496,7 +504,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
496
504
  pagination: f(t.pagination)
497
505
  }, n)).tcpAiContextRuns
498
506
  });
499
- }, ce = () => {
507
+ }, le = () => {
500
508
  let { apiGatewayUrl: t } = e(), n = o();
501
509
  return i({
502
510
  mutationFn: async (e) => (await l(`mutation TcpGenerateAiContext($input: TcpGenerateAiContextInput!) {
@@ -506,7 +514,7 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
506
514
  n.invalidateQueries({ queryKey: u.aiRuns });
507
515
  }
508
516
  });
509
- }, le = () => {
517
+ }, ue = () => {
510
518
  let { apiGatewayUrl: t } = e(), n = o();
511
519
  return i({
512
520
  mutationFn: async (e) => (await l(`mutation TcpReviewAiContext($id: ID!, $approved: Boolean!, $reviewNotes: String) {
@@ -517,6 +525,6 @@ var y = "\n id workspaceId title prompt storyId openedById isInterfaith isLocke
517
525
  }
518
526
  });
519
527
  };
520
- export { N as useTcpAddCitation, L as useTcpAddStoryClaim, se as useTcpAiContextRuns, ie as useTcpArchiveItem, re as useTcpArchiveItems, U as useTcpArchiveTopic, M as useTcpCitations, Q as useTcpCollection, Z as useTcpCollections, ae as useTcpCreateArchiveItem, ne as useTcpCreateCollection, D as useTcpCreateStory, te as useTcpCreateTopic, G as useTcpDiscussion, W as useTcpDiscussions, ce as useTcpGenerateAiContext, F as useTcpLinkCitationToClaim, X as useTcpLockDiscussion, Y as useTcpModerateReply, A as useTcpMySavedStories, q as useTcpOpenDiscussion, oe as useTcpOralHistories, J as useTcpPostReply, $ as useTcpRecordOralHistory, z as useTcpRemoveStoryClaim, K as useTcpReplies, le as useTcpReviewAiContext, ee as useTcpStories, E as useTcpStory, I as useTcpStoryClaims, j as useTcpToggleStoryBookmark, V as useTcpTopic, B as useTcpTopics, k as useTcpTransitionStory, O as useTcpUpdateStory, R as useTcpUpdateStoryClaim, H as useTcpUpdateTopic, P as useTcpVerifyCitation };
528
+ export { c as TcpApiError, P as useTcpAddCitation, R as useTcpAddStoryClaim, ce as useTcpAiContextRuns, ae as useTcpArchiveItem, ie as useTcpArchiveItems, W as useTcpArchiveTopic, N as useTcpCitations, ne as useTcpCollection, Q as useTcpCollections, oe as useTcpCreateArchiveItem, re as useTcpCreateCollection, O as useTcpCreateStory, H as useTcpCreateTopic, K as useTcpDiscussion, G as useTcpDiscussions, le as useTcpGenerateAiContext, I as useTcpLinkCitationToClaim, Z as useTcpLockDiscussion, X as useTcpModerateReply, j as useTcpMySavedStories, J as useTcpOpenDiscussion, $ as useTcpOralHistories, Y as useTcpPostReply, se as useTcpRecordOralHistory, B as useTcpRemoveStoryClaim, q as useTcpReplies, ue as useTcpReviewAiContext, E as useTcpStories, D as useTcpStory, L as useTcpStoryClaims, M as useTcpToggleStoryBookmark, te as useTcpTopic, V as useTcpTopics, A as useTcpTransitionStory, k as useTcpUpdateStory, z as useTcpUpdateStoryClaim, U as useTcpUpdateTopic, F as useTcpVerifyCitation };
521
529
 
522
530
  //# sourceMappingURL=useTcpApi.js.map