@spatialwalk/avatarkit 1.0.0-beta.37 → 1.0.0-beta.39
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/dist/{StreamingAudioPlayer-gV0axCZe.js → StreamingAudioPlayer-BD-LSSrW.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-BJ9Cdos-.js} +5397 -775
- package/dist/index.js +1 -1
- package/dist/utils/{cls-tracker.d.ts → posthog-tracker.d.ts} +4 -4
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,19 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.0.0-beta.39] - 2025-12-27
|
|
9
|
+
|
|
10
|
+
### 🔧 Improvements
|
|
11
|
+
- Filter localhost domain from telemetry reporting to avoid test data pollution
|
|
12
|
+
|
|
13
|
+
## [1.0.0-beta.38] - 2025-12-27
|
|
14
|
+
|
|
15
|
+
### 🔄 Breaking Changes
|
|
16
|
+
- Migrated telemetry reporting from Tencent Cloud CLS to PostHog
|
|
17
|
+
|
|
18
|
+
### ✨ New Features
|
|
19
|
+
- Implemented download queue for character resource loading
|
|
20
|
+
|
|
8
21
|
## [1.0.0-beta.37] - 2025-12-24
|
|
9
22
|
|
|
10
23
|
### 🐛 Bugfix
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { A as APP_CONFIG, e as errorToMessage, l as logEvent, a as logger } from "./index-
|
|
4
|
+
import { A as APP_CONFIG, e as errorToMessage, l as logEvent, a as logger } from "./index-BJ9Cdos-.js";
|
|
5
5
|
class StreamingAudioPlayer {
|
|
6
6
|
constructor(options) {
|
|
7
7
|
__publicField(this, "audioContext", null);
|
|
@@ -273,6 +273,21 @@ class StreamingAudioPlayer {
|
|
|
273
273
|
}
|
|
274
274
|
return Math.max(0, totalPlayedDuration);
|
|
275
275
|
}
|
|
276
|
+
getBufferedDuration() {
|
|
277
|
+
if (!this.audioContext) {
|
|
278
|
+
return 0;
|
|
279
|
+
}
|
|
280
|
+
let totalDuration = 0;
|
|
281
|
+
for (const chunk of this.audioChunks) {
|
|
282
|
+
const chunkDuration = chunk.data.length / (this.sampleRate * this.channelCount * 2);
|
|
283
|
+
totalDuration += chunkDuration;
|
|
284
|
+
}
|
|
285
|
+
return totalDuration;
|
|
286
|
+
}
|
|
287
|
+
getAudioContextTime() {
|
|
288
|
+
var _a;
|
|
289
|
+
return ((_a = this.audioContext) == null ? void 0 : _a.currentTime) ?? 0;
|
|
290
|
+
}
|
|
276
291
|
pause() {
|
|
277
292
|
if (!this.isPlaying || this.isPaused || !this.audioContext) {
|
|
278
293
|
return;
|
|
@@ -319,6 +334,67 @@ class StreamingAudioPlayer {
|
|
|
319
334
|
audioContextState: this.audioContext.state
|
|
320
335
|
});
|
|
321
336
|
}
|
|
337
|
+
seek(targetTime, referenceAudioContextTime) {
|
|
338
|
+
if (!this.audioContext) {
|
|
339
|
+
logger.warn("[StreamingAudioPlayer] Cannot seek: AudioContext not initialized");
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
if (this.isPaused && this.audioContext.state === "suspended") {
|
|
343
|
+
this.audioContext.resume().catch(() => {
|
|
344
|
+
});
|
|
345
|
+
this.isPaused = false;
|
|
346
|
+
}
|
|
347
|
+
for (const source of this.activeSources) {
|
|
348
|
+
source.onended = null;
|
|
349
|
+
try {
|
|
350
|
+
source.stop(0);
|
|
351
|
+
} catch {
|
|
352
|
+
}
|
|
353
|
+
try {
|
|
354
|
+
source.disconnect();
|
|
355
|
+
} catch {
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
this.activeSources.clear();
|
|
359
|
+
let accumulatedDuration = 0;
|
|
360
|
+
let targetChunkIndex = 0;
|
|
361
|
+
let targetChunkOffset = 0;
|
|
362
|
+
for (let i = 0; i < this.audioChunks.length; i++) {
|
|
363
|
+
const chunk = this.audioChunks[i];
|
|
364
|
+
const chunkDuration = chunk.data.length / (this.sampleRate * this.channelCount * 2);
|
|
365
|
+
if (accumulatedDuration + chunkDuration >= targetTime) {
|
|
366
|
+
targetChunkIndex = i;
|
|
367
|
+
targetChunkOffset = targetTime - accumulatedDuration;
|
|
368
|
+
break;
|
|
369
|
+
}
|
|
370
|
+
accumulatedDuration += chunkDuration;
|
|
371
|
+
}
|
|
372
|
+
if (targetTime >= accumulatedDuration) {
|
|
373
|
+
targetChunkIndex = this.audioChunks.length;
|
|
374
|
+
targetChunkOffset = 0;
|
|
375
|
+
}
|
|
376
|
+
this.scheduledChunks = targetChunkIndex;
|
|
377
|
+
this.scheduledChunkInfo = [];
|
|
378
|
+
const currentAudioTime = referenceAudioContextTime ?? this.audioContext.currentTime;
|
|
379
|
+
this.sessionStartTime = currentAudioTime - targetTime;
|
|
380
|
+
this.scheduledTime = currentAudioTime;
|
|
381
|
+
if (targetChunkOffset > 0 && targetChunkIndex < this.audioChunks.length) {
|
|
382
|
+
const offsetSamples = Math.floor(targetChunkOffset * this.sampleRate * this.channelCount * 2);
|
|
383
|
+
if (offsetSamples > 0 && offsetSamples < this.audioChunks[targetChunkIndex].data.length) {
|
|
384
|
+
this.audioChunks[targetChunkIndex].data = this.audioChunks[targetChunkIndex].data.slice(offsetSamples);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
if (this.isPlaying && !this.isPaused) {
|
|
388
|
+
this.scheduleAllChunks();
|
|
389
|
+
}
|
|
390
|
+
this.log("Seeked to position", {
|
|
391
|
+
targetTime,
|
|
392
|
+
targetChunkIndex,
|
|
393
|
+
targetChunkOffset,
|
|
394
|
+
scheduledChunks: this.scheduledChunks,
|
|
395
|
+
sessionStartTime: this.sessionStartTime
|
|
396
|
+
});
|
|
397
|
+
}
|
|
322
398
|
stop() {
|
|
323
399
|
if (!this.audioContext) {
|
|
324
400
|
return;
|
|
@@ -372,21 +448,6 @@ class StreamingAudioPlayer {
|
|
|
372
448
|
isPlayingNow() {
|
|
373
449
|
return this.isPlaying && !this.isPaused;
|
|
374
450
|
}
|
|
375
|
-
getBufferedDuration() {
|
|
376
|
-
if (!this.audioContext) {
|
|
377
|
-
return 0;
|
|
378
|
-
}
|
|
379
|
-
let totalSamples = 0;
|
|
380
|
-
for (const chunk of this.audioChunks) {
|
|
381
|
-
totalSamples += chunk.data.length / 2 / this.channelCount;
|
|
382
|
-
}
|
|
383
|
-
return totalSamples / this.sampleRate;
|
|
384
|
-
}
|
|
385
|
-
getRemainingDuration() {
|
|
386
|
-
const total = this.getBufferedDuration();
|
|
387
|
-
const played = this.getCurrentTime();
|
|
388
|
-
return Math.max(0, total - played);
|
|
389
|
-
}
|
|
390
451
|
dispose() {
|
|
391
452
|
this.stop();
|
|
392
453
|
if (this.audioContext) {
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from '@bufbuild/protobuf/wire';
|
|
2
|
+
import { Timestamp } from '../../google/protobuf/timestamp';
|
|
3
|
+
import { PaginationRequest, PaginationResponse, TimeRange } from '../../jsonapi/v1/base';
|
|
4
|
+
export declare const protobufPackage = "console.v1";
|
|
5
|
+
|
|
6
|
+
export declare enum GpuTaskType {
|
|
7
|
+
GPU_TASK_TYPE_UNSPECIFIED = 0,
|
|
8
|
+
GPU_TASK_TYPE_VHAP = 1,
|
|
9
|
+
GPU_TASK_TYPE_VIDEO_CLEAN = 2,
|
|
10
|
+
UNRECOGNIZED = -1
|
|
11
|
+
}
|
|
12
|
+
export declare function gpuTaskTypeFromJSON(object: any): GpuTaskType;
|
|
13
|
+
export declare function gpuTaskTypeToJSON(object: GpuTaskType): string;
|
|
14
|
+
|
|
15
|
+
export declare enum GpuTaskStatus {
|
|
16
|
+
GPU_TASK_STATUS_UNSPECIFIED = 0,
|
|
17
|
+
GPU_TASK_STATUS_PENDING = 1,
|
|
18
|
+
GPU_TASK_STATUS_SUBMITTED = 2,
|
|
19
|
+
GPU_TASK_STATUS_RUNNING = 3,
|
|
20
|
+
GPU_TASK_STATUS_UPLOADING = 4,
|
|
21
|
+
GPU_TASK_STATUS_COMPLETED = 5,
|
|
22
|
+
GPU_TASK_STATUS_FAILED = 6,
|
|
23
|
+
GPU_TASK_STATUS_CANCELLED = 7,
|
|
24
|
+
UNRECOGNIZED = -1
|
|
25
|
+
}
|
|
26
|
+
export declare function gpuTaskStatusFromJSON(object: any): GpuTaskStatus;
|
|
27
|
+
export declare function gpuTaskStatusToJSON(object: GpuTaskStatus): string;
|
|
28
|
+
|
|
29
|
+
export declare enum GpuTaskErrorType {
|
|
30
|
+
GPU_TASK_ERROR_TYPE_UNSPECIFIED = 0,
|
|
31
|
+
GPU_TASK_ERROR_TYPE_NONE = 1,
|
|
32
|
+
GPU_TASK_ERROR_TYPE_NETWORK_ERROR = 2,
|
|
33
|
+
GPU_TASK_ERROR_TYPE_PROCESSING_ERROR = 3,
|
|
34
|
+
GPU_TASK_ERROR_TYPE_STORAGE_ERROR = 4,
|
|
35
|
+
GPU_TASK_ERROR_TYPE_GPU_ERROR = 5,
|
|
36
|
+
UNRECOGNIZED = -1
|
|
37
|
+
}
|
|
38
|
+
export declare function gpuTaskErrorTypeFromJSON(object: any): GpuTaskErrorType;
|
|
39
|
+
export declare function gpuTaskErrorTypeToJSON(object: GpuTaskErrorType): string;
|
|
40
|
+
|
|
41
|
+
export interface GpuTask {
|
|
42
|
+
id: string;
|
|
43
|
+
taskType: GpuTaskType;
|
|
44
|
+
status: GpuTaskStatus;
|
|
45
|
+
refId?: string | undefined;
|
|
46
|
+
inputConfig?: {
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
} | undefined;
|
|
49
|
+
outputResult?: {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
} | undefined;
|
|
52
|
+
errorType: GpuTaskErrorType;
|
|
53
|
+
errorMessage: string;
|
|
54
|
+
retryCount: number;
|
|
55
|
+
retryable: boolean;
|
|
56
|
+
currentStage: string;
|
|
57
|
+
progressPercent: number;
|
|
58
|
+
processingDuration?: number | undefined;
|
|
59
|
+
gongjiTaskId?: number | undefined;
|
|
60
|
+
gongjiInstanceId: string;
|
|
61
|
+
createdAt?: Timestamp | undefined;
|
|
62
|
+
startedAt?: Timestamp | undefined;
|
|
63
|
+
completedAt?: Timestamp | undefined;
|
|
64
|
+
lastHeartbeat?: Timestamp | undefined;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface CreateGpuTaskRequest {
|
|
68
|
+
taskType: GpuTaskType;
|
|
69
|
+
refId?: string | undefined;
|
|
70
|
+
inputConfig?: {
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
} | undefined;
|
|
73
|
+
}
|
|
74
|
+
export interface CreateGpuTaskResponse {
|
|
75
|
+
gpuTask?: GpuTask | undefined;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface GetGpuTaskRequest {
|
|
79
|
+
id: string;
|
|
80
|
+
}
|
|
81
|
+
export interface GetGpuTaskResponse {
|
|
82
|
+
gpuTask?: GpuTask | undefined;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface ListGpuTasksRequest {
|
|
86
|
+
pagination?: PaginationRequest | undefined;
|
|
87
|
+
taskTypes: GpuTaskType[];
|
|
88
|
+
statuses: GpuTaskStatus[];
|
|
89
|
+
refId?: string | undefined;
|
|
90
|
+
search?: string | undefined;
|
|
91
|
+
timeRange?: TimeRange | undefined;
|
|
92
|
+
}
|
|
93
|
+
export interface ListGpuTasksResponse {
|
|
94
|
+
gpuTasks: GpuTask[];
|
|
95
|
+
pagination?: PaginationResponse | undefined;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface RetryGpuTaskRequest {
|
|
99
|
+
id: string;
|
|
100
|
+
}
|
|
101
|
+
export interface RetryGpuTaskResponse {
|
|
102
|
+
gpuTask?: GpuTask | undefined;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface CancelGpuTaskRequest {
|
|
106
|
+
id: string;
|
|
107
|
+
}
|
|
108
|
+
export interface CancelGpuTaskResponse {
|
|
109
|
+
gpuTask?: GpuTask | undefined;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface GetGpuTaskLogsRequest {
|
|
113
|
+
id: string;
|
|
114
|
+
}
|
|
115
|
+
export interface GetGpuTaskLogsResponse {
|
|
116
|
+
logs: string;
|
|
117
|
+
gongjiStatus: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface GpuTaskStats {
|
|
121
|
+
total: string;
|
|
122
|
+
pending: string;
|
|
123
|
+
running: string;
|
|
124
|
+
completed: string;
|
|
125
|
+
failed: string;
|
|
126
|
+
byType: {
|
|
127
|
+
[key: string]: string;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
export interface GpuTaskStats_ByTypeEntry {
|
|
131
|
+
key: string;
|
|
132
|
+
value: string;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface GetGpuTaskStatsRequest {
|
|
136
|
+
taskType?: GpuTaskType | undefined;
|
|
137
|
+
}
|
|
138
|
+
export interface GetGpuTaskStatsResponse {
|
|
139
|
+
stats?: GpuTaskStats | undefined;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface DataPipelineVideo {
|
|
143
|
+
id: string;
|
|
144
|
+
ossKey: string;
|
|
145
|
+
ossBucket: string;
|
|
146
|
+
filename: string;
|
|
147
|
+
filesize: string;
|
|
148
|
+
duration?: number | undefined;
|
|
149
|
+
processingStatus: string;
|
|
150
|
+
createdAt?: Timestamp | undefined;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export interface ListDataPipelineVideosRequest {
|
|
154
|
+
pagination?: PaginationRequest | undefined;
|
|
155
|
+
ossKeyPrefix?: string | undefined;
|
|
156
|
+
processingStatus?: string | undefined;
|
|
157
|
+
}
|
|
158
|
+
export interface ListDataPipelineVideosResponse {
|
|
159
|
+
videos: DataPipelineVideo[];
|
|
160
|
+
pagination?: PaginationResponse | undefined;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface GpuTaskHeartbeatRequest {
|
|
164
|
+
taskId: string;
|
|
165
|
+
status: GpuTaskStatus;
|
|
166
|
+
progressPercent: number;
|
|
167
|
+
stage?: string | undefined;
|
|
168
|
+
}
|
|
169
|
+
export interface GpuTaskHeartbeatResponse {
|
|
170
|
+
success: boolean;
|
|
171
|
+
message?: string | undefined;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface GpuTaskResultsRequest {
|
|
175
|
+
taskId: string;
|
|
176
|
+
success: boolean;
|
|
177
|
+
outputResult?: {
|
|
178
|
+
[key: string]: any;
|
|
179
|
+
} | undefined;
|
|
180
|
+
processingDuration?: number | undefined;
|
|
181
|
+
errorMessage?: string | undefined;
|
|
182
|
+
}
|
|
183
|
+
export interface GpuTaskResultsResponse {
|
|
184
|
+
success: boolean;
|
|
185
|
+
message?: string | undefined;
|
|
186
|
+
}
|
|
187
|
+
export declare const GpuTask: MessageFns<GpuTask>;
|
|
188
|
+
export declare const CreateGpuTaskRequest: MessageFns<CreateGpuTaskRequest>;
|
|
189
|
+
export declare const CreateGpuTaskResponse: MessageFns<CreateGpuTaskResponse>;
|
|
190
|
+
export declare const GetGpuTaskRequest: MessageFns<GetGpuTaskRequest>;
|
|
191
|
+
export declare const GetGpuTaskResponse: MessageFns<GetGpuTaskResponse>;
|
|
192
|
+
export declare const ListGpuTasksRequest: MessageFns<ListGpuTasksRequest>;
|
|
193
|
+
export declare const ListGpuTasksResponse: MessageFns<ListGpuTasksResponse>;
|
|
194
|
+
export declare const RetryGpuTaskRequest: MessageFns<RetryGpuTaskRequest>;
|
|
195
|
+
export declare const RetryGpuTaskResponse: MessageFns<RetryGpuTaskResponse>;
|
|
196
|
+
export declare const CancelGpuTaskRequest: MessageFns<CancelGpuTaskRequest>;
|
|
197
|
+
export declare const CancelGpuTaskResponse: MessageFns<CancelGpuTaskResponse>;
|
|
198
|
+
export declare const GetGpuTaskLogsRequest: MessageFns<GetGpuTaskLogsRequest>;
|
|
199
|
+
export declare const GetGpuTaskLogsResponse: MessageFns<GetGpuTaskLogsResponse>;
|
|
200
|
+
export declare const GpuTaskStats: MessageFns<GpuTaskStats>;
|
|
201
|
+
export declare const GpuTaskStats_ByTypeEntry: MessageFns<GpuTaskStats_ByTypeEntry>;
|
|
202
|
+
export declare const GetGpuTaskStatsRequest: MessageFns<GetGpuTaskStatsRequest>;
|
|
203
|
+
export declare const GetGpuTaskStatsResponse: MessageFns<GetGpuTaskStatsResponse>;
|
|
204
|
+
export declare const DataPipelineVideo: MessageFns<DataPipelineVideo>;
|
|
205
|
+
export declare const ListDataPipelineVideosRequest: MessageFns<ListDataPipelineVideosRequest>;
|
|
206
|
+
export declare const ListDataPipelineVideosResponse: MessageFns<ListDataPipelineVideosResponse>;
|
|
207
|
+
export declare const GpuTaskHeartbeatRequest: MessageFns<GpuTaskHeartbeatRequest>;
|
|
208
|
+
export declare const GpuTaskHeartbeatResponse: MessageFns<GpuTaskHeartbeatResponse>;
|
|
209
|
+
export declare const GpuTaskResultsRequest: MessageFns<GpuTaskResultsRequest>;
|
|
210
|
+
export declare const GpuTaskResultsResponse: MessageFns<GpuTaskResultsResponse>;
|
|
211
|
+
|
|
212
|
+
export interface GpuTaskService {
|
|
213
|
+
CreateGpuTask(request: CreateGpuTaskRequest): Promise<CreateGpuTaskResponse>;
|
|
214
|
+
GetGpuTask(request: GetGpuTaskRequest): Promise<GetGpuTaskResponse>;
|
|
215
|
+
ListGpuTasks(request: ListGpuTasksRequest): Promise<ListGpuTasksResponse>;
|
|
216
|
+
RetryGpuTask(request: RetryGpuTaskRequest): Promise<RetryGpuTaskResponse>;
|
|
217
|
+
CancelGpuTask(request: CancelGpuTaskRequest): Promise<CancelGpuTaskResponse>;
|
|
218
|
+
GetGpuTaskLogs(request: GetGpuTaskLogsRequest): Promise<GetGpuTaskLogsResponse>;
|
|
219
|
+
GetGpuTaskStats(request: GetGpuTaskStatsRequest): Promise<GetGpuTaskStatsResponse>;
|
|
220
|
+
ListDataPipelineVideos(request: ListDataPipelineVideosRequest): Promise<ListDataPipelineVideosResponse>;
|
|
221
|
+
}
|
|
222
|
+
export declare const GpuTaskServiceServiceName = "console.v1.GpuTaskService";
|
|
223
|
+
export declare class GpuTaskServiceClientImpl implements GpuTaskService {
|
|
224
|
+
private readonly rpc;
|
|
225
|
+
private readonly service;
|
|
226
|
+
constructor(rpc: Rpc, opts?: {
|
|
227
|
+
service?: string;
|
|
228
|
+
});
|
|
229
|
+
CreateGpuTask(request: CreateGpuTaskRequest): Promise<CreateGpuTaskResponse>;
|
|
230
|
+
GetGpuTask(request: GetGpuTaskRequest): Promise<GetGpuTaskResponse>;
|
|
231
|
+
ListGpuTasks(request: ListGpuTasksRequest): Promise<ListGpuTasksResponse>;
|
|
232
|
+
RetryGpuTask(request: RetryGpuTaskRequest): Promise<RetryGpuTaskResponse>;
|
|
233
|
+
CancelGpuTask(request: CancelGpuTaskRequest): Promise<CancelGpuTaskResponse>;
|
|
234
|
+
GetGpuTaskLogs(request: GetGpuTaskLogsRequest): Promise<GetGpuTaskLogsResponse>;
|
|
235
|
+
GetGpuTaskStats(request: GetGpuTaskStatsRequest): Promise<GetGpuTaskStatsResponse>;
|
|
236
|
+
ListDataPipelineVideos(request: ListDataPipelineVideosRequest): Promise<ListDataPipelineVideosResponse>;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export interface GpuTaskCallbackService {
|
|
240
|
+
ReportHeartbeat(request: GpuTaskHeartbeatRequest): Promise<GpuTaskHeartbeatResponse>;
|
|
241
|
+
UploadResults(request: GpuTaskResultsRequest): Promise<GpuTaskResultsResponse>;
|
|
242
|
+
}
|
|
243
|
+
export declare const GpuTaskCallbackServiceServiceName = "console.v1.GpuTaskCallbackService";
|
|
244
|
+
export declare class GpuTaskCallbackServiceClientImpl implements GpuTaskCallbackService {
|
|
245
|
+
private readonly rpc;
|
|
246
|
+
private readonly service;
|
|
247
|
+
constructor(rpc: Rpc, opts?: {
|
|
248
|
+
service?: string;
|
|
249
|
+
});
|
|
250
|
+
ReportHeartbeat(request: GpuTaskHeartbeatRequest): Promise<GpuTaskHeartbeatResponse>;
|
|
251
|
+
UploadResults(request: GpuTaskResultsRequest): Promise<GpuTaskResultsResponse>;
|
|
252
|
+
}
|
|
253
|
+
interface Rpc {
|
|
254
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
255
|
+
}
|
|
256
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
257
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
258
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
259
|
+
} : Partial<T>;
|
|
260
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
261
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
262
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
263
|
+
} & {
|
|
264
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
265
|
+
};
|
|
266
|
+
export interface MessageFns<T> {
|
|
267
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
268
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
269
|
+
fromJSON(object: any): T;
|
|
270
|
+
toJSON(message: T): unknown;
|
|
271
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
272
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
273
|
+
}
|
|
274
|
+
export {};
|
|
@@ -25,15 +25,6 @@ export declare enum Edition {
|
|
|
25
25
|
export declare function editionFromJSON(object: any): Edition;
|
|
26
26
|
export declare function editionToJSON(object: Edition): string;
|
|
27
27
|
|
|
28
|
-
export declare enum SymbolVisibility {
|
|
29
|
-
VISIBILITY_UNSET = 0,
|
|
30
|
-
VISIBILITY_LOCAL = 1,
|
|
31
|
-
VISIBILITY_EXPORT = 2,
|
|
32
|
-
UNRECOGNIZED = -1
|
|
33
|
-
}
|
|
34
|
-
export declare function symbolVisibilityFromJSON(object: any): SymbolVisibility;
|
|
35
|
-
export declare function symbolVisibilityToJSON(object: SymbolVisibility): string;
|
|
36
|
-
|
|
37
28
|
export interface FileDescriptorSet {
|
|
38
29
|
file: FileDescriptorProto[];
|
|
39
30
|
}
|
|
@@ -44,7 +35,6 @@ export interface FileDescriptorProto {
|
|
|
44
35
|
dependency: string[];
|
|
45
36
|
publicDependency: number[];
|
|
46
37
|
weakDependency: number[];
|
|
47
|
-
optionDependency: string[];
|
|
48
38
|
messageType: DescriptorProto[];
|
|
49
39
|
enumType: EnumDescriptorProto[];
|
|
50
40
|
service: ServiceDescriptorProto[];
|
|
@@ -66,7 +56,6 @@ export interface DescriptorProto {
|
|
|
66
56
|
options?: MessageOptions | undefined;
|
|
67
57
|
reservedRange: DescriptorProto_ReservedRange[];
|
|
68
58
|
reservedName: string[];
|
|
69
|
-
visibility?: SymbolVisibility | undefined;
|
|
70
59
|
}
|
|
71
60
|
export interface DescriptorProto_ExtensionRange {
|
|
72
61
|
start?: number | undefined;
|
|
@@ -167,7 +156,6 @@ export interface EnumDescriptorProto {
|
|
|
167
156
|
options?: EnumOptions | undefined;
|
|
168
157
|
reservedRange: EnumDescriptorProto_EnumReservedRange[];
|
|
169
158
|
reservedName: string[];
|
|
170
|
-
visibility?: SymbolVisibility | undefined;
|
|
171
159
|
}
|
|
172
160
|
|
|
173
161
|
export interface EnumDescriptorProto_EnumReservedRange {
|
|
@@ -375,8 +363,6 @@ export interface FeatureSet {
|
|
|
375
363
|
utf8Validation?: FeatureSet_Utf8Validation | undefined;
|
|
376
364
|
messageEncoding?: FeatureSet_MessageEncoding | undefined;
|
|
377
365
|
jsonFormat?: FeatureSet_JsonFormat | undefined;
|
|
378
|
-
enforceNamingStyle?: FeatureSet_EnforceNamingStyle | undefined;
|
|
379
|
-
defaultSymbolVisibility?: FeatureSet_VisibilityFeature_DefaultSymbolVisibility | undefined;
|
|
380
366
|
}
|
|
381
367
|
export declare enum FeatureSet_FieldPresence {
|
|
382
368
|
FIELD_PRESENCE_UNKNOWN = 0,
|
|
@@ -427,30 +413,6 @@ export declare enum FeatureSet_JsonFormat {
|
|
|
427
413
|
}
|
|
428
414
|
export declare function featureSet_JsonFormatFromJSON(object: any): FeatureSet_JsonFormat;
|
|
429
415
|
export declare function featureSet_JsonFormatToJSON(object: FeatureSet_JsonFormat): string;
|
|
430
|
-
export declare enum FeatureSet_EnforceNamingStyle {
|
|
431
|
-
ENFORCE_NAMING_STYLE_UNKNOWN = 0,
|
|
432
|
-
STYLE2024 = 1,
|
|
433
|
-
STYLE_LEGACY = 2,
|
|
434
|
-
UNRECOGNIZED = -1
|
|
435
|
-
}
|
|
436
|
-
export declare function featureSet_EnforceNamingStyleFromJSON(object: any): FeatureSet_EnforceNamingStyle;
|
|
437
|
-
export declare function featureSet_EnforceNamingStyleToJSON(object: FeatureSet_EnforceNamingStyle): string;
|
|
438
|
-
export interface FeatureSet_VisibilityFeature {
|
|
439
|
-
}
|
|
440
|
-
export declare enum FeatureSet_VisibilityFeature_DefaultSymbolVisibility {
|
|
441
|
-
DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0,
|
|
442
|
-
|
|
443
|
-
EXPORT_ALL = 1,
|
|
444
|
-
|
|
445
|
-
EXPORT_TOP_LEVEL = 2,
|
|
446
|
-
|
|
447
|
-
LOCAL_ALL = 3,
|
|
448
|
-
|
|
449
|
-
STRICT = 4,
|
|
450
|
-
UNRECOGNIZED = -1
|
|
451
|
-
}
|
|
452
|
-
export declare function featureSet_VisibilityFeature_DefaultSymbolVisibilityFromJSON(object: any): FeatureSet_VisibilityFeature_DefaultSymbolVisibility;
|
|
453
|
-
export declare function featureSet_VisibilityFeature_DefaultSymbolVisibilityToJSON(object: FeatureSet_VisibilityFeature_DefaultSymbolVisibility): string;
|
|
454
416
|
|
|
455
417
|
export interface FeatureSetDefaults {
|
|
456
418
|
defaults: FeatureSetDefaults_FeatureSetEditionDefault[];
|
|
@@ -524,7 +486,6 @@ export declare const MethodOptions: MessageFns<MethodOptions>;
|
|
|
524
486
|
export declare const UninterpretedOption: MessageFns<UninterpretedOption>;
|
|
525
487
|
export declare const UninterpretedOption_NamePart: MessageFns<UninterpretedOption_NamePart>;
|
|
526
488
|
export declare const FeatureSet: MessageFns<FeatureSet>;
|
|
527
|
-
export declare const FeatureSet_VisibilityFeature: MessageFns<FeatureSet_VisibilityFeature>;
|
|
528
489
|
export declare const FeatureSetDefaults: MessageFns<FeatureSetDefaults>;
|
|
529
490
|
export declare const FeatureSetDefaults_FeatureSetEditionDefault: MessageFns<FeatureSetDefaults_FeatureSetEditionDefault>;
|
|
530
491
|
export declare const SourceCodeInfo: MessageFns<SourceCodeInfo>;
|
|
@@ -147,6 +147,7 @@ export interface FullCharacter {
|
|
|
147
147
|
encoderStartFrame: number;
|
|
148
148
|
characterTemplateId?: string | undefined;
|
|
149
149
|
language: string;
|
|
150
|
+
clarityLevel: string;
|
|
150
151
|
}
|
|
151
152
|
export interface CreateCharacterRequest {
|
|
152
153
|
templateId: string;
|
|
@@ -183,6 +184,7 @@ export interface CreateCharacterRequest {
|
|
|
183
184
|
encoderStartFrame: number;
|
|
184
185
|
characterTemplateId?: string | undefined;
|
|
185
186
|
language: string;
|
|
187
|
+
clarityLevel: string;
|
|
186
188
|
}
|
|
187
189
|
export interface CreateCharacterRequest_CharacterCardEntry {
|
|
188
190
|
key: string;
|
|
@@ -231,6 +233,7 @@ export interface UpdateCharacterRequest {
|
|
|
231
233
|
assetGroupIds: string[];
|
|
232
234
|
encoderStartFrame?: number | undefined;
|
|
233
235
|
language?: string | undefined;
|
|
236
|
+
clarityLevel?: string | undefined;
|
|
234
237
|
}
|
|
235
238
|
export interface UpdateCharacterRequest_CharacterCardEntry {
|
|
236
239
|
key: string;
|