mirror repo (WIP)

Need to remove secrets before entire repo can be made public.
This commit is contained in:
Brandon Thomas
2025-09-18 22:55:03 -04:00
commit 0daf83dba9
8735 changed files with 2963896 additions and 0 deletions
@@ -0,0 +1,50 @@
{
"extends": [
"../../../.eslintrc.json"
],
"ignorePatterns": [
"!**/*"
],
"overrides": [
{
"files": [
"*.ts",
"*.tsx",
"*.js",
"*.jsx"
],
"rules": {}
},
{
"files": [
"*.ts",
"*.tsx"
],
"rules": {}
},
{
"files": [
"*.js",
"*.jsx"
],
"rules": {}
},
{
"files": [
"*.json"
],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": [
"error",
{
"ignoredFiles": [
"{projectRoot}/eslint.config.{js,cjs,mjs,ts,cts,mts}",
"{projectRoot}/vite.config.{js,ts,mjs,mts}"
]
}
]
}
}
]
}
@@ -0,0 +1,7 @@
# google-analytics
This library was generated with [Nx](https://nx.dev).
## Building
Run `nx build google-analytics` to build the library.
@@ -0,0 +1,4 @@
export * from './lib/gtag-login.js';
export * from './lib/gtag-logout.js';
export * from './lib/gtag-event.js';
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
+24
View File
@@ -0,0 +1,24 @@
const o = "G-Y4Y8KMLPQ7", t = function(g) {
console.debug("gtagLogin", o, g), window.gtag(
"config",
o,
{
user_id: g
}
);
}, i = function() {
console.debug("gtagLogout", o), window.gtag(
"config",
o,
{
user_id: null
}
);
}, c = function(g, n) {
console.debug("gtagEvent", g, n), n ? window.gtag("event", g, n) : window.gtag("event", g);
};
export {
c as gtagEvent,
t as gtagLogin,
i as gtagLogout
};
@@ -0,0 +1,4 @@
export declare const gtagEvent: (eventName: string, args?: {
[key: string]: string;
}) => void;
//# sourceMappingURL=gtag-event.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"gtag-event.d.ts","sourceRoot":"","sources":["../../src/lib/gtag-event.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,GAAY,WAAW,MAAM,EAAE,OAAO;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,SAOpF,CAAA"}
@@ -0,0 +1,2 @@
export declare const gtagLogin: (userToken: string) => void;
//# sourceMappingURL=gtag-login.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"gtag-login.d.ts","sourceRoot":"","sources":["../../src/lib/gtag-login.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,GAAY,WAAW,MAAM,SAOlD,CAAA"}
@@ -0,0 +1,2 @@
export declare const gtagLogout: () => void;
//# sourceMappingURL=gtag-logout.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"gtag-logout.d.ts","sourceRoot":"","sources":["../../src/lib/gtag-logout.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,YAOtB,CAAA"}
@@ -0,0 +1,2 @@
export declare const TAG_ID = "G-Y4Y8KMLPQ7";
//# sourceMappingURL=tag-id.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"tag-id.d.ts","sourceRoot":"","sources":["../../src/lib/tag-id.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,19 @@
{
"name": "@storyteller/google-analytics",
"version": "0.0.1",
"private": true,
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"development": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
},
"dependencies": {}
}
@@ -0,0 +1,4 @@
export * from './lib/gtag-login.js';
export * from './lib/gtag-logout.js';
export * from './lib/gtag-event.js';
@@ -0,0 +1,10 @@
// Send an event with name and "args". Args is a string-to-string map.
export const gtagEvent = function(eventName: string, args?: { [key: string]: string }) {
console.debug("gtagEvent", eventName, args);
if (!args) {
(window as any).gtag('event', eventName);
} else {
(window as any).gtag('event', eventName, args);
}
}
@@ -0,0 +1,10 @@
import { TAG_ID } from './tag-id.js';
export const gtagLogin = function(userToken: string) {
console.debug("gtagLogin", TAG_ID, userToken);
(window as any).gtag(
'config', TAG_ID, {
'user_id': userToken
});
}
@@ -0,0 +1,10 @@
import { TAG_ID } from './tag-id.js';
export const gtagLogout = function() {
console.debug("gtagLogout", TAG_ID);
(window as any).gtag(
'config', TAG_ID, {
'user_id': null
});
}
@@ -0,0 +1 @@
export const TAG_ID = 'G-Y4Y8KMLPQ7';
@@ -0,0 +1,10 @@
{
"extends": "../../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
]
}
@@ -0,0 +1,21 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": ".",
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.lib.tsbuildinfo",
"emitDeclarationOnly": true,
"module": "nodenext",
"moduleResolution": "nodenext",
"forceConsistentCasingInFileNames": true,
"types": [
"node",
"vite/client"
]
},
"include": [
"src/**/*.ts"
],
"references": []
}
@@ -0,0 +1,37 @@
/// <reference types='vitest' />
import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts';
import * as path from 'path';
export default defineConfig(() => ({
root: __dirname,
cacheDir: '../../../node_modules/.vite/libs/analytics/google-analytics',
plugins: [dts({ entryRoot: 'src', tsconfigPath: path.join(__dirname, 'tsconfig.lib.json') })],
// Uncomment this if you are using workers.
// worker: {
// plugins: [ nxViteTsPaths() ],
// },
// Configuration for building your library.
// See: https://vitejs.dev/guide/build.html#library-mode
build: {
outDir: './dist',
emptyOutDir: true,
reportCompressedSize: true,
commonjsOptions: {
transformMixedEsModules: true,
},
lib: {
// Could also be a dictionary or array of multiple entry points.
entry: 'src/index.ts',
name: '@storyteller/google-analytics',
fileName: 'index',
// Change this to the formats you want to support.
// Don't forget to update your package.json as well.
formats: ['es' as const]
},
rollupOptions: {
// External packages that should not be bundled into your library.
external: []
},
},
}));
+50
View File
@@ -0,0 +1,50 @@
{
"extends": [
"../../.eslintrc.json"
],
"ignorePatterns": [
"!**/*"
],
"overrides": [
{
"files": [
"*.ts",
"*.tsx",
"*.js",
"*.jsx"
],
"rules": {}
},
{
"files": [
"*.ts",
"*.tsx"
],
"rules": {}
},
{
"files": [
"*.js",
"*.jsx"
],
"rules": {}
},
{
"files": [
"*.json"
],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": [
"error",
{
"ignoredFiles": [
"{projectRoot}/eslint.config.{js,cjs,mjs}",
"{projectRoot}/vite.config.{js,ts,mjs,mts}"
]
}
]
}
}
]
}
+11
View File
@@ -0,0 +1,11 @@
# api
This library was generated with [Nx](https://nx.dev).
## Building
Run `nx build api` to build the library.
## Running unit tests
Run `nx test api` to execute the unit tests via [Vitest](https://vitest.dev/).
+20
View File
@@ -0,0 +1,20 @@
export * from './lib/enums/index.js';
export * from './lib/models/Users.js';
export * from './lib/AnalyticsApi.js';
export * from './lib/BillingApi.js';
export * from './lib/EngineApi.js';
export * from './lib/JobsApi.js';
export * from './lib/MediaFilesApi.js';
export * from './lib/MediaUploadApi.js';
export * from './lib/MiscApi.js';
export * from './lib/LocalApi.js';
export * from './lib/PromptsApi.js';
export * from './lib/TtsApi.js';
export * from './lib/UserBookmarksApi.js';
export * from './lib/UsersApi.js';
export * from './lib/VideoApi.js';
export * from './lib/WeightsApi.js';
export * from './lib/GetCdnOrigin.js';
export * from './lib/GalleryModalApi.js';
export * from './lib/config/StorytellerApiHostStore.js';
//# sourceMappingURL=index.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yCAAyC,CAAA"}
+2892
View File
File diff suppressed because it is too large Load Diff
+8
View File
@@ -0,0 +1,8 @@
import { ApiManager, ApiResponse } from './ApiManager.js';
export declare class AnalyticsApi extends ApiManager {
PostAnalytics({ maybeLastAction, maybeLogToken, }: {
maybeLastAction: string;
maybeLogToken: string;
}): Promise<ApiResponse<string>>;
}
//# sourceMappingURL=AnalyticsApi.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"AnalyticsApi.d.ts","sourceRoot":"","sources":["../../src/lib/AnalyticsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE1D,qBAAa,YAAa,SAAQ,UAAU;IACnC,aAAa,CAAC,EACnB,eAAe,EACf,aAAa,GACd,EAAE;QACD,eAAe,EAAE,MAAM,CAAC;QACxB,aAAa,EAAE,MAAM,CAAC;KACvB,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;CA4BjC"}
+54
View File
@@ -0,0 +1,54 @@
type NonNullableObject<T extends object> = NonNullable<T>;
export interface ApiResponse<T, P = undefined> {
success: boolean;
errorMessage?: string;
data?: T;
pagination?: P;
}
export declare class ApiManager {
ApiTargets: Record<string, string>;
constructor();
protected getApiSchemeAndHost(): string;
fetch<B, T>(endpoint: string, { method, query, body, }: {
method: string;
query?: Record<string, string | boolean | number | undefined>;
body?: B;
}): Promise<T>;
fetchMultipartFormData<T>(endpoint: string, { method, body, }: {
method: string;
body: FormData;
}): Promise<T>;
protected get<T>({ endpoint, query, }: {
endpoint: string;
query?: Record<string, string | boolean | number | undefined>;
}): Promise<T>;
protected post<B, T>({ endpoint, query, body, }: {
endpoint: string;
query?: Record<string, string | boolean | number | undefined>;
body?: B;
}): Promise<T>;
protected delete<B, T>({ endpoint, query, body, }: {
endpoint: string;
query?: Record<string, string | boolean | number | undefined>;
body?: B;
}): Promise<T>;
protected postFormVideo<T>({ endpoint, formRecord, uuid, blob, blobFileName, }: {
endpoint: string;
formRecord: Record<string, string>;
uuid: string;
blob?: Blob | File;
blobFileName?: string;
}): Promise<T>;
protected postForm<T>({ endpoint, formRecord, uuid, blob, blobFileName, }: {
endpoint: string;
formRecord: Record<string, string>;
uuid: string;
blob?: Blob | File;
blobFileName?: string;
}): Promise<T>;
protected camelToSnakeCase(str: string): string;
protected parseQueryValues(params: Record<string, string | string[] | boolean | number | undefined>): Record<string, string>;
protected parseBodyValues<T extends object, B extends object>(params: NonNullableObject<T>): B;
}
export {};
//# sourceMappingURL=ApiManager.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"ApiManager.d.ts","sourceRoot":"","sources":["../../src/lib/ApiManager.ts"],"names":[],"mappings":"AAMA,KAAK,iBAAiB,CAAC,CAAC,SAAS,MAAM,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AAE1D,MAAM,WAAW,WAAW,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,UAAU,CAAC,EAAE,CAAC,CAAC;CAChB;AAED,qBAAa,UAAU;IACrB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM;;IAWxC,SAAS,CAAC,mBAAmB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'./ApiManager.js';
import { Subscription } from './models/Billing.js';
import { LoyaltyProgram } from './enums/Billing.js';
export declare class BillingApi extends ApiManager {
ListActiveSubscriptions(): Promise<ApiResponse<{
active_subscriptions: Subscription[];
maybe_loyalty_program?: LoyaltyProgram;
}>>;
}
//# sourceMappingURL=BillingApi.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"BillingApi.d.ts","sourceRoot":"","sources":["../../src/lib/BillingApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBAAa,UAAW,SAAQ,UAAU;IAC3B,uBAAuB,IAAI,OAAO,CAC7C,WAAW,CAAC;QACV,oBAAoB,EAAE,YAAY,EAAE,CAAC;QACrC,qBAAqB,CAAC,EAAE,cAAc,CAAC;KACxC,CAAC,CACH;CAsBF"}
+32
View File
@@ -0,0 +1,32 @@
import { ApiManager, ApiResponse } from './ApiManager';
export declare class EngineApi extends ApiManager {
ConvertTbxToGltf({ mediaFileToken, uuidIdempotencyToken, }: {
mediaFileToken: string;
uuidIdempotencyToken: string;
}): Promise<ApiResponse<string>>;
uploadSceneSnapshot({ screenshot, sceneMediaToken, }: {
screenshot: File;
sceneMediaToken?: string;
}): Promise<ApiResponse<string>>;
enqueueImageGeneration({ disableSystemPrompt, prompt, snapshotMediaToken, additionalImages, }: {
disableSystemPrompt: boolean;
prompt: string;
snapshotMediaToken: string;
additionalImages?: string[];
}): Promise<ApiResponse<string>>;
pollJobSession(jobToken: string): Promise<ApiResponse<{
status: string;
result: {
generated_images?: string[];
error?: string;
};
}>>;
pollStudioSessionJobs(jobToken: string): Promise<ApiResponse<{
status: string;
result: {
generated_images?: string[];
error?: string;
};
}>>;
}
//# sourceMappingURL=EngineApi.d.ts.map
+1
View File
@@ -0,0 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CAAC;SAChB,CAAC;KACH,CAAC,CACH;CA6BF"}
+18
View File
@@ -0,0 +1,18 @@
import { MediaFilesApi } from './MediaFilesApi.js';
import { FilterMediaClasses, FilterMediaType, FilterEngineCategories } from './enums/QueryFilters.js';
interface ListUserMediaQuery {
username: string;
filter_media_classes?: FilterMediaClasses[];
filter_media_type?: FilterMediaType[];
filter_engine_categories?: FilterEngineCategories[];
user_uploads_only?: boolean;
include_user_uploads?: boolean;
page_index?: number;
page_size?: number;
}
export declare class GalleryModalApi extends MediaFilesApi {
constructor();
listUserMediaFiles(query: ListUserMediaQuery): Promise<import('./ApiManager.js').ApiResponse<import('./models/MediaFile.js').MediaFile[], import('./models/Pagination.js').Pagination>>;
}
export {};
//# sourceMappingURL=GalleryModalApi.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"GalleryModalApi.d.ts","sourceRoot":"","sources":["../../src/lib/GalleryModalApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AAEjC,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC5C,iBAAiB,CAAC,EAAE,eAAe,EAAE,CAAC;IACtC,wBAAwB,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACpD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,eAAgB,SAAQ,aAAa;;IAKnC,kBAAkB,CAAC,KAAK,EAAE,kBAAkB;CAa1D"}
+2
View File
@@ -0,0 +1,2 @@
export declare function GetCdnOrigin(): string;
//# sourceMappingURL=GetCdnOrigin.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"GetCdnOrigin.d.ts","sourceRoot":"","sources":["../../src/lib/GetCdnOrigin.ts"],"names":[],"mappings":"AACA,wBAAgB,YAAY,IAAI,MAAM,CAErC"}
+15
View File
@@ -0,0 +1,15 @@
import { ApiManager, ApiResponse } from './ApiManager.js';
import { Job, JobPreview } from './models/Job.js';
import { JobState } from './models/JobState.js';
export declare class JobsApi extends ApiManager {
GetPreviewStatusByJobToken({ token, }: {
token: string;
}): Promise<ApiResponse<JobPreview>>;
GetJobByToken({ token, }: {
token: string;
}): Promise<ApiResponse<JobState>>;
ListJobs(): Promise<ApiResponse<JobState[]>>;
ListRecentJobs(): Promise<ApiResponse<Job[]>>;
DeleteJobByToken(jobToken: string): Promise<ApiResponse<undefined>>;
}
//# sourceMappingURL=JobsApi.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"JobsApi.d.ts","sourceRoot":"","sources":["../../src/lib/JobsApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,qBAAa,OAAQ,SAAQ,UAAU;IAC9B,0BAA0B,CAAC,EAChC,KAAK,GACN,EAAE;QACD,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAa7B,aAAa,CAAC,EACnB,KAAK,GACN,EAAE;QACD,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAgB3B,QAAQ,IAAI,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;IAgB5C,cAAc,IAAI,OAAO,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC;IAiB7C,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;CAgB3E"}
+2
View File
@@ -0,0 +1,2 @@
export declare const downloadFileFromUrl: (url: string) => Promise<void>;
//# sourceMappingURL=LocalApi.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"LocalApi.d.ts","sourceRoot":"","sources":["../../src/lib/LocalApi.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,GAAU,KAAK,MAAM,kBAwBlD,CAAC"}
+63
View File
@@ -0,0 +1,63 @@
import { MediaFile } from './models/MediaFile.js';
import { Pagination, PaginationInfinite } from './models/Pagination.js';
import { ApiManager, ApiResponse } from './ApiManager.js';
import { Visibility } from './enums/Visibility.js';
import { FilterEngineCategories, FilterMediaClasses, FilterMediaType } from './enums/QueryFilters.js';
interface ListMediaQuery {
sort_ascending?: boolean;
page_size?: number;
cursor?: string;
cursor_is_reversed?: boolean;
filter_media_classes?: FilterMediaClasses[];
filter_media_type?: FilterMediaType[];
filter_engine_categories?: FilterEngineCategories[];
}
interface ListUserMediaQuery {
username: string;
sort_ascending?: boolean;
page_size?: number;
page_index?: number;
filter_media_classes?: FilterMediaClasses[];
filter_media_type?: FilterMediaType[];
filter_engine_categories?: FilterEngineCategories[];
user_uploads_only?: boolean;
include_user_uploads?: boolean;
}
interface SearchFeaturedMediaQuery {
search_term: string;
filter_media_classes?: FilterMediaClasses[];
filter_media_type?: FilterMediaType[];
filter_engine_categories?: FilterEngineCategories[];
}
export declare class MediaFilesApi extends ApiManager {
DeleteMediaFileByToken({ mediaFileToken, asMod, setDelete, }: {
mediaFileToken: string;
asMod?: boolean;
setDelete?: boolean;
}): Promise<ApiResponse<MediaFile>>;
ListMediaFilesByTokens({ mediaTokens, }: {
mediaTokens: string[];
}): Promise<ApiResponse<MediaFile[]>>;
GetMediaFileByToken({ mediaFileToken, }: {
mediaFileToken: string;
}): Promise<ApiResponse<MediaFile>>;
ListMediaFiles(query: ListMediaQuery): Promise<ApiResponse<MediaFile[], PaginationInfinite>>;
ListFeaturedMediaFiles(query: ListMediaQuery): Promise<ApiResponse<MediaFile[], PaginationInfinite>>;
ListUserMediaFiles(query: ListUserMediaQuery): Promise<ApiResponse<MediaFile[], Pagination>>;
SearchFeaturedMediaFiles(query: SearchFeaturedMediaQuery): Promise<ApiResponse<MediaFile[], Pagination>>;
SearchUserMediaFiles(query: SearchFeaturedMediaQuery): Promise<ApiResponse<MediaFile[], Pagination>>;
RenameMediaFileByToken({ mediaToken, name, }: {
mediaToken: string;
name: string;
}): Promise<ApiResponse<undefined>>;
UpdateCoverImage({ mediaFileToken, imageToken, }: {
mediaFileToken: string;
imageToken: string;
}): Promise<ApiResponse<undefined>>;
UpdateVisibility({ mediaFileToken, visibility, }: {
mediaFileToken: string;
visibility: Visibility;
}): Promise<ApiResponse<undefined>>;
}
export {};
//# sourceMappingURL=MediaFilesApi.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"MediaFilesApi.d.ts","sourceRoot":"","sources":["../../src/lib/MediaFilesApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EAChB,MAAM,yBAAyB,CAAC;AAEjC,UAAU,cAAc;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oBAAoB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC5C,iB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c,GACpB,OAAO,CAAC,WAAW,CAAC,SAAS,EAAE,EAAE,kBAAkB,CAAC,CAAC;IAgC3C,sBAAsB,CACjC,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC,WAAW,CAAC,SAAS,EAAE,EAAE,kBAAkB,CAAC,CAAC;IAgC3C,kBAAkB,CAC7B,KAAK,EAAE,kBAAkB,GACxB,OAAO,CAAC,WAAW,CAAC,SAAS,EAAE,EAAE,UAAU,CAAC,CAAC;IAwCnC,wBAAwB,CACnC,KAAK,EAAE,wBAAwB,GAC9B,OAAO,CAAC,WAAW,CAAC,SAAS,EAAE,EAAE,UAAU,CAAC,CAAC;IA8BnC,oBAAoB,CAC/B,KAAK,EAAE,wBAAwB,GAC9B,OAAO,CAAC,WAAW,CAAC,SAAS,EAAE,EAAE,UAAU,CAAC,CAAC;IA8BnC,sBAAsB,CAAC,EAClC,UAAU,EACV,IAAI,GACL,EAAE;QACD,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAoBtB,gBAAgB,CAAC,EAC5B,cAAc,EACd,UAAU,GACX,EAAE;QACD,cAAc,EAAE,MAAM,CAAC;QACvB,UAAU,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAqBtB,gBAAgB,CAAC,EAC5B,cAAc,EACd,UAAU,GACX,EAAE;QACD,cAAc,EAAE,MAAM,CAAC;QACvB,UAAU,EAAE,UAAU,CAAC;KACxB,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;CAoBpC"}
+81
View File
@@ -0,0 +1,81 @@
import { ApiManager, ApiResponse } from './ApiManager.js';
import { FilterEngineCategories } from './enums/QueryFilters.js';
import { Visibility } from './enums/Visibility.js';
import { EIntermediateFile } from './enums/EIntermediateFile.js';
export declare class MediaUploadApi extends ApiManager {
private sessionToken;
private getSessionTokenForUploadStudioShot;
UploadStudioShot({ maybe_title, uuid_idempotency_token, blob, fileName, maybe_visibility, }: {
maybe_title?: string;
uuid_idempotency_token: string;
blob: Blob | null;
fileName: string;
maybe_visibility?: Visibility;
}): Promise<ApiResponse<string>>;
private Upload;
UploadAudio({ blob, fileName, uuid, maybe_title, maybe_visibility, }: {
blob: Blob;
fileName: string;
uuid: string;
maybe_title?: string | undefined;
maybe_visibility?: Visibility | undefined;
}): Promise<ApiResponse<string>>;
UploadImage({ blob, fileName, uuid, maybe_title, maybe_visibility, is_intermediate_system_file }: {
blob: Blob;
fileName: string;
uuid: string;
maybe_title?: string | undefined;
maybe_visibility?: Visibility | undefined;
is_intermediate_system_file?: EIntermediateFile;
}): Promise<ApiResponse<string>>;
UploadNewEngineAsset({ file, fileName, uuid, engine_category, maybe_animation_type, maybe_duration_millis, maybe_title, maybe_visibility, }: {
file: File;
fileName: string;
uuid: string;
engine_category: FilterEngineCategories;
maybe_animation_type?: string;
maybe_duration_millis?: number;
maybe_title?: string;
maybe_visibility?: Visibility;
}): Promise<ApiResponse<string>>;
UploadNewScene({ blob, fileName, uuid, maybe_title, maybe_visibility, }: {
blob: Blob;
fileName: string;
uuid: string;
maybe_title?: string;
maybe_visibility?: Visibility;
}): Promise<ApiResponse<string>>;
UploadNewVideo({ blob, fileName, uuid, maybe_title, maybe_visibility, maybe_style_name, maybe_scene_source_media_file_token, }: {
blob: Blob;
fileName: string;
uuid: string;
maybe_title?: string;
maybe_visibility?: Visibility;
maybe_style_name?: string;
maybe_scene_source_media_file_token?: string;
}): Promise<ApiResponse<string>>;
UploadPmx({ file, fileName, uuid, engine_category, maybe_animation_type, maybe_duration_millis, maybe_title, maybe_visibility, }: {
file: File;
fileName: string;
uuid: string;
engine_category?: string;
maybe_animation_type?: string;
maybe_duration_millis?: number;
maybe_title?: string;
maybe_visibility?: Visibility;
}): Promise<ApiResponse<string>>;
UploadSavedScene({ blob, fileName, uuid, mediaToken, }: {
blob: Blob;
fileName: string;
uuid: string;
mediaToken: string;
}): Promise<ApiResponse<string>>;
UploadSceneSnapshotMediaFileForm({ blob, uuid, maybe_title, // title of the scene at the time
maybe_scene_source_media_file_token, }: {
blob: Blob;
uuid: string;
maybe_title: string;
maybe_scene_source_media_file_token: string | undefined;
}): Promise<ApiResponse<string>>;
}
//# sourceMappingURL=MediaUploadApi.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"MediaUploadApi.d.ts","sourceRoot":"","sources":["../../src/lib/MediaUploadApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,qBAAa,cAAe,SAAQ,UAAU;IAC5C,OAAO,CAAC,YAAY,CAAM;YAEZ,kCAAkC;IAmBnC,gBAAgB,CAAC,EAC5B,WAAW,EACX,sBAAsB,EACtB,IAAI,EACJ,QAAQ,EACR,gBAAgB,GACjB,EAAE;QACD,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,sBAAsB,EAAE,MAAM,CAAC;QAC/B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,gBAAgB,CAAC,EAAE,UAAU,CAAC;KAC/B,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YAkElB,MAAM;IAyCP,WAAW,CAAC,EACvB,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,gBAAoC,GACrC,EAAE;QACD,IAAI,EAAE,IAAI,CAAC;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACjC,gBAAgB,CAAC,EAAE,U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AmC,GACpC,EAAE;QACD,IAAI,EAAE,IAAI,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,mCAAmC,EAAE,MAAM,GAAG,SAAS,CAAC;KACzD,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;CAWjC"}
+6
View File
@@ -0,0 +1,6 @@
import { ApiManager, ApiResponse } from './ApiManager.js';
import { StatusAlert } from './models/StatusAlert.js';
export declare class MiscApi extends ApiManager {
GetStatusAlertCheck(): Promise<ApiResponse<StatusAlert>>;
}
//# sourceMappingURL=MiscApi.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"MiscApi.d.ts","sourceRoot":"","sources":["../../src/lib/MiscApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,qBAAa,OAAQ,SAAQ,UAAU;IAC9B,mBAAmB,IAAI,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;CAqBhE"}
+42
View File
@@ -0,0 +1,42 @@
import { ApiManager, ApiResponse } from './ApiManager.js';
import { Prompts } from './models/Prompts.js';
export declare class PromptsApi extends ApiManager {
enqueueImageGeneration({ disableSystemPrompt, prompt, snapshotMediaToken, additionalImages, }: {
disableSystemPrompt: boolean;
prompt: string;
snapshotMediaToken: string;
additionalImages?: string[];
}): Promise<ApiResponse<string>>;
pollJobSession(jobToken: string, thumbnailWidth?: number): Promise<ApiResponse<{
job_token: string;
request: {
maybe_model_title: string;
};
status: {
status: string;
progress_percentage: number;
};
result: {
image_url: string;
thumbnail_url: string;
public_bucket_path: string;
generated_images?: string[];
error?: string;
};
}>>;
pollStudioSessionJobs(jobToken: string): Promise<ApiResponse<{
status: string;
result: {
generated_images?: string[];
error?: string;
};
}>>;
GetPromptsByToken({ token, }: {
token: string;
}): Promise<ApiResponse<Prompts>>;
uploadSceneSnapshot({ screenshot, sceneMediaToken, }: {
screenshot: File;
sceneMediaToken?: string;
}): Promise<ApiResponse<string>>;
}
//# sourceMappingURL=PromptsApi.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"PromptsApi.d.ts","sourceRoot":"","sources":["../../src/lib/PromptsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,qBAAa,UAAW,SAAQ,UAAU;IAC3B,sBAAsB,CAAC,EAClC,mBAAmB,EACnB,MAAM,EACN,kBAAkB,EAClB,gBAAgB,GACjB,EAAE;QACD,mBAAmB,EAAE,OAAO,CAAC;QAC7B,MAAM,EAAE,MAAM,CAAC;QACf,kBAAkB,EAAE,MAAM,CAAC;QAC3B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC7B,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAyCnB,cAAc,CACzB,QAAQ,EAAE,MAAM,EAChB,cAAc,SAAM,GACnB,OAAO,CACR,WAAW,CAAC;QACV,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE;YACP,iBAAiB,EAAE,MAAM,CAAC;SAC3B,CAAC;QACF,MAAM,EAAE;YACN,MAAM,EAAE,MAAM,CAAC;YACf,mBAAmB,EAAE,MAAM,CAAC;SAC7B,CAAC;QACF,MAAM,EAAE;YACN,SAAS,EAAE,MAAM,CAAC;YAClB,aAAa,EAAE,MAAM,CAAC;YACtB,kBAAkB,EAAE,MAAM,CAAC;YAC3B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;YAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;KACH,CAAC,CACH;IAwDY,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAC3D,WAAW,CAAC;QACV,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE;YACN,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;YAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;KACH,CAAC,CACH;IA8BM,iBAAiB,CAAC,EACvB,KAAK,GACN,EAAE;QACD,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAiBpB,mBAAmB,CAAC,EAC/B,UAAU,EACV,eAAe,GAChB,EAAE;QACD,UAAU,EAAE,IAAI,CAAC;QACjB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;CAyCjC"}
+44
View File
@@ -0,0 +1,44 @@
import { ApiManager } from './ApiManager.js';
export interface Coordinates {
coordinates: [number, number];
include: boolean;
}
export interface ObjectData {
style: {
color: SegmentationColor;
};
object_id: number;
points: Coordinates[];
}
export type SegmentationColor = [number, number, number];
export interface RequestFrame {
timestamp: number;
objects: ObjectData[];
}
export interface ResponseFrame {
b64_image_data: number;
idx: number;
timestamp: number;
objects: ObjectData[];
preview_image_url: string;
}
export interface SegmentationRequest {
session_id: string;
fps: number;
frames: RequestFrame[];
propagate: boolean;
}
export interface SegmentationResponse {
session_id: string;
fps: number;
masked_video_cdn_url: string;
frames: ResponseFrame[];
propagate: boolean;
}
export declare class SegmentationApi extends ApiManager {
createSession(blobVideo: File | Blob): Promise<{
session_id: string;
}>;
addPointsToSession(session_id: string, fps: number, frames: RequestFrame[], propagate: boolean): Promise<SegmentationResponse>;
}
//# sourceMappingURL=SegmentationApi.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"SegmentationApi.d.ts","sourceRoot":"","sources":["../../src/lib/SegmentationApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,CAA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C;CAejC"}
+22
View File
@@ -0,0 +1,22 @@
import { ApiManager, ApiResponse } from './ApiManager.js';
import { Visibility } from './enums/Visibility.js';
export interface GenerateTtsAudioRequest {
creator_set_visibility?: Visibility;
uuid_idempotency_token: string;
tts_model_token: string;
inference_text: string;
is_storyteller_demo?: boolean;
}
export interface GenerateTtsAudioResponse {
success?: boolean;
inference_job_token?: string;
inference_job_token_type?: string;
BadInput?: string;
}
export declare class TtsApi extends ApiManager {
GenerateTtsAudio(request: GenerateTtsAudioRequest): Promise<ApiResponse<{
inference_job_token?: string;
inference_job_token_type?: string;
}>>;
}
//# sourceMappingURL=TtsApi.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"TtsApi.d.ts","sourceRoot":"","sources":["../../src/lib/TtsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,MAAM,WAAW,uBAAuB;IACtC,sBAAsB,CAAC,EAAE,UAAU,CAAC;IACpC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,MAAO,SAAQ,UAAU;IACvB,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CACtE,WAAW,CAAC;QACV,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,wBAAwB,CAAC,EAAE,MAAM,CAAC;KACnC,CAAC,CACH;CAsCF"}
+61
View File
@@ -0,0 +1,61 @@
import { ApiManager, ApiResponse } from './ApiManager.js';
import { UserBookmarkBatch, UserBookmarkByEntity, UserBookmarkByUser } from './models/UserBookmark.js';
import { Pagination } from './models/Pagination.js';
export declare enum ScopedEntityTypes {
USER = "user",
TTS_MODEL = "tts-model",
TTS_RESULT = "tts-result",
W2L_TEMPLATE = "w2l-template",
W2L_RESULT = "w2l-result",
MEDIA_FILE = "media_file",
MODEL_WEIGHT = "model_weight",
VOICE_CONVERSION_MODEL = "voice_conversion_model",
ZS_VOICE = "z_voice"
}
export declare enum ScopedWeightTypes {
HIFIGAN_TTl2 = "hifigan_tt2",
RVC_V2 = "rvc_v2",
SD_1_5 = "sd_1.5",
SDXL = "sdxl",
SO_VITS_SVC = "so_vits_svc",
TT2 = "tt2",
LORA = "loRA",
VALL_E = "vall_e",
COMFY_UI = "comfy_ui"
}
export declare enum ScopedMediaFileType {
IMAGE_GENERATION = "image_generation",
TEXT_TO_SPEECH = "text_to_speech",
VOCODER = "vocoder",
VOICE_CONVERSION = "voice_conversion",
WORKFLOW_CONFIG = "workflow_config"
}
interface ListUserBookmarksByUserRequest {
username: string;
sort_ascending?: boolean;
page_size?: number;
page_index?: number;
maybe_scoped_entity_type?: ScopedEntityTypes[];
maybe_scoped_weight_type?: ScopedWeightTypes[];
maybe_scoped_media_file_type?: ScopedMediaFileType[];
}
export declare class UserBookmarksApi extends ApiManager {
CreateUserBookmark({ entityToken, entityType, }: {
entityToken: string;
entityType: string;
}): Promise<ApiResponse<{
new_bookmark_count_for_entity?: number;
user_bookmark_token?: string;
}>>;
DeleteUserBookmark({ entityToken, }: {
entityToken: string;
}): Promise<ApiResponse<undefined>>;
ListUserBookmarks(): Promise<ApiResponse<UserBookmarkBatch[]>>;
ListUserBookmarksByUser({ username, sort_ascending, page_size, page_index, maybe_scoped_entity_type, maybe_scoped_weight_type, maybe_scoped_media_file_type, }: ListUserBookmarksByUserRequest): Promise<ApiResponse<UserBookmarkByUser[], Pagination>>;
ListUserBookmarksByEntity({ entityType, entityToken, }: {
entityType: string;
entityToken: string;
}): Promise<ApiResponse<UserBookmarkByEntity[]>>;
}
export {};
//# sourceMappingURL=UserBookmarksApi.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"UserBookmarksApi.d.ts","sourceRoot":"","sources":["../../src/lib/UserBookmarksApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,oBAAY,iBAAiB;IAC3B,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,sBAAsB,2BAA2B;IACjD,QAAQ,YAAY;CACrB;AAED,oBAAY,iBAAiB;IAC3B,YAAY,gBAAgB;IAC5B,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,oBAAY,mBAAmB;IAC7B,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;IACjC,OAAO,YAAY;IACnB,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;CACpC;AAED,UAAU,8BAA8B;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wBAAwB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC/C,wBAAwB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC/C,4BAA4B,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACtD;AAED,qBAAa,gBAAiB,SAAQ,UAAU;IACvC,kBAAkB,CAAC,EACxB,WAAW,EACX,UAAU,GACX,EAAE;QACD,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CACT,WAAW,CAAC;QACV,6BAA6B,CAAC,EAAE,MAAM,CAAC;QACvC,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B,CAAC,CACH;IAgCM,kBAAkB,CAAC,EACxB,WAAW,GACZ,EAAE;QACD,WAAW,EAAE,MAAM,CAAC;KACrB,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAmB5B,iBAAiB,IAAI,OAAO,CAAC,WAAW,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAkB9D,uBAAuB,CAAC,EAC7B,QAAQ,EACR,cAAc,EACd,SAAS,EACT,UAAU,EACV,wBAAwB,EACxB,wBAAwB,EACxB,4BAA4B,GAC7B,EAAE,8BAA8B,GAAG,OAAO,CACzC,WAAW,CAAC,kBAAkB,EAAE,EAAE,UAAU,CAAC,CAC9C;IAkCM,yBAAyB,CAAC,EAC/B,UAAU,EACV,WAAW,GACZ,EAAE;QACD,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACrB,GAAG,OAAO,CAAC,WAAW,CAAC,oBAAoB,EAAE,CAAC,CAAC;CAejD"}
+19
View File
@@ -0,0 +1,19 @@
import { ApiManager, ApiResponse } from './ApiManager.js';
export interface UserRating {
entity_token: string;
entity_type: string;
rating_value: string;
}
export declare class UserRatingApi extends ApiManager {
ListUserRatings(): Promise<ApiResponse<UserRating[]>>;
PostUserRating({ entityToken, entityType, ratingValue, }: {
entityToken: string;
entityType: string;
ratingValue: string;
}): Promise<ApiResponse<number>>;
ListUserRatingByEntity({ entityType, entityToken, }: {
entityType: string;
entityToken: string;
}): Promise<ApiResponse<string>>;
}
//# sourceMappingURL=UserRatingsApi.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"UserRatingsApi.d.ts","sourceRoot":"","sources":["../../src/lib/UserRatingsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,WAAW,UAAU;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,aAAc,SAAQ,UAAU;IACpC,eAAe,IAAI,OAAO,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC,CAAC;IAkBrD,cAAc,CAAC,EACpB,WAAW,EACX,UAAU,EACV,WAAW,GACZ,EAAE;QACD,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACrB,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IA+BzB,sBAAsB,CAAC,EAC5B,UAAU,EACV,WAAW,GACZ,EAAE;QACD,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACrB,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;CAmBjC"}
+29
View File
@@ -0,0 +1,29 @@
import { ApiManager, ApiResponse } from './ApiManager.js';
import { UserInfo } from './models/Users.js';
export declare class UsersApi extends ApiManager {
private authFetch;
GetSession(): Promise<ApiResponse<{
loggedIn: boolean;
user?: UserInfo;
}>>;
GetUserProfile(username: string): Promise<ApiResponse<{
user?: UserInfo;
}>>;
Login({ usernameOrEmail, password, }: {
usernameOrEmail: string;
password: string;
}): Promise<ApiResponse<{
signedSession?: string;
}>>;
Logout(): Promise<ApiResponse<null>>;
Signup({ username, email, password, passwordConfirmation, signupSource, }: {
username: string;
email: string;
password: string;
passwordConfirmation: string;
signupSource?: string;
}): Promise<ApiResponse<{
signedSession?: string;
}>>;
}
//# sourceMappingURL=UsersApi.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"UsersApi.d.ts","sourceRoot":"","sources":["../../src/lib/UsersApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAW7C,qBAAa,QAAS,SAAQ,UAAU;YACxB,SAAS;IA0BhB,UAAU,IAAI,OAAO,CAC1B,WAAW,CAAC;QACV,QAAQ,EAAE,OAAO,CAAC;QAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;KACjB,CAAC,CACH;IAuBM,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAC9C,WAAW,CAAC;QACV,IAAI,CAAC,EAAE,QAAQ,CAAC;KACjB,CAAC,CACH;IAsBY,KAAK,CAAC,EACjB,eAAe,EACf,QAAQ,GACT,EAAE;QACD,eAAe,EAAE,MAAM,CAAC;QACxB,QAAQ,EAAE,MAAM,CAAC;KAClB,GAAG,OAAO,CAAC,WAAW,CAAC;QAAE,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAqC7C,MAAM,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAgB9B,MAAM,CAAC,EAClB,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,oBAAoB,EACpB,YAAY,GACb,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,oBAAoB,EAAE,MAAM,CAAC;QAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,GAAG,OAAO,CAAC,WAAW,CAAC;QAAE,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CA2CrD"}
+34
View File
@@ -0,0 +1,34 @@
import { ApiManager, ApiResponse } from './ApiManager.js';
interface GenerateVideoStyleTransferRequest {
creator_set_visibility: string;
disable_lcm: boolean;
enable_lipsync: boolean;
frame_skip: number;
global_ipa_media_token: string;
input_depth_file: string;
input_file: string;
input_normal_file: string;
input_outline_file: string;
negative_prompt: string;
prompt: string;
remove_watermark: boolean;
style: string;
travel_prompt: string;
trim_end_millis: number;
trim_start_millis: number;
use_cinematic: boolean;
use_face_detailer: boolean;
use_strength: number;
use_upscaler: boolean;
uuid_idempotency_token: string;
}
export declare class VideoApi extends ApiManager {
EnqueueStudio({ enqueueVideo, }: {
enqueueVideo: GenerateVideoStyleTransferRequest;
}): Promise<ApiResponse<{
inference_job_token?: string;
inference_job_token_type?: string;
}>>;
}
export {};
//# sourceMappingURL=VideoApi.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"VideoApi.d.ts","sourceRoot":"","sources":["../../src/lib/VideoApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG1D,UAAU,iCAAiC;IACzC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,OAAO,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,qBAAa,QAAS,SAAQ,UAAU;IACzB,aAAa,CAAC,EACzB,YAAY,GACb,EAAE;QACD,YAAY,EAAE,iCAAiC,CAAC;KACjD,GAAG,OAAO,CACT,WAAW,CAAC;QACV,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,wBAAwB,CAAC,EAAE,MAAM,CAAC;KACnC,CAAC,CACH;CAgCF"}
+16
View File
@@ -0,0 +1,16 @@
import { ApiManager, ApiResponse } from './ApiManager.js';
interface VoiceConversionParams {
autoPredictF0?: boolean;
creatorSetVisibility?: string;
isStorytellerDemo?: boolean;
overrideF0Method?: string;
sourceMediaUploadToken: string;
transpose?: number;
uuidIdempotencyToken: string;
voiceConversionModelToken: string;
}
export declare class VoiceConversionApi extends ApiManager {
ConvertVoice(params: VoiceConversionParams): Promise<ApiResponse<string>>;
}
export {};
//# sourceMappingURL=VoiceConversionApi.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"VoiceConversionApi.d.ts","sourceRoot":"","sources":["../../src/lib/VoiceConversionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE1D,UAAU,qBAAqB;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,yBAAyB,EAAE,MAAM,CAAC;CACnC;AAaD,qBAAa,kBAAmB,SAAQ,UAAU;IACzC,YAAY,CACjB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;CAyBhC"}
+18
View File
@@ -0,0 +1,18 @@
import { ApiManager, ApiResponse } from './ApiManager.js';
import { ZsDataset } from './models/Dataset.js';
interface VoiceDesignerParams {
text: string;
uuidIdempotencyToken: string;
voiceToken: string;
}
export declare class VoiceDesignerApi extends ApiManager {
EnqueueTts(params: VoiceDesignerParams): Promise<ApiResponse<{
inference_job_token?: string;
voice_token?: string;
}>>;
ListDatasetsByUser({ username, }: {
username: string;
}): Promise<ApiResponse<ZsDataset[]>>;
}
export {};
//# sourceMappingURL=VoiceDesignerApi.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"VoiceDesignerApi.d.ts","sourceRoot":"","sources":["../../src/lib/VoiceDesignerApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,UAAU,mBAAmB;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;CACpB;AAQD,qBAAa,gBAAiB,SAAQ,UAAU;IACvC,UAAU,CACf,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CACR,WAAW,CAAC;QAAE,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CACpE;IAkCM,kBAAkB,CAAC,EACxB,QAAQ,GACT,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;KAClB,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC,CAAC;CAiBtC"}
+93
View File
@@ -0,0 +1,93 @@
import { ApiManager, ApiResponse } from './ApiManager.js';
import { Weight } from './models/Weight.js';
import { Pagination, PaginationInfinite } from './models/Pagination.js';
import { FilterEngineCategories, FilterMediaClasses, FilterMediaType } from './enums/QueryFilters.js';
import { Visibility } from './enums/Visibility.js';
export declare enum ScopedWeightType {
HIFIGAN_TT2 = "hifigan_tt2",
RVC_V2 = "rvc_v2",
SD_1_5 = "sd_1.5",
SDXL = "sdxl",
SO_VITS_SVC = "so_vits_svc",
TT2 = "tt2",
LORA = "loRA",
VALL_E = "vall_e",
COMFY_UI = "comfy_ui"
}
export declare enum ScopedWeightCategory {
IMAGE_GENERATION = "image_generation",
TEXT_TO_SPEECH = "text_to_speech",
VOCODER = "vocoder",
VOICE_CONVERSION = "voice_conversion",
WORKFLOW_CONFIG = "workflow_config"
}
interface WeightsRequest {
pageSize?: number;
weightType?: ScopedWeightType[];
weightCategory?: ScopedWeightCategory[];
scopedWeightType?: ScopedWeightType[];
scopedWeightCategory?: ScopedWeightCategory[];
}
export interface ListWeightsByUserRequest extends WeightsRequest {
username: string;
pageIndex?: number;
sortAscending?: boolean;
}
export interface ListWeightsRequest extends WeightsRequest {
cursor?: string;
cursorIsReversed?: boolean;
}
export interface ListFeaturedWeightsRequest {
sortAscending?: boolean;
pageSize?: number;
cursor?: string;
cursorIsReversed?: boolean;
filterMediaClasses?: FilterMediaClasses[];
filterMediaType?: FilterMediaType[];
filterEngineCategories?: FilterEngineCategories[];
}
export interface SearchWeightParams {
ietfLanguageSubtag: string;
searchTerm: string;
weightCategory: ScopedWeightCategory;
weightType: ScopedWeightType;
}
export interface SearchWeightRequest {
ietf_language_subtag: string;
search_term: string;
weight_category: string;
weight_type: string;
}
export interface UpdateWeightByTokenParams {
weightToken: string;
coverImageMediaFileToken: string;
descriptionMarkdown: string;
title: string;
visibility: Visibility;
}
export interface UpdateWeightByTokenRequest {
cover_image_media_file_token: string;
description_markdown: string;
title: string;
visibility: Visibility;
}
export declare class WeightsApi extends ApiManager {
ListWeightsByUser({ username, ...params }: ListWeightsByUserRequest): Promise<ApiResponse<Weight[], Pagination>>;
ListWeights({ ...params }: ListWeightsRequest): Promise<ApiResponse<Weight[], PaginationInfinite>>;
ListWeightsFeatured({ ...params }: ListFeaturedWeightsRequest): Promise<ApiResponse<Weight[], PaginationInfinite>>;
ListWeightsPinned(): Promise<ApiResponse<Weight[]>>;
SearchWeights(params: SearchWeightParams): Promise<ApiResponse<Weight[]>>;
GetWeightByToken({ weightToken, }: {
weightToken: string;
}): Promise<ApiResponse<Weight>>;
UpdateWeightByToken({ weightToken, ...params }: UpdateWeightByTokenParams): Promise<ApiResponse<undefined>>;
DeleteWeightByToken({ weightToken, }: {
weightToken: string;
}): Promise<ApiResponse<undefined>>;
UpdateWeightCoverImageByToken({ weightToken, coverImageMediaFileToken, }: {
weightToken: string;
coverImageMediaFileToken: string;
}): Promise<ApiResponse<undefined>>;
}
export {};
//# sourceMappingURL=WeightsApi.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"WeightsApi.d.ts","sourceRoot":"","sources":["../../src/lib/WeightsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,oBAAY,gBAAgB;IAC1B,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AACD,oBAAY,oBAAoB;IAC9B,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;IACjC,OAAO,YAAY;IACnB,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;CACpC;AAED,UAAU,cAAc;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,gBAAgB,EAAE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AwB,EAAE,MAAM,CAAC;KAClC,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;CAmBpC"}
@@ -0,0 +1,18 @@
export declare class StorytellerApiHostStore {
/**
* The scheme and host of the API.
* This can optionally include a port, but no path components (including `/`).
* eg. http://localhost:12345 or https://api.storyteller.ai
*/
private apiSchemeAndHost;
static getInstance(): StorytellerApiHostStore;
/** Get the API scheme and host. */
getApiSchemeAndHost(): string;
/**
* Externally update the API host.
* This is used to sync with Tauri for enabling easier development.
*/
setApiSchemeAndHost(apiSchemeAndHost: string): void;
private constructor();
}
//# sourceMappingURL=StorytellerApiHostStore.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"StorytellerApiHostStore.d.ts","sourceRoot":"","sources":["../../../src/lib/config/StorytellerApiHostStore.ts"],"names":[],"mappings":"AAOA,qBAAa,uBAAuB;IAKlC;;;;OAIG;IACH,OAAO,CAAC,gBAAgB,CAAS;WAanB,WAAW,IAAI,uBAAuB;IASpD,mCAAmC;IAC5B,mBAAmB,IAAI,MAAM;IAKpC;;;OAGG;IACI,mBAAmB,CAAC,gBAAgB,EAAE,MAAM;IAgBnD,OAAO;CAGR"}
+7
View File
@@ -0,0 +1,7 @@
export declare enum API_TARGETS {
GOOGLE_API = "https://storage.googleapis.com",
FUNNEL_API = "https://style.storyteller.ai",
CDN_API = "https://cdn.storyteller.ai",
GRAVATAR_API = "https://www.gravatar.com"
}
//# sourceMappingURL=Api.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"Api.d.ts","sourceRoot":"","sources":["../../../src/lib/enums/Api.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,UAAU,mCAAmC;IAC7C,UAAU,iCAAiC;IAC3C,OAAO,+BAA+B;IACtC,YAAY,6BAA6B;CAC1C"}
+12
View File
@@ -0,0 +1,12 @@
export declare enum SubscriptionNamespace {
FAKEYOU = "fakeyou"
}
export declare enum SubscriptionProduct {
PLUS = "fakeyou_plus",
PRO = "fakeyou_pro",
ELITE = "fakeyou_elite"
}
export declare enum LoyaltyProgram {
CONTRIBUTOR = "fakeyou_contributor"
}
//# sourceMappingURL=Billing.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"Billing.d.ts","sourceRoot":"","sources":["../../../src/lib/enums/Billing.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC/B,OAAO,YAAY;CACpB;AACD,oBAAY,mBAAmB;IAC7B,IAAI,iBAAiB;IACrB,GAAG,gBAAgB;IACnB,KAAK,kBAAkB;CACxB;AACD,oBAAY,cAAc;IACxB,WAAW,wBAAwB;CACpC"}
@@ -0,0 +1,5 @@
export declare enum EIntermediateFile {
"true" = 0,
"false" = 1
}
//# sourceMappingURL=EIntermediateFile.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"EIntermediateFile.d.ts","sourceRoot":"","sources":["../../../src/lib/enums/EIntermediateFile.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,MAAM,IAAA;IACN,OAAO,IAAA;CACR"}
+16
View File
@@ -0,0 +1,16 @@
export declare enum JobStatus {
PENDING = "pending",
STARTED = "started",
ATTEMPT_FAILED = "attempt_failed",
COMPLETE_SUCCESS = "complete_success",
COMPLETE_FAILURE = "complete_failure",
DEAD = "dead",
CANCELLED_BY_USER = "cancelled_by_user",
CANCELLED_BY_SYSTEM = "cancelled_by_system"
}
export declare enum JobType {
TextToSpeech = "text_to_speech",
VoiceConversion = "voice_conversion",
VideoStyleTransfer = "workflow"
}
//# sourceMappingURL=Job.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"Job.d.ts","sourceRoot":"","sources":["../../../src/lib/enums/Job.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,cAAc,mBAAmB;IACjC,gBAAgB,qBAAqB;IACrC,gBAAgB,qBAAqB;IACrC,IAAI,SAAS;IACb,iBAAiB,sBAAsB;IACvC,mBAAmB,wBAAwB;CAC5C;AAED,oBAAY,OAAO;IACjB,YAAY,mBAAmB;IAC/B,eAAe,qBAAqB;IACpC,kBAAkB,aAAa;CAChC"}
+11
View File
@@ -0,0 +1,11 @@
export declare enum MediaFileClass {
Unknown = "unknown",
Audio = "audio",
Image = "image",
Video = "video",
Animation = "animation",
Character = "character",
Prop = "prop",
Scene = "scene"
}
//# sourceMappingURL=MediaFileClass.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"MediaFileClass.d.ts","sourceRoot":"","sources":["../../../src/lib/enums/MediaFileClass.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IAGxB,OAAO,YAAY;IAGnB,KAAK,UAAU;IAGf,KAAK,UAAU;IAGf,KAAK,UAAU;IAGf,SAAS,cAAc;IAGvB,SAAS,cAAc;IAGvB,IAAI,SAAS;IAGb,KAAK,UAAU;CAChB"}
+21
View File
@@ -0,0 +1,21 @@
export declare enum MediaFileType {
Audio = "audio",
Video = "video",
Image = "image",
BVH = "bvh",
GLTF = "gltf",
GLB = "glb",
MMD = "mmd",
FBX = "fbx",
Scene = "scene",
None = "none"
}
export declare enum MediaFileSubtype {
Mixamo = "mixamo",
MocapNet = "mocap_net",
AnimationOnly = "animation_only",
Scene = "scene",
SceneImport = "scene_import",
StorytellerScene = "storyteller_scene"
}
//# sourceMappingURL=MediaFileType.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"MediaFileType.d.ts","sourceRoot":"","sources":["../../../src/lib/enums/MediaFileType.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IAIf,GAAG,QAAQ;IAKX,IAAI,SAAS;IAIb,GAAG,QAAQ;IAIX,GAAG,QAAQ;IAIX,GAAG,QAAQ;IAIX,KAAK,UAAU;IAEf,IAAI,SAAS;CACd;AAED,oBAAY,gBAAgB;IAG1B,MAAM,WAAW;IAIjB,QAAQ,cAAc;IAItB,aAAa,mBAAmB;IAIhC,KAAK,UAAU;IAIf,WAAW,iBAAiB;IAI5B,gBAAgB,sBAAsB;CACvC"}
+29
View File
@@ -0,0 +1,29 @@
export declare enum FilterMediaClasses {
AUDIO = "audio",
IMAGE = "image",
VIDEO = "video",
DIMENSIONAL = "dimensional"
}
export declare enum FilterMediaType {
SCENE_JSON = "scene_json",
GLB = "glb",
GLTF = "gltf",
PMX = "pmx",
PMD = "pmd",
VMD = "vmd"
}
export declare enum FilterEngineCategories {
ANIMATION = "animation",
AUDIO = "audio",
CHARACTER = "character",
CREATURE = "creature",
EXPRESSION = "expression",
IMAGE_PLANE = "image_plane",
LOCATION = "location",
OBJECT = "object",
SCENE = "scene",
SET_DRESSING = "set_dressing",
SKYBOX = "skybox",
VIDEO_PLANE = "video_plane"
}
//# sourceMappingURL=QueryFilters.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"QueryFilters.d.ts","sourceRoot":"","sources":["../../../src/lib/enums/QueryFilters.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,WAAW,gBAAgB;CAC5B;AAED,oBAAY,eAAe;IACzB,UAAU,eAAe;IACzB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AAED,oBAAY,sBAAsB;IAChC,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,YAAY,iBAAiB;IAC7B,MAAM,WAAW;IACjB,WAAW,gBAAgB;CAC5B"}
+8
View File
@@ -0,0 +1,8 @@
export declare enum GenerateTtsAudioErrorType {
BadRequest = "bad_request",
NotFound = "not_found",
TooManyRequests = "too_many_requests",
ServerError = "server_error",
UnknownError = "unknown_error"
}
//# sourceMappingURL=Tts.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"Tts.d.ts","sourceRoot":"","sources":["../../../src/lib/enums/Tts.ts"],"names":[],"mappings":"AAAA,oBAAY,yBAAyB;IACnC,UAAU,gBAAgB;IAC1B,QAAQ,cAAc;IACtB,eAAe,sBAAsB;IACrC,WAAW,iBAAiB;IAC5B,YAAY,kBAAkB;CAC/B"}
+7
View File
@@ -0,0 +1,7 @@
export declare enum USER_FEATURE_FLAGS {
EXPLORE_MEDIA = "explore_media",
STUDIO = "studio",
UPLOAD_3D = "upload_3d",
VIDEO_STYLE_TRANSFER = "video_style_transfer"
}
//# sourceMappingURL=UserFeatures.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"UserFeatures.d.ts","sourceRoot":"","sources":["../../../src/lib/enums/UserFeatures.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,aAAa,kBAAkB;IAC/B,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,oBAAoB,yBAAyB;CAC9C"}
+6
View File
@@ -0,0 +1,6 @@
export declare enum Visibility {
Public = "public",
Hidden = "hidden",
Private = "private"
}
//# sourceMappingURL=Visibility.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"Visibility.d.ts","sourceRoot":"","sources":["../../../src/lib/enums/Visibility.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB"}
+9
View File
@@ -0,0 +1,9 @@
export declare enum WeightCategory {
TTS = "text_to_speech",
VOCODER = "vocoder",
VC = "voice_conversion",
ZS = "zero_shot",
SD = "image_generation",
WF = "workflow_config"
}
//# sourceMappingURL=WeightCategory.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"WeightCategory.d.ts","sourceRoot":"","sources":["../../../src/lib/enums/WeightCategory.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,GAAG,mBAAmB;IACtB,OAAO,YAAY;IACnB,EAAE,qBAAqB;IACvB,EAAE,cAAc;IAChB,EAAE,qBAAqB;IACvB,EAAE,oBAAoB;CACvB"}
+12
View File
@@ -0,0 +1,12 @@
export declare enum WeightType {
TT2 = "tt2",
HIFIGAN_TT2 = "hifigan_tt2",
RVCv2 = "rvc_v2",
SD_15 = "sd_1.5",
SDXL = "sdxl",
SVC = "so_vits_svc",
LORA = "loRA",
VALL_E = "vall_e",
NONE = "none"
}
//# sourceMappingURL=WeightType.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"WeightType.d.ts","sourceRoot":"","sources":["../../../src/lib/enums/WeightType.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,GAAG,QAAQ;IACX,WAAW,gBAAgB;IAC3B,KAAK,WAAW;IAChB,KAAK,WAAW;IAChB,IAAI,SAAS;IACb,GAAG,gBAAgB;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;CACd"}
+2
View File
@@ -0,0 +1,2 @@
export * from './QueryFilters.js';
//# sourceMappingURL=index.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
+26
View File
@@ -0,0 +1,26 @@
interface DefaultAvatar {
color_index: number;
image_index: number;
}
interface User {
default_avatar: DefaultAvatar;
display_name: string;
gravatar_hash: string;
user_token: string;
username: string;
}
export interface BetaKey {
created_at: string;
creator: User;
is_distributed: boolean;
key_value: string;
maybe_note?: string;
maybe_note_html?: string;
maybe_redeemed_at?: string;
maybe_redeemer?: User;
maybe_referrer?: User;
product: string;
token: string;
}
export {};
//# sourceMappingURL=BetaKeys.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"BetaKeys.d.ts","sourceRoot":"","sources":["../../../src/lib/models/BetaKeys.ts"],"names":[],"mappings":"AAAA,UAAU,aAAa;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,IAAI;IACZ,cAAc,EAAE,aAAa,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,OAAO;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,IAAI,CAAC;IACd,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf"}
+10
View File
@@ -0,0 +1,10 @@
import { LoyaltyProgram, SubscriptionNamespace, SubscriptionProduct } from '../enums/Billing.js';
export interface ActiveSubscriptions {
active_subscriptions: Subscription[];
maybe_loyalty_program?: LoyaltyProgram;
}
export interface Subscription {
namespace: SubscriptionNamespace;
product_slug: SubscriptionProduct;
}
//# sourceMappingURL=Billing.d.ts.map

Some files were not shown because too many files have changed in this diff Show More