@uthana/react 0.2.0

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.
Files changed (58) hide show
  1. package/dist/UthanaProvider.d.ts +24 -0
  2. package/dist/UthanaProvider.d.ts.map +1 -0
  3. package/dist/client.d.ts +15 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/hooks/characters.d.ts +36 -0
  6. package/dist/hooks/characters.d.ts.map +1 -0
  7. package/dist/hooks/index.d.ts +11 -0
  8. package/dist/hooks/index.d.ts.map +1 -0
  9. package/dist/hooks/jobs.d.ts +8 -0
  10. package/dist/hooks/jobs.d.ts.map +1 -0
  11. package/dist/hooks/motionDownloads.d.ts +8 -0
  12. package/dist/hooks/motionDownloads.d.ts.map +1 -0
  13. package/dist/hooks/motions.d.ts +14 -0
  14. package/dist/hooks/motions.d.ts.map +1 -0
  15. package/dist/hooks/org.d.ts +8 -0
  16. package/dist/hooks/org.d.ts.map +1 -0
  17. package/dist/hooks/ttm.d.ts +16 -0
  18. package/dist/hooks/ttm.d.ts.map +1 -0
  19. package/dist/hooks/useCharacters.d.ts +36 -0
  20. package/dist/hooks/useCharacters.d.ts.map +1 -0
  21. package/dist/hooks/useJobs.d.ts +8 -0
  22. package/dist/hooks/useJobs.d.ts.map +1 -0
  23. package/dist/hooks/useMotionDownloads.d.ts +8 -0
  24. package/dist/hooks/useMotionDownloads.d.ts.map +1 -0
  25. package/dist/hooks/useMotions.d.ts +14 -0
  26. package/dist/hooks/useMotions.d.ts.map +1 -0
  27. package/dist/hooks/useOrg.d.ts +8 -0
  28. package/dist/hooks/useOrg.d.ts.map +1 -0
  29. package/dist/hooks/useTtm.d.ts +16 -0
  30. package/dist/hooks/useTtm.d.ts.map +1 -0
  31. package/dist/hooks/useVtm.d.ts +11 -0
  32. package/dist/hooks/useVtm.d.ts.map +1 -0
  33. package/dist/hooks/vtm.d.ts +11 -0
  34. package/dist/hooks/vtm.d.ts.map +1 -0
  35. package/dist/index.cjs +431 -0
  36. package/dist/index.cjs.map +1 -0
  37. package/dist/index.d.cts +1825 -0
  38. package/dist/index.d.ts +1825 -0
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.js +409 -0
  41. package/dist/index.js.map +1 -0
  42. package/dist/modules/characters.d.ts +262 -0
  43. package/dist/modules/characters.d.ts.map +1 -0
  44. package/dist/modules/index.d.ts +11 -0
  45. package/dist/modules/index.d.ts.map +1 -0
  46. package/dist/modules/jobs.d.ts +332 -0
  47. package/dist/modules/jobs.d.ts.map +1 -0
  48. package/dist/modules/motionDownloads.d.ts +332 -0
  49. package/dist/modules/motionDownloads.d.ts.map +1 -0
  50. package/dist/modules/motions.d.ts +511 -0
  51. package/dist/modules/motions.d.ts.map +1 -0
  52. package/dist/modules/org.d.ts +332 -0
  53. package/dist/modules/org.d.ts.map +1 -0
  54. package/dist/modules/ttm.d.ts +16 -0
  55. package/dist/modules/ttm.d.ts.map +1 -0
  56. package/dist/modules/vtm.d.ts +11 -0
  57. package/dist/modules/vtm.d.ts.map +1 -0
  58. package/package.json +46 -0
