@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.
- package/CHANGELOG.md +8 -0
- package/dist/{StreamingAudioPlayer-gV0axCZe.js → StreamingAudioPlayer-cqWu1mBO.js} +77 -16
- package/dist/admin/generated/console/v1/gpu_task.d.ts +274 -0
- package/dist/admin/generated/google/protobuf/descriptor.d.ts +0 -39
- package/dist/admin/generated/platform/v1/character.d.ts +3 -0
- package/dist/admin/generated/platform/v1/gpu_task.d.ts +268 -0
- package/dist/admin/src/apis/useGpuTaskApi.d.ts +41 -0
- package/dist/admin/src/client/sdk.gen.d.ts +21 -1
- package/dist/admin/src/client/types.gen.d.ts +247 -0
- package/dist/admin/src/client/valibot.gen.d.ts +478 -0
- package/dist/admin/src/composables/useCharacterForm.d.ts +2 -0
- package/dist/admin/src/composables/useGpuTaskFilters.d.ts +11 -0
- package/dist/admin/src/renderSystem/renderer/webgpu/webgpuRenderer.d.ts +0 -1
- package/dist/admin/src/types/character.d.ts +1 -0
- package/dist/admin/src/types/gpu-task.d.ts +58 -0
- package/dist/admin/src/types/task.d.ts +1 -0
- package/dist/admin/src/types/test-ground.d.ts +4 -0
- package/dist/admin/src/utils/gpu-task.d.ts +15 -0
- package/dist/admin/vite.config.d.ts +1 -1
- package/dist/audio/StreamingAudioPlayer.d.ts +3 -2
- package/dist/config/constants.d.ts +4 -17
- package/dist/core/AvatarManager.d.ts +3 -0
- package/dist/{index-DxIr4cus.js → index-CubTNa__.js} +5359 -744
- package/dist/index.js +1 -1
- package/dist/utils/{cls-tracker.d.ts → posthog-tracker.d.ts} +4 -4
- package/package.json +3 -2
|
@@ -81,6 +81,7 @@ export type CharacterServiceUpdateCharacterBody = {
|
|
|
81
81
|
assetGroupIds?: Array<string>;
|
|
82
82
|
encoderStartFrame?: number;
|
|
83
83
|
language?: string;
|
|
84
|
+
clarityLevel?: string;
|
|
84
85
|
};
|
|
85
86
|
export type CharacterTemplateServiceUpdateCharacterTemplateBody = {
|
|
86
87
|
name?: string;
|
|
@@ -103,6 +104,14 @@ export type ConfigKvServiceUpdateConfigKvBody = {
|
|
|
103
104
|
value?: string;
|
|
104
105
|
description?: string;
|
|
105
106
|
};
|
|
107
|
+
|
|
108
|
+
export type GpuTaskServiceCancelGpuTaskBody = {
|
|
109
|
+
[key: string]: unknown;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export type GpuTaskServiceRetryGpuTaskBody = {
|
|
113
|
+
[key: string]: unknown;
|
|
114
|
+
};
|
|
106
115
|
export type ProviderServiceUpdateProviderBody = {
|
|
107
116
|
name?: string;
|
|
108
117
|
type?: V1ProviderType;
|
|
@@ -807,6 +816,9 @@ export type V1BrainSettings = {
|
|
|
807
816
|
platform?: string;
|
|
808
817
|
settings?: V1BrainProviderSettings;
|
|
809
818
|
};
|
|
819
|
+
export type V1CancelGpuTaskResponse = {
|
|
820
|
+
gpuTask?: V1GpuTask;
|
|
821
|
+
};
|
|
810
822
|
|
|
811
823
|
export type V1ChangePasswordRequest = {
|
|
812
824
|
oldPassword?: string;
|
|
@@ -1025,6 +1037,7 @@ export type V1CreateCharacterRequest = {
|
|
|
1025
1037
|
encoderStartFrame?: number;
|
|
1026
1038
|
characterTemplateId?: string;
|
|
1027
1039
|
language?: string;
|
|
1040
|
+
clarityLevel?: string;
|
|
1028
1041
|
};
|
|
1029
1042
|
export type V1CreateCharacterResponse = {
|
|
1030
1043
|
character?: V1Character;
|
|
@@ -1068,6 +1081,17 @@ export type V1CreateConfigKvResponse = {
|
|
|
1068
1081
|
config?: V1ConfigKv;
|
|
1069
1082
|
};
|
|
1070
1083
|
|
|
1084
|
+
export type V1CreateGpuTaskRequest = {
|
|
1085
|
+
taskType?: V1GpuTaskType;
|
|
1086
|
+
refId?: string;
|
|
1087
|
+
inputConfig?: {
|
|
1088
|
+
[key: string]: unknown;
|
|
1089
|
+
};
|
|
1090
|
+
};
|
|
1091
|
+
export type V1CreateGpuTaskResponse = {
|
|
1092
|
+
gpuTask?: V1GpuTask;
|
|
1093
|
+
};
|
|
1094
|
+
|
|
1071
1095
|
export type V1CreateMaterialRequest = {
|
|
1072
1096
|
type?: V1MaterialType;
|
|
1073
1097
|
name?: string;
|
|
@@ -1259,6 +1283,7 @@ export type V1FullCharacter = {
|
|
|
1259
1283
|
encoderStartFrame?: number;
|
|
1260
1284
|
characterTemplateId?: string;
|
|
1261
1285
|
language?: string;
|
|
1286
|
+
clarityLevel?: string;
|
|
1262
1287
|
};
|
|
1263
1288
|
export type V1GetAppResponse = {
|
|
1264
1289
|
app?: V1App;
|
|
@@ -1301,6 +1326,16 @@ export type V1GetCollectionTaskResponse = {
|
|
|
1301
1326
|
export type V1GetConfigKvResponse = {
|
|
1302
1327
|
config?: V1ConfigKv;
|
|
1303
1328
|
};
|
|
1329
|
+
export type V1GetGpuTaskLogsResponse = {
|
|
1330
|
+
logs?: string;
|
|
1331
|
+
gongjiStatus?: string;
|
|
1332
|
+
};
|
|
1333
|
+
export type V1GetGpuTaskResponse = {
|
|
1334
|
+
gpuTask?: V1GpuTask;
|
|
1335
|
+
};
|
|
1336
|
+
export type V1GetGpuTaskStatsResponse = {
|
|
1337
|
+
stats?: V1GpuTaskStats;
|
|
1338
|
+
};
|
|
1304
1339
|
export type V1GetMaterialResponse = {
|
|
1305
1340
|
material?: V1Material;
|
|
1306
1341
|
taskId?: string;
|
|
@@ -1329,6 +1364,74 @@ export type V1GetVoiceResponse = {
|
|
|
1329
1364
|
export type V1GetVoiceTrainingStatusResponse = {
|
|
1330
1365
|
voice?: V1Voice;
|
|
1331
1366
|
};
|
|
1367
|
+
|
|
1368
|
+
export type V1GpuTask = {
|
|
1369
|
+
id?: string;
|
|
1370
|
+
taskType?: V1GpuTaskType;
|
|
1371
|
+
status?: V1GpuTaskStatus;
|
|
1372
|
+
refId?: string;
|
|
1373
|
+
inputConfig?: {
|
|
1374
|
+
[key: string]: unknown;
|
|
1375
|
+
};
|
|
1376
|
+
outputResult?: {
|
|
1377
|
+
[key: string]: unknown;
|
|
1378
|
+
};
|
|
1379
|
+
errorType?: V1GpuTaskErrorType;
|
|
1380
|
+
errorMessage?: string;
|
|
1381
|
+
retryCount?: number;
|
|
1382
|
+
retryable?: boolean;
|
|
1383
|
+
currentStage?: string;
|
|
1384
|
+
progressPercent?: number;
|
|
1385
|
+
processingDuration?: number;
|
|
1386
|
+
gongjiTaskId?: number;
|
|
1387
|
+
gongjiInstanceId?: string;
|
|
1388
|
+
createdAt?: string;
|
|
1389
|
+
startedAt?: string;
|
|
1390
|
+
completedAt?: string;
|
|
1391
|
+
lastHeartbeat?: string;
|
|
1392
|
+
};
|
|
1393
|
+
|
|
1394
|
+
export type V1GpuTaskErrorType = '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_STORAGE_ERROR' | 'GPU_TASK_ERROR_TYPE_GPU_ERROR';
|
|
1395
|
+
|
|
1396
|
+
export type V1GpuTaskHeartbeatRequest = {
|
|
1397
|
+
taskId?: string;
|
|
1398
|
+
status?: V1GpuTaskStatus;
|
|
1399
|
+
progressPercent?: number;
|
|
1400
|
+
stage?: string;
|
|
1401
|
+
};
|
|
1402
|
+
export type V1GpuTaskHeartbeatResponse = {
|
|
1403
|
+
success?: boolean;
|
|
1404
|
+
message?: string;
|
|
1405
|
+
};
|
|
1406
|
+
|
|
1407
|
+
export type V1GpuTaskResultsRequest = {
|
|
1408
|
+
taskId?: string;
|
|
1409
|
+
success?: boolean;
|
|
1410
|
+
outputResult?: {
|
|
1411
|
+
[key: string]: unknown;
|
|
1412
|
+
};
|
|
1413
|
+
processingDuration?: number;
|
|
1414
|
+
errorMessage?: string;
|
|
1415
|
+
};
|
|
1416
|
+
export type V1GpuTaskResultsResponse = {
|
|
1417
|
+
success?: boolean;
|
|
1418
|
+
message?: string;
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1421
|
+
export type V1GpuTaskStats = {
|
|
1422
|
+
total?: string;
|
|
1423
|
+
pending?: string;
|
|
1424
|
+
running?: string;
|
|
1425
|
+
completed?: string;
|
|
1426
|
+
failed?: string;
|
|
1427
|
+
byType?: {
|
|
1428
|
+
[key: string]: string;
|
|
1429
|
+
};
|
|
1430
|
+
};
|
|
1431
|
+
|
|
1432
|
+
export type V1GpuTaskStatus = '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';
|
|
1433
|
+
|
|
1434
|
+
export type V1GpuTaskType = 'GPU_TASK_TYPE_UNSPECIFIED' | 'GPU_TASK_TYPE_VHAP' | 'GPU_TASK_TYPE_VIDEO_CLEAN';
|
|
1332
1435
|
export type V1HeartbeatResponse = {
|
|
1333
1436
|
data?: {
|
|
1334
1437
|
[key: string]: string;
|
|
@@ -1419,6 +1522,10 @@ export type V1ListConfigKvsResponse = {
|
|
|
1419
1522
|
configs?: Array<V1ConfigKv>;
|
|
1420
1523
|
pagination?: V1PaginationResponse;
|
|
1421
1524
|
};
|
|
1525
|
+
export type V1ListGpuTasksResponse = {
|
|
1526
|
+
gpuTasks?: Array<V1GpuTask>;
|
|
1527
|
+
pagination?: V1PaginationResponse;
|
|
1528
|
+
};
|
|
1422
1529
|
|
|
1423
1530
|
export type V1ListJoiModelAppliesResponse = {
|
|
1424
1531
|
applies?: Array<V1JoiModelApply>;
|
|
@@ -1428,6 +1535,10 @@ export type V1ListMaterialsResponse = {
|
|
|
1428
1535
|
materials?: Array<V1Material>;
|
|
1429
1536
|
pagination?: V1PaginationResponse;
|
|
1430
1537
|
};
|
|
1538
|
+
export type V1ListOssVideosResponse = {
|
|
1539
|
+
videos?: Array<V1OssVideo>;
|
|
1540
|
+
pagination?: V1PaginationResponse;
|
|
1541
|
+
};
|
|
1431
1542
|
export type V1ListProvidersResponse = {
|
|
1432
1543
|
providers?: Array<V1Provider>;
|
|
1433
1544
|
pagination?: V1PaginationResponse;
|
|
@@ -1497,6 +1608,12 @@ export type V1oAuthLoginResponse = {
|
|
|
1497
1608
|
isNewUser?: boolean;
|
|
1498
1609
|
};
|
|
1499
1610
|
|
|
1611
|
+
export type V1OssVideo = {
|
|
1612
|
+
ossKey?: string;
|
|
1613
|
+
sizeBytes?: string;
|
|
1614
|
+
lastModified?: string;
|
|
1615
|
+
};
|
|
1616
|
+
|
|
1500
1617
|
export type V1PaginationRequest = {
|
|
1501
1618
|
pageSize?: number;
|
|
1502
1619
|
pageToken?: string;
|
|
@@ -1563,6 +1680,9 @@ export type V1Response = {
|
|
|
1563
1680
|
data?: Array<ProtobufAny>;
|
|
1564
1681
|
errors?: Array<V1ErrorObject>;
|
|
1565
1682
|
};
|
|
1683
|
+
export type V1RetryGpuTaskResponse = {
|
|
1684
|
+
gpuTask?: V1GpuTask;
|
|
1685
|
+
};
|
|
1566
1686
|
|
|
1567
1687
|
export type V1SendVerificationCodeRequest = {
|
|
1568
1688
|
type?: V1VerificationCodeType;
|
|
@@ -3188,6 +3308,133 @@ export type InstanceManagementServiceListContainerImageTags2Responses = {
|
|
|
3188
3308
|
200: Platformv1ListContainerImageTagsResponse;
|
|
3189
3309
|
};
|
|
3190
3310
|
export type InstanceManagementServiceListContainerImageTags2Response = InstanceManagementServiceListContainerImageTags2Responses[keyof InstanceManagementServiceListContainerImageTags2Responses];
|
|
3311
|
+
export type GpuTaskServiceListGpuTasksData = {
|
|
3312
|
+
body?: never;
|
|
3313
|
+
path?: never;
|
|
3314
|
+
query?: {
|
|
3315
|
+
'pagination.pageSize'?: number;
|
|
3316
|
+
'pagination.pageToken'?: string;
|
|
3317
|
+
taskTypes?: Array<'GPU_TASK_TYPE_UNSPECIFIED' | 'GPU_TASK_TYPE_VHAP' | 'GPU_TASK_TYPE_VIDEO_CLEAN'>;
|
|
3318
|
+
statuses?: Array<'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'>;
|
|
3319
|
+
refId?: string;
|
|
3320
|
+
search?: string;
|
|
3321
|
+
|
|
3322
|
+
'timeRange.start'?: string;
|
|
3323
|
+
|
|
3324
|
+
'timeRange.end'?: string;
|
|
3325
|
+
};
|
|
3326
|
+
url: '/v1/gpu-tasks';
|
|
3327
|
+
};
|
|
3328
|
+
export type GpuTaskServiceListGpuTasksResponses = {
|
|
3329
|
+
200: V1ListGpuTasksResponse;
|
|
3330
|
+
};
|
|
3331
|
+
export type GpuTaskServiceListGpuTasksResponse = GpuTaskServiceListGpuTasksResponses[keyof GpuTaskServiceListGpuTasksResponses];
|
|
3332
|
+
export type GpuTaskServiceCreateGpuTaskData = {
|
|
3333
|
+
body: V1CreateGpuTaskRequest;
|
|
3334
|
+
path?: never;
|
|
3335
|
+
query?: never;
|
|
3336
|
+
url: '/v1/gpu-tasks';
|
|
3337
|
+
};
|
|
3338
|
+
export type GpuTaskServiceCreateGpuTaskResponses = {
|
|
3339
|
+
200: V1CreateGpuTaskResponse;
|
|
3340
|
+
};
|
|
3341
|
+
export type GpuTaskServiceCreateGpuTaskResponse = GpuTaskServiceCreateGpuTaskResponses[keyof GpuTaskServiceCreateGpuTaskResponses];
|
|
3342
|
+
export type GpuTaskCallbackServiceReportHeartbeatData = {
|
|
3343
|
+
body: V1GpuTaskHeartbeatRequest;
|
|
3344
|
+
path?: never;
|
|
3345
|
+
query?: never;
|
|
3346
|
+
url: '/v1/gpu-tasks/heartbeat';
|
|
3347
|
+
};
|
|
3348
|
+
export type GpuTaskCallbackServiceReportHeartbeatResponses = {
|
|
3349
|
+
200: V1GpuTaskHeartbeatResponse;
|
|
3350
|
+
};
|
|
3351
|
+
export type GpuTaskCallbackServiceReportHeartbeatResponse = GpuTaskCallbackServiceReportHeartbeatResponses[keyof GpuTaskCallbackServiceReportHeartbeatResponses];
|
|
3352
|
+
export type GpuTaskCallbackServiceUploadResultsData = {
|
|
3353
|
+
body: V1GpuTaskResultsRequest;
|
|
3354
|
+
path?: never;
|
|
3355
|
+
query?: never;
|
|
3356
|
+
url: '/v1/gpu-tasks/results';
|
|
3357
|
+
};
|
|
3358
|
+
export type GpuTaskCallbackServiceUploadResultsResponses = {
|
|
3359
|
+
200: V1GpuTaskResultsResponse;
|
|
3360
|
+
};
|
|
3361
|
+
export type GpuTaskCallbackServiceUploadResultsResponse = GpuTaskCallbackServiceUploadResultsResponses[keyof GpuTaskCallbackServiceUploadResultsResponses];
|
|
3362
|
+
export type GpuTaskServiceGetGpuTaskStatsData = {
|
|
3363
|
+
body?: never;
|
|
3364
|
+
path?: never;
|
|
3365
|
+
query?: {
|
|
3366
|
+
|
|
3367
|
+
taskType?: 'GPU_TASK_TYPE_UNSPECIFIED' | 'GPU_TASK_TYPE_VHAP' | 'GPU_TASK_TYPE_VIDEO_CLEAN';
|
|
3368
|
+
};
|
|
3369
|
+
url: '/v1/gpu-tasks/stats';
|
|
3370
|
+
};
|
|
3371
|
+
export type GpuTaskServiceGetGpuTaskStatsResponses = {
|
|
3372
|
+
200: V1GetGpuTaskStatsResponse;
|
|
3373
|
+
};
|
|
3374
|
+
export type GpuTaskServiceGetGpuTaskStatsResponse = GpuTaskServiceGetGpuTaskStatsResponses[keyof GpuTaskServiceGetGpuTaskStatsResponses];
|
|
3375
|
+
export type GpuTaskServiceListOssVideosData = {
|
|
3376
|
+
body?: never;
|
|
3377
|
+
path?: never;
|
|
3378
|
+
query?: {
|
|
3379
|
+
'pagination.pageSize'?: number;
|
|
3380
|
+
'pagination.pageToken'?: string;
|
|
3381
|
+
taskType?: 'GPU_TASK_TYPE_UNSPECIFIED' | 'GPU_TASK_TYPE_VHAP' | 'GPU_TASK_TYPE_VIDEO_CLEAN';
|
|
3382
|
+
ossKeyPrefix?: string;
|
|
3383
|
+
};
|
|
3384
|
+
url: '/v1/gpu-tasks/videos';
|
|
3385
|
+
};
|
|
3386
|
+
export type GpuTaskServiceListOssVideosResponses = {
|
|
3387
|
+
200: V1ListOssVideosResponse;
|
|
3388
|
+
};
|
|
3389
|
+
export type GpuTaskServiceListOssVideosResponse = GpuTaskServiceListOssVideosResponses[keyof GpuTaskServiceListOssVideosResponses];
|
|
3390
|
+
export type GpuTaskServiceGetGpuTaskData = {
|
|
3391
|
+
body?: never;
|
|
3392
|
+
path: {
|
|
3393
|
+
id: string;
|
|
3394
|
+
};
|
|
3395
|
+
query?: never;
|
|
3396
|
+
url: '/v1/gpu-tasks/{id}';
|
|
3397
|
+
};
|
|
3398
|
+
export type GpuTaskServiceGetGpuTaskResponses = {
|
|
3399
|
+
200: V1GetGpuTaskResponse;
|
|
3400
|
+
};
|
|
3401
|
+
export type GpuTaskServiceGetGpuTaskResponse = GpuTaskServiceGetGpuTaskResponses[keyof GpuTaskServiceGetGpuTaskResponses];
|
|
3402
|
+
export type GpuTaskServiceCancelGpuTaskData = {
|
|
3403
|
+
body: GpuTaskServiceCancelGpuTaskBody;
|
|
3404
|
+
path: {
|
|
3405
|
+
id: string;
|
|
3406
|
+
};
|
|
3407
|
+
query?: never;
|
|
3408
|
+
url: '/v1/gpu-tasks/{id}/cancel';
|
|
3409
|
+
};
|
|
3410
|
+
export type GpuTaskServiceCancelGpuTaskResponses = {
|
|
3411
|
+
200: V1CancelGpuTaskResponse;
|
|
3412
|
+
};
|
|
3413
|
+
export type GpuTaskServiceCancelGpuTaskResponse = GpuTaskServiceCancelGpuTaskResponses[keyof GpuTaskServiceCancelGpuTaskResponses];
|
|
3414
|
+
export type GpuTaskServiceGetGpuTaskLogsData = {
|
|
3415
|
+
body?: never;
|
|
3416
|
+
path: {
|
|
3417
|
+
id: string;
|
|
3418
|
+
};
|
|
3419
|
+
query?: never;
|
|
3420
|
+
url: '/v1/gpu-tasks/{id}/logs';
|
|
3421
|
+
};
|
|
3422
|
+
export type GpuTaskServiceGetGpuTaskLogsResponses = {
|
|
3423
|
+
200: V1GetGpuTaskLogsResponse;
|
|
3424
|
+
};
|
|
3425
|
+
export type GpuTaskServiceGetGpuTaskLogsResponse = GpuTaskServiceGetGpuTaskLogsResponses[keyof GpuTaskServiceGetGpuTaskLogsResponses];
|
|
3426
|
+
export type GpuTaskServiceRetryGpuTaskData = {
|
|
3427
|
+
body: GpuTaskServiceRetryGpuTaskBody;
|
|
3428
|
+
path: {
|
|
3429
|
+
id: string;
|
|
3430
|
+
};
|
|
3431
|
+
query?: never;
|
|
3432
|
+
url: '/v1/gpu-tasks/{id}/retry';
|
|
3433
|
+
};
|
|
3434
|
+
export type GpuTaskServiceRetryGpuTaskResponses = {
|
|
3435
|
+
200: V1RetryGpuTaskResponse;
|
|
3436
|
+
};
|
|
3437
|
+
export type GpuTaskServiceRetryGpuTaskResponse = GpuTaskServiceRetryGpuTaskResponses[keyof GpuTaskServiceRetryGpuTaskResponses];
|
|
3191
3438
|
export type InstanceManagementServiceListInstances2Data = {
|
|
3192
3439
|
body?: never;
|
|
3193
3440
|
path?: never;
|