@spatialwalk/avatarkit 1.0.0-beta.36 → 1.0.0-beta.37
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/CHANGELOG.md +5 -0
- package/dist/{StreamingAudioPlayer-GTu9p5GZ.js → StreamingAudioPlayer-gV0axCZe.js} +1 -1
- package/dist/admin/eslint.config.d.ts +2 -0
- package/dist/admin/generated/buf/validate/validate.d.ts +397 -0
- package/dist/admin/generated/common/v1/models.d.ts +29 -0
- package/dist/admin/generated/console/v1/admin_app.d.ts +77 -0
- package/dist/admin/generated/console/v1/admin_auth.d.ts +69 -0
- package/dist/admin/generated/console/v1/admin_config.d.ts +157 -0
- package/dist/admin/generated/console/v1/admin_user.d.ts +84 -0
- package/dist/admin/generated/console/v1/admin_user_character.d.ts +107 -0
- package/dist/admin/generated/console/v1/app.d.ts +116 -0
- package/dist/admin/generated/console/v1/auth.d.ts +199 -0
- package/dist/admin/generated/console/v1/character.d.ts +74 -0
- package/dist/admin/generated/console/v1/collection_task.d.ts +183 -0
- package/dist/admin/generated/console/v1/console.d.ts +163 -0
- package/dist/admin/generated/console/v1/instance_management.d.ts +156 -0
- package/dist/admin/generated/console/v1/material.d.ts +180 -0
- package/dist/admin/generated/console/v1/pipetemplate.d.ts +106 -0
- package/dist/admin/generated/console/v1/task.d.ts +292 -0
- package/dist/admin/generated/console/v2/async_processing.d.ts +85 -0
- package/dist/admin/generated/google/api/annotations.d.ts +1 -0
- package/dist/admin/generated/google/api/http.d.ts +47 -0
- package/dist/admin/generated/google/protobuf/any.d.ts +27 -0
- package/dist/admin/generated/google/protobuf/descriptor.d.ts +552 -0
- package/dist/admin/generated/google/protobuf/duration.d.ts +27 -0
- package/dist/admin/generated/google/protobuf/empty.d.ts +25 -0
- package/dist/admin/generated/google/protobuf/struct.d.ts +74 -0
- package/dist/admin/generated/google/protobuf/timestamp.d.ts +27 -0
- package/dist/admin/generated/jsonapi/v1/base.d.ts +108 -0
- package/dist/admin/generated/platform/v1/asset_groups.d.ts +204 -0
- package/dist/admin/generated/platform/v1/assets.d.ts +141 -0
- package/dist/admin/generated/platform/v1/auth.d.ts +79 -0
- package/dist/admin/generated/platform/v1/character.d.ts +382 -0
- package/dist/admin/generated/platform/v1/character_template.d.ts +124 -0
- package/dist/admin/generated/platform/v1/christmas_characters.d.ts +118 -0
- package/dist/admin/generated/platform/v1/collection_task.d.ts +60 -0
- package/dist/admin/generated/platform/v1/config.d.ts +130 -0
- package/dist/admin/generated/platform/v1/configkv.d.ts +105 -0
- package/dist/admin/generated/platform/v1/console.d.ts +29 -0
- package/dist/admin/generated/platform/v1/instance_management.d.ts +156 -0
- package/dist/admin/generated/platform/v1/joi_model_apply.d.ts +100 -0
- package/dist/admin/generated/platform/v1/material.d.ts +29 -0
- package/dist/admin/generated/platform/v1/model_evaluation.d.ts +100 -0
- package/dist/admin/generated/platform/v1/oss.d.ts +53 -0
- package/dist/admin/generated/platform/v1/pipetemplate.d.ts +106 -0
- package/dist/admin/generated/platform/v1/provider.d.ts +141 -0
- package/dist/admin/generated/platform/v1/redeem.d.ts +83 -0
- package/dist/admin/generated/platform/v1/sms_send_log.d.ts +95 -0
- package/dist/admin/generated/platform/v1/task.d.ts +39 -0
- package/dist/admin/generated/platform/v1/user.d.ts +142 -0
- package/dist/admin/generated/platform/v1/voice.d.ts +141 -0
- package/dist/admin/generated/realtime/v1/auth.d.ts +77 -0
- package/dist/admin/generated/realtime/v1/customized.d.ts +60 -0
- package/dist/admin/generated/realtime/v1/messages.d.ts +156 -0
- package/dist/admin/generated/realtime/v1/realtime.d.ts +67 -0
- package/dist/admin/generated/realtime/v1/redeem.d.ts +44 -0
- package/dist/admin/generated/realtime/v1/user.d.ts +150 -0
- package/dist/admin/generated/realtime/v2/auth.d.ts +68 -0
- package/dist/admin/generated/realtime/v2/callback.d.ts +56 -0
- package/dist/admin/generated/realtime/v2/joi_avatar.d.ts +204 -0
- package/dist/admin/generated/realtime/v2/model_apply.d.ts +138 -0
- package/dist/admin/generated/realtime/v2/realtime.d.ts +70 -0
- package/dist/admin/generated/realtime/v2/user.d.ts +96 -0
- package/dist/admin/openapi-ts.config.d.ts +8 -0
- package/dist/admin/src/apis/useAssetApi.d.ts +17 -0
- package/dist/admin/src/apis/useAssetGroupApi.d.ts +26 -0
- package/dist/admin/src/apis/useCharacterApi.d.ts +21 -0
- package/dist/admin/src/apis/useCharacterTemplateApi.d.ts +20 -0
- package/dist/admin/src/apis/useChristmasCharactersApi.d.ts +40 -0
- package/dist/admin/src/apis/useCollectionTaskApi.d.ts +64 -0
- package/dist/admin/src/apis/useConfigApi.d.ts +16 -0
- package/dist/admin/src/apis/useConsoleApi.d.ts +24 -0
- package/dist/admin/src/apis/useInstanceManagementApi.d.ts +19 -0
- package/dist/admin/src/apis/useJoiModelApplyApi.d.ts +11 -0
- package/dist/admin/src/apis/useMaterialApi.d.ts +1 -0
- package/dist/admin/src/apis/useOssApi.d.ts +15 -0
- package/dist/admin/src/apis/usePipelineTemplateApi.d.ts +8 -0
- package/dist/admin/src/apis/useProviderApi.d.ts +16 -0
- package/dist/admin/src/apis/useRedeemApi.d.ts +5 -0
- package/dist/admin/src/apis/useSmsSendLogApi.d.ts +14 -0
- package/dist/admin/src/apis/useTaskApi.d.ts +66 -0
- package/dist/admin/src/apis/useUserApi.d.ts +17 -0
- package/dist/admin/src/apis/useVoiceApi.d.ts +15 -0
- package/dist/admin/src/client/client/client.gen.d.ts +2 -0
- package/dist/admin/src/client/client/index.d.ts +8 -0
- package/dist/admin/src/client/client/types.gen.d.ts +70 -0
- package/dist/admin/src/client/client/utils.gen.d.ts +31 -0
- package/dist/admin/src/client/client.gen.d.ts +5 -0
- package/dist/admin/src/client/core/auth.gen.d.ts +8 -0
- package/dist/admin/src/client/core/bodySerializer.gen.d.ts +21 -0
- package/dist/admin/src/client/core/params.gen.d.ts +27 -0
- package/dist/admin/src/client/core/pathSerializer.gen.d.ts +30 -0
- package/dist/admin/src/client/core/queryKeySerializer.gen.d.ts +9 -0
- package/dist/admin/src/client/core/serverSentEvents.gen.d.ts +23 -0
- package/dist/admin/src/client/core/types.gen.d.ts +32 -0
- package/dist/admin/src/client/core/utils.gen.d.ts +19 -0
- package/dist/admin/src/client/index.d.ts +2 -0
- package/dist/admin/src/client/sdk.gen.d.ts +245 -0
- package/dist/admin/src/client/types.gen.d.ts +4009 -0
- package/dist/admin/src/client/valibot.gen.d.ts +7814 -0
- package/dist/admin/src/components/ui/alert/index.d.ts +8 -0
- package/dist/admin/src/components/ui/alert-dialog/index.d.ts +9 -0
- package/dist/admin/src/components/ui/avatar/index.d.ts +9 -0
- package/dist/admin/src/components/ui/badge/index.d.ts +6 -0
- package/dist/admin/src/components/ui/breadcrumb/index.d.ts +7 -0
- package/dist/admin/src/components/ui/button/index.d.ts +7 -0
- package/dist/admin/src/components/ui/card/index.d.ts +6 -0
- package/dist/admin/src/components/ui/checkbox/index.d.ts +1 -0
- package/dist/admin/src/components/ui/collapsible/index.d.ts +3 -0
- package/dist/admin/src/components/ui/combobox/index.d.ts +9 -0
- package/dist/admin/src/components/ui/dialog/index.d.ts +9 -0
- package/dist/admin/src/components/ui/dropdown-menu/index.d.ts +15 -0
- package/dist/admin/src/components/ui/filter-popover/index.d.ts +1 -0
- package/dist/admin/src/components/ui/form/index.d.ts +7 -0
- package/dist/admin/src/components/ui/form/injectionKeys.d.ts +2 -0
- package/dist/admin/src/components/ui/form/useFormField.d.ts +11 -0
- package/dist/admin/src/components/ui/input/index.d.ts +1 -0
- package/dist/admin/src/components/ui/label/index.d.ts +1 -0
- package/dist/admin/src/components/ui/popover/index.d.ts +4 -0
- package/dist/admin/src/components/ui/progress/index.d.ts +1 -0
- package/dist/admin/src/components/ui/select/index.d.ts +11 -0
- package/dist/admin/src/components/ui/separator/index.d.ts +1 -0
- package/dist/admin/src/components/ui/sheet/index.d.ts +13 -0
- package/dist/admin/src/components/ui/sidebar/index.d.ts +37 -0
- package/dist/admin/src/components/ui/sidebar/utils.d.ts +54 -0
- package/dist/admin/src/components/ui/skeleton/index.d.ts +1 -0
- package/dist/admin/src/components/ui/slider/index.d.ts +1 -0
- package/dist/admin/src/components/ui/switch/index.d.ts +1 -0
- package/dist/admin/src/components/ui/tabs/index.d.ts +4 -0
- package/dist/admin/src/components/ui/tags-input/index.d.ts +5 -0
- package/dist/admin/src/components/ui/textarea/index.d.ts +1 -0
- package/dist/admin/src/components/ui/tooltip/index.d.ts +4 -0
- package/dist/admin/src/composables/useApi.d.ts +21 -0
- package/dist/admin/src/composables/useAppStorage.d.ts +9 -0
- package/dist/admin/src/composables/useAssetUpload.d.ts +31 -0
- package/dist/admin/src/composables/useCharacterForm.d.ts +139 -0
- package/dist/admin/src/composables/useCharacterSettings.d.ts +27 -0
- package/dist/admin/src/composables/useCharacterTemplateForm.d.ts +47 -0
- package/dist/admin/src/composables/useCollectionTaskFilters.d.ts +12 -0
- package/dist/admin/src/composables/useFileUpload.d.ts +26 -0
- package/dist/admin/src/composables/useMaterialFilters.d.ts +14 -0
- package/dist/admin/src/composables/useModelEvaluation.d.ts +22 -0
- package/dist/admin/src/composables/useModelEvaluationWebSocket.d.ts +111 -0
- package/dist/admin/src/composables/useModelSettings.d.ts +12 -0
- package/dist/admin/src/composables/usePageScrollLock.d.ts +6 -0
- package/dist/admin/src/composables/useTaskFilters.d.ts +11 -0
- package/dist/admin/src/composables/useTestGroundProviders.d.ts +51 -0
- package/dist/admin/src/constants/character.d.ts +4 -0
- package/dist/admin/src/constants/collection-task.d.ts +5 -0
- package/dist/admin/src/constants/config-previews.d.ts +8 -0
- package/dist/admin/src/constants/container.d.ts +1 -0
- package/dist/admin/src/constants/links.d.ts +7 -0
- package/dist/admin/src/constants/nav.d.ts +17 -0
- package/dist/admin/src/constants/providers.d.ts +17 -0
- package/dist/admin/src/constants/regions.d.ts +10 -0
- package/dist/admin/src/constants/test-ground-voices.d.ts +19 -0
- package/dist/admin/src/constants/ui.d.ts +4 -0
- package/dist/admin/src/constants/voice.d.ts +12 -0
- package/dist/admin/src/constants/volc.d.ts +135 -0
- package/dist/admin/src/lib/cos/constants.d.ts +6 -0
- package/dist/admin/src/lib/cos/useCosDownload.d.ts +39 -0
- package/dist/admin/src/lib/cos/useCosUpload.d.ts +47 -0
- package/dist/admin/src/lib/cos/useVideoInfoExtractor.d.ts +12 -0
- package/dist/admin/src/lib/cos/utils.d.ts +4 -0
- package/dist/admin/src/lib/utils.d.ts +49 -0
- package/dist/admin/src/main.d.ts +0 -0
- package/dist/admin/src/renderSystem/animation/utils/eventEmitter.d.ts +9 -0
- package/dist/admin/src/renderSystem/animation/utils/flameConverter.d.ts +18 -0
- package/dist/admin/src/renderSystem/audio/AnimationPlayer.d.ts +31 -0
- package/dist/admin/src/renderSystem/audio/StreamingAudioPlayer.d.ts +66 -0
- package/dist/admin/src/renderSystem/config/app-config.d.ts +39 -0
- package/dist/admin/src/renderSystem/config/constants.d.ts +3 -0
- package/dist/admin/src/renderSystem/config/sdk-config-loader.d.ts +5 -0
- package/dist/admin/src/renderSystem/core/Avatar.d.ts +8 -0
- package/dist/admin/src/renderSystem/core/AvatarController.d.ts +65 -0
- package/dist/admin/src/renderSystem/core/AvatarDownloader.d.ts +38 -0
- package/dist/admin/src/renderSystem/core/AvatarKit.d.ts +10 -0
- package/dist/admin/src/renderSystem/core/AvatarView.d.ts +67 -0
- package/dist/admin/src/renderSystem/generated/driveningress/v1/driveningress.d.ts +68 -0
- package/dist/admin/src/renderSystem/generated/driveningress/v2/driveningress.d.ts +3 -0
- package/dist/admin/src/renderSystem/generated/google/protobuf/struct.d.ts +74 -0
- package/dist/admin/src/renderSystem/generated/google/protobuf/timestamp.d.ts +27 -0
- package/dist/admin/src/renderSystem/renderer/RenderSystem.d.ts +1 -0
- package/dist/admin/src/renderSystem/renderer/covariance.d.ts +1 -0
- package/dist/admin/src/renderSystem/renderer/renderer.d.ts +7 -0
- package/dist/admin/src/renderSystem/renderer/sortSplats.d.ts +1 -0
- package/dist/admin/src/renderSystem/renderer/webgl/reorderData.d.ts +1 -0
- package/dist/admin/src/renderSystem/renderer/webgl/webglRenderer.d.ts +27 -0
- package/dist/admin/src/renderSystem/renderer/webgpu/webgpuRenderer.d.ts +27 -0
- package/dist/admin/src/renderSystem/types/character-settings.d.ts +18 -0
- package/dist/admin/src/renderSystem/types/character.d.ts +22 -0
- package/dist/admin/src/renderSystem/types/index.d.ts +62 -0
- package/dist/admin/src/renderSystem/utils/animation-interpolation.d.ts +7 -0
- package/dist/admin/src/renderSystem/utils/conversationId.d.ts +1 -0
- package/dist/admin/src/renderSystem/utils/error-utils.d.ts +3 -0
- package/dist/admin/src/renderSystem/utils/id-manager.d.ts +12 -0
- package/dist/admin/src/renderSystem/utils/logger.d.ts +14 -0
- package/dist/admin/src/renderSystem/wasm/avatarCoreAdapter.d.ts +101 -0
- package/dist/admin/src/renderSystem/wasm/avatarCoreMemory.d.ts +92 -0
- package/dist/admin/src/stores/providers.d.ts +336 -0
- package/dist/admin/src/stores/region.d.ts +19 -0
- package/dist/admin/src/stores/user.d.ts +112 -0
- package/dist/admin/src/types/character-settings.d.ts +18 -0
- package/dist/admin/src/types/character.d.ts +117 -0
- package/dist/admin/src/types/collection-task.d.ts +11 -0
- package/dist/admin/src/types/config.d.ts +36 -0
- package/dist/admin/src/types/doubao-voice.d.ts +42 -0
- package/dist/admin/src/types/error.d.ts +5 -0
- package/dist/admin/src/types/model-settings.d.ts +41 -0
- package/dist/admin/src/types/task.d.ts +45 -0
- package/dist/admin/src/types/test-ground.d.ts +36 -0
- package/dist/admin/src/types/video-material.d.ts +130 -0
- package/dist/admin/src/types/voice.d.ts +58 -0
- package/dist/admin/src/utils/asset-config-loader.d.ts +10 -0
- package/dist/admin/src/utils/collection-task.d.ts +3 -0
- package/dist/admin/src/utils/error.d.ts +1 -0
- package/dist/admin/src/utils/hash.d.ts +20 -0
- package/dist/admin/src/utils/model-settings.d.ts +9 -0
- package/dist/admin/src/utils/monad.d.ts +13 -0
- package/dist/admin/src/utils/task.d.ts +8 -0
- package/dist/admin/unocss.config.d.ts +2 -0
- package/dist/admin/vite.config.d.ts +2 -0
- package/dist/admin/vue-macros.config.d.ts +2 -0
- package/dist/{index-B7llDHtO.js → index-DxIr4cus.js} +10 -15
- package/dist/index.js +1 -1
- package/dist/renderer/webgpu/webgpuRenderer.d.ts +0 -1
- package/package.json +1 -1
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { V1User } from '../client';
|
|
2
|
+
export interface User extends V1User {
|
|
3
|
+
avatar?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface LoginCredentials {
|
|
6
|
+
username: string;
|
|
7
|
+
password: string;
|
|
8
|
+
rememberMe?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const useUserStore: import('pinia').StoreDefinition<"user", Pick<{
|
|
11
|
+
isAuthenticated: import('vue').ComputedRef<boolean>;
|
|
12
|
+
storageToken: import('@vueuse/core').RemovableRef<string>;
|
|
13
|
+
user: import('vue').Ref<{
|
|
14
|
+
avatar?: string | undefined;
|
|
15
|
+
id?: string | undefined;
|
|
16
|
+
email?: string | undefined;
|
|
17
|
+
username?: string | undefined;
|
|
18
|
+
language?: import('../client').V1Language | undefined;
|
|
19
|
+
type?: import('../client').V1UserType | undefined;
|
|
20
|
+
phone?: string | undefined;
|
|
21
|
+
createdAt?: string | undefined;
|
|
22
|
+
updatedAt?: string | undefined;
|
|
23
|
+
deletedAt?: string | undefined;
|
|
24
|
+
} | undefined, User | {
|
|
25
|
+
avatar?: string | undefined;
|
|
26
|
+
id?: string | undefined;
|
|
27
|
+
email?: string | undefined;
|
|
28
|
+
username?: string | undefined;
|
|
29
|
+
language?: import('../client').V1Language | undefined;
|
|
30
|
+
type?: import('../client').V1UserType | undefined;
|
|
31
|
+
phone?: string | undefined;
|
|
32
|
+
createdAt?: string | undefined;
|
|
33
|
+
updatedAt?: string | undefined;
|
|
34
|
+
deletedAt?: string | undefined;
|
|
35
|
+
} | undefined>;
|
|
36
|
+
login: (credentials: LoginCredentials) => Promise<{
|
|
37
|
+
token: string;
|
|
38
|
+
user: V1User;
|
|
39
|
+
}>;
|
|
40
|
+
me: () => Promise<void>;
|
|
41
|
+
logout: () => Promise<void>;
|
|
42
|
+
clearCurrentRegionData: () => void;
|
|
43
|
+
isAuthenticatedInRegion: (regionKey: string) => boolean;
|
|
44
|
+
}, "user" | "storageToken">, Pick<{
|
|
45
|
+
isAuthenticated: import('vue').ComputedRef<boolean>;
|
|
46
|
+
storageToken: import('@vueuse/core').RemovableRef<string>;
|
|
47
|
+
user: import('vue').Ref<{
|
|
48
|
+
avatar?: string | undefined;
|
|
49
|
+
id?: string | undefined;
|
|
50
|
+
email?: string | undefined;
|
|
51
|
+
username?: string | undefined;
|
|
52
|
+
language?: import('../client').V1Language | undefined;
|
|
53
|
+
type?: import('../client').V1UserType | undefined;
|
|
54
|
+
phone?: string | undefined;
|
|
55
|
+
createdAt?: string | undefined;
|
|
56
|
+
updatedAt?: string | undefined;
|
|
57
|
+
deletedAt?: string | undefined;
|
|
58
|
+
} | undefined, User | {
|
|
59
|
+
avatar?: string | undefined;
|
|
60
|
+
id?: string | undefined;
|
|
61
|
+
email?: string | undefined;
|
|
62
|
+
username?: string | undefined;
|
|
63
|
+
language?: import('../client').V1Language | undefined;
|
|
64
|
+
type?: import('../client').V1UserType | undefined;
|
|
65
|
+
phone?: string | undefined;
|
|
66
|
+
createdAt?: string | undefined;
|
|
67
|
+
updatedAt?: string | undefined;
|
|
68
|
+
deletedAt?: string | undefined;
|
|
69
|
+
} | undefined>;
|
|
70
|
+
login: (credentials: LoginCredentials) => Promise<{
|
|
71
|
+
token: string;
|
|
72
|
+
user: V1User;
|
|
73
|
+
}>;
|
|
74
|
+
me: () => Promise<void>;
|
|
75
|
+
logout: () => Promise<void>;
|
|
76
|
+
clearCurrentRegionData: () => void;
|
|
77
|
+
isAuthenticatedInRegion: (regionKey: string) => boolean;
|
|
78
|
+
}, "isAuthenticated">, Pick<{
|
|
79
|
+
isAuthenticated: import('vue').ComputedRef<boolean>;
|
|
80
|
+
storageToken: import('@vueuse/core').RemovableRef<string>;
|
|
81
|
+
user: import('vue').Ref<{
|
|
82
|
+
avatar?: string | undefined;
|
|
83
|
+
id?: string | undefined;
|
|
84
|
+
email?: string | undefined;
|
|
85
|
+
username?: string | undefined;
|
|
86
|
+
language?: import('../client').V1Language | undefined;
|
|
87
|
+
type?: import('../client').V1UserType | undefined;
|
|
88
|
+
phone?: string | undefined;
|
|
89
|
+
createdAt?: string | undefined;
|
|
90
|
+
updatedAt?: string | undefined;
|
|
91
|
+
deletedAt?: string | undefined;
|
|
92
|
+
} | undefined, User | {
|
|
93
|
+
avatar?: string | undefined;
|
|
94
|
+
id?: string | undefined;
|
|
95
|
+
email?: string | undefined;
|
|
96
|
+
username?: string | undefined;
|
|
97
|
+
language?: import('../client').V1Language | undefined;
|
|
98
|
+
type?: import('../client').V1UserType | undefined;
|
|
99
|
+
phone?: string | undefined;
|
|
100
|
+
createdAt?: string | undefined;
|
|
101
|
+
updatedAt?: string | undefined;
|
|
102
|
+
deletedAt?: string | undefined;
|
|
103
|
+
} | undefined>;
|
|
104
|
+
login: (credentials: LoginCredentials) => Promise<{
|
|
105
|
+
token: string;
|
|
106
|
+
user: V1User;
|
|
107
|
+
}>;
|
|
108
|
+
me: () => Promise<void>;
|
|
109
|
+
logout: () => Promise<void>;
|
|
110
|
+
clearCurrentRegionData: () => void;
|
|
111
|
+
isAuthenticatedInRegion: (regionKey: string) => boolean;
|
|
112
|
+
}, "login" | "me" | "logout" | "clearCurrentRegionData" | "isAuthenticatedInRegion">>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface EyelidSettings {
|
|
2
|
+
auto_eyelid_adjustment: boolean;
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
eyelid_threshold: number;
|
|
5
|
+
targets: number[];
|
|
6
|
+
}
|
|
7
|
+
export interface CameraSettings {
|
|
8
|
+
fovXRadians: number;
|
|
9
|
+
fovYRadians: number;
|
|
10
|
+
rotation: number;
|
|
11
|
+
translationX: number;
|
|
12
|
+
translationY: number;
|
|
13
|
+
translationZ: number;
|
|
14
|
+
}
|
|
15
|
+
export interface CharacterSettings {
|
|
16
|
+
eyefocus: EyelidSettings;
|
|
17
|
+
camera: CameraSettings;
|
|
18
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { InferOutput } from 'valibot';
|
|
2
|
+
export declare const voicePlatformOptions: readonly [{
|
|
3
|
+
readonly label: "VOLC";
|
|
4
|
+
readonly value: "volc";
|
|
5
|
+
}, {
|
|
6
|
+
readonly label: "ElevenLabs";
|
|
7
|
+
readonly value: "elevenlabs";
|
|
8
|
+
}, {
|
|
9
|
+
readonly label: "Fish Audio";
|
|
10
|
+
readonly value: "fish_audio";
|
|
11
|
+
}];
|
|
12
|
+
export declare const realtimePlatformOptions: readonly [{
|
|
13
|
+
readonly label: "OpenAI";
|
|
14
|
+
readonly value: "openai";
|
|
15
|
+
}, {
|
|
16
|
+
readonly label: "智谱";
|
|
17
|
+
readonly value: "zhipu";
|
|
18
|
+
}, {
|
|
19
|
+
readonly label: "MiniMax";
|
|
20
|
+
readonly value: "minimax";
|
|
21
|
+
}];
|
|
22
|
+
export declare const VoiceSettingsSchema: import('valibot').ObjectSchema<{
|
|
23
|
+
readonly speaker: import('valibot').StringSchema<undefined>;
|
|
24
|
+
readonly speechRate: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, 0>;
|
|
25
|
+
readonly pitchRate: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, 0>;
|
|
26
|
+
readonly cartesiaSpeed: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "normal">;
|
|
27
|
+
readonly fishaudioSpeed: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, 1>;
|
|
28
|
+
readonly fishaudioVolume: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, 0>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
export declare const BrainSettingsSchema: import('valibot').ObjectSchema<{
|
|
31
|
+
readonly model: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
32
|
+
readonly apiKey: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
33
|
+
readonly baseURL: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
34
|
+
}, undefined>;
|
|
35
|
+
export declare const EarSettingsSchema: import('valibot').ObjectSchema<{
|
|
36
|
+
readonly language: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
37
|
+
readonly prompt: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
38
|
+
}, undefined>;
|
|
39
|
+
export declare const RealtimeSettingsSchema: import('valibot').ObjectSchema<{
|
|
40
|
+
readonly voiceId: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
41
|
+
}, undefined>;
|
|
42
|
+
export declare const RedeemSchema: import('valibot').ObjectSchema<{
|
|
43
|
+
readonly characterId: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
44
|
+
readonly code: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
45
|
+
readonly enabled: import('valibot').OptionalSchema<import('valibot').BooleanSchema<undefined>, false>;
|
|
46
|
+
}, undefined>;
|
|
47
|
+
export declare const SceneEnumSchema: import('valibot').PicklistSchema<["MONOLOGUE", "DIALOGUE"], undefined>;
|
|
48
|
+
export declare const CharacterFormDataSchema: import('valibot').ObjectSchema<{
|
|
49
|
+
readonly id: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
50
|
+
readonly name: import('valibot').StringSchema<undefined>;
|
|
51
|
+
readonly description: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
52
|
+
readonly coverUrl: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
53
|
+
readonly backgroundUrl: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
54
|
+
readonly systemPrompt: import('valibot').StringSchema<undefined>;
|
|
55
|
+
readonly scene: import('valibot').ArraySchema<import('valibot').PicklistSchema<["MONOLOGUE", "DIALOGUE"], undefined>, undefined>;
|
|
56
|
+
readonly version: import('valibot').PicklistSchema<["0.9", "1.0", "1.1"], undefined>;
|
|
57
|
+
readonly modelFile: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').FileSchema<undefined>, undefined>, readonly []>;
|
|
58
|
+
readonly drivenBaseUrl: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
59
|
+
readonly encoderStartFrame: import('valibot').OptionalSchema<import('valibot').SchemaWithPipe<readonly [import('valibot').NumberSchema<undefined>, import('valibot').IntegerAction<number, undefined>]>, 0>;
|
|
60
|
+
readonly styleNpy: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
61
|
+
readonly priority: import('valibot').SchemaWithPipe<readonly [import('valibot').NumberSchema<undefined>, import('valibot').IntegerAction<number, undefined>]>;
|
|
62
|
+
readonly assetGroupIds: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, readonly []>;
|
|
63
|
+
readonly characterTemplateId: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
64
|
+
readonly modelSettings: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
65
|
+
readonly language: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
66
|
+
readonly voice: import('valibot').ObjectSchema<{
|
|
67
|
+
readonly platform: import('valibot').StringSchema<undefined>;
|
|
68
|
+
readonly settings: import('valibot').ObjectSchema<{
|
|
69
|
+
readonly speaker: import('valibot').StringSchema<undefined>;
|
|
70
|
+
readonly speechRate: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, 0>;
|
|
71
|
+
readonly pitchRate: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, 0>;
|
|
72
|
+
readonly cartesiaSpeed: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "normal">;
|
|
73
|
+
readonly fishaudioSpeed: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, 1>;
|
|
74
|
+
readonly fishaudioVolume: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, 0>;
|
|
75
|
+
}, undefined>;
|
|
76
|
+
}, undefined>;
|
|
77
|
+
readonly brain: import('valibot').ObjectSchema<{
|
|
78
|
+
readonly platform: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
79
|
+
readonly settings: import('valibot').ObjectSchema<{
|
|
80
|
+
readonly model: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
81
|
+
readonly apiKey: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
82
|
+
readonly baseURL: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
83
|
+
}, undefined>;
|
|
84
|
+
}, undefined>;
|
|
85
|
+
readonly ear: import('valibot').ObjectSchema<{
|
|
86
|
+
readonly platform: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
87
|
+
readonly settings: import('valibot').ObjectSchema<{
|
|
88
|
+
readonly language: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
89
|
+
readonly prompt: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
90
|
+
}, undefined>;
|
|
91
|
+
}, undefined>;
|
|
92
|
+
readonly realtime: import('valibot').ObjectSchema<{
|
|
93
|
+
readonly platform: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
94
|
+
readonly settings: import('valibot').ObjectSchema<{
|
|
95
|
+
readonly voiceId: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
96
|
+
}, undefined>;
|
|
97
|
+
}, undefined>;
|
|
98
|
+
readonly mode: import('valibot').PicklistSchema<string[], undefined>;
|
|
99
|
+
readonly status: import('valibot').OptionalSchema<import('valibot').UnionSchema<[import('valibot').LiteralSchema<"TEST", undefined>, import('valibot').LiteralSchema<"PROD", undefined>, import('valibot').LiteralSchema<"OFFLINE", undefined>], undefined>, "OFFLINE">;
|
|
100
|
+
readonly enableRedeem: import('valibot').OptionalSchema<import('valibot').BooleanSchema<undefined>, false>;
|
|
101
|
+
readonly redeem: import('valibot').OptionalSchema<import('valibot').ObjectSchema<{
|
|
102
|
+
readonly characterId: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
103
|
+
readonly code: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
104
|
+
readonly enabled: import('valibot').OptionalSchema<import('valibot').BooleanSchema<undefined>, false>;
|
|
105
|
+
}, undefined>, undefined>;
|
|
106
|
+
}, undefined>;
|
|
107
|
+
export declare const LoginFormDataSchema: import('valibot').ObjectSchema<{
|
|
108
|
+
readonly username: import('valibot').StringSchema<undefined>;
|
|
109
|
+
readonly password: import('valibot').StringSchema<undefined>;
|
|
110
|
+
}, undefined>;
|
|
111
|
+
export type CharacterVoiceSettings = InferOutput<typeof VoiceSettingsSchema>;
|
|
112
|
+
export type CharacterBrainSettings = InferOutput<typeof BrainSettingsSchema>;
|
|
113
|
+
export type CharacterEarSettings = InferOutput<typeof EarSettingsSchema>;
|
|
114
|
+
export type RedeemData = InferOutput<typeof RedeemSchema>;
|
|
115
|
+
export type CharacterFormData = InferOutput<typeof CharacterFormDataSchema>;
|
|
116
|
+
export type LoginFormData = InferOutput<typeof LoginFormDataSchema>;
|
|
117
|
+
export type SceneEnum = InferOutput<typeof SceneEnumSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { V1CollectionTaskStatus } from '../client';
|
|
2
|
+
export declare const COLLECTION_TASK_STATUS_OPTIONS: readonly [{
|
|
3
|
+
readonly value: V1CollectionTaskStatus;
|
|
4
|
+
readonly label: "待处理";
|
|
5
|
+
}, {
|
|
6
|
+
readonly value: V1CollectionTaskStatus;
|
|
7
|
+
readonly label: "已完成";
|
|
8
|
+
}, {
|
|
9
|
+
readonly value: V1CollectionTaskStatus;
|
|
10
|
+
readonly label: "失败";
|
|
11
|
+
}];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface ConfigKV {
|
|
2
|
+
id: string;
|
|
3
|
+
key: string;
|
|
4
|
+
value: string;
|
|
5
|
+
description: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
updatedAt: string;
|
|
8
|
+
deletedAt?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ConfigKVFormData {
|
|
11
|
+
key: string;
|
|
12
|
+
value: string;
|
|
13
|
+
description: string;
|
|
14
|
+
}
|
|
15
|
+
export interface CreateConfigKVRequest {
|
|
16
|
+
key: string;
|
|
17
|
+
value: string;
|
|
18
|
+
description: string;
|
|
19
|
+
}
|
|
20
|
+
export interface UpdateConfigKVRequest {
|
|
21
|
+
id: string;
|
|
22
|
+
key?: string;
|
|
23
|
+
value?: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ListConfigKVsParams {
|
|
27
|
+
pageSize?: number;
|
|
28
|
+
pageToken?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ListConfigKVsResponse {
|
|
31
|
+
configs: ConfigKV[];
|
|
32
|
+
pagination?: {
|
|
33
|
+
totalCount: number;
|
|
34
|
+
nextPageToken?: string;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface DoubaoVoiceCategory {
|
|
2
|
+
level1: string;
|
|
3
|
+
level2?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface DoubaoVoiceParams {
|
|
7
|
+
voice_type: string;
|
|
8
|
+
emotion?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface DoubaoVoiceConfig {
|
|
12
|
+
params: DoubaoVoiceParams;
|
|
13
|
+
text: string;
|
|
14
|
+
emotion: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface DoubaoVoiceData {
|
|
18
|
+
name: string;
|
|
19
|
+
category: DoubaoVoiceCategory[];
|
|
20
|
+
labels: string[];
|
|
21
|
+
gender: '男' | '女';
|
|
22
|
+
age: string;
|
|
23
|
+
voice_config: DoubaoVoiceConfig[];
|
|
24
|
+
trial_url: string;
|
|
25
|
+
emoji?: string;
|
|
26
|
+
avatar: string;
|
|
27
|
+
short_trial_url: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface SimpleDoubaoVoice {
|
|
31
|
+
name: string;
|
|
32
|
+
voiceType: string;
|
|
33
|
+
category: string;
|
|
34
|
+
subCategory?: string;
|
|
35
|
+
labels: string[];
|
|
36
|
+
gender: '男' | '女';
|
|
37
|
+
age: string;
|
|
38
|
+
avatar: string;
|
|
39
|
+
audioUrl: string;
|
|
40
|
+
emoji?: string;
|
|
41
|
+
emotionCount?: number;
|
|
42
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface JawPose {
|
|
2
|
+
bias: number[];
|
|
3
|
+
weight: number;
|
|
4
|
+
}
|
|
5
|
+
export interface EyeBlink {
|
|
6
|
+
left: number;
|
|
7
|
+
right: number;
|
|
8
|
+
}
|
|
9
|
+
export interface EyePose {
|
|
10
|
+
bias: number[];
|
|
11
|
+
weight: number[];
|
|
12
|
+
}
|
|
13
|
+
export interface NeckPose {
|
|
14
|
+
bias: number[];
|
|
15
|
+
weight: number[];
|
|
16
|
+
}
|
|
17
|
+
export interface Expression {
|
|
18
|
+
weight: number;
|
|
19
|
+
}
|
|
20
|
+
export interface ModelSettings {
|
|
21
|
+
jaw_pose: JawPose;
|
|
22
|
+
rotation: number[];
|
|
23
|
+
translation: number[];
|
|
24
|
+
eye_blink: EyeBlink;
|
|
25
|
+
eye_pose: EyePose;
|
|
26
|
+
neck_pose: NeckPose;
|
|
27
|
+
expression: Expression;
|
|
28
|
+
}
|
|
29
|
+
export interface FileUploadState {
|
|
30
|
+
shapeFiles: File[];
|
|
31
|
+
styleFiles: File[];
|
|
32
|
+
}
|
|
33
|
+
export interface FileValidationResult {
|
|
34
|
+
isValid: boolean;
|
|
35
|
+
errorMessage?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface Base64FileData {
|
|
39
|
+
shapeNpy?: string;
|
|
40
|
+
styleNpy?: string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { V1TaskStatus, V1TaskType } from '../client';
|
|
2
|
+
export interface TaskFilters {
|
|
3
|
+
types?: V1TaskType[];
|
|
4
|
+
statuses?: V1TaskStatus[];
|
|
5
|
+
timeRangeStart?: string;
|
|
6
|
+
timeRangeEnd?: string;
|
|
7
|
+
creatorId?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const TASK_TYPE_OPTIONS: readonly [{
|
|
10
|
+
readonly value: V1TaskType;
|
|
11
|
+
readonly label: "待机动画生成";
|
|
12
|
+
}, {
|
|
13
|
+
readonly value: V1TaskType;
|
|
14
|
+
readonly label: "重建";
|
|
15
|
+
}, {
|
|
16
|
+
readonly value: V1TaskType;
|
|
17
|
+
readonly label: "素材生成";
|
|
18
|
+
}];
|
|
19
|
+
export declare const TASK_STATUS_OPTIONS: readonly [{
|
|
20
|
+
readonly value: V1TaskStatus;
|
|
21
|
+
readonly label: "进行中";
|
|
22
|
+
}, {
|
|
23
|
+
readonly value: V1TaskStatus;
|
|
24
|
+
readonly label: "失败";
|
|
25
|
+
}, {
|
|
26
|
+
readonly value: V1TaskStatus;
|
|
27
|
+
readonly label: "成功";
|
|
28
|
+
}];
|
|
29
|
+
export declare const TASK_TYPE_DISPLAY_MAP: Record<V1TaskType, string>;
|
|
30
|
+
export declare const TASK_STATUS_DISPLAY_MAP: Record<V1TaskStatus, string>;
|
|
31
|
+
export interface TaskData {
|
|
32
|
+
video?: {
|
|
33
|
+
train_person_name: string;
|
|
34
|
+
};
|
|
35
|
+
diffposetalk?: {
|
|
36
|
+
version: string;
|
|
37
|
+
};
|
|
38
|
+
uploaded_url?: string;
|
|
39
|
+
matting_method?: string;
|
|
40
|
+
matting_mode?: string;
|
|
41
|
+
no_terminate_on_finish?: boolean;
|
|
42
|
+
downsample_scales?: number;
|
|
43
|
+
iteration?: number;
|
|
44
|
+
[key: string]: unknown;
|
|
45
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface ModelConfig {
|
|
2
|
+
drivenVersion?: string;
|
|
3
|
+
voiceId?: string;
|
|
4
|
+
styleStartTime?: number;
|
|
5
|
+
camera?: {
|
|
6
|
+
fovX?: number;
|
|
7
|
+
fovY?: number;
|
|
8
|
+
translationX?: number;
|
|
9
|
+
translationY?: number;
|
|
10
|
+
translationZ?: number;
|
|
11
|
+
};
|
|
12
|
+
dialogueLanguage?: string;
|
|
13
|
+
personality?: string;
|
|
14
|
+
eyeBlink?: number;
|
|
15
|
+
neckPose?: {
|
|
16
|
+
x?: number;
|
|
17
|
+
y?: number;
|
|
18
|
+
z?: number;
|
|
19
|
+
};
|
|
20
|
+
expressionWeight?: number;
|
|
21
|
+
jawPose?: {
|
|
22
|
+
x?: number;
|
|
23
|
+
y?: number;
|
|
24
|
+
z?: number;
|
|
25
|
+
};
|
|
26
|
+
rotation?: {
|
|
27
|
+
x?: number;
|
|
28
|
+
y?: number;
|
|
29
|
+
z?: number;
|
|
30
|
+
};
|
|
31
|
+
asrProviderId?: string;
|
|
32
|
+
llmProviderId?: string;
|
|
33
|
+
ttsProviderId?: string;
|
|
34
|
+
speechRate?: number;
|
|
35
|
+
pitch?: number;
|
|
36
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { InferOutput } from 'valibot';
|
|
2
|
+
export declare const MATERIAL_NAME_MAX_LENGTH = 30;
|
|
3
|
+
export declare const MATERIAL_DESC_MAX_LENGTH = 80;
|
|
4
|
+
export declare const MATERIAL_TYPE_OPTIONS: readonly [{
|
|
5
|
+
readonly label: "视频";
|
|
6
|
+
readonly value: "MATERIAL_TYPE_VIDEO";
|
|
7
|
+
}, {
|
|
8
|
+
readonly label: "图片";
|
|
9
|
+
readonly value: "MATERIAL_TYPE_IMAGE";
|
|
10
|
+
}];
|
|
11
|
+
export declare const videoSourceOptions: readonly [{
|
|
12
|
+
readonly label: "可灵";
|
|
13
|
+
readonly value: "kling";
|
|
14
|
+
}, {
|
|
15
|
+
readonly label: "HeyGen";
|
|
16
|
+
readonly value: "heygen";
|
|
17
|
+
}, {
|
|
18
|
+
readonly label: "拍摄";
|
|
19
|
+
readonly value: "shooting";
|
|
20
|
+
}, {
|
|
21
|
+
readonly label: "LivePortrait";
|
|
22
|
+
readonly value: "liveportrait";
|
|
23
|
+
}, {
|
|
24
|
+
readonly label: "征集素材上传";
|
|
25
|
+
readonly value: "collection";
|
|
26
|
+
}, {
|
|
27
|
+
readonly label: "素材生成";
|
|
28
|
+
readonly value: "material_generation";
|
|
29
|
+
}];
|
|
30
|
+
export declare const imageSourceOptions: readonly [{
|
|
31
|
+
readonly label: "拍摄";
|
|
32
|
+
readonly value: "shooting";
|
|
33
|
+
}, {
|
|
34
|
+
readonly label: "AI生成";
|
|
35
|
+
readonly value: "ai_generated";
|
|
36
|
+
}, {
|
|
37
|
+
readonly label: "征集素材上传";
|
|
38
|
+
readonly value: "collection";
|
|
39
|
+
}, {
|
|
40
|
+
readonly label: "Joi";
|
|
41
|
+
readonly value: "joi";
|
|
42
|
+
}];
|
|
43
|
+
export declare const sourceOptions: Readonly<{
|
|
44
|
+
label: string;
|
|
45
|
+
value: string;
|
|
46
|
+
}>[];
|
|
47
|
+
export declare const videoTagOptions: readonly [{
|
|
48
|
+
readonly label: "标准测试视频";
|
|
49
|
+
readonly value: "driving_video";
|
|
50
|
+
readonly description: "表示该视频为标准的测试视频";
|
|
51
|
+
}, {
|
|
52
|
+
readonly label: "验证效果好";
|
|
53
|
+
readonly value: "verified_good";
|
|
54
|
+
readonly description: "此视频直接上传或作为驱动视频,被验证效果好,达到发布至 release 的水准";
|
|
55
|
+
}];
|
|
56
|
+
export declare const DEFAULT_VIDEO_PARAMETERS: {
|
|
57
|
+
readonly DIFFPOSETALK_START: 10;
|
|
58
|
+
readonly DIFFPOSETALK_END: 20;
|
|
59
|
+
readonly IDLE_START_TIME: 7;
|
|
60
|
+
readonly IDLE_END_TIME: 14;
|
|
61
|
+
readonly MONOLOGUE_START_TIME: 1;
|
|
62
|
+
readonly MONOLOGUE_END_TIME: 10;
|
|
63
|
+
};
|
|
64
|
+
export declare const VideoParametersSchema: import('valibot').RecordSchema<import('valibot').StringSchema<undefined>, import('valibot').NumberSchema<undefined>, undefined>;
|
|
65
|
+
export declare const VideoMaterialFormDataSchema: import('valibot').ObjectSchema<{
|
|
66
|
+
readonly type: import('valibot').OptionalSchema<import('valibot').PicklistSchema<["MATERIAL_TYPE_VIDEO", "MATERIAL_TYPE_IMAGE"], undefined>, undefined>;
|
|
67
|
+
readonly id: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
68
|
+
readonly name: import('valibot').SchemaWithPipe<readonly [import('valibot').StringSchema<"视频名称不能为空">, import('valibot').MinLengthAction<string, 1, "视频名称不能为空">, import('valibot').CustomSchema<string, "视频名称不能超过30个字符">]>;
|
|
69
|
+
readonly description: import('valibot').OptionalSchema<import('valibot').SchemaWithPipe<readonly [import('valibot').StringSchema<undefined>, import('valibot').CustomSchema<string, "素材描述不能超过80个字符">]>, "">;
|
|
70
|
+
readonly source: import('valibot').PicklistSchema<("kling" | "heygen" | "shooting" | "liveportrait" | "collection" | "material_generation" | "ai_generated" | "joi")[], "请选择来源">;
|
|
71
|
+
readonly parameters: import('valibot').RecordSchema<import('valibot').StringSchema<undefined>, import('valibot').NumberSchema<undefined>, undefined>;
|
|
72
|
+
readonly tags: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').PicklistSchema<("driving_video" | "verified_good")[], undefined>, undefined>, readonly []>;
|
|
73
|
+
readonly file: import('valibot').OptionalSchema<import('valibot').AnySchema, undefined>;
|
|
74
|
+
readonly filename: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
75
|
+
readonly r2Key: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
76
|
+
readonly url: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
77
|
+
readonly videoUrl: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
78
|
+
readonly thumbnailUrl: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
79
|
+
readonly duration: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, 0>;
|
|
80
|
+
readonly resolution: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
81
|
+
readonly fileSize: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, 0>;
|
|
82
|
+
readonly metadata: import('valibot').OptionalSchema<import('valibot').RecordSchema<import('valibot').StringSchema<undefined>, import('valibot').AnySchema, undefined>, {}>;
|
|
83
|
+
readonly createdBy: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
84
|
+
readonly createdAt: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
85
|
+
readonly updatedAt: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
86
|
+
readonly taskId: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
|
|
87
|
+
readonly assetGroupIds: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').StringSchema<undefined>, undefined>, readonly []>;
|
|
88
|
+
}, undefined>;
|
|
89
|
+
export declare const VideoMaterialStatusSchema: import('valibot').UnionSchema<[import('valibot').LiteralSchema<"UPLOADING", undefined>, import('valibot').LiteralSchema<"PROCESSING", undefined>, import('valibot').LiteralSchema<"COMPLETED", undefined>, import('valibot').LiteralSchema<"FAILED", undefined>], undefined>;
|
|
90
|
+
export type VideoMaterial = InferOutput<typeof VideoMaterialFormDataSchema>;
|
|
91
|
+
export type VideoParameters = InferOutput<typeof VideoParametersSchema>;
|
|
92
|
+
export type VideoMaterialStatus = InferOutput<typeof VideoMaterialStatusSchema>;
|
|
93
|
+
export type VideoSource = typeof videoSourceOptions[number]['value'] | typeof imageSourceOptions[number]['value'];
|
|
94
|
+
export type VideoTag = typeof videoTagOptions[number]['value'];
|
|
95
|
+
export interface VideoMaterialListResponse {
|
|
96
|
+
materials: VideoMaterial[];
|
|
97
|
+
pagination: {
|
|
98
|
+
totalCount: number;
|
|
99
|
+
nextPageToken?: string;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
export interface VideoMaterialRequest {
|
|
103
|
+
name: string;
|
|
104
|
+
description?: string;
|
|
105
|
+
source: VideoSource;
|
|
106
|
+
parameters: Record<string, number>;
|
|
107
|
+
tags?: VideoTag[];
|
|
108
|
+
filename: string;
|
|
109
|
+
url: string;
|
|
110
|
+
r2Key: string;
|
|
111
|
+
duration?: number;
|
|
112
|
+
resolution?: string;
|
|
113
|
+
fileSize?: number;
|
|
114
|
+
metadata?: Record<string, any>;
|
|
115
|
+
}
|
|
116
|
+
export type Material = VideoMaterial;
|
|
117
|
+
export type MaterialParameters = VideoParameters;
|
|
118
|
+
export type MaterialStatus = VideoMaterialStatus;
|
|
119
|
+
export type MaterialSource = VideoSource;
|
|
120
|
+
export type MaterialTag = VideoTag;
|
|
121
|
+
export type MaterialListResponse = VideoMaterialListResponse;
|
|
122
|
+
export type MaterialRequest = VideoMaterialRequest;
|
|
123
|
+
export declare const DEFAULT_MATERIAL_PARAMETERS: {
|
|
124
|
+
readonly DIFFPOSETALK_START: 10;
|
|
125
|
+
readonly DIFFPOSETALK_END: 20;
|
|
126
|
+
readonly IDLE_START_TIME: 7;
|
|
127
|
+
readonly IDLE_END_TIME: 14;
|
|
128
|
+
readonly MONOLOGUE_START_TIME: 1;
|
|
129
|
+
readonly MONOLOGUE_END_TIME: 10;
|
|
130
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export type VoiceStatus = 'VOICE_STATUS_UNSPECIFIED' | 'VOICE_STATUS_PENDING' | 'VOICE_STATUS_TRAINING' | 'VOICE_STATUS_COMPLETED' | 'VOICE_STATUS_FAILED';
|
|
2
|
+
export type VoiceLanguage = 'VOICE_LANGUAGE_UNSPECIFIED' | 'VOICE_LANGUAGE_ZH_CN' | 'VOICE_LANGUAGE_EN_US' | 'VOICE_LANGUAGE_JA_JP';
|
|
3
|
+
export type AudioFormat = 'wav' | 'mp3' | 'flac' | 'm4a';
|
|
4
|
+
export interface AudioData {
|
|
5
|
+
audioBytes: string;
|
|
6
|
+
audioFormat: AudioFormat;
|
|
7
|
+
text: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Voice {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
speakerId: string;
|
|
13
|
+
status: VoiceStatus;
|
|
14
|
+
language: VoiceLanguage;
|
|
15
|
+
audioFormat?: string;
|
|
16
|
+
progress: number;
|
|
17
|
+
errorMessage?: string;
|
|
18
|
+
trainingAudioUrl?: string;
|
|
19
|
+
trainingText?: string;
|
|
20
|
+
metadata?: Record<string, unknown>;
|
|
21
|
+
providerConfig?: string;
|
|
22
|
+
providerId: string;
|
|
23
|
+
createdAt?: string;
|
|
24
|
+
updatedAt?: string;
|
|
25
|
+
deletedAt?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface TrainVoiceRequest {
|
|
28
|
+
name: string;
|
|
29
|
+
speakerId: string;
|
|
30
|
+
audio: AudioData;
|
|
31
|
+
language: VoiceLanguage;
|
|
32
|
+
providerId: string;
|
|
33
|
+
metadata?: Record<string, unknown>;
|
|
34
|
+
}
|
|
35
|
+
export interface ListVoicesParams {
|
|
36
|
+
status?: VoiceStatus;
|
|
37
|
+
language?: VoiceLanguage;
|
|
38
|
+
providerId?: string;
|
|
39
|
+
pageSize?: number;
|
|
40
|
+
pageToken?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ListVoicesResponse {
|
|
43
|
+
voices: Voice[];
|
|
44
|
+
pagination?: {
|
|
45
|
+
totalCount: number;
|
|
46
|
+
nextPageToken?: string;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface VoiceFormData {
|
|
51
|
+
name: string;
|
|
52
|
+
speakerId: string;
|
|
53
|
+
language: VoiceLanguage;
|
|
54
|
+
providerId: string;
|
|
55
|
+
trainingText: string;
|
|
56
|
+
audioFile?: File;
|
|
57
|
+
metadata: string;
|
|
58
|
+
}
|