@@ -0,0 +1,1825 @@
1
+ import * as _uthana_client from '@uthana/client';
2
+ import { UthanaClientOptions, UthanaClient, CreateCharacterResult, CreateFromGeneratedImageResult, TtmModelType, VtmModelType } from '@uthana/client';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+ import * as _tanstack_react_query from '@tanstack/react-query';
5
+ import { QueryClient } from '@tanstack/react-query';
6
+ import { ReactNode } from 'react';
7
+ import * as _tanstack_query_core from '@tanstack/query-core';
8
+
9
+ /**
10
+ * (c) Copyright 2026 Uthana, Inc. All Rights Reserved
11
+ */
12
+
13
+ /**
14
+ * Create or return the singleton Uthana client for React apps.
15
+ * Call this once (e.g. in a root layout or provider) with your API key.
16
+ * If called again with a different apiKey, the singleton is replaced.
17
+ */
18
+ declare function createUthanaClient(apiKey: string, options?: UthanaClientOptions): UthanaClient;
19
+ /**
20
+ * Get the current singleton client. Throws if createUthanaClient was never called.
21
+ */
22
+ declare function getUthanaClient(): UthanaClient;
23
+
24
+ /**
25
+ * Returns the Uthana client from context (UthanaProvider) or the singleton (createUthanaClient).
26
+ */
27
+ declare function useUthanaClient(): UthanaClient;
28
+ interface UthanaProviderProps {
29
+ apiKey: string;
30
+ options?: UthanaClientOptions;
31
+ /** When provided, UthanaProvider will not render QueryClientProvider. Use your own above. */
32
+ queryClient?: QueryClient;
33
+ children: ReactNode;
34
+ }
35
+ /**
36
+ * Provider that supplies the Uthana client and optionally react-query.
37
+ * When queryClient is passed, only the client context is provided (use your own QueryClientProvider).
38
+ * When not passed, creates a QueryClient and wraps with QueryClientProvider.
39
+ */
40
+ declare function UthanaProvider({ apiKey, options, queryClient: providedQueryClient, children, }: UthanaProviderProps): react_jsx_runtime.JSX.Element;
41
+
42
+ /** Hook to list characters. */
43
+ declare function useUthanaCharacters(): {
44
+ error: Error;
45
+ isError: true;
46
+ isPending: false;
47
+ isLoading: false;
48
+ isLoadingError: false;
49
+ isRefetchError: true;
50
+ isSuccess: false;
51
+ isPlaceholderData: false;
52
+ status: "error";
53
+ dataUpdatedAt: number;
54
+ errorUpdatedAt: number;
55
+ failureCount: number;
56
+ failureReason: Error | null;
57
+ errorUpdateCount: number;
58
+ isFetched: boolean;
59
+ isFetchedAfterMount: boolean;
60
+ isFetching: boolean;
61
+ isInitialLoading: boolean;
62
+ isPaused: boolean;
63
+ isRefetching: boolean;
64
+ isStale: boolean;
65
+ isEnabled: boolean;
66
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Character[], Error>>;
67
+ fetchStatus: _tanstack_query_core.FetchStatus;
68
+ promise: Promise<_uthana_client.Character[]>;
69
+ characters: _uthana_client.Character[] | undefined;
70
+ } | {
71
+ error: null;
72
+ isError: false;
73
+ isPending: false;
74
+ isLoading: false;
75
+ isLoadingError: false;
76
+ isRefetchError: false;
77
+ isSuccess: true;
78
+ isPlaceholderData: false;
79
+ status: "success";
80
+ dataUpdatedAt: number;
81
+ errorUpdatedAt: number;
82
+ failureCount: number;
83
+ failureReason: Error | null;
84
+ errorUpdateCount: number;
85
+ isFetched: boolean;
86
+ isFetchedAfterMount: boolean;
87
+ isFetching: boolean;
88
+ isInitialLoading: boolean;
89
+ isPaused: boolean;
90
+ isRefetching: boolean;
91
+ isStale: boolean;
92
+ isEnabled: boolean;
93
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Character[], Error>>;
94
+ fetchStatus: _tanstack_query_core.FetchStatus;
95
+ promise: Promise<_uthana_client.Character[]>;
96
+ characters: _uthana_client.Character[] | undefined;
97
+ } | {
98
+ error: Error;
99
+ isError: true;
100
+ isPending: false;
101
+ isLoading: false;
102
+ isLoadingError: true;
103
+ isRefetchError: false;
104
+ isSuccess: false;
105
+ isPlaceholderData: false;
106
+ status: "error";
107
+ dataUpdatedAt: number;
108
+ errorUpdatedAt: number;
109
+ failureCount: number;
110
+ failureReason: Error | null;
111
+ errorUpdateCount: number;
112
+ isFetched: boolean;
113
+ isFetchedAfterMount: boolean;
114
+ isFetching: boolean;
115
+ isInitialLoading: boolean;
116
+ isPaused: boolean;
117
+ isRefetching: boolean;
118
+ isStale: boolean;
119
+ isEnabled: boolean;
120
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Character[], Error>>;
121
+ fetchStatus: _tanstack_query_core.FetchStatus;
122
+ promise: Promise<_uthana_client.Character[]>;
123
+ characters: _uthana_client.Character[] | undefined;
124
+ } | {
125
+ error: null;
126
+ isError: false;
127
+ isPending: true;
128
+ isLoading: true;
129
+ isLoadingError: false;
130
+ isRefetchError: false;
131
+ isSuccess: false;
132
+ isPlaceholderData: false;
133
+ status: "pending";
134
+ dataUpdatedAt: number;
135
+ errorUpdatedAt: number;
136
+ failureCount: number;
137
+ failureReason: Error | null;
138
+ errorUpdateCount: number;
139
+ isFetched: boolean;
140
+ isFetchedAfterMount: boolean;
141
+ isFetching: boolean;
142
+ isInitialLoading: boolean;
143
+ isPaused: boolean;
144
+ isRefetching: boolean;
145
+ isStale: boolean;
146
+ isEnabled: boolean;
147
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Character[], Error>>;
148
+ fetchStatus: _tanstack_query_core.FetchStatus;
149
+ promise: Promise<_uthana_client.Character[]>;
150
+ characters: _uthana_client.Character[] | undefined;
151
+ } | {
152
+ error: null;
153
+ isError: false;
154
+ isPending: true;
155
+ isLoadingError: false;
156
+ isRefetchError: false;
157
+ isSuccess: false;
158
+ isPlaceholderData: false;
159
+ status: "pending";
160
+ dataUpdatedAt: number;
161
+ errorUpdatedAt: number;
162
+ failureCount: number;
163
+ failureReason: Error | null;
164
+ errorUpdateCount: number;
165
+ isFetched: boolean;
166
+ isFetchedAfterMount: boolean;
167
+ isFetching: boolean;
168
+ isLoading: boolean;
169
+ isInitialLoading: boolean;
170
+ isPaused: boolean;
171
+ isRefetching: boolean;
172
+ isStale: boolean;
173
+ isEnabled: boolean;
174
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Character[], Error>>;
175
+ fetchStatus: _tanstack_query_core.FetchStatus;
176
+ promise: Promise<_uthana_client.Character[]>;
177
+ characters: _uthana_client.Character[] | undefined;
178
+ } | {
179
+ isError: false;
180
+ error: null;
181
+ isPending: false;
182
+ isLoading: false;
183
+ isLoadingError: false;
184
+ isRefetchError: false;
185
+ isSuccess: true;
186
+ isPlaceholderData: true;
187
+ status: "success";
188
+ dataUpdatedAt: number;
189
+ errorUpdatedAt: number;
190
+ failureCount: number;
191
+ failureReason: Error | null;
192
+ errorUpdateCount: number;
193
+ isFetched: boolean;
194
+ isFetchedAfterMount: boolean;
195
+ isFetching: boolean;
196
+ isInitialLoading: boolean;
197
+ isPaused: boolean;
198
+ isRefetching: boolean;
199
+ isStale: boolean;
200
+ isEnabled: boolean;
201
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Character[], Error>>;
202
+ fetchStatus: _tanstack_query_core.FetchStatus;
203
+ promise: Promise<_uthana_client.Character[]>;
204
+ characters: _uthana_client.Character[] | undefined;
205
+ };
206
+ type Preview = {
207
+ key: string;
208
+ url: string;
209
+ };
210
+ type GenerateParams = {
211
+ from: "prompt";
212
+ prompt: string;
213
+ name?: string | null;
214
+ /** Return a preview key to auto-confirm without waiting for manual confirm(). */
215
+ onPreviewsReady?: (previews: Preview[]) => string | null | undefined | Promise<string | null | undefined>;
216
+ } | {
217
+ /**
218
+ * Upload an image file and generate a character from it.
219
+ * Always single-step — resolves directly to a finished character.
220
+ * No prompt or preview selection required.
221
+ */
222
+ from: "image";
223
+ file: File | Blob;
224
+ name?: string | null;
225
+ };
226
+ type CreateFileParams = {
227
+ from: "file";
228
+ file: File | Blob | string;
229
+ auto_rig?: boolean | null;
230
+ front_facing?: boolean | null;
231
+ };
232
+ type ConfirmParams = {
233
+ image_key: string;
234
+ /** Optionally name the character at confirmation time. */
235
+ name?: string | null;
236
+ };
237
+ type CreateCharacterData = CreateCharacterResult | CreateFromGeneratedImageResult;
238
+ /**
239
+ * Unified hook for all character creation flows:
240
+ *
241
+ * **File upload (GLB/FBX)** — single step:
242
+ * ```ts
243
+ * creator.create({ from: "file", file });
244
+ * ```
245
+ *
246
+ * **Text prompt** — two steps. Call generate(), then either:
247
+ * - let `onPreviewsReady` auto-select a key and complete automatically, or
248
+ * - render `creator.previews`, then call `creator.confirm({ image_key })`.
249
+ *
250
+ * ```ts
251
+ * // Auto-select first preview
252
+ * creator.generate({ from: "prompt", prompt: "a knight in armor",
253
+ * onPreviewsReady: (previews) => previews[0].key });
254
+ *
255
+ * // Manual selection
256
+ * creator.generate({ from: "prompt", prompt: "a knight" });
257
+ * // ... render creator.previews, user picks one ...
258
+ * creator.confirm({ image_key: selected });
259
+ * ```
260
+ *
261
+ * **Image file** — single step (no preview selection):
262
+ * ```ts
263
+ * creator.generate({ from: "image", file });
264
+ * ```
265
+ */
266
+ declare function useUthanaCreateCharacter(): {
267
+ /** Start a text-prompt or image generation flow. */
268
+ generate: (params: GenerateParams) => Promise<void>;
269
+ /** Confirm a generated preview and create the character (step 2 of the prompt flow). */
270
+ confirm: (params: ConfirmParams) => Promise<void>;
271
+ /** Upload a GLB/FBX directly (single step). */
272
+ create: (params: CreateFileParams) => Promise<void>;
273
+ /** Preview images from a prompt generation. Render for user selection, then call confirm(). */
274
+ previews: Preview[] | null;
275
+ /** True while generate() or create()/confirm() are in flight. */
276
+ isPending: boolean;
277
+ isGenerating: boolean;
278
+ /** True after prompt generate() completes and previews are ready for selection. */
279
+ isAwaitingSelection: boolean;
280
+ isCreating: boolean;
281
+ isSuccess: boolean;
282
+ isError: boolean;
283
+ /** Final result — CreateCharacterResult (file) or CreateFromGeneratedImageResult (generate flows). */
284
+ character: CreateCharacterData | null;
285
+ error: Error | null;
286
+ /** Reset all state back to idle. */
287
+ reset: () => void;
288
+ };
289
+ /** Hook to rename a character. */
290
+ declare function useUthanaRenameCharacter(): _tanstack_react_query.UseMutationResult<_uthana_client.Character, Error, {
291
+ character_id: string;
292
+ name: string;
293
+ }, unknown>;
294
+ /** Hook to delete a character. */
295
+ declare function useUthanaDeleteCharacter(): _tanstack_react_query.UseMutationResult<_uthana_client.Character, Error, {
296
+ character_id: string;
297
+ }, unknown>;
298
+
299
+ /**
300
+ * (c) Copyright 2026 Uthana, Inc. All Rights Reserved
301
+ */
302
+ /** Hook to list jobs. */
303
+ declare function useUthanaJobs(method?: string | null): {
304
+ error: Error;
305
+ isError: true;
306
+ isPending: false;
307
+ isLoading: false;
308
+ isLoadingError: false;
309
+ isRefetchError: true;
310
+ isSuccess: false;
311
+ isPlaceholderData: false;
312
+ status: "error";
313
+ dataUpdatedAt: number;
314
+ errorUpdatedAt: number;
315
+ failureCount: number;
316
+ failureReason: Error | null;
317
+ errorUpdateCount: number;
318
+ isFetched: boolean;
319
+ isFetchedAfterMount: boolean;
320
+ isFetching: boolean;
321
+ isInitialLoading: boolean;
322
+ isPaused: boolean;
323
+ isRefetching: boolean;
324
+ isStale: boolean;
325
+ isEnabled: boolean;
326
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Job[], Error>>;
327
+ fetchStatus: _tanstack_query_core.FetchStatus;
328
+ promise: Promise<_uthana_client.Job[]>;
329
+ jobs: _uthana_client.Job[] | undefined;
330
+ } | {
331
+ error: null;
332
+ isError: false;
333
+ isPending: false;
334
+ isLoading: false;
335
+ isLoadingError: false;
336
+ isRefetchError: false;
337
+ isSuccess: true;
338
+ isPlaceholderData: false;
339
+ status: "success";
340
+ dataUpdatedAt: number;
341
+ errorUpdatedAt: number;
342
+ failureCount: number;
343
+ failureReason: Error | null;
344
+ errorUpdateCount: number;
345
+ isFetched: boolean;
346
+ isFetchedAfterMount: boolean;
347
+ isFetching: boolean;
348
+ isInitialLoading: boolean;
349
+ isPaused: boolean;
350
+ isRefetching: boolean;
351
+ isStale: boolean;
352
+ isEnabled: boolean;
353
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Job[], Error>>;
354
+ fetchStatus: _tanstack_query_core.FetchStatus;
355
+ promise: Promise<_uthana_client.Job[]>;
356
+ jobs: _uthana_client.Job[] | undefined;
357
+ } | {
358
+ error: Error;
359
+ isError: true;
360
+ isPending: false;
361
+ isLoading: false;
362
+ isLoadingError: true;
363
+ isRefetchError: false;
364
+ isSuccess: false;
365
+ isPlaceholderData: false;
366
+ status: "error";
367
+ dataUpdatedAt: number;
368
+ errorUpdatedAt: number;
369
+ failureCount: number;
370
+ failureReason: Error | null;
371
+ errorUpdateCount: number;
372
+ isFetched: boolean;
373
+ isFetchedAfterMount: boolean;
374
+ isFetching: boolean;
375
+ isInitialLoading: boolean;
376
+ isPaused: boolean;
377
+ isRefetching: boolean;
378
+ isStale: boolean;
379
+ isEnabled: boolean;
380
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Job[], Error>>;
381
+ fetchStatus: _tanstack_query_core.FetchStatus;
382
+ promise: Promise<_uthana_client.Job[]>;
383
+ jobs: _uthana_client.Job[] | undefined;
384
+ } | {
385
+ error: null;
386
+ isError: false;
387
+ isPending: true;
388
+ isLoading: true;
389
+ isLoadingError: false;
390
+ isRefetchError: false;
391
+ isSuccess: false;
392
+ isPlaceholderData: false;
393
+ status: "pending";
394
+ dataUpdatedAt: number;
395
+ errorUpdatedAt: number;
396
+ failureCount: number;
397
+ failureReason: Error | null;
398
+ errorUpdateCount: number;
399
+ isFetched: boolean;
400
+ isFetchedAfterMount: boolean;
401
+ isFetching: boolean;
402
+ isInitialLoading: boolean;
403
+ isPaused: boolean;
404
+ isRefetching: boolean;
405
+ isStale: boolean;
406
+ isEnabled: boolean;
407
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Job[], Error>>;
408
+ fetchStatus: _tanstack_query_core.FetchStatus;
409
+ promise: Promise<_uthana_client.Job[]>;
410
+ jobs: _uthana_client.Job[] | undefined;
411
+ } | {
412
+ error: null;
413
+ isError: false;
414
+ isPending: true;
415
+ isLoadingError: false;
416
+ isRefetchError: false;
417
+ isSuccess: false;
418
+ isPlaceholderData: false;
419
+ status: "pending";
420
+ dataUpdatedAt: number;
421
+ errorUpdatedAt: number;
422
+ failureCount: number;
423
+ failureReason: Error | null;
424
+ errorUpdateCount: number;
425
+ isFetched: boolean;
426
+ isFetchedAfterMount: boolean;
427
+ isFetching: boolean;
428
+ isLoading: boolean;
429
+ isInitialLoading: boolean;
430
+ isPaused: boolean;
431
+ isRefetching: boolean;
432
+ isStale: boolean;
433
+ isEnabled: boolean;
434
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Job[], Error>>;
435
+ fetchStatus: _tanstack_query_core.FetchStatus;
436
+ promise: Promise<_uthana_client.Job[]>;
437
+ jobs: _uthana_client.Job[] | undefined;
438
+ } | {
439
+ isError: false;
440
+ error: null;
441
+ isPending: false;
442
+ isLoading: false;
443
+ isLoadingError: false;
444
+ isRefetchError: false;
445
+ isSuccess: true;
446
+ isPlaceholderData: true;
447
+ status: "success";
448
+ dataUpdatedAt: number;
449
+ errorUpdatedAt: number;
450
+ failureCount: number;
451
+ failureReason: Error | null;
452
+ errorUpdateCount: number;
453
+ isFetched: boolean;
454
+ isFetchedAfterMount: boolean;
455
+ isFetching: boolean;
456
+ isInitialLoading: boolean;
457
+ isPaused: boolean;
458
+ isRefetching: boolean;
459
+ isStale: boolean;
460
+ isEnabled: boolean;
461
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Job[], Error>>;
462
+ fetchStatus: _tanstack_query_core.FetchStatus;
463
+ promise: Promise<_uthana_client.Job[]>;
464
+ jobs: _uthana_client.Job[] | undefined;
465
+ };
466
+ /** Hook to get a single job by ID. */
467
+ declare function useUthanaJob(jobId: string | null): {
468
+ error: Error;
469
+ isError: true;
470
+ isPending: false;
471
+ isLoading: false;
472
+ isLoadingError: false;
473
+ isRefetchError: true;
474
+ isSuccess: false;
475
+ isPlaceholderData: false;
476
+ status: "error";
477
+ dataUpdatedAt: number;
478
+ errorUpdatedAt: number;
479
+ failureCount: number;
480
+ failureReason: Error | null;
481
+ errorUpdateCount: number;
482
+ isFetched: boolean;
483
+ isFetchedAfterMount: boolean;
484
+ isFetching: boolean;
485
+ isInitialLoading: boolean;
486
+ isPaused: boolean;
487
+ isRefetching: boolean;
488
+ isStale: boolean;
489
+ isEnabled: boolean;
490
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Job, Error>>;
491
+ fetchStatus: _tanstack_query_core.FetchStatus;
492
+ promise: Promise<_uthana_client.Job>;
493
+ job: _uthana_client.Job | undefined;
494
+ } | {
495
+ error: null;
496
+ isError: false;
497
+ isPending: false;
498
+ isLoading: false;
499
+ isLoadingError: false;
500
+ isRefetchError: false;
501
+ isSuccess: true;
502
+ isPlaceholderData: false;
503
+ status: "success";
504
+ dataUpdatedAt: number;
505
+ errorUpdatedAt: number;
506
+ failureCount: number;
507
+ failureReason: Error | null;
508
+ errorUpdateCount: number;
509
+ isFetched: boolean;
510
+ isFetchedAfterMount: boolean;
511
+ isFetching: boolean;
512
+ isInitialLoading: boolean;
513
+ isPaused: boolean;
514
+ isRefetching: boolean;
515
+ isStale: boolean;
516
+ isEnabled: boolean;
517
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Job, Error>>;
518
+ fetchStatus: _tanstack_query_core.FetchStatus;
519
+ promise: Promise<_uthana_client.Job>;
520
+ job: _uthana_client.Job | undefined;
521
+ } | {
522
+ error: Error;
523
+ isError: true;
524
+ isPending: false;
525
+ isLoading: false;
526
+ isLoadingError: true;
527
+ isRefetchError: false;
528
+ isSuccess: false;
529
+ isPlaceholderData: false;
530
+ status: "error";
531
+ dataUpdatedAt: number;
532
+ errorUpdatedAt: number;
533
+ failureCount: number;
534
+ failureReason: Error | null;
535
+ errorUpdateCount: number;
536
+ isFetched: boolean;
537
+ isFetchedAfterMount: boolean;
538
+ isFetching: boolean;
539
+ isInitialLoading: boolean;
540
+ isPaused: boolean;
541
+ isRefetching: boolean;
542
+ isStale: boolean;
543
+ isEnabled: boolean;
544
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Job, Error>>;
545
+ fetchStatus: _tanstack_query_core.FetchStatus;
546
+ promise: Promise<_uthana_client.Job>;
547
+ job: _uthana_client.Job | undefined;
548
+ } | {
549
+ error: null;
550
+ isError: false;
551
+ isPending: true;
552
+ isLoading: true;
553
+ isLoadingError: false;
554
+ isRefetchError: false;
555
+ isSuccess: false;
556
+ isPlaceholderData: false;
557
+ status: "pending";
558
+ dataUpdatedAt: number;
559
+ errorUpdatedAt: number;
560
+ failureCount: number;
561
+ failureReason: Error | null;
562
+ errorUpdateCount: number;
563
+ isFetched: boolean;
564
+ isFetchedAfterMount: boolean;
565
+ isFetching: boolean;
566
+ isInitialLoading: boolean;
567
+ isPaused: boolean;
568
+ isRefetching: boolean;
569
+ isStale: boolean;
570
+ isEnabled: boolean;
571
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Job, Error>>;
572
+ fetchStatus: _tanstack_query_core.FetchStatus;
573
+ promise: Promise<_uthana_client.Job>;
574
+ job: _uthana_client.Job | undefined;
575
+ } | {
576
+ error: null;
577
+ isError: false;
578
+ isPending: true;
579
+ isLoadingError: false;
580
+ isRefetchError: false;
581
+ isSuccess: false;
582
+ isPlaceholderData: false;
583
+ status: "pending";
584
+ dataUpdatedAt: number;
585
+ errorUpdatedAt: number;
586
+ failureCount: number;
587
+ failureReason: Error | null;
588
+ errorUpdateCount: number;
589
+ isFetched: boolean;
590
+ isFetchedAfterMount: boolean;
591
+ isFetching: boolean;
592
+ isLoading: boolean;
593
+ isInitialLoading: boolean;
594
+ isPaused: boolean;
595
+ isRefetching: boolean;
596
+ isStale: boolean;
597
+ isEnabled: boolean;
598
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Job, Error>>;
599
+ fetchStatus: _tanstack_query_core.FetchStatus;
600
+ promise: Promise<_uthana_client.Job>;
601
+ job: _uthana_client.Job | undefined;
602
+ } | {
603
+ isError: false;
604
+ error: null;
605
+ isPending: false;
606
+ isLoading: false;
607
+ isLoadingError: false;
608
+ isRefetchError: false;
609
+ isSuccess: true;
610
+ isPlaceholderData: true;
611
+ status: "success";
612
+ dataUpdatedAt: number;
613
+ errorUpdatedAt: number;
614
+ failureCount: number;
615
+ failureReason: Error | null;
616
+ errorUpdateCount: number;
617
+ isFetched: boolean;
618
+ isFetchedAfterMount: boolean;
619
+ isFetching: boolean;
620
+ isInitialLoading: boolean;
621
+ isPaused: boolean;
622
+ isRefetching: boolean;
623
+ isStale: boolean;
624
+ isEnabled: boolean;
625
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Job, Error>>;
626
+ fetchStatus: _tanstack_query_core.FetchStatus;
627
+ promise: Promise<_uthana_client.Job>;
628
+ job: _uthana_client.Job | undefined;
629
+ };
630
+
631
+ /**
632
+ * (c) Copyright 2026 Uthana, Inc. All Rights Reserved
633
+ */
634
+ /** Hook to list motion downloads. */
635
+ declare function useUthanaMotionDownloads(): {
636
+ error: Error;
637
+ isError: true;
638
+ isPending: false;
639
+ isLoading: false;
640
+ isLoadingError: false;
641
+ isRefetchError: true;
642
+ isSuccess: false;
643
+ isPlaceholderData: false;
644
+ status: "error";
645
+ dataUpdatedAt: number;
646
+ errorUpdatedAt: number;
647
+ failureCount: number;
648
+ failureReason: Error | null;
649
+ errorUpdateCount: number;
650
+ isFetched: boolean;
651
+ isFetchedAfterMount: boolean;
652
+ isFetching: boolean;
653
+ isInitialLoading: boolean;
654
+ isPaused: boolean;
655
+ isRefetching: boolean;
656
+ isStale: boolean;
657
+ isEnabled: boolean;
658
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.MotionDownloadRecord[], Error>>;
659
+ fetchStatus: _tanstack_query_core.FetchStatus;
660
+ promise: Promise<_uthana_client.MotionDownloadRecord[]>;
661
+ downloads: _uthana_client.MotionDownloadRecord[] | undefined;
662
+ } | {
663
+ error: null;
664
+ isError: false;
665
+ isPending: false;
666
+ isLoading: false;
667
+ isLoadingError: false;
668
+ isRefetchError: false;
669
+ isSuccess: true;
670
+ isPlaceholderData: false;
671
+ status: "success";
672
+ dataUpdatedAt: number;
673
+ errorUpdatedAt: number;
674
+ failureCount: number;
675
+ failureReason: Error | null;
676
+ errorUpdateCount: number;
677
+ isFetched: boolean;
678
+ isFetchedAfterMount: boolean;
679
+ isFetching: boolean;
680
+ isInitialLoading: boolean;
681
+ isPaused: boolean;
682
+ isRefetching: boolean;
683
+ isStale: boolean;
684
+ isEnabled: boolean;
685
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.MotionDownloadRecord[], Error>>;
686
+ fetchStatus: _tanstack_query_core.FetchStatus;
687
+ promise: Promise<_uthana_client.MotionDownloadRecord[]>;
688
+ downloads: _uthana_client.MotionDownloadRecord[] | undefined;
689
+ } | {
690
+ error: Error;
691
+ isError: true;
692
+ isPending: false;
693
+ isLoading: false;
694
+ isLoadingError: true;
695
+ isRefetchError: false;
696
+ isSuccess: false;
697
+ isPlaceholderData: false;
698
+ status: "error";
699
+ dataUpdatedAt: number;
700
+ errorUpdatedAt: number;
701
+ failureCount: number;
702
+ failureReason: Error | null;
703
+ errorUpdateCount: number;
704
+ isFetched: boolean;
705
+ isFetchedAfterMount: boolean;
706
+ isFetching: boolean;
707
+ isInitialLoading: boolean;
708
+ isPaused: boolean;
709
+ isRefetching: boolean;
710
+ isStale: boolean;
711
+ isEnabled: boolean;
712
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.MotionDownloadRecord[], Error>>;
713
+ fetchStatus: _tanstack_query_core.FetchStatus;
714
+ promise: Promise<_uthana_client.MotionDownloadRecord[]>;
715
+ downloads: _uthana_client.MotionDownloadRecord[] | undefined;
716
+ } | {
717
+ error: null;
718
+ isError: false;
719
+ isPending: true;
720
+ isLoading: true;
721
+ isLoadingError: false;
722
+ isRefetchError: false;
723
+ isSuccess: false;
724
+ isPlaceholderData: false;
725
+ status: "pending";
726
+ dataUpdatedAt: number;
727
+ errorUpdatedAt: number;
728
+ failureCount: number;
729
+ failureReason: Error | null;
730
+ errorUpdateCount: number;
731
+ isFetched: boolean;
732
+ isFetchedAfterMount: boolean;
733
+ isFetching: boolean;
734
+ isInitialLoading: boolean;
735
+ isPaused: boolean;
736
+ isRefetching: boolean;
737
+ isStale: boolean;
738
+ isEnabled: boolean;
739
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.MotionDownloadRecord[], Error>>;
740
+ fetchStatus: _tanstack_query_core.FetchStatus;
741
+ promise: Promise<_uthana_client.MotionDownloadRecord[]>;
742
+ downloads: _uthana_client.MotionDownloadRecord[] | undefined;
743
+ } | {
744
+ error: null;
745
+ isError: false;
746
+ isPending: true;
747
+ isLoadingError: false;
748
+ isRefetchError: false;
749
+ isSuccess: false;
750
+ isPlaceholderData: false;
751
+ status: "pending";
752
+ dataUpdatedAt: number;
753
+ errorUpdatedAt: number;
754
+ failureCount: number;
755
+ failureReason: Error | null;
756
+ errorUpdateCount: number;
757
+ isFetched: boolean;
758
+ isFetchedAfterMount: boolean;
759
+ isFetching: boolean;
760
+ isLoading: boolean;
761
+ isInitialLoading: boolean;
762
+ isPaused: boolean;
763
+ isRefetching: boolean;
764
+ isStale: boolean;
765
+ isEnabled: boolean;
766
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.MotionDownloadRecord[], Error>>;
767
+ fetchStatus: _tanstack_query_core.FetchStatus;
768
+ promise: Promise<_uthana_client.MotionDownloadRecord[]>;
769
+ downloads: _uthana_client.MotionDownloadRecord[] | undefined;
770
+ } | {
771
+ isError: false;
772
+ error: null;
773
+ isPending: false;
774
+ isLoading: false;
775
+ isLoadingError: false;
776
+ isRefetchError: false;
777
+ isSuccess: true;
778
+ isPlaceholderData: true;
779
+ status: "success";
780
+ dataUpdatedAt: number;
781
+ errorUpdatedAt: number;
782
+ failureCount: number;
783
+ failureReason: Error | null;
784
+ errorUpdateCount: number;
785
+ isFetched: boolean;
786
+ isFetchedAfterMount: boolean;
787
+ isFetching: boolean;
788
+ isInitialLoading: boolean;
789
+ isPaused: boolean;
790
+ isRefetching: boolean;
791
+ isStale: boolean;
792
+ isEnabled: boolean;
793
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.MotionDownloadRecord[], Error>>;
794
+ fetchStatus: _tanstack_query_core.FetchStatus;
795
+ promise: Promise<_uthana_client.MotionDownloadRecord[]>;
796
+ downloads: _uthana_client.MotionDownloadRecord[] | undefined;
797
+ };
798
+ /** Hook to check if a motion download is allowed for a character. Disabled when characterId or motionId is null. */
799
+ declare function useUthanaIsMotionDownloadAllowed(characterId: string | null, motionId: string | null): {
800
+ error: Error;
801
+ isError: true;
802
+ isPending: false;
803
+ isLoading: false;
804
+ isLoadingError: false;
805
+ isRefetchError: true;
806
+ isSuccess: false;
807
+ isPlaceholderData: false;
808
+ status: "error";
809
+ dataUpdatedAt: number;
810
+ errorUpdatedAt: number;
811
+ failureCount: number;
812
+ failureReason: Error | null;
813
+ errorUpdateCount: number;
814
+ isFetched: boolean;
815
+ isFetchedAfterMount: boolean;
816
+ isFetching: boolean;
817
+ isInitialLoading: boolean;
818
+ isPaused: boolean;
819
+ isRefetching: boolean;
820
+ isStale: boolean;
821
+ isEnabled: boolean;
822
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<boolean, Error>>;
823
+ fetchStatus: _tanstack_query_core.FetchStatus;
824
+ promise: Promise<boolean>;
825
+ isAllowed: boolean | undefined;
826
+ } | {
827
+ error: null;
828
+ isError: false;
829
+ isPending: false;
830
+ isLoading: false;
831
+ isLoadingError: false;
832
+ isRefetchError: false;
833
+ isSuccess: true;
834
+ isPlaceholderData: false;
835
+ status: "success";
836
+ dataUpdatedAt: number;
837
+ errorUpdatedAt: number;
838
+ failureCount: number;
839
+ failureReason: Error | null;
840
+ errorUpdateCount: number;
841
+ isFetched: boolean;
842
+ isFetchedAfterMount: boolean;
843
+ isFetching: boolean;
844
+ isInitialLoading: boolean;
845
+ isPaused: boolean;
846
+ isRefetching: boolean;
847
+ isStale: boolean;
848
+ isEnabled: boolean;
849
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<boolean, Error>>;
850
+ fetchStatus: _tanstack_query_core.FetchStatus;
851
+ promise: Promise<boolean>;
852
+ isAllowed: boolean | undefined;
853
+ } | {
854
+ error: Error;
855
+ isError: true;
856
+ isPending: false;
857
+ isLoading: false;
858
+ isLoadingError: true;
859
+ isRefetchError: false;
860
+ isSuccess: false;
861
+ isPlaceholderData: false;
862
+ status: "error";
863
+ dataUpdatedAt: number;
864
+ errorUpdatedAt: number;
865
+ failureCount: number;
866
+ failureReason: Error | null;
867
+ errorUpdateCount: number;
868
+ isFetched: boolean;
869
+ isFetchedAfterMount: boolean;
870
+ isFetching: boolean;
871
+ isInitialLoading: boolean;
872
+ isPaused: boolean;
873
+ isRefetching: boolean;
874
+ isStale: boolean;
875
+ isEnabled: boolean;
876
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<boolean, Error>>;
877
+ fetchStatus: _tanstack_query_core.FetchStatus;
878
+ promise: Promise<boolean>;
879
+ isAllowed: boolean | undefined;
880
+ } | {
881
+ error: null;
882
+ isError: false;
883
+ isPending: true;
884
+ isLoading: true;
885
+ isLoadingError: false;
886
+ isRefetchError: false;
887
+ isSuccess: false;
888
+ isPlaceholderData: false;
889
+ status: "pending";
890
+ dataUpdatedAt: number;
891
+ errorUpdatedAt: number;
892
+ failureCount: number;
893
+ failureReason: Error | null;
894
+ errorUpdateCount: number;
895
+ isFetched: boolean;
896
+ isFetchedAfterMount: boolean;
897
+ isFetching: boolean;
898
+ isInitialLoading: boolean;
899
+ isPaused: boolean;
900
+ isRefetching: boolean;
901
+ isStale: boolean;
902
+ isEnabled: boolean;
903
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<boolean, Error>>;
904
+ fetchStatus: _tanstack_query_core.FetchStatus;
905
+ promise: Promise<boolean>;
906
+ isAllowed: boolean | undefined;
907
+ } | {
908
+ error: null;
909
+ isError: false;
910
+ isPending: true;
911
+ isLoadingError: false;
912
+ isRefetchError: false;
913
+ isSuccess: false;
914
+ isPlaceholderData: false;
915
+ status: "pending";
916
+ dataUpdatedAt: number;
917
+ errorUpdatedAt: number;
918
+ failureCount: number;
919
+ failureReason: Error | null;
920
+ errorUpdateCount: number;
921
+ isFetched: boolean;
922
+ isFetchedAfterMount: boolean;
923
+ isFetching: boolean;
924
+ isLoading: boolean;
925
+ isInitialLoading: boolean;
926
+ isPaused: boolean;
927
+ isRefetching: boolean;
928
+ isStale: boolean;
929
+ isEnabled: boolean;
930
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<boolean, Error>>;
931
+ fetchStatus: _tanstack_query_core.FetchStatus;
932
+ promise: Promise<boolean>;
933
+ isAllowed: boolean | undefined;
934
+ } | {
935
+ isError: false;
936
+ error: null;
937
+ isPending: false;
938
+ isLoading: false;
939
+ isLoadingError: false;
940
+ isRefetchError: false;
941
+ isSuccess: true;
942
+ isPlaceholderData: true;
943
+ status: "success";
944
+ dataUpdatedAt: number;
945
+ errorUpdatedAt: number;
946
+ failureCount: number;
947
+ failureReason: Error | null;
948
+ errorUpdateCount: number;
949
+ isFetched: boolean;
950
+ isFetchedAfterMount: boolean;
951
+ isFetching: boolean;
952
+ isInitialLoading: boolean;
953
+ isPaused: boolean;
954
+ isRefetching: boolean;
955
+ isStale: boolean;
956
+ isEnabled: boolean;
957
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<boolean, Error>>;
958
+ fetchStatus: _tanstack_query_core.FetchStatus;
959
+ promise: Promise<boolean>;
960
+ isAllowed: boolean | undefined;
961
+ };
962
+
963
+ /**
964
+ * (c) Copyright 2026 Uthana, Inc. All Rights Reserved
965
+ */
966
+ /** Hook to list motions. */
967
+ declare function useUthanaMotions(): {
968
+ error: Error;
969
+ isError: true;
970
+ isPending: false;
971
+ isLoading: false;
972
+ isLoadingError: false;
973
+ isRefetchError: true;
974
+ isSuccess: false;
975
+ isPlaceholderData: false;
976
+ status: "error";
977
+ dataUpdatedAt: number;
978
+ errorUpdatedAt: number;
979
+ failureCount: number;
980
+ failureReason: Error | null;
981
+ errorUpdateCount: number;
982
+ isFetched: boolean;
983
+ isFetchedAfterMount: boolean;
984
+ isFetching: boolean;
985
+ isInitialLoading: boolean;
986
+ isPaused: boolean;
987
+ isRefetching: boolean;
988
+ isStale: boolean;
989
+ isEnabled: boolean;
990
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Motion[], Error>>;
991
+ fetchStatus: _tanstack_query_core.FetchStatus;
992
+ promise: Promise<_uthana_client.Motion[]>;
993
+ motions: _uthana_client.Motion[] | undefined;
994
+ } | {
995
+ error: null;
996
+ isError: false;
997
+ isPending: false;
998
+ isLoading: false;
999
+ isLoadingError: false;
1000
+ isRefetchError: false;
1001
+ isSuccess: true;
1002
+ isPlaceholderData: false;
1003
+ status: "success";
1004
+ dataUpdatedAt: number;
1005
+ errorUpdatedAt: number;
1006
+ failureCount: number;
1007
+ failureReason: Error | null;
1008
+ errorUpdateCount: number;
1009
+ isFetched: boolean;
1010
+ isFetchedAfterMount: boolean;
1011
+ isFetching: boolean;
1012
+ isInitialLoading: boolean;
1013
+ isPaused: boolean;
1014
+ isRefetching: boolean;
1015
+ isStale: boolean;
1016
+ isEnabled: boolean;
1017
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Motion[], Error>>;
1018
+ fetchStatus: _tanstack_query_core.FetchStatus;
1019
+ promise: Promise<_uthana_client.Motion[]>;
1020
+ motions: _uthana_client.Motion[] | undefined;
1021
+ } | {
1022
+ error: Error;
1023
+ isError: true;
1024
+ isPending: false;
1025
+ isLoading: false;
1026
+ isLoadingError: true;
1027
+ isRefetchError: false;
1028
+ isSuccess: false;
1029
+ isPlaceholderData: false;
1030
+ status: "error";
1031
+ dataUpdatedAt: number;
1032
+ errorUpdatedAt: number;
1033
+ failureCount: number;
1034
+ failureReason: Error | null;
1035
+ errorUpdateCount: number;
1036
+ isFetched: boolean;
1037
+ isFetchedAfterMount: boolean;
1038
+ isFetching: boolean;
1039
+ isInitialLoading: boolean;
1040
+ isPaused: boolean;
1041
+ isRefetching: boolean;
1042
+ isStale: boolean;
1043
+ isEnabled: boolean;
1044
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Motion[], Error>>;
1045
+ fetchStatus: _tanstack_query_core.FetchStatus;
1046
+ promise: Promise<_uthana_client.Motion[]>;
1047
+ motions: _uthana_client.Motion[] | undefined;
1048
+ } | {
1049
+ error: null;
1050
+ isError: false;
1051
+ isPending: true;
1052
+ isLoading: true;
1053
+ isLoadingError: false;
1054
+ isRefetchError: false;
1055
+ isSuccess: false;
1056
+ isPlaceholderData: false;
1057
+ status: "pending";
1058
+ dataUpdatedAt: number;
1059
+ errorUpdatedAt: number;
1060
+ failureCount: number;
1061
+ failureReason: Error | null;
1062
+ errorUpdateCount: number;
1063
+ isFetched: boolean;
1064
+ isFetchedAfterMount: boolean;
1065
+ isFetching: boolean;
1066
+ isInitialLoading: boolean;
1067
+ isPaused: boolean;
1068
+ isRefetching: boolean;
1069
+ isStale: boolean;
1070
+ isEnabled: boolean;
1071
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Motion[], Error>>;
1072
+ fetchStatus: _tanstack_query_core.FetchStatus;
1073
+ promise: Promise<_uthana_client.Motion[]>;
1074
+ motions: _uthana_client.Motion[] | undefined;
1075
+ } | {
1076
+ error: null;
1077
+ isError: false;
1078
+ isPending: true;
1079
+ isLoadingError: false;
1080
+ isRefetchError: false;
1081
+ isSuccess: false;
1082
+ isPlaceholderData: false;
1083
+ status: "pending";
1084
+ dataUpdatedAt: number;
1085
+ errorUpdatedAt: number;
1086
+ failureCount: number;
1087
+ failureReason: Error | null;
1088
+ errorUpdateCount: number;
1089
+ isFetched: boolean;
1090
+ isFetchedAfterMount: boolean;
1091
+ isFetching: boolean;
1092
+ isLoading: boolean;
1093
+ isInitialLoading: boolean;
1094
+ isPaused: boolean;
1095
+ isRefetching: boolean;
1096
+ isStale: boolean;
1097
+ isEnabled: boolean;
1098
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Motion[], Error>>;
1099
+ fetchStatus: _tanstack_query_core.FetchStatus;
1100
+ promise: Promise<_uthana_client.Motion[]>;
1101
+ motions: _uthana_client.Motion[] | undefined;
1102
+ } | {
1103
+ isError: false;
1104
+ error: null;
1105
+ isPending: false;
1106
+ isLoading: false;
1107
+ isLoadingError: false;
1108
+ isRefetchError: false;
1109
+ isSuccess: true;
1110
+ isPlaceholderData: true;
1111
+ status: "success";
1112
+ dataUpdatedAt: number;
1113
+ errorUpdatedAt: number;
1114
+ failureCount: number;
1115
+ failureReason: Error | null;
1116
+ errorUpdateCount: number;
1117
+ isFetched: boolean;
1118
+ isFetchedAfterMount: boolean;
1119
+ isFetching: boolean;
1120
+ isInitialLoading: boolean;
1121
+ isPaused: boolean;
1122
+ isRefetching: boolean;
1123
+ isStale: boolean;
1124
+ isEnabled: boolean;
1125
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Motion[], Error>>;
1126
+ fetchStatus: _tanstack_query_core.FetchStatus;
1127
+ promise: Promise<_uthana_client.Motion[]>;
1128
+ motions: _uthana_client.Motion[] | undefined;
1129
+ };
1130
+ /** Hook to get a single motion by ID. Disabled when motionId is null. */
1131
+ declare function useUthanaMotion(motionId: string | null): {
1132
+ error: Error;
1133
+ isError: true;
1134
+ isPending: false;
1135
+ isLoading: false;
1136
+ isLoadingError: false;
1137
+ isRefetchError: true;
1138
+ isSuccess: false;
1139
+ isPlaceholderData: false;
1140
+ status: "error";
1141
+ dataUpdatedAt: number;
1142
+ errorUpdatedAt: number;
1143
+ failureCount: number;
1144
+ failureReason: Error | null;
1145
+ errorUpdateCount: number;
1146
+ isFetched: boolean;
1147
+ isFetchedAfterMount: boolean;
1148
+ isFetching: boolean;
1149
+ isInitialLoading: boolean;
1150
+ isPaused: boolean;
1151
+ isRefetching: boolean;
1152
+ isStale: boolean;
1153
+ isEnabled: boolean;
1154
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Motion | null, Error>>;
1155
+ fetchStatus: _tanstack_query_core.FetchStatus;
1156
+ promise: Promise<_uthana_client.Motion | null>;
1157
+ motion: _uthana_client.Motion | null | undefined;
1158
+ } | {
1159
+ error: null;
1160
+ isError: false;
1161
+ isPending: false;
1162
+ isLoading: false;
1163
+ isLoadingError: false;
1164
+ isRefetchError: false;
1165
+ isSuccess: true;
1166
+ isPlaceholderData: false;
1167
+ status: "success";
1168
+ dataUpdatedAt: number;
1169
+ errorUpdatedAt: number;
1170
+ failureCount: number;
1171
+ failureReason: Error | null;
1172
+ errorUpdateCount: number;
1173
+ isFetched: boolean;
1174
+ isFetchedAfterMount: boolean;
1175
+ isFetching: boolean;
1176
+ isInitialLoading: boolean;
1177
+ isPaused: boolean;
1178
+ isRefetching: boolean;
1179
+ isStale: boolean;
1180
+ isEnabled: boolean;
1181
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Motion | null, Error>>;
1182
+ fetchStatus: _tanstack_query_core.FetchStatus;
1183
+ promise: Promise<_uthana_client.Motion | null>;
1184
+ motion: _uthana_client.Motion | null | undefined;
1185
+ } | {
1186
+ error: Error;
1187
+ isError: true;
1188
+ isPending: false;
1189
+ isLoading: false;
1190
+ isLoadingError: true;
1191
+ isRefetchError: false;
1192
+ isSuccess: false;
1193
+ isPlaceholderData: false;
1194
+ status: "error";
1195
+ dataUpdatedAt: number;
1196
+ errorUpdatedAt: number;
1197
+ failureCount: number;
1198
+ failureReason: Error | null;
1199
+ errorUpdateCount: number;
1200
+ isFetched: boolean;
1201
+ isFetchedAfterMount: boolean;
1202
+ isFetching: boolean;
1203
+ isInitialLoading: boolean;
1204
+ isPaused: boolean;
1205
+ isRefetching: boolean;
1206
+ isStale: boolean;
1207
+ isEnabled: boolean;
1208
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Motion | null, Error>>;
1209
+ fetchStatus: _tanstack_query_core.FetchStatus;
1210
+ promise: Promise<_uthana_client.Motion | null>;
1211
+ motion: _uthana_client.Motion | null | undefined;
1212
+ } | {
1213
+ error: null;
1214
+ isError: false;
1215
+ isPending: true;
1216
+ isLoading: true;
1217
+ isLoadingError: false;
1218
+ isRefetchError: false;
1219
+ isSuccess: false;
1220
+ isPlaceholderData: false;
1221
+ status: "pending";
1222
+ dataUpdatedAt: number;
1223
+ errorUpdatedAt: number;
1224
+ failureCount: number;
1225
+ failureReason: Error | null;
1226
+ errorUpdateCount: number;
1227
+ isFetched: boolean;
1228
+ isFetchedAfterMount: boolean;
1229
+ isFetching: boolean;
1230
+ isInitialLoading: boolean;
1231
+ isPaused: boolean;
1232
+ isRefetching: boolean;
1233
+ isStale: boolean;
1234
+ isEnabled: boolean;
1235
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Motion | null, Error>>;
1236
+ fetchStatus: _tanstack_query_core.FetchStatus;
1237
+ promise: Promise<_uthana_client.Motion | null>;
1238
+ motion: _uthana_client.Motion | null | undefined;
1239
+ } | {
1240
+ error: null;
1241
+ isError: false;
1242
+ isPending: true;
1243
+ isLoadingError: false;
1244
+ isRefetchError: false;
1245
+ isSuccess: false;
1246
+ isPlaceholderData: false;
1247
+ status: "pending";
1248
+ dataUpdatedAt: number;
1249
+ errorUpdatedAt: number;
1250
+ failureCount: number;
1251
+ failureReason: Error | null;
1252
+ errorUpdateCount: number;
1253
+ isFetched: boolean;
1254
+ isFetchedAfterMount: boolean;
1255
+ isFetching: boolean;
1256
+ isLoading: boolean;
1257
+ isInitialLoading: boolean;
1258
+ isPaused: boolean;
1259
+ isRefetching: boolean;
1260
+ isStale: boolean;
1261
+ isEnabled: boolean;
1262
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Motion | null, Error>>;
1263
+ fetchStatus: _tanstack_query_core.FetchStatus;
1264
+ promise: Promise<_uthana_client.Motion | null>;
1265
+ motion: _uthana_client.Motion | null | undefined;
1266
+ } | {
1267
+ isError: false;
1268
+ error: null;
1269
+ isPending: false;
1270
+ isLoading: false;
1271
+ isLoadingError: false;
1272
+ isRefetchError: false;
1273
+ isSuccess: true;
1274
+ isPlaceholderData: true;
1275
+ status: "success";
1276
+ dataUpdatedAt: number;
1277
+ errorUpdatedAt: number;
1278
+ failureCount: number;
1279
+ failureReason: Error | null;
1280
+ errorUpdateCount: number;
1281
+ isFetched: boolean;
1282
+ isFetchedAfterMount: boolean;
1283
+ isFetching: boolean;
1284
+ isInitialLoading: boolean;
1285
+ isPaused: boolean;
1286
+ isRefetching: boolean;
1287
+ isStale: boolean;
1288
+ isEnabled: boolean;
1289
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Motion | null, Error>>;
1290
+ fetchStatus: _tanstack_query_core.FetchStatus;
1291
+ promise: Promise<_uthana_client.Motion | null>;
1292
+ motion: _uthana_client.Motion | null | undefined;
1293
+ };
1294
+ /** Hook to fetch a motion preview WebM. Disabled when characterId or motionId is null. Does not charge download seconds. */
1295
+ declare function useUthanaMotionPreview(characterId: string | null, motionId: string | null): {
1296
+ error: Error;
1297
+ isError: true;
1298
+ isPending: false;
1299
+ isLoading: false;
1300
+ isLoadingError: false;
1301
+ isRefetchError: true;
1302
+ isSuccess: false;
1303
+ isPlaceholderData: false;
1304
+ status: "error";
1305
+ dataUpdatedAt: number;
1306
+ errorUpdatedAt: number;
1307
+ failureCount: number;
1308
+ failureReason: Error | null;
1309
+ errorUpdateCount: number;
1310
+ isFetched: boolean;
1311
+ isFetchedAfterMount: boolean;
1312
+ isFetching: boolean;
1313
+ isInitialLoading: boolean;
1314
+ isPaused: boolean;
1315
+ isRefetching: boolean;
1316
+ isStale: boolean;
1317
+ isEnabled: boolean;
1318
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ArrayBuffer, Error>>;
1319
+ fetchStatus: _tanstack_query_core.FetchStatus;
1320
+ promise: Promise<ArrayBuffer>;
1321
+ preview: ArrayBuffer | undefined;
1322
+ } | {
1323
+ error: null;
1324
+ isError: false;
1325
+ isPending: false;
1326
+ isLoading: false;
1327
+ isLoadingError: false;
1328
+ isRefetchError: false;
1329
+ isSuccess: true;
1330
+ isPlaceholderData: false;
1331
+ status: "success";
1332
+ dataUpdatedAt: number;
1333
+ errorUpdatedAt: number;
1334
+ failureCount: number;
1335
+ failureReason: Error | null;
1336
+ errorUpdateCount: number;
1337
+ isFetched: boolean;
1338
+ isFetchedAfterMount: boolean;
1339
+ isFetching: boolean;
1340
+ isInitialLoading: boolean;
1341
+ isPaused: boolean;
1342
+ isRefetching: boolean;
1343
+ isStale: boolean;
1344
+ isEnabled: boolean;
1345
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ArrayBuffer, Error>>;
1346
+ fetchStatus: _tanstack_query_core.FetchStatus;
1347
+ promise: Promise<ArrayBuffer>;
1348
+ preview: ArrayBuffer | undefined;
1349
+ } | {
1350
+ error: Error;
1351
+ isError: true;
1352
+ isPending: false;
1353
+ isLoading: false;
1354
+ isLoadingError: true;
1355
+ isRefetchError: false;
1356
+ isSuccess: false;
1357
+ isPlaceholderData: false;
1358
+ status: "error";
1359
+ dataUpdatedAt: number;
1360
+ errorUpdatedAt: number;
1361
+ failureCount: number;
1362
+ failureReason: Error | null;
1363
+ errorUpdateCount: number;
1364
+ isFetched: boolean;
1365
+ isFetchedAfterMount: boolean;
1366
+ isFetching: boolean;
1367
+ isInitialLoading: boolean;
1368
+ isPaused: boolean;
1369
+ isRefetching: boolean;
1370
+ isStale: boolean;
1371
+ isEnabled: boolean;
1372
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ArrayBuffer, Error>>;
1373
+ fetchStatus: _tanstack_query_core.FetchStatus;
1374
+ promise: Promise<ArrayBuffer>;
1375
+ preview: ArrayBuffer | undefined;
1376
+ } | {
1377
+ error: null;
1378
+ isError: false;
1379
+ isPending: true;
1380
+ isLoading: true;
1381
+ isLoadingError: false;
1382
+ isRefetchError: false;
1383
+ isSuccess: false;
1384
+ isPlaceholderData: false;
1385
+ status: "pending";
1386
+ dataUpdatedAt: number;
1387
+ errorUpdatedAt: number;
1388
+ failureCount: number;
1389
+ failureReason: Error | null;
1390
+ errorUpdateCount: number;
1391
+ isFetched: boolean;
1392
+ isFetchedAfterMount: boolean;
1393
+ isFetching: boolean;
1394
+ isInitialLoading: boolean;
1395
+ isPaused: boolean;
1396
+ isRefetching: boolean;
1397
+ isStale: boolean;
1398
+ isEnabled: boolean;
1399
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ArrayBuffer, Error>>;
1400
+ fetchStatus: _tanstack_query_core.FetchStatus;
1401
+ promise: Promise<ArrayBuffer>;
1402
+ preview: ArrayBuffer | undefined;
1403
+ } | {
1404
+ error: null;
1405
+ isError: false;
1406
+ isPending: true;
1407
+ isLoadingError: false;
1408
+ isRefetchError: false;
1409
+ isSuccess: false;
1410
+ isPlaceholderData: false;
1411
+ status: "pending";
1412
+ dataUpdatedAt: number;
1413
+ errorUpdatedAt: number;
1414
+ failureCount: number;
1415
+ failureReason: Error | null;
1416
+ errorUpdateCount: number;
1417
+ isFetched: boolean;
1418
+ isFetchedAfterMount: boolean;
1419
+ isFetching: boolean;
1420
+ isLoading: boolean;
1421
+ isInitialLoading: boolean;
1422
+ isPaused: boolean;
1423
+ isRefetching: boolean;
1424
+ isStale: boolean;
1425
+ isEnabled: boolean;
1426
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ArrayBuffer, Error>>;
1427
+ fetchStatus: _tanstack_query_core.FetchStatus;
1428
+ promise: Promise<ArrayBuffer>;
1429
+ preview: ArrayBuffer | undefined;
1430
+ } | {
1431
+ isError: false;
1432
+ error: null;
1433
+ isPending: false;
1434
+ isLoading: false;
1435
+ isLoadingError: false;
1436
+ isRefetchError: false;
1437
+ isSuccess: true;
1438
+ isPlaceholderData: true;
1439
+ status: "success";
1440
+ dataUpdatedAt: number;
1441
+ errorUpdatedAt: number;
1442
+ failureCount: number;
1443
+ failureReason: Error | null;
1444
+ errorUpdateCount: number;
1445
+ isFetched: boolean;
1446
+ isFetchedAfterMount: boolean;
1447
+ isFetching: boolean;
1448
+ isInitialLoading: boolean;
1449
+ isPaused: boolean;
1450
+ isRefetching: boolean;
1451
+ isStale: boolean;
1452
+ isEnabled: boolean;
1453
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ArrayBuffer, Error>>;
1454
+ fetchStatus: _tanstack_query_core.FetchStatus;
1455
+ promise: Promise<ArrayBuffer>;
1456
+ preview: ArrayBuffer | undefined;
1457
+ };
1458
+ /** Hook to rate a motion (thumbs up/down). Invalidates motions on success. */
1459
+ declare function useUthanaRateMotion(): _tanstack_react_query.UseMutationResult<void, Error, {
1460
+ motion_id: string;
1461
+ score: 0 | 1;
1462
+ label_id?: string | null;
1463
+ }, unknown>;
1464
+ /**
1465
+ * Hook to bake custom GLTF animation data as a new motion for an existing character.
1466
+ * Invalidates the motions list on success.
1467
+ */
1468
+ declare function useUthanaBakeWithChanges(): _tanstack_react_query.UseMutationResult<_uthana_client.TextToMotionResult, Error, {
1469
+ gltf_content: string;
1470
+ motion_name: string;
1471
+ character_id?: string | null;
1472
+ }, unknown>;
1473
+
1474
+ /**
1475
+ * (c) Copyright 2026 Uthana, Inc. All Rights Reserved
1476
+ */
1477
+ /** Hook to get current user. */
1478
+ declare function useUthanaUser(): {
1479
+ error: Error;
1480
+ isError: true;
1481
+ isPending: false;
1482
+ isLoading: false;
1483
+ isLoadingError: false;
1484
+ isRefetchError: true;
1485
+ isSuccess: false;
1486
+ isPlaceholderData: false;
1487
+ status: "error";
1488
+ dataUpdatedAt: number;
1489
+ errorUpdatedAt: number;
1490
+ failureCount: number;
1491
+ failureReason: Error | null;
1492
+ errorUpdateCount: number;
1493
+ isFetched: boolean;
1494
+ isFetchedAfterMount: boolean;
1495
+ isFetching: boolean;
1496
+ isInitialLoading: boolean;
1497
+ isPaused: boolean;
1498
+ isRefetching: boolean;
1499
+ isStale: boolean;
1500
+ isEnabled: boolean;
1501
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.User, Error>>;
1502
+ fetchStatus: _tanstack_query_core.FetchStatus;
1503
+ promise: Promise<_uthana_client.User>;
1504
+ user: _uthana_client.User | undefined;
1505
+ } | {
1506
+ error: null;
1507
+ isError: false;
1508
+ isPending: false;
1509
+ isLoading: false;
1510
+ isLoadingError: false;
1511
+ isRefetchError: false;
1512
+ isSuccess: true;
1513
+ isPlaceholderData: false;
1514
+ status: "success";
1515
+ dataUpdatedAt: number;
1516
+ errorUpdatedAt: number;
1517
+ failureCount: number;
1518
+ failureReason: Error | null;
1519
+ errorUpdateCount: number;
1520
+ isFetched: boolean;
1521
+ isFetchedAfterMount: boolean;
1522
+ isFetching: boolean;
1523
+ isInitialLoading: boolean;
1524
+ isPaused: boolean;
1525
+ isRefetching: boolean;
1526
+ isStale: boolean;
1527
+ isEnabled: boolean;
1528
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.User, Error>>;
1529
+ fetchStatus: _tanstack_query_core.FetchStatus;
1530
+ promise: Promise<_uthana_client.User>;
1531
+ user: _uthana_client.User | undefined;
1532
+ } | {
1533
+ error: Error;
1534
+ isError: true;
1535
+ isPending: false;
1536
+ isLoading: false;
1537
+ isLoadingError: true;
1538
+ isRefetchError: false;
1539
+ isSuccess: false;
1540
+ isPlaceholderData: false;
1541
+ status: "error";
1542
+ dataUpdatedAt: number;
1543
+ errorUpdatedAt: number;
1544
+ failureCount: number;
1545
+ failureReason: Error | null;
1546
+ errorUpdateCount: number;
1547
+ isFetched: boolean;
1548
+ isFetchedAfterMount: boolean;
1549
+ isFetching: boolean;
1550
+ isInitialLoading: boolean;
1551
+ isPaused: boolean;
1552
+ isRefetching: boolean;
1553
+ isStale: boolean;
1554
+ isEnabled: boolean;
1555
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.User, Error>>;
1556
+ fetchStatus: _tanstack_query_core.FetchStatus;
1557
+ promise: Promise<_uthana_client.User>;
1558
+ user: _uthana_client.User | undefined;
1559
+ } | {
1560
+ error: null;
1561
+ isError: false;
1562
+ isPending: true;
1563
+ isLoading: true;
1564
+ isLoadingError: false;
1565
+ isRefetchError: false;
1566
+ isSuccess: false;
1567
+ isPlaceholderData: false;
1568
+ status: "pending";
1569
+ dataUpdatedAt: number;
1570
+ errorUpdatedAt: number;
1571
+ failureCount: number;
1572
+ failureReason: Error | null;
1573
+ errorUpdateCount: number;
1574
+ isFetched: boolean;
1575
+ isFetchedAfterMount: boolean;
1576
+ isFetching: boolean;
1577
+ isInitialLoading: boolean;
1578
+ isPaused: boolean;
1579
+ isRefetching: boolean;
1580
+ isStale: boolean;
1581
+ isEnabled: boolean;
1582
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.User, Error>>;
1583
+ fetchStatus: _tanstack_query_core.FetchStatus;
1584
+ promise: Promise<_uthana_client.User>;
1585
+ user: _uthana_client.User | undefined;
1586
+ } | {
1587
+ error: null;
1588
+ isError: false;
1589
+ isPending: true;
1590
+ isLoadingError: false;
1591
+ isRefetchError: false;
1592
+ isSuccess: false;
1593
+ isPlaceholderData: false;
1594
+ status: "pending";
1595
+ dataUpdatedAt: number;
1596
+ errorUpdatedAt: number;
1597
+ failureCount: number;
1598
+ failureReason: Error | null;
1599
+ errorUpdateCount: number;
1600
+ isFetched: boolean;
1601
+ isFetchedAfterMount: boolean;
1602
+ isFetching: boolean;
1603
+ isLoading: boolean;
1604
+ isInitialLoading: boolean;
1605
+ isPaused: boolean;
1606
+ isRefetching: boolean;
1607
+ isStale: boolean;
1608
+ isEnabled: boolean;
1609
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.User, Error>>;
1610
+ fetchStatus: _tanstack_query_core.FetchStatus;
1611
+ promise: Promise<_uthana_client.User>;
1612
+ user: _uthana_client.User | undefined;
1613
+ } | {
1614
+ isError: false;
1615
+ error: null;
1616
+ isPending: false;
1617
+ isLoading: false;
1618
+ isLoadingError: false;
1619
+ isRefetchError: false;
1620
+ isSuccess: true;
1621
+ isPlaceholderData: true;
1622
+ status: "success";
1623
+ dataUpdatedAt: number;
1624
+ errorUpdatedAt: number;
1625
+ failureCount: number;
1626
+ failureReason: Error | null;
1627
+ errorUpdateCount: number;
1628
+ isFetched: boolean;
1629
+ isFetchedAfterMount: boolean;
1630
+ isFetching: boolean;
1631
+ isInitialLoading: boolean;
1632
+ isPaused: boolean;
1633
+ isRefetching: boolean;
1634
+ isStale: boolean;
1635
+ isEnabled: boolean;
1636
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.User, Error>>;
1637
+ fetchStatus: _tanstack_query_core.FetchStatus;
1638
+ promise: Promise<_uthana_client.User>;
1639
+ user: _uthana_client.User | undefined;
1640
+ };
1641
+ /** Hook to get current org. */
1642
+ declare function useUthanaOrg(): {
1643
+ error: Error;
1644
+ isError: true;
1645
+ isPending: false;
1646
+ isLoading: false;
1647
+ isLoadingError: false;
1648
+ isRefetchError: true;
1649
+ isSuccess: false;
1650
+ isPlaceholderData: false;
1651
+ status: "error";
1652
+ dataUpdatedAt: number;
1653
+ errorUpdatedAt: number;
1654
+ failureCount: number;
1655
+ failureReason: Error | null;
1656
+ errorUpdateCount: number;
1657
+ isFetched: boolean;
1658
+ isFetchedAfterMount: boolean;
1659
+ isFetching: boolean;
1660
+ isInitialLoading: boolean;
1661
+ isPaused: boolean;
1662
+ isRefetching: boolean;
1663
+ isStale: boolean;
1664
+ isEnabled: boolean;
1665
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Org, Error>>;
1666
+ fetchStatus: _tanstack_query_core.FetchStatus;
1667
+ promise: Promise<_uthana_client.Org>;
1668
+ org: _uthana_client.Org | undefined;
1669
+ } | {
1670
+ error: null;
1671
+ isError: false;
1672
+ isPending: false;
1673
+ isLoading: false;
1674
+ isLoadingError: false;
1675
+ isRefetchError: false;
1676
+ isSuccess: true;
1677
+ isPlaceholderData: false;
1678
+ status: "success";
1679
+ dataUpdatedAt: number;
1680
+ errorUpdatedAt: number;
1681
+ failureCount: number;
1682
+ failureReason: Error | null;
1683
+ errorUpdateCount: number;
1684
+ isFetched: boolean;
1685
+ isFetchedAfterMount: boolean;
1686
+ isFetching: boolean;
1687
+ isInitialLoading: boolean;
1688
+ isPaused: boolean;
1689
+ isRefetching: boolean;
1690
+ isStale: boolean;
1691
+ isEnabled: boolean;
1692
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Org, Error>>;
1693
+ fetchStatus: _tanstack_query_core.FetchStatus;
1694
+ promise: Promise<_uthana_client.Org>;
1695
+ org: _uthana_client.Org | undefined;
1696
+ } | {
1697
+ error: Error;
1698
+ isError: true;
1699
+ isPending: false;
1700
+ isLoading: false;
1701
+ isLoadingError: true;
1702
+ isRefetchError: false;
1703
+ isSuccess: false;
1704
+ isPlaceholderData: false;
1705
+ status: "error";
1706
+ dataUpdatedAt: number;
1707
+ errorUpdatedAt: number;
1708
+ failureCount: number;
1709
+ failureReason: Error | null;
1710
+ errorUpdateCount: number;
1711
+ isFetched: boolean;
1712
+ isFetchedAfterMount: boolean;
1713
+ isFetching: boolean;
1714
+ isInitialLoading: boolean;
1715
+ isPaused: boolean;
1716
+ isRefetching: boolean;
1717
+ isStale: boolean;
1718
+ isEnabled: boolean;
1719
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Org, Error>>;
1720
+ fetchStatus: _tanstack_query_core.FetchStatus;
1721
+ promise: Promise<_uthana_client.Org>;
1722
+ org: _uthana_client.Org | undefined;
1723
+ } | {
1724
+ error: null;
1725
+ isError: false;
1726
+ isPending: true;
1727
+ isLoading: true;
1728
+ isLoadingError: false;
1729
+ isRefetchError: false;
1730
+ isSuccess: false;
1731
+ isPlaceholderData: false;
1732
+ status: "pending";
1733
+ dataUpdatedAt: number;
1734
+ errorUpdatedAt: number;
1735
+ failureCount: number;
1736
+ failureReason: Error | null;
1737
+ errorUpdateCount: number;
1738
+ isFetched: boolean;
1739
+ isFetchedAfterMount: boolean;
1740
+ isFetching: boolean;
1741
+ isInitialLoading: boolean;
1742
+ isPaused: boolean;
1743
+ isRefetching: boolean;
1744
+ isStale: boolean;
1745
+ isEnabled: boolean;
1746
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Org, Error>>;
1747
+ fetchStatus: _tanstack_query_core.FetchStatus;
1748
+ promise: Promise<_uthana_client.Org>;
1749
+ org: _uthana_client.Org | undefined;
1750
+ } | {
1751
+ error: null;
1752
+ isError: false;
1753
+ isPending: true;
1754
+ isLoadingError: false;
1755
+ isRefetchError: false;
1756
+ isSuccess: false;
1757
+ isPlaceholderData: false;
1758
+ status: "pending";
1759
+ dataUpdatedAt: number;
1760
+ errorUpdatedAt: number;
1761
+ failureCount: number;
1762
+ failureReason: Error | null;
1763
+ errorUpdateCount: number;
1764
+ isFetched: boolean;
1765
+ isFetchedAfterMount: boolean;
1766
+ isFetching: boolean;
1767
+ isLoading: boolean;
1768
+ isInitialLoading: boolean;
1769
+ isPaused: boolean;
1770
+ isRefetching: boolean;
1771
+ isStale: boolean;
1772
+ isEnabled: boolean;
1773
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Org, Error>>;
1774
+ fetchStatus: _tanstack_query_core.FetchStatus;
1775
+ promise: Promise<_uthana_client.Org>;
1776
+ org: _uthana_client.Org | undefined;
1777
+ } | {
1778
+ isError: false;
1779
+ error: null;
1780
+ isPending: false;
1781
+ isLoading: false;
1782
+ isLoadingError: false;
1783
+ isRefetchError: false;
1784
+ isSuccess: true;
1785
+ isPlaceholderData: true;
1786
+ status: "success";
1787
+ dataUpdatedAt: number;
1788
+ errorUpdatedAt: number;
1789
+ failureCount: number;
1790
+ failureReason: Error | null;
1791
+ errorUpdateCount: number;
1792
+ isFetched: boolean;
1793
+ isFetchedAfterMount: boolean;
1794
+ isFetching: boolean;
1795
+ isInitialLoading: boolean;
1796
+ isPaused: boolean;
1797
+ isRefetching: boolean;
1798
+ isStale: boolean;
1799
+ isEnabled: boolean;
1800
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_uthana_client.Org, Error>>;
1801
+ fetchStatus: _tanstack_query_core.FetchStatus;
1802
+ promise: Promise<_uthana_client.Org>;
1803
+ org: _uthana_client.Org | undefined;
1804
+ };
1805
+
1806
+ /** Hook for text-to-motion mutations. */
1807
+ declare function useUthanaTtm(): _tanstack_react_query.UseMutationResult<_uthana_client.TextToMotionResult, Error, {
1808
+ prompt: string;
1809
+ model?: TtmModelType | null;
1810
+ character_id?: string | null;
1811
+ foot_ik?: boolean | null;
1812
+ length?: number | null;
1813
+ cfg_scale?: number | null;
1814
+ seed?: number | null;
1815
+ internal_ik?: boolean | null;
1816
+ }, unknown>;
1817
+
1818
+ /** Hook for video-to-motion mutations. */
1819
+ declare function useUthanaVtm(): _tanstack_react_query.UseMutationResult<_uthana_client.Job, Error, {
1820
+ file: File | Blob | string;
1821
+ motion_name?: string | null;
1822
+ model?: VtmModelType | null;
1823
+ }, unknown>;
1824
+
1825
+ export { UthanaProvider, createUthanaClient, getUthanaClient, useUthanaBakeWithChanges, useUthanaCharacters, useUthanaClient, useUthanaCreateCharacter, useUthanaDeleteCharacter, useUthanaIsMotionDownloadAllowed, useUthanaJob, useUthanaJobs, useUthanaMotion, useUthanaMotionDownloads, useUthanaMotionPreview, useUthanaMotions, useUthanaOrg, useUthanaRateMotion, useUthanaRenameCharacter, useUthanaTtm, useUthanaUser, useUthanaVtm };