@spatialwalk/avatarkit 1.0.0-beta.37 → 1.0.0-beta.38

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.
@@ -19,6 +19,7 @@ export declare function useCharacterForm(): {
19
19
  characterTemplateId: string;
20
20
  modelSettings: string;
21
21
  language: string;
22
+ clarityLevel: "sd" | "hd" | "uhd";
22
23
  voice: {
23
24
  platform: string;
24
25
  settings: {
@@ -77,6 +78,7 @@ export declare function useCharacterForm(): {
77
78
  characterTemplateId: string;
78
79
  modelSettings: string;
79
80
  language: string;
81
+ clarityLevel: "sd" | "hd" | "uhd";
80
82
  voice: {
81
83
  platform: string;
82
84
  settings: {
@@ -0,0 +1,11 @@
1
+ import { V1GpuTaskStatus, V1GpuTaskType } from '../client/types.gen';
2
+ export declare function useGpuTaskFilters(): {
3
+ taskTypeFilter: import('@vueuse/core').RemovableRef<V1GpuTaskType[]>;
4
+ statusFilter: import('@vueuse/core').RemovableRef<V1GpuTaskStatus[]>;
5
+ search: import('@vueuse/core').RemovableRef<string>;
6
+ timeRangeStart: import('@vueuse/core').RemovableRef<string | undefined>;
7
+ timeRangeEnd: import('@vueuse/core').RemovableRef<string | undefined>;
8
+ getTaskTypes: () => V1GpuTaskType[];
9
+ getStatuses: () => V1GpuTaskStatus[];
10
+ formatDateForApi: (dateString?: string) => string | undefined;
11
+ };
@@ -11,7 +11,6 @@ export declare class WebGPURenderer implements I3DGSRenderer {
11
11
  private sortIndexBuffer;
12
12
  private splatDataBuffer;
13
13
  private storageBindGroup;
14
- private lastSortOrder;
15
14
  private bindGroupNeedsUpdate;
16
15
  private splatCount;
17
16
  private presentationFormat;
@@ -63,6 +63,7 @@ export declare const CharacterFormDataSchema: import('valibot').ObjectSchema<{
63
63
  readonly characterTemplateId: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
64
64
  readonly modelSettings: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
65
65
  readonly language: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, "">;
66
+ readonly clarityLevel: import('valibot').OptionalSchema<import('valibot').PicklistSchema<["sd", "hd", "uhd"], undefined>, "hd">;
66
67
  readonly voice: import('valibot').ObjectSchema<{
67
68
  readonly platform: import('valibot').StringSchema<undefined>;
68
69
  readonly settings: import('valibot').ObjectSchema<{
@@ -0,0 +1,58 @@
1
+ export declare const GPU_TASK_TYPE_OPTIONS: readonly [{
2
+ readonly value: "GPU_TASK_TYPE_VHAP";
3
+ readonly label: "VHAP";
4
+ }];
5
+ export declare const GPU_TASK_STATUS_OPTIONS: readonly [{
6
+ readonly value: "GPU_TASK_STATUS_PENDING";
7
+ readonly label: "待处理";
8
+ }, {
9
+ readonly value: "GPU_TASK_STATUS_SUBMITTED";
10
+ readonly label: "已提交";
11
+ }, {
12
+ readonly value: "GPU_TASK_STATUS_RUNNING";
13
+ readonly label: "运行中";
14
+ }, {
15
+ readonly value: "GPU_TASK_STATUS_UPLOADING";
16
+ readonly label: "上传中";
17
+ }, {
18
+ readonly value: "GPU_TASK_STATUS_COMPLETED";
19
+ readonly label: "已完成";
20
+ }, {
21
+ readonly value: "GPU_TASK_STATUS_FAILED";
22
+ readonly label: "失败";
23
+ }, {
24
+ readonly value: "GPU_TASK_STATUS_CANCELLED";
25
+ readonly label: "已取消";
26
+ }];
27
+ export type GpuTaskType = 'GPU_TASK_TYPE_UNSPECIFIED' | 'GPU_TASK_TYPE_VHAP' | 'GPU_TASK_TYPE_VIDEO_CLEAN';
28
+ export type GpuTaskStatus = 'GPU_TASK_STATUS_UNSPECIFIED' | 'GPU_TASK_STATUS_PENDING' | 'GPU_TASK_STATUS_SUBMITTED' | 'GPU_TASK_STATUS_RUNNING' | 'GPU_TASK_STATUS_UPLOADING' | 'GPU_TASK_STATUS_COMPLETED' | 'GPU_TASK_STATUS_FAILED' | 'GPU_TASK_STATUS_CANCELLED';
29
+ export type GpuTaskErrorType = 'GPU_TASK_ERROR_TYPE_UNSPECIFIED' | 'GPU_TASK_ERROR_TYPE_NONE' | 'GPU_TASK_ERROR_TYPE_NETWORK_ERROR' | 'GPU_TASK_ERROR_TYPE_PROCESSING_ERROR' | 'GPU_TASK_ERROR_TYPE_TIMEOUT' | 'GPU_TASK_ERROR_TYPE_RESOURCE_ERROR' | 'GPU_TASK_ERROR_TYPE_UNKNOWN';
30
+ export interface GpuTask {
31
+ id?: string;
32
+ taskType?: GpuTaskType;
33
+ status?: GpuTaskStatus;
34
+ refId?: string;
35
+ inputConfig?: Record<string, unknown>;
36
+ outputResult?: Record<string, unknown>;
37
+ errorType?: GpuTaskErrorType;
38
+ errorMessage?: string;
39
+ retryCount?: number;
40
+ retryable?: boolean;
41
+ currentStage?: string;
42
+ progressPercent?: number;
43
+ processingDuration?: number;
44
+ gongjiTaskId?: number;
45
+ gongjiInstanceId?: string;
46
+ createdAt?: string;
47
+ startedAt?: string;
48
+ completedAt?: string;
49
+ lastHeartbeat?: string;
50
+ }
51
+ export interface GpuTaskStats {
52
+ total?: number;
53
+ pending?: number;
54
+ running?: number;
55
+ completed?: number;
56
+ failed?: number;
57
+ byType?: Record<string, number>;
58
+ }
@@ -41,5 +41,6 @@ export interface TaskData {
41
41
  no_terminate_on_finish?: boolean;
42
42
  downsample_scales?: number;
43
43
  iteration?: number;
44
+ points_save_numbers?: string;
44
45
  [key: string]: unknown;
45
46
  }
@@ -16,12 +16,16 @@ export interface ModelConfig {
16
16
  x?: number;
17
17
  y?: number;
18
18
  z?: number;
19
+ weightX?: number;
20
+ weightY?: number;
21
+ weightZ?: number;
19
22
  };
20
23
  expressionWeight?: number;
21
24
  jawPose?: {
22
25
  x?: number;
23
26
  y?: number;
24
27
  z?: number;
28
+ weight?: number;
25
29
  };
26
30
  rotation?: {
27
31
  x?: number;
@@ -0,0 +1,15 @@
1
+ import { V1GpuTaskErrorType, V1GpuTaskStatus, V1GpuTaskType } from '../client/types.gen';
2
+
3
+ export declare function getGpuTaskTypeDisplay(taskType?: V1GpuTaskType): string;
4
+
5
+ export declare function getGpuTaskStatusDisplay(status?: V1GpuTaskStatus): string;
6
+
7
+ export declare function getGpuTaskStatusClass(status?: V1GpuTaskStatus): string;
8
+
9
+ export declare function getGpuTaskErrorTypeDisplay(errorType?: V1GpuTaskErrorType): string;
10
+
11
+ export declare function formatProcessingDuration(seconds?: number): string;
12
+
13
+ export declare function canRetryTask(status?: V1GpuTaskStatus, retryable?: boolean): boolean;
14
+
15
+ export declare function canCancelTask(status?: V1GpuTaskStatus): boolean;
@@ -1,2 +1,2 @@
1
- declare const _default: import('vite').UserConfig;
1
+ declare const _default: import('vite').UserConfig & Promise<import('vite').UserConfig> & (import('vite').UserConfigFnObject & import('vite').UserConfigExport);
2
2
  export default _default;
@@ -39,16 +39,17 @@ export declare class StreamingAudioPlayer {
39
39
  private scheduleNextChunk;
40
40
  private pcmToAudioBuffer;
41
41
  getCurrentTime(): number;
42
+ getBufferedDuration(): number;
43
+ getAudioContextTime(): number;
42
44
  pause(): void;
43
45
  resume(): Promise<void>;
46
+ seek(targetTime: number, referenceAudioContextTime?: number): void;
44
47
  stop(): void;
45
48
  setAutoStart(enabled: boolean): void;
46
49
  play(): void;
47
50
  markEnded(): void;
48
51
  onEnded(callback: () => void): void;
49
52
  isPlayingNow(): boolean;
50
- getBufferedDuration(): number;
51
- getRemainingDuration(): number;
52
53
  dispose(): void;
53
54
  flush(options?: {
54
55
  hard?: boolean;
@@ -1,20 +1,7 @@
1
- import { Environment } from '../types';
2
- export declare const CLS_TRACK_EVENTS: boolean;
3
-
4
- export declare function getCLSConfig(environment: Environment): {
5
- endpoint: string;
6
- topicId: string;
7
- secretId: string;
8
- secretKey: string;
9
- token: string;
10
- };
11
- export declare const CLS_CONFIG: {
12
- endpoint: string;
13
- topicId: string;
14
- secretId: string;
15
- secretKey: string;
16
- token: string;
17
- };
1
+ export declare const POSTHOG_HOST: string;
2
+ export declare const POSTHOG_API_KEY: string;
3
+ export declare const POSTHOG_TRACK_EVENTS: boolean;
4
+ export declare const POSTHOG_PROJECT_NAME: string;
18
5
  export declare const ENV_TEST: boolean;
19
6
 
20
7
  export declare function isDebugMode(): boolean;
@@ -5,8 +5,11 @@ export declare class AvatarManager {
5
5
  private avatarDownloader;
6
6
  private avatarCache;
7
7
  private loadingPromises;
8
+ private downloadQueue;
9
+ private isDownloading;
8
10
  static get shared(): AvatarManager;
9
11
  load(id: string, onProgress?: (progress: LoadProgressInfo) => void): Promise<Avatar>;
12
+ private processDownloadQueue;
10
13
  private doLoad;
11
14
  retrieve(id: string): Avatar | undefined;
12
15
  clear(id: string): void;