@spatialwalk/avatarkit 1.0.0-beta.35 → 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 +13 -0
- package/README.md +39 -8
- package/dist/{StreamingAudioPlayer-eWy8xl8G.js → StreamingAudioPlayer-gV0axCZe.js} +54 -7
- 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/animation/AnimationWebSocketClient.d.ts +3 -0
- package/dist/audio/StreamingAudioPlayer.d.ts +4 -0
- package/dist/core/AvatarController.d.ts +2 -0
- package/dist/generated/common/v1/models.d.ts +29 -0
- package/dist/generated/driveningress/v2/driveningress.d.ts +81 -0
- package/dist/{index-DgkjYDp2.js → index-DxIr4cus.js} +1355 -215
- package/dist/index.js +1 -1
- package/dist/renderer/webgpu/webgpuRenderer.d.ts +0 -1
- package/dist/types/index.d.ts +10 -1
- package/dist/utils/id-manager.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type MaterialType = 'MATERIAL_TYPE_VIDEO' | 'MATERIAL_TYPE_IMAGE' | 'MATERIAL_TYPE_UNSPECIFIED' | 'all';
|
|
2
|
+
export declare function useMaterialFilters(): {
|
|
3
|
+
searchFilter: import('@vueuse/core').RemovableRef<string>;
|
|
4
|
+
typeFilter: import('@vueuse/core').RemovableRef<MaterialType>;
|
|
5
|
+
sourceFilter: import('@vueuse/core').RemovableRef<string>;
|
|
6
|
+
tagFilter: import('@vueuse/core').RemovableRef<("driving_video" | "verified_good")[]>;
|
|
7
|
+
createdByFilter: import('@vueuse/core').RemovableRef<string>;
|
|
8
|
+
createdAfterFilter: import('@vueuse/core').RemovableRef<string | undefined>;
|
|
9
|
+
createdBeforeFilter: import('@vueuse/core').RemovableRef<string | undefined>;
|
|
10
|
+
formatDateForApi: (dateString?: string, isEndDate?: boolean) => string | undefined;
|
|
11
|
+
resetAllFilters: () => void;
|
|
12
|
+
hasActiveFilters: () => boolean;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BatchDrivenEvaluationResponse, ModelEvaluationProviderConfig } from '../../generated/platform/v1/model_evaluation';
|
|
2
|
+
import { ModelSettings } from '../types/model-settings';
|
|
3
|
+
import { ModelConfig } from '../types/test-ground';
|
|
4
|
+
interface BatchDrivenConfigJson {
|
|
5
|
+
id: string;
|
|
6
|
+
shapeNpy: string;
|
|
7
|
+
styleNpy: string;
|
|
8
|
+
drivenServerUrl: string;
|
|
9
|
+
modelSettings?: ModelSettings;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export declare function convertModelConfigToModelSettings(_config: ModelConfig, _baseModelSettings?: ModelSettings): ModelSettings | undefined;
|
|
13
|
+
|
|
14
|
+
export declare function generateStyleNpy(assetGroupId: string, styleStartTime: number, drivenVersion: string, assetGroup?: any): Promise<Uint8Array>;
|
|
15
|
+
|
|
16
|
+
export declare function buildProviderConfig(providerId: string, additionalMetadata?: Record<string, string>): Promise<ModelEvaluationProviderConfig | null>;
|
|
17
|
+
|
|
18
|
+
export declare function buildBatchDrivenConfig(assetGroupId: string, modelConfig: ModelConfig, id: string,
|
|
19
|
+
baseModelSettings?: ModelSettings, assetGroup?: any): Promise<BatchDrivenConfigJson | null>;
|
|
20
|
+
|
|
21
|
+
export declare function callBatchDrivenEvaluation(text: string, ttsProvider: ModelEvaluationProviderConfig | null, drivenConfigs: BatchDrivenConfigJson[], audio?: Uint8Array): Promise<BatchDrivenEvaluationResponse>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { ModelEvaluationConfig } from '../../generated/platform/v1/model_evaluation';
|
|
2
|
+
import { MessageType } from '../../generated/realtime/v1/messages';
|
|
3
|
+
|
|
4
|
+
export declare enum WebSocketState {
|
|
5
|
+
DISCONNECTED = "disconnected",
|
|
6
|
+
CONNECTING = "connecting",
|
|
7
|
+
CONNECTED = "connected",
|
|
8
|
+
ERROR = "error"
|
|
9
|
+
}
|
|
10
|
+
export { MessageType };
|
|
11
|
+
|
|
12
|
+
export interface ResponseCallbacks {
|
|
13
|
+
onResponseStart?: (reqId: string) => void;
|
|
14
|
+
onText?: (reqId: string, text: string) => void;
|
|
15
|
+
onAudio?: (reqId: string, audio: Uint8Array, isLast: boolean) => void;
|
|
16
|
+
onAnimation?: (reqId: string, animation: any) => void;
|
|
17
|
+
onAsrResult?: (reqId: string, asrText: string) => void;
|
|
18
|
+
onResponseEnd?: (reqId: string) => void;
|
|
19
|
+
onError?: (reqId: string, code: number, reason: string) => void;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export declare function useModelEvaluationWebSocket(): {
|
|
23
|
+
ws: import('vue').Ref<{
|
|
24
|
+
binaryType: BinaryType;
|
|
25
|
+
readonly bufferedAmount: number;
|
|
26
|
+
readonly extensions: string;
|
|
27
|
+
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
|
|
28
|
+
onerror: ((this: WebSocket, ev: Event) => any) | null;
|
|
29
|
+
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
|
|
30
|
+
onopen: ((this: WebSocket, ev: Event) => any) | null;
|
|
31
|
+
readonly protocol: string;
|
|
32
|
+
readonly readyState: number;
|
|
33
|
+
readonly url: string;
|
|
34
|
+
close: {
|
|
35
|
+
(code?: number, reason?: string): void;
|
|
36
|
+
(code?: number, reason?: string): void;
|
|
37
|
+
};
|
|
38
|
+
send: {
|
|
39
|
+
(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
40
|
+
(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
41
|
+
};
|
|
42
|
+
readonly CONNECTING: 0;
|
|
43
|
+
readonly OPEN: 1;
|
|
44
|
+
readonly CLOSING: 2;
|
|
45
|
+
readonly CLOSED: 3;
|
|
46
|
+
addEventListener: {
|
|
47
|
+
<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
48
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
49
|
+
<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
50
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
51
|
+
};
|
|
52
|
+
removeEventListener: {
|
|
53
|
+
<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
54
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
55
|
+
<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
56
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
57
|
+
};
|
|
58
|
+
dispatchEvent: {
|
|
59
|
+
(event: Event): boolean;
|
|
60
|
+
(event: Event): boolean;
|
|
61
|
+
};
|
|
62
|
+
} | null, WebSocket | {
|
|
63
|
+
binaryType: BinaryType;
|
|
64
|
+
readonly bufferedAmount: number;
|
|
65
|
+
readonly extensions: string;
|
|
66
|
+
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
|
|
67
|
+
onerror: ((this: WebSocket, ev: Event) => any) | null;
|
|
68
|
+
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
|
|
69
|
+
onopen: ((this: WebSocket, ev: Event) => any) | null;
|
|
70
|
+
readonly protocol: string;
|
|
71
|
+
readonly readyState: number;
|
|
72
|
+
readonly url: string;
|
|
73
|
+
close: {
|
|
74
|
+
(code?: number, reason?: string): void;
|
|
75
|
+
(code?: number, reason?: string): void;
|
|
76
|
+
};
|
|
77
|
+
send: {
|
|
78
|
+
(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
79
|
+
(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
80
|
+
};
|
|
81
|
+
readonly CONNECTING: 0;
|
|
82
|
+
readonly OPEN: 1;
|
|
83
|
+
readonly CLOSING: 2;
|
|
84
|
+
readonly CLOSED: 3;
|
|
85
|
+
addEventListener: {
|
|
86
|
+
<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
87
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
88
|
+
<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
89
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
90
|
+
};
|
|
91
|
+
removeEventListener: {
|
|
92
|
+
<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
93
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
94
|
+
<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
95
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
96
|
+
};
|
|
97
|
+
dispatchEvent: {
|
|
98
|
+
(event: Event): boolean;
|
|
99
|
+
(event: Event): boolean;
|
|
100
|
+
};
|
|
101
|
+
} | null>;
|
|
102
|
+
state: import('vue').Ref<WebSocketState, WebSocketState>;
|
|
103
|
+
error: import('vue').Ref<string | null, string | null>;
|
|
104
|
+
configSent: import('vue').Ref<boolean, boolean>;
|
|
105
|
+
connect: () => Promise<boolean>;
|
|
106
|
+
sendConfig: (config: ModelEvaluationConfig, forceReconnect?: boolean) => Promise<boolean>;
|
|
107
|
+
sendTextInput: (text: string, reqId?: string) => boolean;
|
|
108
|
+
setCallbacks: (callbacks: ResponseCallbacks) => void;
|
|
109
|
+
disconnect: () => void;
|
|
110
|
+
hasConfigChanged: (newConfig: ModelEvaluationConfig) => boolean;
|
|
111
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { ModelSettings } from '../types/model-settings';
|
|
3
|
+
|
|
4
|
+
export declare function useModelSettings(): {
|
|
5
|
+
modelSettings: Ref<ModelSettings, ModelSettings>;
|
|
6
|
+
modelJson: Ref<string, string>;
|
|
7
|
+
defaultModelSettings: ModelSettings;
|
|
8
|
+
loadFromJson: (jsonString: string) => void;
|
|
9
|
+
loadFromObject: (settings: ModelSettings | Record<string, any> | null | undefined) => void;
|
|
10
|
+
resetToDefaults: () => void;
|
|
11
|
+
getJsonString: () => string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { V1TaskStatus, V1TaskType } from '../client';
|
|
2
|
+
export declare function useTaskFilters(): {
|
|
3
|
+
statusFilter: import('@vueuse/core').RemovableRef<V1TaskStatus[]>;
|
|
4
|
+
typeFilter: import('@vueuse/core').RemovableRef<V1TaskType[]>;
|
|
5
|
+
creatorSearch: import('@vueuse/core').RemovableRef<string>;
|
|
6
|
+
timeRangeStart: import('@vueuse/core').RemovableRef<string | undefined>;
|
|
7
|
+
timeRangeEnd: import('@vueuse/core').RemovableRef<string | undefined>;
|
|
8
|
+
getStatusNumbers: () => number[];
|
|
9
|
+
getTypeNumbers: () => number[];
|
|
10
|
+
formatDateForApi: (dateString?: string) => string | undefined;
|
|
11
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export interface DrivenProviderOption {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
version: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ProviderOption {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
declare function ensureProvidersLoaded(): Promise<void>;
|
|
11
|
+
export declare function useTestGroundProviders(): {
|
|
12
|
+
drivenProviders: import('vue').Ref<{
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
version: string;
|
|
16
|
+
}[], DrivenProviderOption[] | {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
version: string;
|
|
20
|
+
}[]>;
|
|
21
|
+
asrProviders: import('vue').Ref<{
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
}[], ProviderOption[] | {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
}[]>;
|
|
28
|
+
llmProviders: import('vue').Ref<{
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
}[], ProviderOption[] | {
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
}[]>;
|
|
35
|
+
ttsProviders: import('vue').Ref<{
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
}[], ProviderOption[] | {
|
|
39
|
+
id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
}[]>;
|
|
42
|
+
drivenVersionOptions: import('vue').ComputedRef<{
|
|
43
|
+
value: string;
|
|
44
|
+
label: string;
|
|
45
|
+
}[]>;
|
|
46
|
+
loaded: import('vue').Ref<boolean, boolean>;
|
|
47
|
+
isLoading: import('vue').Ref<boolean, boolean>;
|
|
48
|
+
ensureProvidersLoaded: typeof ensureProvidersLoaded;
|
|
49
|
+
clearCache(): void;
|
|
50
|
+
};
|
|
51
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const containerImageNamespace: any;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const GUIDE_LINKS: {
|
|
2
|
+
readonly TASK_RECONSTRUCTION: "https://spatialwalk.feishu.cn/wiki/QFfWwpXP0i3DnVkrjHoc5wUcn4g";
|
|
3
|
+
readonly TASK_MATERIAL_GENERATION: "https://spatialwalk.feishu.cn/wiki/EQbAwsueWiToFTkq7cYc3RqKnHf";
|
|
4
|
+
readonly SERVICE_PROVIDER: "https://spatialwalk.feishu.cn/wiki/UFyTwLT4oiO8p9kFR4kcAUeOnWb";
|
|
5
|
+
readonly PIPELINE_TEMPLATE: "https://spatialwalk.feishu.cn/wiki/QFfWwpXP0i3DnVkrjHoc5wUcn4g";
|
|
6
|
+
};
|
|
7
|
+
export type GuideLinkKey = keyof typeof GUIDE_LINKS;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const navMain: ({
|
|
2
|
+
title: string;
|
|
3
|
+
icon: string;
|
|
4
|
+
isActive: boolean;
|
|
5
|
+
items: {
|
|
6
|
+
title: string;
|
|
7
|
+
url: string;
|
|
8
|
+
}[];
|
|
9
|
+
url?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
title: string;
|
|
12
|
+
url: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
isActive?: undefined;
|
|
15
|
+
items?: undefined;
|
|
16
|
+
})[];
|
|
17
|
+
export declare const navMap: Record<string, any>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const PROVIDER_TYPES: readonly [{
|
|
2
|
+
readonly label: "Driven";
|
|
3
|
+
readonly value: "PROVIDER_TYPE_DRIVEN_BASE";
|
|
4
|
+
}, {
|
|
5
|
+
readonly label: "LLM";
|
|
6
|
+
readonly value: "PROVIDER_TYPE_LLM_BASE";
|
|
7
|
+
}, {
|
|
8
|
+
readonly label: "ASR";
|
|
9
|
+
readonly value: "PROVIDER_TYPE_ASR_BASE";
|
|
10
|
+
}, {
|
|
11
|
+
readonly label: "TTS";
|
|
12
|
+
readonly value: "PROVIDER_TYPE_TTS_BASE";
|
|
13
|
+
}, {
|
|
14
|
+
readonly label: "VLM";
|
|
15
|
+
readonly value: "PROVIDER_TYPE_VLM_BASE";
|
|
16
|
+
}];
|
|
17
|
+
export declare const VALID_METADATA_KEYS: string[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const TEST_GROUND_VOICE_OPTIONS: readonly [{
|
|
2
|
+
readonly value: "zh_male_wennuanahu_moon_bigtts";
|
|
3
|
+
readonly label: "zh_male_wennuanahu_moon_bigtts";
|
|
4
|
+
}, {
|
|
5
|
+
readonly value: "zh_female_shuangkuaisisi_moon_bigtts";
|
|
6
|
+
readonly label: "zh_female_shuangkuaisisi_moon_bigtts";
|
|
7
|
+
}, {
|
|
8
|
+
readonly value: "zh_male_qingse_moon_bigtts";
|
|
9
|
+
readonly label: "zh_male_qingse_moon_bigtts";
|
|
10
|
+
}, {
|
|
11
|
+
readonly value: "zh_male_jingying_moon_bigtts";
|
|
12
|
+
readonly label: "zh_male_jingying_moon_bigtts";
|
|
13
|
+
}, {
|
|
14
|
+
readonly value: "zh_female_shaonv_moon_bigtts";
|
|
15
|
+
readonly label: "zh_female_shaonv_moon_bigtts";
|
|
16
|
+
}, {
|
|
17
|
+
readonly value: "zh_female_yujie_moon_bigtts";
|
|
18
|
+
readonly label: "zh_female_yujie_moon_bigtts";
|
|
19
|
+
}];
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { AudioFormat, VoiceLanguage, VoiceStatus } from '../types/voice';
|
|
2
|
+
|
|
3
|
+
export declare const VOICE_STATUS_OPTIONS: readonly [{
|
|
4
|
+
readonly value: VoiceStatus;
|
|
5
|
+
readonly label: "等待中";
|
|
6
|
+
readonly color: "gray";
|
|
7
|
+
readonly description: "等待开始训练";
|
|
8
|
+
}, {
|
|
9
|
+
readonly value: VoiceStatus;
|
|
10
|
+
readonly label: "训练中";
|
|
11
|
+
readonly color: "blue";
|
|
12
|
+
readonly description: "正在进行声音训练";
|
|
13
|
+
}, {
|
|
14
|
+
readonly value: VoiceStatus;
|
|
15
|
+
readonly label: "已完成";
|
|
16
|
+
readonly color: "green";
|
|
17
|
+
readonly description: "训练完成,可以使用";
|
|
18
|
+
}, {
|
|
19
|
+
readonly value: VoiceStatus;
|
|
20
|
+
readonly label: "失败";
|
|
21
|
+
readonly color: "red";
|
|
22
|
+
readonly description: "训练失败";
|
|
23
|
+
}];
|
|
24
|
+
|
|
25
|
+
export declare const VOICE_LANGUAGE_OPTIONS: readonly [{
|
|
26
|
+
readonly value: VoiceLanguage;
|
|
27
|
+
readonly label: "中文(简体)";
|
|
28
|
+
readonly code: "zh-CN";
|
|
29
|
+
}, {
|
|
30
|
+
readonly value: VoiceLanguage;
|
|
31
|
+
readonly label: "English (US)";
|
|
32
|
+
readonly code: "en-US";
|
|
33
|
+
}, {
|
|
34
|
+
readonly value: VoiceLanguage;
|
|
35
|
+
readonly label: "日本語";
|
|
36
|
+
readonly code: "ja-JP";
|
|
37
|
+
}];
|
|
38
|
+
|
|
39
|
+
export declare const AUDIO_FORMAT_OPTIONS: readonly [{
|
|
40
|
+
readonly value: AudioFormat;
|
|
41
|
+
readonly label: "WAV";
|
|
42
|
+
readonly mimeType: "audio/wav";
|
|
43
|
+
readonly extension: ".wav";
|
|
44
|
+
}, {
|
|
45
|
+
readonly value: AudioFormat;
|
|
46
|
+
readonly label: "MP3";
|
|
47
|
+
readonly mimeType: "audio/mpeg";
|
|
48
|
+
readonly extension: ".mp3";
|
|
49
|
+
}, {
|
|
50
|
+
readonly value: AudioFormat;
|
|
51
|
+
readonly label: "FLAC";
|
|
52
|
+
readonly mimeType: "audio/flac";
|
|
53
|
+
readonly extension: ".flac";
|
|
54
|
+
}, {
|
|
55
|
+
readonly value: AudioFormat;
|
|
56
|
+
readonly label: "M4A";
|
|
57
|
+
readonly mimeType: "audio/mp4";
|
|
58
|
+
readonly extension: ".m4a";
|
|
59
|
+
}];
|
|
60
|
+
|
|
61
|
+
export declare const AUDIO_FILE_CONSTRAINTS: {
|
|
62
|
+
readonly maxSize: number;
|
|
63
|
+
readonly minDuration: 5;
|
|
64
|
+
readonly maxDuration: 300;
|
|
65
|
+
readonly acceptedTypes: readonly ["audio/wav", "audio/mpeg", "audio/mp3", "audio/flac", "audio/mp4", "audio/m4a", "audio/x-m4a"];
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export declare const TRAINING_TEXT_CONSTRAINTS: {
|
|
69
|
+
readonly minLength: 5;
|
|
70
|
+
readonly maxLength: 1000;
|
|
71
|
+
readonly recommendedLength: 200;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export declare function getVoiceStatusOption(status: VoiceStatus): {
|
|
75
|
+
readonly value: VoiceStatus;
|
|
76
|
+
readonly label: "等待中";
|
|
77
|
+
readonly color: "gray";
|
|
78
|
+
readonly description: "等待开始训练";
|
|
79
|
+
} | {
|
|
80
|
+
readonly value: VoiceStatus;
|
|
81
|
+
readonly label: "训练中";
|
|
82
|
+
readonly color: "blue";
|
|
83
|
+
readonly description: "正在进行声音训练";
|
|
84
|
+
} | {
|
|
85
|
+
readonly value: VoiceStatus;
|
|
86
|
+
readonly label: "已完成";
|
|
87
|
+
readonly color: "green";
|
|
88
|
+
readonly description: "训练完成,可以使用";
|
|
89
|
+
} | {
|
|
90
|
+
readonly value: VoiceStatus;
|
|
91
|
+
readonly label: "失败";
|
|
92
|
+
readonly color: "red";
|
|
93
|
+
readonly description: "训练失败";
|
|
94
|
+
} | undefined;
|
|
95
|
+
|
|
96
|
+
export declare function getVoiceLanguageOption(language: VoiceLanguage): {
|
|
97
|
+
readonly value: VoiceLanguage;
|
|
98
|
+
readonly label: "中文(简体)";
|
|
99
|
+
readonly code: "zh-CN";
|
|
100
|
+
} | {
|
|
101
|
+
readonly value: VoiceLanguage;
|
|
102
|
+
readonly label: "English (US)";
|
|
103
|
+
readonly code: "en-US";
|
|
104
|
+
} | {
|
|
105
|
+
readonly value: VoiceLanguage;
|
|
106
|
+
readonly label: "日本語";
|
|
107
|
+
readonly code: "ja-JP";
|
|
108
|
+
} | undefined;
|
|
109
|
+
|
|
110
|
+
export declare function getAudioFormatOption(format: AudioFormat): {
|
|
111
|
+
readonly value: AudioFormat;
|
|
112
|
+
readonly label: "WAV";
|
|
113
|
+
readonly mimeType: "audio/wav";
|
|
114
|
+
readonly extension: ".wav";
|
|
115
|
+
} | {
|
|
116
|
+
readonly value: AudioFormat;
|
|
117
|
+
readonly label: "MP3";
|
|
118
|
+
readonly mimeType: "audio/mpeg";
|
|
119
|
+
readonly extension: ".mp3";
|
|
120
|
+
} | {
|
|
121
|
+
readonly value: AudioFormat;
|
|
122
|
+
readonly label: "FLAC";
|
|
123
|
+
readonly mimeType: "audio/flac";
|
|
124
|
+
readonly extension: ".flac";
|
|
125
|
+
} | {
|
|
126
|
+
readonly value: AudioFormat;
|
|
127
|
+
readonly label: "M4A";
|
|
128
|
+
readonly mimeType: "audio/mp4";
|
|
129
|
+
readonly extension: ".m4a";
|
|
130
|
+
} | undefined;
|
|
131
|
+
|
|
132
|
+
export declare function validateAudioFile(file: File): {
|
|
133
|
+
isValid: boolean;
|
|
134
|
+
errorMessage?: string;
|
|
135
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { formatFileSize, formatRemainingTime, formatSpeed } from '../utils';
|
|
2
|
+
|
|
3
|
+
export type DownloadStatus = 'idle' | 'downloading' | 'completed' | 'error';
|
|
4
|
+
|
|
5
|
+
export interface DownloadProgress {
|
|
6
|
+
progress: number;
|
|
7
|
+
downloadedSize: number;
|
|
8
|
+
totalSize: number;
|
|
9
|
+
speed: number;
|
|
10
|
+
remainingTime: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export declare function useCosDownload(): {
|
|
14
|
+
status: Readonly<import('vue').Ref<DownloadStatus, DownloadStatus>>;
|
|
15
|
+
progress: Readonly<import('vue').Ref<{
|
|
16
|
+
readonly progress: number;
|
|
17
|
+
readonly downloadedSize: number;
|
|
18
|
+
readonly totalSize: number;
|
|
19
|
+
readonly speed: number;
|
|
20
|
+
readonly remainingTime: number;
|
|
21
|
+
}, {
|
|
22
|
+
readonly progress: number;
|
|
23
|
+
readonly downloadedSize: number;
|
|
24
|
+
readonly totalSize: number;
|
|
25
|
+
readonly speed: number;
|
|
26
|
+
readonly remainingTime: number;
|
|
27
|
+
}>>;
|
|
28
|
+
error: Readonly<import('vue').Ref<string | null, string | null>>;
|
|
29
|
+
isDownloading: import('vue').ComputedRef<boolean>;
|
|
30
|
+
isCompleted: import('vue').ComputedRef<boolean>;
|
|
31
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
32
|
+
downloadFileFromCOS: (key: string, filename?: string, onProgress?: (progress: DownloadProgress) => void) => Promise<Blob>;
|
|
33
|
+
downloadAndSaveFile: (key: string, filename?: string, _onProgress?: (progress: DownloadProgress) => void) => Promise<void>;
|
|
34
|
+
downloadFileDirectly: (key: string, filename?: string) => Promise<void>;
|
|
35
|
+
resetDownload: () => void;
|
|
36
|
+
formatFileSize: typeof formatFileSize;
|
|
37
|
+
formatSpeed: typeof formatSpeed;
|
|
38
|
+
formatRemainingTime: typeof formatRemainingTime;
|
|
39
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { formatFileSize, formatRemainingTime, formatSpeed } from '../utils';
|
|
2
|
+
|
|
3
|
+
export type UploadStatus = 'idle' | 'uploading' | 'paused' | 'completed' | 'error';
|
|
4
|
+
|
|
5
|
+
export interface UploadProgress {
|
|
6
|
+
progress: number;
|
|
7
|
+
uploadedSize: number;
|
|
8
|
+
totalSize: number;
|
|
9
|
+
speed: number;
|
|
10
|
+
remainingTime: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface UploadResult {
|
|
14
|
+
key: string;
|
|
15
|
+
url: string;
|
|
16
|
+
etag: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export declare function useCosUpload(): {
|
|
20
|
+
status: Readonly<import('vue').Ref<UploadStatus, UploadStatus>>;
|
|
21
|
+
progress: Readonly<import('vue').Ref<{
|
|
22
|
+
readonly progress: number;
|
|
23
|
+
readonly uploadedSize: number;
|
|
24
|
+
readonly totalSize: number;
|
|
25
|
+
readonly speed: number;
|
|
26
|
+
readonly remainingTime: number;
|
|
27
|
+
}, {
|
|
28
|
+
readonly progress: number;
|
|
29
|
+
readonly uploadedSize: number;
|
|
30
|
+
readonly totalSize: number;
|
|
31
|
+
readonly speed: number;
|
|
32
|
+
readonly remainingTime: number;
|
|
33
|
+
}>>;
|
|
34
|
+
error: Readonly<import('vue').Ref<string | null, string | null>>;
|
|
35
|
+
isUploading: import('vue').ComputedRef<boolean>;
|
|
36
|
+
isPaused: import('vue').ComputedRef<boolean>;
|
|
37
|
+
isCompleted: import('vue').ComputedRef<boolean>;
|
|
38
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
39
|
+
uploadFile: (file: File, onProgress?: (progress: UploadProgress) => void) => Promise<UploadResult>;
|
|
40
|
+
uploadFileSimple: (file: File) => Promise<UploadResult>;
|
|
41
|
+
pauseUpload: () => void;
|
|
42
|
+
cancelUpload: () => void;
|
|
43
|
+
resetUpload: () => void;
|
|
44
|
+
formatFileSize: typeof formatFileSize;
|
|
45
|
+
formatSpeed: typeof formatSpeed;
|
|
46
|
+
formatRemainingTime: typeof formatRemainingTime;
|
|
47
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface VideoInfo {
|
|
2
|
+
duration: number;
|
|
3
|
+
resolution: string;
|
|
4
|
+
fileSize: number;
|
|
5
|
+
thumbnailUrl?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export declare function useVideoInfoExtractor(): {
|
|
9
|
+
getVideoInfo: (videoUrl: string, r2Key?: string) => Promise<VideoInfo>;
|
|
10
|
+
clearCache: () => void;
|
|
11
|
+
clearVideoCache: (videoUrl: string, r2Key?: string) => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
3
|
+
|
|
4
|
+
export declare function formatFileSize(bytes: number): string;
|
|
5
|
+
|
|
6
|
+
export declare function formatDuration(seconds: number): string;
|
|
7
|
+
|
|
8
|
+
export declare function formatDate(dateString?: string): string;
|
|
9
|
+
|
|
10
|
+
export declare function formatDateTime(dateString?: string): string;
|
|
11
|
+
|
|
12
|
+
export declare function formatTimestamp(timestamp?: {
|
|
13
|
+
seconds: string | number;
|
|
14
|
+
nanos?: number;
|
|
15
|
+
} | string): string;
|
|
16
|
+
|
|
17
|
+
export declare function getTimestamp(timestamp?: {
|
|
18
|
+
seconds: string | number;
|
|
19
|
+
nanos?: number;
|
|
20
|
+
} | string): number;
|
|
21
|
+
|
|
22
|
+
export declare function formatSpeed(bytesPerSecond: number): string;
|
|
23
|
+
|
|
24
|
+
export declare function formatRemainingTime(seconds: number): string;
|
|
25
|
+
|
|
26
|
+
export declare function formatJsonData(data?: Record<string, unknown>): string;
|
|
27
|
+
|
|
28
|
+
export declare function formatDateForInput(dateString?: string): string;
|
|
29
|
+
|
|
30
|
+
export declare function removeFileExtension(filename: string): string;
|
|
31
|
+
export declare function getVideoThumbnail(videoUrl: string): string;
|
|
32
|
+
|
|
33
|
+
export declare function getCharCount(str: string): number;
|
|
34
|
+
|
|
35
|
+
export declare function exceedsCharLimit(str: string, maxCount: number): boolean;
|
|
36
|
+
|
|
37
|
+
export declare function filterUsersByName(users: Array<{
|
|
38
|
+
id: string;
|
|
39
|
+
username: string;
|
|
40
|
+
}>, searchTerm: string): Array<{
|
|
41
|
+
id: string;
|
|
42
|
+
username: string;
|
|
43
|
+
}>;
|
|
44
|
+
|
|
45
|
+
export declare function isUUID(str: string): boolean;
|
|
46
|
+
|
|
47
|
+
export declare function formatUUID(uuid?: string | null): string;
|
|
48
|
+
|
|
49
|
+
export declare function buildCollectionTaskShareUrl(shareToken: string, recordWebUrl: string, regionKey: string): string;
|
|
File without changes
|