@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.
- package/dist/UthanaProvider.d.ts +24 -0
- package/dist/UthanaProvider.d.ts.map +1 -0
- package/dist/client.d.ts +15 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/hooks/characters.d.ts +36 -0
- package/dist/hooks/characters.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +11 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/jobs.d.ts +8 -0
- package/dist/hooks/jobs.d.ts.map +1 -0
- package/dist/hooks/motionDownloads.d.ts +8 -0
- package/dist/hooks/motionDownloads.d.ts.map +1 -0
- package/dist/hooks/motions.d.ts +14 -0
- package/dist/hooks/motions.d.ts.map +1 -0
- package/dist/hooks/org.d.ts +8 -0
- package/dist/hooks/org.d.ts.map +1 -0
- package/dist/hooks/ttm.d.ts +16 -0
- package/dist/hooks/ttm.d.ts.map +1 -0
- package/dist/hooks/useCharacters.d.ts +36 -0
- package/dist/hooks/useCharacters.d.ts.map +1 -0
- package/dist/hooks/useJobs.d.ts +8 -0
- package/dist/hooks/useJobs.d.ts.map +1 -0
- package/dist/hooks/useMotionDownloads.d.ts +8 -0
- package/dist/hooks/useMotionDownloads.d.ts.map +1 -0
- package/dist/hooks/useMotions.d.ts +14 -0
- package/dist/hooks/useMotions.d.ts.map +1 -0
- package/dist/hooks/useOrg.d.ts +8 -0
- package/dist/hooks/useOrg.d.ts.map +1 -0
- package/dist/hooks/useTtm.d.ts +16 -0
- package/dist/hooks/useTtm.d.ts.map +1 -0
- package/dist/hooks/useVtm.d.ts +11 -0
- package/dist/hooks/useVtm.d.ts.map +1 -0
- package/dist/hooks/vtm.d.ts +11 -0
- package/dist/hooks/vtm.d.ts.map +1 -0
- package/dist/index.cjs +431 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1825 -0
- package/dist/index.d.ts +1825 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +409 -0
- package/dist/index.js.map +1 -0
- package/dist/modules/characters.d.ts +262 -0
- package/dist/modules/characters.d.ts.map +1 -0
- package/dist/modules/index.d.ts +11 -0
- package/dist/modules/index.d.ts.map +1 -0
- package/dist/modules/jobs.d.ts +332 -0
- package/dist/modules/jobs.d.ts.map +1 -0
- package/dist/modules/motionDownloads.d.ts +332 -0
- package/dist/modules/motionDownloads.d.ts.map +1 -0
- package/dist/modules/motions.d.ts +511 -0
- package/dist/modules/motions.d.ts.map +1 -0
- package/dist/modules/org.d.ts +332 -0
- package/dist/modules/org.d.ts.map +1 -0
- package/dist/modules/ttm.d.ts +16 -0
- package/dist/modules/ttm.d.ts.map +1 -0
- package/dist/modules/vtm.d.ts +11 -0
- package/dist/modules/vtm.d.ts.map +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
+
*/
|
|
4
|
+
import { QueryClient } from "@tanstack/react-query";
|
|
5
|
+
import type { UthanaClient, UthanaClientOptions } from "@uthana/client";
|
|
6
|
+
import type { ReactNode } from "react";
|
|
7
|
+
/**
|
|
8
|
+
* Returns the Uthana client from context (UthanaProvider) or the singleton (createUthanaClient).
|
|
9
|
+
*/
|
|
10
|
+
export declare function useUthanaClient(): UthanaClient;
|
|
11
|
+
export interface UthanaProviderProps {
|
|
12
|
+
apiKey: string;
|
|
13
|
+
options?: UthanaClientOptions;
|
|
14
|
+
/** When provided, UthanaProvider will not render QueryClientProvider. Use your own above. */
|
|
15
|
+
queryClient?: QueryClient;
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Provider that supplies the Uthana client and optionally react-query.
|
|
20
|
+
* When queryClient is passed, only the client context is provided (use your own QueryClientProvider).
|
|
21
|
+
* When not passed, creates a QueryClient and wraps with QueryClientProvider.
|
|
22
|
+
*/
|
|
23
|
+
export declare function UthanaProvider({ apiKey, options, queryClient: providedQueryClient, children, }: UthanaProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=UthanaProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UthanaProvider.d.ts","sourceRoot":"","sources":["../src/UthanaProvider.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC;;GAEG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAI9C;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,6FAA6F;IAC7F,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,OAAO,EACP,WAAW,EAAE,mBAAmB,EAChC,QAAQ,GACT,EAAE,mBAAmB,2CAarB"}
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
+
*/
|
|
4
|
+
import type { UthanaClient, UthanaClientOptions } from "@uthana/client";
|
|
5
|
+
/**
|
|
6
|
+
* Create or return the singleton Uthana client for React apps.
|
|
7
|
+
* Call this once (e.g. in a root layout or provider) with your API key.
|
|
8
|
+
* If called again with a different apiKey, the singleton is replaced.
|
|
9
|
+
*/
|
|
10
|
+
export declare function createUthanaClient(apiKey: string, options?: UthanaClientOptions): UthanaClient;
|
|
11
|
+
/**
|
|
12
|
+
* Get the current singleton client. Throws if createUthanaClient was never called.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getUthanaClient(): UthanaClient;
|
|
15
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAKxE;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,YAAY,CAQ9F;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAK9C"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
+
*/
|
|
4
|
+
/** Hook to list characters. */
|
|
5
|
+
export declare function useUthanaCharacters(): import("@tanstack/react-query").UseQueryResult<import("@uthana/client").Character[], Error>;
|
|
6
|
+
/** Hook to create a character (upload). */
|
|
7
|
+
export declare function useUthanaCreateCharacter(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").CreateCharacterResult, Error, {
|
|
8
|
+
file: File | Blob | string;
|
|
9
|
+
auto_rig?: boolean | null;
|
|
10
|
+
front_facing?: boolean | null;
|
|
11
|
+
}, unknown>;
|
|
12
|
+
/** Hook to rename a character. */
|
|
13
|
+
export declare function useUthanaRenameCharacter(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").Character, Error, {
|
|
14
|
+
character_id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}, unknown>;
|
|
17
|
+
/** Hook to delete a character. */
|
|
18
|
+
export declare function useUthanaDeleteCharacter(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").Character, Error, {
|
|
19
|
+
character_id: string;
|
|
20
|
+
}, unknown>;
|
|
21
|
+
/** Hook to generate character preview images from text. */
|
|
22
|
+
export declare function useUthanaGenerateCharacterFromText(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").GenerateFromTextResult, Error, {
|
|
23
|
+
prompt: string;
|
|
24
|
+
}, unknown>;
|
|
25
|
+
/** Hook to generate a character preview image from an uploaded image. */
|
|
26
|
+
export declare function useUthanaGenerateCharacterFromImage(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").GenerateFromImageResult, Error, {
|
|
27
|
+
file: File | Blob;
|
|
28
|
+
}, unknown>;
|
|
29
|
+
/** Hook to create a character from a previously generated image. */
|
|
30
|
+
export declare function useUthanaCreateCharacterFromImage(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").CreateFromGeneratedImageResult, Error, {
|
|
31
|
+
character_id: string;
|
|
32
|
+
image_key: string;
|
|
33
|
+
prompt: string;
|
|
34
|
+
name?: string | null;
|
|
35
|
+
}, unknown>;
|
|
36
|
+
//# sourceMappingURL=characters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characters.d.ts","sourceRoot":"","sources":["../../src/hooks/characters.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,+BAA+B;AAC/B,wBAAgB,mBAAmB,gGAMlC;AAED,2CAA2C;AAC3C,wBAAgB,wBAAwB;UAK5B,IAAI,GAAG,IAAI,GAAG,MAAM;eACf,OAAO,GAAG,IAAI;mBACV,OAAO,GAAG,IAAI;YAMlC;AAED,kCAAkC;AAClC,wBAAgB,wBAAwB;kBAIC,MAAM;UAAQ,MAAM;YAM5D;AAED,kCAAkC;AAClC,wBAAgB,wBAAwB;kBAIC,MAAM;YAK9C;AAED,2DAA2D;AAC3D,wBAAgB,kCAAkC;YAGf,MAAM;YAExC;AAED,yEAAyE;AACzE,wBAAgB,mCAAmC;UAGlB,IAAI,GAAG,IAAI;YAG3C;AAED,oEAAoE;AACpE,wBAAgB,iCAAiC;kBAK7B,MAAM;eACT,MAAM;YACT,MAAM;WACP,MAAM,GAAG,IAAI;YAYzB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
+
*/
|
|
4
|
+
export { useUthanaCharacters, useUthanaCreateCharacter, useUthanaCreateCharacterFromImage, useUthanaDeleteCharacter, useUthanaGenerateCharacterFromImage, useUthanaGenerateCharacterFromText, useUthanaRenameCharacter, } from "./characters";
|
|
5
|
+
export { useUthanaJob, useUthanaJobs } from "./jobs";
|
|
6
|
+
export { useUthanaMotionDownloadAllowed, useUthanaMotionDownloads } from "./motionDownloads";
|
|
7
|
+
export { useUthanaMotion, useUthanaMotions, useUthanaRateMotion } from "./motions";
|
|
8
|
+
export { useUthanaOrg, useUthanaUser } from "./org";
|
|
9
|
+
export { useUthanaTtm } from "./ttm";
|
|
10
|
+
export { useUthanaVtm } from "./vtm";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,iCAAiC,EACjC,wBAAwB,EACxB,mCAAmC,EACnC,kCAAkC,EAClC,wBAAwB,GACzB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,8BAA8B,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
+
*/
|
|
4
|
+
/** Hook to list jobs. */
|
|
5
|
+
export declare function useUthanaJobs(method?: string | null): import("@tanstack/react-query").UseQueryResult<import("@uthana/client").Job[], Error>;
|
|
6
|
+
/** Hook to get a single job by ID. */
|
|
7
|
+
export declare function useUthanaJob(jobId: string | null): import("@tanstack/react-query").UseQueryResult<import("@uthana/client").Job, Error>;
|
|
8
|
+
//# sourceMappingURL=jobs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../src/hooks/jobs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,yBAAyB;AACzB,wBAAgB,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,yFAMnD;AAED,sCAAsC;AACtC,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,uFAOhD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
+
*/
|
|
4
|
+
/** Hook to list motion downloads. */
|
|
5
|
+
export declare function useUthanaMotionDownloads(): import("@tanstack/react-query").UseQueryResult<import("@uthana/client").MotionDownloadRecord[], Error>;
|
|
6
|
+
/** Hook to check if a motion download is allowed for a character. Disabled when characterId or motionId is null. */
|
|
7
|
+
export declare function useUthanaMotionDownloadAllowed(characterId: string | null, motionId: string | null): import("@tanstack/react-query").UseQueryResult<boolean, Error>;
|
|
8
|
+
//# sourceMappingURL=motionDownloads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motionDownloads.d.ts","sourceRoot":"","sources":["../../src/hooks/motionDownloads.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,qCAAqC;AACrC,wBAAgB,wBAAwB,2GAMvC;AAED,oHAAoH;AACpH,wBAAgB,8BAA8B,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,kEAOjG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
+
*/
|
|
4
|
+
/** Hook to list motions. */
|
|
5
|
+
export declare function useUthanaMotions(): import("@tanstack/react-query").UseQueryResult<import("@uthana/client").Motion[], Error>;
|
|
6
|
+
/** Hook to get a single motion by ID. Disabled when motionId is null. */
|
|
7
|
+
export declare function useUthanaMotion(motionId: string | null): import("@tanstack/react-query").UseQueryResult<import("@uthana/client").Motion | null, Error>;
|
|
8
|
+
/** Hook to rate a motion (thumbs up/down). Invalidates motions on success. */
|
|
9
|
+
export declare function useUthanaRateMotion(): import("@tanstack/react-query").UseMutationResult<void, Error, {
|
|
10
|
+
motion_id: string;
|
|
11
|
+
score: 0 | 1;
|
|
12
|
+
label_id?: string | null;
|
|
13
|
+
}, unknown>;
|
|
14
|
+
//# sourceMappingURL=motions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motions.d.ts","sourceRoot":"","sources":["../../src/hooks/motions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,4BAA4B;AAC5B,wBAAgB,gBAAgB,6FAM/B;AAED,yEAAyE;AACzE,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,iGAOtD;AAED,8EAA8E;AAC9E,wBAAgB,mBAAmB;eAIG,MAAM;WAAS,CAAC,GAAG,CAAC;eAAa,MAAM,GAAG,IAAI;YAQnF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
+
*/
|
|
4
|
+
/** Hook to get current user. */
|
|
5
|
+
export declare function useUthanaUser(): import("@tanstack/react-query").UseQueryResult<import("@uthana/client").User, Error>;
|
|
6
|
+
/** Hook to get current org. */
|
|
7
|
+
export declare function useUthanaOrg(): import("@tanstack/react-query").UseQueryResult<import("@uthana/client").Org, Error>;
|
|
8
|
+
//# sourceMappingURL=org.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org.d.ts","sourceRoot":"","sources":["../../src/hooks/org.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,gCAAgC;AAChC,wBAAgB,aAAa,yFAM5B;AAED,+BAA+B;AAC/B,wBAAgB,YAAY,wFAM3B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
+
*/
|
|
4
|
+
import type { TtmModelType } from "@uthana/client";
|
|
5
|
+
/** Hook for text-to-motion mutations. */
|
|
6
|
+
export declare function useUthanaTtm(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").TextToMotionResult, Error, {
|
|
7
|
+
prompt: string;
|
|
8
|
+
model?: TtmModelType | null;
|
|
9
|
+
character_id?: string | null;
|
|
10
|
+
foot_ik?: boolean | null;
|
|
11
|
+
length?: number | null;
|
|
12
|
+
cfg_scale?: number | null;
|
|
13
|
+
seed?: number | null;
|
|
14
|
+
internal_ik?: boolean | null;
|
|
15
|
+
}, unknown>;
|
|
16
|
+
//# sourceMappingURL=ttm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ttm.d.ts","sourceRoot":"","sources":["../../src/hooks/ttm.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD,yCAAyC;AACzC,wBAAgB,YAAY;YAId,MAAM;YACN,YAAY,GAAG,IAAI;mBACZ,MAAM,GAAG,IAAI;cAClB,OAAO,GAAG,IAAI;aACf,MAAM,GAAG,IAAI;gBACV,MAAM,GAAG,IAAI;WAClB,MAAM,GAAG,IAAI;kBACN,OAAO,GAAG,IAAI;YAGjC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
+
*/
|
|
4
|
+
/** Hook to list characters. */
|
|
5
|
+
export declare function useUthanaCharacters(): import("@tanstack/react-query").UseQueryResult<import("@uthana/client").Character[], Error>;
|
|
6
|
+
/** Hook to create a character (upload). */
|
|
7
|
+
export declare function useUthanaCreateCharacter(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").CreateCharacterResult, Error, {
|
|
8
|
+
file: File | Blob | string;
|
|
9
|
+
auto_rig?: boolean | null;
|
|
10
|
+
front_facing?: boolean | null;
|
|
11
|
+
}, unknown>;
|
|
12
|
+
/** Hook to rename a character. */
|
|
13
|
+
export declare function useUthanaRenameCharacter(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").Character, Error, {
|
|
14
|
+
character_id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}, unknown>;
|
|
17
|
+
/** Hook to delete a character. */
|
|
18
|
+
export declare function useUthanaDeleteCharacter(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").Character, Error, {
|
|
19
|
+
character_id: string;
|
|
20
|
+
}, unknown>;
|
|
21
|
+
/** Hook to generate character preview images from text. */
|
|
22
|
+
export declare function useUthanaGenerateCharacterFromText(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").GenerateFromTextResult, Error, {
|
|
23
|
+
prompt: string;
|
|
24
|
+
}, unknown>;
|
|
25
|
+
/** Hook to generate a character preview image from an uploaded image. */
|
|
26
|
+
export declare function useUthanaGenerateCharacterFromImage(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").GenerateFromImageResult, Error, {
|
|
27
|
+
file: File | Blob;
|
|
28
|
+
}, unknown>;
|
|
29
|
+
/** Hook to create a character from a previously generated image. */
|
|
30
|
+
export declare function useUthanaCreateCharacterFromImage(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").CreateFromGeneratedImageResult, Error, {
|
|
31
|
+
character_id: string;
|
|
32
|
+
image_key: string;
|
|
33
|
+
prompt: string;
|
|
34
|
+
name?: string | null;
|
|
35
|
+
}, unknown>;
|
|
36
|
+
//# sourceMappingURL=useCharacters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCharacters.d.ts","sourceRoot":"","sources":["../../src/hooks/useCharacters.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,+BAA+B;AAC/B,wBAAgB,mBAAmB,gGAMlC;AAED,2CAA2C;AAC3C,wBAAgB,wBAAwB;UAK5B,IAAI,GAAG,IAAI,GAAG,MAAM;eACf,OAAO,GAAG,IAAI;mBACV,OAAO,GAAG,IAAI;YAMlC;AAED,kCAAkC;AAClC,wBAAgB,wBAAwB;kBAIC,MAAM;UAAQ,MAAM;YAM5D;AAED,kCAAkC;AAClC,wBAAgB,wBAAwB;kBAIC,MAAM;YAK9C;AAED,2DAA2D;AAC3D,wBAAgB,kCAAkC;YAGf,MAAM;YAExC;AAED,yEAAyE;AACzE,wBAAgB,mCAAmC;UAGlB,IAAI,GAAG,IAAI;YAG3C;AAED,oEAAoE;AACpE,wBAAgB,iCAAiC;kBAK7B,MAAM;eACT,MAAM;YACT,MAAM;WACP,MAAM,GAAG,IAAI;YAYzB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
+
*/
|
|
4
|
+
/** Hook to list jobs. */
|
|
5
|
+
export declare function useUthanaJobs(method?: string | null): import("@tanstack/react-query").UseQueryResult<import("@uthana/client").Job[], Error>;
|
|
6
|
+
/** Hook to get a single job by ID. */
|
|
7
|
+
export declare function useUthanaJob(jobId: string | null): import("@tanstack/react-query").UseQueryResult<import("@uthana/client").Job, Error>;
|
|
8
|
+
//# sourceMappingURL=useJobs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useJobs.d.ts","sourceRoot":"","sources":["../../src/hooks/useJobs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,yBAAyB;AACzB,wBAAgB,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,yFAMnD;AAED,sCAAsC;AACtC,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,uFAOhD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
+
*/
|
|
4
|
+
/** Hook to list motion downloads. */
|
|
5
|
+
export declare function useUthanaMotionDownloads(): import("@tanstack/react-query").UseQueryResult<import("@uthana/client").MotionDownloadRecord[], Error>;
|
|
6
|
+
/** Hook to check if a motion download is allowed for a character. Disabled when characterId or motionId is null. */
|
|
7
|
+
export declare function useUthanaMotionDownloadAllowed(characterId: string | null, motionId: string | null): import("@tanstack/react-query").UseQueryResult<boolean, Error>;
|
|
8
|
+
//# sourceMappingURL=useMotionDownloads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMotionDownloads.d.ts","sourceRoot":"","sources":["../../src/hooks/useMotionDownloads.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,qCAAqC;AACrC,wBAAgB,wBAAwB,2GAMvC;AAED,oHAAoH;AACpH,wBAAgB,8BAA8B,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,kEAOjG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
+
*/
|
|
4
|
+
/** Hook to list motions. */
|
|
5
|
+
export declare function useUthanaMotions(): import("@tanstack/react-query").UseQueryResult<import("@uthana/client").Motion[], Error>;
|
|
6
|
+
/** Hook to get a single motion by ID. Disabled when motionId is null. */
|
|
7
|
+
export declare function useUthanaMotion(motionId: string | null): import("@tanstack/react-query").UseQueryResult<import("@uthana/client").Motion | null, Error>;
|
|
8
|
+
/** Hook to rate a motion (thumbs up/down). Invalidates motions on success. */
|
|
9
|
+
export declare function useUthanaRateMotion(): import("@tanstack/react-query").UseMutationResult<void, Error, {
|
|
10
|
+
motion_id: string;
|
|
11
|
+
score: 0 | 1;
|
|
12
|
+
label_id?: string | null;
|
|
13
|
+
}, unknown>;
|
|
14
|
+
//# sourceMappingURL=useMotions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMotions.d.ts","sourceRoot":"","sources":["../../src/hooks/useMotions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,4BAA4B;AAC5B,wBAAgB,gBAAgB,6FAM/B;AAED,yEAAyE;AACzE,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,iGAOtD;AAED,8EAA8E;AAC9E,wBAAgB,mBAAmB;eAIG,MAAM;WAAS,CAAC,GAAG,CAAC;eAAa,MAAM,GAAG,IAAI;YAQnF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
+
*/
|
|
4
|
+
/** Hook to get current user. */
|
|
5
|
+
export declare function useUthanaUser(): import("@tanstack/react-query").UseQueryResult<import("@uthana/client").User, Error>;
|
|
6
|
+
/** Hook to get current org. */
|
|
7
|
+
export declare function useUthanaOrg(): import("@tanstack/react-query").UseQueryResult<import("@uthana/client").Org, Error>;
|
|
8
|
+
//# sourceMappingURL=useOrg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOrg.d.ts","sourceRoot":"","sources":["../../src/hooks/useOrg.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,gCAAgC;AAChC,wBAAgB,aAAa,yFAM5B;AAED,+BAA+B;AAC/B,wBAAgB,YAAY,wFAM3B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
+
*/
|
|
4
|
+
import type { TtmModelType } from "@uthana/client";
|
|
5
|
+
/** Hook for text-to-motion mutations. */
|
|
6
|
+
export declare function useUthanaTtm(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").TextToMotionResult, Error, {
|
|
7
|
+
prompt: string;
|
|
8
|
+
model?: TtmModelType | null;
|
|
9
|
+
character_id?: string | null;
|
|
10
|
+
foot_ik?: boolean | null;
|
|
11
|
+
length?: number | null;
|
|
12
|
+
cfg_scale?: number | null;
|
|
13
|
+
seed?: number | null;
|
|
14
|
+
internal_ik?: boolean | null;
|
|
15
|
+
}, unknown>;
|
|
16
|
+
//# sourceMappingURL=useTtm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTtm.d.ts","sourceRoot":"","sources":["../../src/hooks/useTtm.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD,yCAAyC;AACzC,wBAAgB,YAAY;YAId,MAAM;YACN,YAAY,GAAG,IAAI;mBACZ,MAAM,GAAG,IAAI;cAClB,OAAO,GAAG,IAAI;aACf,MAAM,GAAG,IAAI;gBACV,MAAM,GAAG,IAAI;WAClB,MAAM,GAAG,IAAI;kBACN,OAAO,GAAG,IAAI;YAGjC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
+
*/
|
|
4
|
+
import type { VtmModelType } from "@uthana/client";
|
|
5
|
+
/** Hook for video-to-motion mutations. */
|
|
6
|
+
export declare function useUthanaVtm(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").Job, Error, {
|
|
7
|
+
file: File | Blob | string;
|
|
8
|
+
motion_name?: string | null;
|
|
9
|
+
model?: VtmModelType | null;
|
|
10
|
+
}, unknown>;
|
|
11
|
+
//# sourceMappingURL=useVtm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVtm.d.ts","sourceRoot":"","sources":["../../src/hooks/useVtm.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD,0CAA0C;AAC1C,wBAAgB,YAAY;UAIhB,IAAI,GAAG,IAAI,GAAG,MAAM;kBACZ,MAAM,GAAG,IAAI;YACnB,YAAY,GAAG,IAAI;YAGhC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
+
*/
|
|
4
|
+
import type { VtmModelType } from "@uthana/client";
|
|
5
|
+
/** Hook for video-to-motion mutations. */
|
|
6
|
+
export declare function useUthanaVtm(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").Job, Error, {
|
|
7
|
+
file: File | Blob | string;
|
|
8
|
+
motion_name?: string | null;
|
|
9
|
+
model?: VtmModelType | null;
|
|
10
|
+
}, unknown>;
|
|
11
|
+
//# sourceMappingURL=vtm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vtm.d.ts","sourceRoot":"","sources":["../../src/hooks/vtm.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD,0CAA0C;AAC1C,wBAAgB,YAAY;UAIhB,IAAI,GAAG,IAAI,GAAG,MAAM;kBACZ,MAAM,GAAG,IAAI;YACnB,YAAY,GAAG,IAAI;YAGhC"}
|