@faiber/faiber-drm 0.24.1 → 1.0.0
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/README.md +36 -17
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.ts +187 -107
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +95 -15
- package/dist/index.js.map +1 -1
- package/dist/operations.d.ts +384 -384
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +296 -290
- package/dist/operations.js.map +1 -1
- package/dist/operations.types.d.ts +128 -1332
- package/dist/operations.types.d.ts.map +1 -1
- package/dist/types.d.ts +3 -83
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/dist/wire.types.d.ts +721 -0
- package/dist/wire.types.d.ts.map +1 -0
- package/dist/wire.types.js +2 -0
- package/dist/wire.types.js.map +1 -0
- package/package.json +4 -3
- package/provenance.json +27 -0
|
@@ -0,0 +1,721 @@
|
|
|
1
|
+
import type { JsonValue, QueryParams } from "@faiber/sdk-core";
|
|
2
|
+
/** Source: src/models.rs Page<T>; pages start at 1 and return a bare pagination object. */
|
|
3
|
+
export interface DrmPage<T> {
|
|
4
|
+
data: T[];
|
|
5
|
+
page: number;
|
|
6
|
+
page_size: number;
|
|
7
|
+
total_items: number;
|
|
8
|
+
}
|
|
9
|
+
/** JSON fields explicitly persisted as arbitrary serde_json::Value by DRM: editor textual/rewards, workflow node data, historical manifest documents, external metadata and audit snapshots. */
|
|
10
|
+
export type DrmDynamicJson = JsonValue;
|
|
11
|
+
/** Upstream Knowledge catalog is passed through verbatim without a local response model; its deployed schema is controlled by the Knowledge service. */
|
|
12
|
+
export type DrmKnowledgeCatalog = JsonValue;
|
|
13
|
+
export type DrmMediaType = "audio" | "video" | "image";
|
|
14
|
+
/** Stored status strings are extensible, including drm_processing/drm_failed. */
|
|
15
|
+
export type DrmMediaStatus = string;
|
|
16
|
+
export type DrmContentState = "Question" | "Task" | "Interactive" | "Game";
|
|
17
|
+
export type DrmVisibility = "public" | "private";
|
|
18
|
+
export type DrmTranscriptionLanguage = "auto" | "fa" | "en";
|
|
19
|
+
export type DrmCompositionStatus = "draft" | "published" | "inactive";
|
|
20
|
+
/** Source: entity/src/audit_event.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
21
|
+
export interface DrmAuditEvent {
|
|
22
|
+
id: string;
|
|
23
|
+
actor_id: string | null;
|
|
24
|
+
action: string;
|
|
25
|
+
entity_type: string;
|
|
26
|
+
entity_id: string | null;
|
|
27
|
+
request_id: string | null;
|
|
28
|
+
/** Arbitrary JSON explicitly accepted/persisted by this backend field. */
|
|
29
|
+
before_data: DrmDynamicJson | null;
|
|
30
|
+
/** Arbitrary JSON explicitly accepted/persisted by this backend field. */
|
|
31
|
+
after_data: DrmDynamicJson | null;
|
|
32
|
+
created_at: string;
|
|
33
|
+
}
|
|
34
|
+
/** Source: entity/src/composition_category.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
35
|
+
export interface DrmCompositionCategory {
|
|
36
|
+
id: string;
|
|
37
|
+
parent_id: string | null;
|
|
38
|
+
title: string;
|
|
39
|
+
created_at: string;
|
|
40
|
+
updated_at: string;
|
|
41
|
+
}
|
|
42
|
+
/** Source: entity/src/content_category.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
43
|
+
export interface DrmContentCategory {
|
|
44
|
+
id: string;
|
|
45
|
+
mixed_media_id: string | null;
|
|
46
|
+
library_id: string;
|
|
47
|
+
parent_id: string | null;
|
|
48
|
+
title: string;
|
|
49
|
+
created_at: string;
|
|
50
|
+
updated_at: string;
|
|
51
|
+
archived_at: string | null;
|
|
52
|
+
}
|
|
53
|
+
/** Source: entity/src/content_item_media.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
54
|
+
export interface DrmContentItemMedia {
|
|
55
|
+
content_item_id: string;
|
|
56
|
+
media_id: string;
|
|
57
|
+
slot: string;
|
|
58
|
+
position: number;
|
|
59
|
+
is_current: boolean;
|
|
60
|
+
created_at: string;
|
|
61
|
+
}
|
|
62
|
+
/** Source: entity/src/content_library.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
63
|
+
export interface DrmContentLibrary {
|
|
64
|
+
id: string;
|
|
65
|
+
name: string;
|
|
66
|
+
description: string | null;
|
|
67
|
+
status: string;
|
|
68
|
+
visibility: DrmVisibility;
|
|
69
|
+
created_at: string;
|
|
70
|
+
updated_at: string;
|
|
71
|
+
}
|
|
72
|
+
/** Source: entity/src/drm_job.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
73
|
+
export interface DrmJob {
|
|
74
|
+
id: string;
|
|
75
|
+
media_id: string;
|
|
76
|
+
package_id: string | null;
|
|
77
|
+
status: string;
|
|
78
|
+
stage: string;
|
|
79
|
+
progress: number;
|
|
80
|
+
attempts: number;
|
|
81
|
+
max_attempts: number;
|
|
82
|
+
next_retry_at: string | null;
|
|
83
|
+
last_error: string | null;
|
|
84
|
+
config: DrmResolvedConfig;
|
|
85
|
+
created_at: string;
|
|
86
|
+
updated_at: string;
|
|
87
|
+
started_at: string | null;
|
|
88
|
+
completed_at: string | null;
|
|
89
|
+
}
|
|
90
|
+
/** Source: entity/src/drm_key.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
91
|
+
export interface DrmDrmKey {
|
|
92
|
+
id: string;
|
|
93
|
+
package_id: string;
|
|
94
|
+
key_id: string;
|
|
95
|
+
label: string;
|
|
96
|
+
encrypted_key: string;
|
|
97
|
+
nonce: string;
|
|
98
|
+
created_at: string;
|
|
99
|
+
}
|
|
100
|
+
/** Source: entity/src/external_reference.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
101
|
+
export interface DrmExternalReference {
|
|
102
|
+
system: string;
|
|
103
|
+
entity_type: string;
|
|
104
|
+
external_id: string;
|
|
105
|
+
internal_type: string;
|
|
106
|
+
internal_id: string;
|
|
107
|
+
/** Arbitrary JSON explicitly accepted/persisted by this backend field. */
|
|
108
|
+
metadata: DrmDynamicJson;
|
|
109
|
+
created_at: string;
|
|
110
|
+
updated_at: string;
|
|
111
|
+
}
|
|
112
|
+
/** Source: entity/src/folder.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
113
|
+
export interface DrmFolder {
|
|
114
|
+
id: string;
|
|
115
|
+
parent_id: string | null;
|
|
116
|
+
name: string;
|
|
117
|
+
created_at: string;
|
|
118
|
+
updated_at: string;
|
|
119
|
+
}
|
|
120
|
+
/** Source: entity/src/media.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
121
|
+
export interface DrmMedia {
|
|
122
|
+
id: string;
|
|
123
|
+
folder_id: string | null;
|
|
124
|
+
name: string;
|
|
125
|
+
description: string | null;
|
|
126
|
+
media_type: DrmMediaType;
|
|
127
|
+
mime_type: string;
|
|
128
|
+
object_key: string;
|
|
129
|
+
bucket: string;
|
|
130
|
+
size_bytes: number;
|
|
131
|
+
duration_seconds: number | null;
|
|
132
|
+
status: string;
|
|
133
|
+
original_filename: string | null;
|
|
134
|
+
checksum_sha256: string | null;
|
|
135
|
+
archived_at: string | null;
|
|
136
|
+
created_at: string;
|
|
137
|
+
updated_at: string;
|
|
138
|
+
}
|
|
139
|
+
/** Source: entity/src/media_package.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
140
|
+
export interface DrmMediaPackage {
|
|
141
|
+
id: string;
|
|
142
|
+
media_id: string;
|
|
143
|
+
revision: number;
|
|
144
|
+
status: string;
|
|
145
|
+
profile: DrmResolvedConfig;
|
|
146
|
+
manifest_dash_key: string | null;
|
|
147
|
+
manifest_hls_key: string | null;
|
|
148
|
+
object_prefix: string;
|
|
149
|
+
checksum_manifest: string | null;
|
|
150
|
+
last_error: string | null;
|
|
151
|
+
created_at: string;
|
|
152
|
+
updated_at: string;
|
|
153
|
+
completed_at: string | null;
|
|
154
|
+
}
|
|
155
|
+
/** Source: entity/src/media_part.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
156
|
+
export interface DrmMediaPart {
|
|
157
|
+
id: string;
|
|
158
|
+
mixed_media_id: string | null;
|
|
159
|
+
library_id: string;
|
|
160
|
+
category_id: string | null;
|
|
161
|
+
title: string;
|
|
162
|
+
state: string;
|
|
163
|
+
media_type: string | null;
|
|
164
|
+
duration_seconds: number;
|
|
165
|
+
/** Arbitrary JSON explicitly accepted/persisted by this backend field. */
|
|
166
|
+
textual: DrmDynamicJson;
|
|
167
|
+
/** Arbitrary JSON explicitly accepted/persisted by this backend field. */
|
|
168
|
+
rewards: DrmDynamicJson;
|
|
169
|
+
textual_hint: string | null;
|
|
170
|
+
game_id: string | null;
|
|
171
|
+
primary_media_id: string | null;
|
|
172
|
+
hint_media_id: string | null;
|
|
173
|
+
created_at: string;
|
|
174
|
+
updated_at: string;
|
|
175
|
+
archived_at: string | null;
|
|
176
|
+
}
|
|
177
|
+
/** Source: entity/src/media_tag.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
178
|
+
export interface DrmMediaTag {
|
|
179
|
+
media_id: string;
|
|
180
|
+
tag_id: string;
|
|
181
|
+
}
|
|
182
|
+
/** Source: entity/src/media_transcription.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
183
|
+
export interface DrmMediaTranscription {
|
|
184
|
+
id: string;
|
|
185
|
+
media_id: string;
|
|
186
|
+
model_ref: string;
|
|
187
|
+
language: string;
|
|
188
|
+
detected_language: string | null;
|
|
189
|
+
status: string;
|
|
190
|
+
transcript: string | null;
|
|
191
|
+
last_error: string | null;
|
|
192
|
+
attempts: number;
|
|
193
|
+
max_attempts: number;
|
|
194
|
+
next_retry_at: string | null;
|
|
195
|
+
queued_at: string;
|
|
196
|
+
started_at: string | null;
|
|
197
|
+
completed_at: string | null;
|
|
198
|
+
created_at: string;
|
|
199
|
+
updated_at: string;
|
|
200
|
+
}
|
|
201
|
+
/** Source: entity/src/mixed_media.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
202
|
+
export interface DrmMixedMedia {
|
|
203
|
+
id: string;
|
|
204
|
+
library_id: string;
|
|
205
|
+
category_id: string | null;
|
|
206
|
+
name: string;
|
|
207
|
+
description: string | null;
|
|
208
|
+
transcription_language: string;
|
|
209
|
+
status: string;
|
|
210
|
+
manifest_version: number;
|
|
211
|
+
published_at: string | null;
|
|
212
|
+
created_at: string;
|
|
213
|
+
updated_at: string;
|
|
214
|
+
}
|
|
215
|
+
/** Source: entity/src/mixed_media_manifest.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
216
|
+
export interface DrmMixedMediaManifest {
|
|
217
|
+
id: string;
|
|
218
|
+
mixed_media_id: string;
|
|
219
|
+
version: number;
|
|
220
|
+
/** Arbitrary JSON explicitly accepted/persisted by this backend field. */
|
|
221
|
+
document: DrmDynamicJson;
|
|
222
|
+
created_at: string;
|
|
223
|
+
}
|
|
224
|
+
/** Source: entity/src/mixed_media_workflow.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
225
|
+
export interface DrmMixedMediaWorkflow {
|
|
226
|
+
mixed_media_id: string;
|
|
227
|
+
/** Arbitrary JSON explicitly accepted/persisted by this backend field. */
|
|
228
|
+
nodes: DrmDynamicJson[];
|
|
229
|
+
/** Arbitrary JSON explicitly accepted/persisted by this backend field. */
|
|
230
|
+
edges: DrmDynamicJson[];
|
|
231
|
+
revision: number;
|
|
232
|
+
updated_at: string;
|
|
233
|
+
}
|
|
234
|
+
/** Source: entity/src/tag.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
235
|
+
export interface DrmTag {
|
|
236
|
+
id: string;
|
|
237
|
+
name: string;
|
|
238
|
+
created_at: string;
|
|
239
|
+
}
|
|
240
|
+
/** Source: entity/src/upload_part.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
241
|
+
export interface DrmUploadPart {
|
|
242
|
+
session_id: string;
|
|
243
|
+
part_number: number;
|
|
244
|
+
etag: string;
|
|
245
|
+
size_bytes: number;
|
|
246
|
+
created_at: string;
|
|
247
|
+
}
|
|
248
|
+
/** Source: entity/src/upload_session.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
249
|
+
export interface DrmUploadSession {
|
|
250
|
+
id: string;
|
|
251
|
+
media_id: string;
|
|
252
|
+
object_key: string;
|
|
253
|
+
multipart_upload_id: string;
|
|
254
|
+
filename: string;
|
|
255
|
+
name: string;
|
|
256
|
+
description: string | null;
|
|
257
|
+
mime_type: string;
|
|
258
|
+
media_type: string;
|
|
259
|
+
folder_id: string | null;
|
|
260
|
+
total_bytes: number;
|
|
261
|
+
part_size: number;
|
|
262
|
+
checksum_sha256: string | null;
|
|
263
|
+
status: string;
|
|
264
|
+
error: string | null;
|
|
265
|
+
expires_at: string;
|
|
266
|
+
created_at: string;
|
|
267
|
+
updated_at: string;
|
|
268
|
+
completed_at: string | null;
|
|
269
|
+
}
|
|
270
|
+
/** Source: src/composition_analysis.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
271
|
+
export interface DrmAnalysisQuery extends QueryParams {
|
|
272
|
+
page?: number | null;
|
|
273
|
+
size?: number | null;
|
|
274
|
+
search?: string | null;
|
|
275
|
+
status?: string | null;
|
|
276
|
+
from?: string | null;
|
|
277
|
+
to?: string | null;
|
|
278
|
+
}
|
|
279
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
280
|
+
export interface DrmAttachmentInput {
|
|
281
|
+
media_id: string;
|
|
282
|
+
slot: "primary" | "hint";
|
|
283
|
+
position?: number;
|
|
284
|
+
is_current?: boolean;
|
|
285
|
+
}
|
|
286
|
+
/** Source: src/operations_handlers.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
287
|
+
export interface DrmAuditQuery extends QueryParams {
|
|
288
|
+
page?: number | null;
|
|
289
|
+
size?: number | null;
|
|
290
|
+
from?: string | null;
|
|
291
|
+
to?: string | null;
|
|
292
|
+
}
|
|
293
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
294
|
+
export interface DrmBatchMediaInput {
|
|
295
|
+
ids: (string)[];
|
|
296
|
+
}
|
|
297
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
298
|
+
export interface DrmCategoryInput {
|
|
299
|
+
title: string;
|
|
300
|
+
parent_id?: string | null;
|
|
301
|
+
}
|
|
302
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
303
|
+
export interface DrmCompleteUploadInput {
|
|
304
|
+
checksum_sha256?: string | null;
|
|
305
|
+
}
|
|
306
|
+
/** Source: src/composition_analysis.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
307
|
+
export interface DrmCompositionAnalysis {
|
|
308
|
+
mixed_media_id: string;
|
|
309
|
+
composition_name: string;
|
|
310
|
+
manifest_version: number;
|
|
311
|
+
model_ref: string;
|
|
312
|
+
summary_model_ref: string | null;
|
|
313
|
+
language: string;
|
|
314
|
+
detected_language: string | null;
|
|
315
|
+
status: string;
|
|
316
|
+
transcript: string | null;
|
|
317
|
+
summary: string | null;
|
|
318
|
+
last_error: string | null;
|
|
319
|
+
queued_at: string;
|
|
320
|
+
started_at: string | null;
|
|
321
|
+
completed_at: string | null;
|
|
322
|
+
updated_at: string;
|
|
323
|
+
}
|
|
324
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
325
|
+
export interface DrmCompositionCategoryInput {
|
|
326
|
+
title: string;
|
|
327
|
+
parent_id?: string | null;
|
|
328
|
+
}
|
|
329
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
330
|
+
export interface DrmCompositionInput {
|
|
331
|
+
id?: string | null;
|
|
332
|
+
library_id: string;
|
|
333
|
+
name: string;
|
|
334
|
+
description?: string | null;
|
|
335
|
+
category_id?: string | null;
|
|
336
|
+
}
|
|
337
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
338
|
+
export interface DrmCompositionQuery extends QueryParams {
|
|
339
|
+
search?: string | null;
|
|
340
|
+
category_id?: string | null;
|
|
341
|
+
uncategorized?: boolean;
|
|
342
|
+
page?: number | null;
|
|
343
|
+
size?: number | null;
|
|
344
|
+
}
|
|
345
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
346
|
+
export interface DrmContentItemInput {
|
|
347
|
+
id?: string | null;
|
|
348
|
+
category_id?: string | null;
|
|
349
|
+
title: string;
|
|
350
|
+
state: DrmContentState;
|
|
351
|
+
media_type?: string | null;
|
|
352
|
+
duration_seconds?: number;
|
|
353
|
+
/** Arbitrary JSON explicitly accepted/persisted by this backend field. */
|
|
354
|
+
textual?: DrmDynamicJson;
|
|
355
|
+
/** Arbitrary JSON explicitly accepted/persisted by this backend field. */
|
|
356
|
+
rewards?: DrmDynamicJson;
|
|
357
|
+
textual_hint?: string | null;
|
|
358
|
+
game_id?: string | null;
|
|
359
|
+
}
|
|
360
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
361
|
+
export interface DrmContentItemsQuery extends QueryParams {
|
|
362
|
+
category_id?: string | null;
|
|
363
|
+
direct?: boolean;
|
|
364
|
+
errors?: boolean;
|
|
365
|
+
search?: string | null;
|
|
366
|
+
page?: number | null;
|
|
367
|
+
size?: number | null;
|
|
368
|
+
}
|
|
369
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
370
|
+
export interface DrmConfig {
|
|
371
|
+
download?: boolean;
|
|
372
|
+
transcode?: boolean;
|
|
373
|
+
package?: boolean;
|
|
374
|
+
allow_video_only_on_audio_error?: boolean;
|
|
375
|
+
}
|
|
376
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
377
|
+
export interface DrmJobQuery extends QueryParams {
|
|
378
|
+
status?: string | null;
|
|
379
|
+
media_id?: string | null;
|
|
380
|
+
page?: number | null;
|
|
381
|
+
size?: number | null;
|
|
382
|
+
from?: string | null;
|
|
383
|
+
to?: string | null;
|
|
384
|
+
}
|
|
385
|
+
/** Source: src/drm_queue.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
386
|
+
export interface DrmJobResponse extends DrmJob {
|
|
387
|
+
media_name: string;
|
|
388
|
+
media_type: string;
|
|
389
|
+
}
|
|
390
|
+
/** Source: src/package_handlers.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
391
|
+
export interface DrmStatusesQuery extends QueryParams {
|
|
392
|
+
ids: string;
|
|
393
|
+
}
|
|
394
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
395
|
+
export interface DrmEditorResources {
|
|
396
|
+
categories: (DrmContentCategory)[];
|
|
397
|
+
parts: (DrmMediaPart)[];
|
|
398
|
+
}
|
|
399
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
400
|
+
export interface DrmEnqueueDrmInput {
|
|
401
|
+
media_id: string;
|
|
402
|
+
config?: DrmConfig;
|
|
403
|
+
}
|
|
404
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
405
|
+
export interface DrmExternalReferenceInput {
|
|
406
|
+
system: string;
|
|
407
|
+
entity_type: string;
|
|
408
|
+
external_id: string;
|
|
409
|
+
internal_type: string;
|
|
410
|
+
internal_id: string;
|
|
411
|
+
/** Arbitrary JSON explicitly accepted/persisted by this backend field. */
|
|
412
|
+
metadata?: DrmDynamicJson;
|
|
413
|
+
}
|
|
414
|
+
/** Source: src/generic_handlers.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
415
|
+
export interface DrmExternalReferenceQuery extends QueryParams {
|
|
416
|
+
internal_type?: string | null;
|
|
417
|
+
internal_id?: string | null;
|
|
418
|
+
}
|
|
419
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
420
|
+
export interface DrmFolderInput {
|
|
421
|
+
name: string;
|
|
422
|
+
parent_id?: string | null;
|
|
423
|
+
}
|
|
424
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
425
|
+
export interface DrmGenericCategoryInput {
|
|
426
|
+
id?: string | null;
|
|
427
|
+
parent_id?: string | null;
|
|
428
|
+
title: string;
|
|
429
|
+
}
|
|
430
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
431
|
+
export interface DrmHistoricalManifestInput {
|
|
432
|
+
id?: string | null;
|
|
433
|
+
/** Arbitrary JSON explicitly accepted/persisted by this backend field. */
|
|
434
|
+
document: DrmDynamicJson;
|
|
435
|
+
created_at?: string | null;
|
|
436
|
+
}
|
|
437
|
+
/** Source: src/knowledge_sync.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
438
|
+
export interface DrmKnowledgeSyncSettings {
|
|
439
|
+
mixed_media_id: string;
|
|
440
|
+
enabled: boolean;
|
|
441
|
+
knowledge_base_id: string | null;
|
|
442
|
+
sync_status: string;
|
|
443
|
+
synced_manifest_version: number | null;
|
|
444
|
+
knowledge_document_id: string | null;
|
|
445
|
+
sync_event_id: string | null;
|
|
446
|
+
last_error: string | null;
|
|
447
|
+
last_synced_at: string | null;
|
|
448
|
+
}
|
|
449
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
450
|
+
export interface DrmLegacyPackageInput {
|
|
451
|
+
id: string;
|
|
452
|
+
download?: boolean;
|
|
453
|
+
transcode?: boolean;
|
|
454
|
+
package?: boolean;
|
|
455
|
+
}
|
|
456
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
457
|
+
export interface DrmLibraryInput {
|
|
458
|
+
id?: string | null;
|
|
459
|
+
name: string;
|
|
460
|
+
description?: string | null;
|
|
461
|
+
status?: string | null;
|
|
462
|
+
visibility?: DrmVisibility | null;
|
|
463
|
+
}
|
|
464
|
+
/** Source: src/generic_handlers.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
465
|
+
export interface DrmLibraryStats {
|
|
466
|
+
total: number;
|
|
467
|
+
question: number;
|
|
468
|
+
task: number;
|
|
469
|
+
video: number;
|
|
470
|
+
game: number;
|
|
471
|
+
}
|
|
472
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
473
|
+
export interface DrmMediaListQuery extends QueryParams {
|
|
474
|
+
search?: string | null;
|
|
475
|
+
media_type?: string | null;
|
|
476
|
+
folder_id?: string | null;
|
|
477
|
+
tag_id?: string | null;
|
|
478
|
+
page?: number | null;
|
|
479
|
+
size?: number | null;
|
|
480
|
+
}
|
|
481
|
+
/** Source: src/package_handlers.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
482
|
+
export interface DrmMediaDrmStatusResponse {
|
|
483
|
+
media_id: string;
|
|
484
|
+
media_type: string;
|
|
485
|
+
media_status: string;
|
|
486
|
+
package_status: string | null;
|
|
487
|
+
job_status: string | null;
|
|
488
|
+
effective_status: string;
|
|
489
|
+
}
|
|
490
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
491
|
+
export interface DrmMediaRecord extends DrmMedia {
|
|
492
|
+
tags: (DrmTag)[];
|
|
493
|
+
transcription: DrmMediaTranscription | null;
|
|
494
|
+
}
|
|
495
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
496
|
+
export interface DrmMediaUpdate {
|
|
497
|
+
name?: string | null;
|
|
498
|
+
description?: string | null;
|
|
499
|
+
folder_id?: string | null;
|
|
500
|
+
duration_seconds?: number | null;
|
|
501
|
+
status?: string | null;
|
|
502
|
+
tag_ids?: (string)[] | null;
|
|
503
|
+
}
|
|
504
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
505
|
+
export interface DrmMixedMediaInput {
|
|
506
|
+
library_id: string;
|
|
507
|
+
name: string;
|
|
508
|
+
description?: string | null;
|
|
509
|
+
category_id?: string | null;
|
|
510
|
+
transcription_language?: DrmTranscriptionLanguage | null;
|
|
511
|
+
}
|
|
512
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
513
|
+
export interface DrmMixedMediaUpdate {
|
|
514
|
+
library_id?: string | null;
|
|
515
|
+
name?: string | null;
|
|
516
|
+
description?: string | null;
|
|
517
|
+
status?: DrmCompositionStatus | null;
|
|
518
|
+
transcription_language?: DrmTranscriptionLanguage | null;
|
|
519
|
+
category_id?: string | null;
|
|
520
|
+
}
|
|
521
|
+
/** Source: src/package_handlers.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
522
|
+
export interface DrmPackageQuery extends QueryParams {
|
|
523
|
+
package_id: string;
|
|
524
|
+
}
|
|
525
|
+
/** Source: src/package_handlers.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
526
|
+
export interface DrmPackageResponse extends DrmMediaPackage {
|
|
527
|
+
dash_url: string | null;
|
|
528
|
+
hls_url: string | null;
|
|
529
|
+
}
|
|
530
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
531
|
+
export interface DrmPartInput {
|
|
532
|
+
category_id?: string | null;
|
|
533
|
+
title: string;
|
|
534
|
+
state: DrmContentState;
|
|
535
|
+
media_type?: string | null;
|
|
536
|
+
duration_seconds?: number;
|
|
537
|
+
/** Arbitrary JSON explicitly accepted/persisted by this backend field. */
|
|
538
|
+
textual?: DrmDynamicJson;
|
|
539
|
+
/** Arbitrary JSON explicitly accepted/persisted by this backend field. */
|
|
540
|
+
rewards?: DrmDynamicJson;
|
|
541
|
+
textual_hint?: string | null;
|
|
542
|
+
game_id?: string | null;
|
|
543
|
+
primary_media_id?: string | null;
|
|
544
|
+
hint_media_id?: string | null;
|
|
545
|
+
}
|
|
546
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
547
|
+
export interface DrmPlayback {
|
|
548
|
+
media_id: string;
|
|
549
|
+
media_type: DrmMediaType;
|
|
550
|
+
mime_type: string;
|
|
551
|
+
url: string;
|
|
552
|
+
expires_in_seconds: number;
|
|
553
|
+
}
|
|
554
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
555
|
+
export interface DrmRegisterMediaInput {
|
|
556
|
+
id?: string | null;
|
|
557
|
+
object_key: string;
|
|
558
|
+
original_filename: string;
|
|
559
|
+
name?: string | null;
|
|
560
|
+
description?: string | null;
|
|
561
|
+
mime_type: string;
|
|
562
|
+
size_bytes: number;
|
|
563
|
+
checksum_sha256?: string | null;
|
|
564
|
+
folder_id?: string | null;
|
|
565
|
+
}
|
|
566
|
+
/** Source: src/drm_queue.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
567
|
+
export interface DrmRetryFailedResponse {
|
|
568
|
+
count: number;
|
|
569
|
+
}
|
|
570
|
+
/** Source: src/operations_handlers.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
571
|
+
export interface DrmSettingsInput {
|
|
572
|
+
package_concurrency: number;
|
|
573
|
+
transcription_enabled?: boolean;
|
|
574
|
+
transcription_model_ref?: string | null;
|
|
575
|
+
summary_model_ref?: string | null;
|
|
576
|
+
}
|
|
577
|
+
/** Source: src/operations_handlers.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
578
|
+
export interface DrmSettingsResponse {
|
|
579
|
+
package_concurrency: number;
|
|
580
|
+
transcription_enabled: boolean;
|
|
581
|
+
transcription_model_ref: string | null;
|
|
582
|
+
summary_model_ref: string | null;
|
|
583
|
+
}
|
|
584
|
+
/** Source: src/composition_analysis.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
585
|
+
export interface DrmStartAnalysisInput {
|
|
586
|
+
language?: string | null;
|
|
587
|
+
force?: boolean;
|
|
588
|
+
}
|
|
589
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
590
|
+
export interface DrmTagInput {
|
|
591
|
+
name: string;
|
|
592
|
+
}
|
|
593
|
+
/** Source: src/operations_handlers.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
594
|
+
export interface DrmTranscriptionModel {
|
|
595
|
+
model_ref: string;
|
|
596
|
+
model: string;
|
|
597
|
+
provider_label: string;
|
|
598
|
+
source: string;
|
|
599
|
+
capabilities: (string)[];
|
|
600
|
+
}
|
|
601
|
+
/** Source: src/knowledge_sync.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
602
|
+
export interface DrmUpdateKnowledgeSync {
|
|
603
|
+
enabled: boolean;
|
|
604
|
+
knowledge_base_id?: string | null;
|
|
605
|
+
}
|
|
606
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
607
|
+
export interface DrmUploadSessionInput {
|
|
608
|
+
media_id?: string | null;
|
|
609
|
+
filename: string;
|
|
610
|
+
name?: string | null;
|
|
611
|
+
description?: string | null;
|
|
612
|
+
mime_type: string;
|
|
613
|
+
folder_id?: string | null;
|
|
614
|
+
total_bytes: number;
|
|
615
|
+
part_size?: number | null;
|
|
616
|
+
}
|
|
617
|
+
/** Source: src/upload_handlers.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
618
|
+
export interface DrmUploadSessionResponse extends DrmUploadSession {
|
|
619
|
+
parts: (DrmUploadPart)[];
|
|
620
|
+
}
|
|
621
|
+
/** Source: src/models.rs. Wire fields retain snake_case; nullable output members are always present. */
|
|
622
|
+
export interface DrmWorkflowInput {
|
|
623
|
+
/** Arbitrary JSON explicitly accepted/persisted by this backend field. */
|
|
624
|
+
nodes: DrmDynamicJson[];
|
|
625
|
+
/** Arbitrary JSON explicitly accepted/persisted by this backend field. */
|
|
626
|
+
edges: DrmDynamicJson[];
|
|
627
|
+
}
|
|
628
|
+
/** All four flags are present in stored queue/package configurations. */
|
|
629
|
+
export interface DrmResolvedConfig {
|
|
630
|
+
download: boolean;
|
|
631
|
+
transcode: boolean;
|
|
632
|
+
package: boolean;
|
|
633
|
+
allow_video_only_on_audio_error: boolean;
|
|
634
|
+
}
|
|
635
|
+
export interface DrmStatus {
|
|
636
|
+
status: "ok";
|
|
637
|
+
service: "infera-drm";
|
|
638
|
+
}
|
|
639
|
+
export interface DrmMediaUpload {
|
|
640
|
+
file: Blob;
|
|
641
|
+
name?: string;
|
|
642
|
+
description?: string;
|
|
643
|
+
folder_id?: string | null;
|
|
644
|
+
tag_ids?: string[];
|
|
645
|
+
filename?: string;
|
|
646
|
+
}
|
|
647
|
+
export type DrmUploadPartBody = Blob | ArrayBuffer | ArrayBufferView;
|
|
648
|
+
export type DrmPackageFile = ArrayBuffer;
|
|
649
|
+
export interface DrmClearKey {
|
|
650
|
+
kty: "oct";
|
|
651
|
+
kid: string;
|
|
652
|
+
k: string;
|
|
653
|
+
}
|
|
654
|
+
export interface DrmClearKeyLicense {
|
|
655
|
+
keys: DrmClearKey[];
|
|
656
|
+
type: "temporary";
|
|
657
|
+
}
|
|
658
|
+
export interface DrmLegacyEnqueue {
|
|
659
|
+
job_id: string;
|
|
660
|
+
status: string;
|
|
661
|
+
}
|
|
662
|
+
export interface DrmLegacyKey {
|
|
663
|
+
content_type: "content";
|
|
664
|
+
policy: "default";
|
|
665
|
+
status: string;
|
|
666
|
+
}
|
|
667
|
+
export interface DrmLegacyStatus {
|
|
668
|
+
key: DrmLegacyKey;
|
|
669
|
+
status: string;
|
|
670
|
+
job_id: string;
|
|
671
|
+
progress: number;
|
|
672
|
+
}
|
|
673
|
+
export interface DrmDashboardMedia {
|
|
674
|
+
total: number;
|
|
675
|
+
bytes: number;
|
|
676
|
+
}
|
|
677
|
+
export interface DrmDashboardContent {
|
|
678
|
+
libraries: number;
|
|
679
|
+
categories: number;
|
|
680
|
+
items: number;
|
|
681
|
+
compositions: number;
|
|
682
|
+
}
|
|
683
|
+
export interface DrmDashboardPackages {
|
|
684
|
+
ready: number;
|
|
685
|
+
active: number;
|
|
686
|
+
failed: number;
|
|
687
|
+
}
|
|
688
|
+
export interface DrmDashboard {
|
|
689
|
+
media: DrmDashboardMedia;
|
|
690
|
+
content: DrmDashboardContent;
|
|
691
|
+
packages: DrmDashboardPackages;
|
|
692
|
+
recent_jobs: DrmJobResponse[];
|
|
693
|
+
}
|
|
694
|
+
export interface DrmHealthWorker {
|
|
695
|
+
mode: "remote" | "service";
|
|
696
|
+
concurrency: number;
|
|
697
|
+
}
|
|
698
|
+
export interface DrmHealthTools {
|
|
699
|
+
ffmpeg: string | null;
|
|
700
|
+
shaka_packager: string | null;
|
|
701
|
+
}
|
|
702
|
+
export interface DrmHealthStorage {
|
|
703
|
+
endpoint: string | null;
|
|
704
|
+
bucket: string;
|
|
705
|
+
public_url: string | null;
|
|
706
|
+
region: string;
|
|
707
|
+
path_style: boolean;
|
|
708
|
+
credentials_configured: boolean;
|
|
709
|
+
}
|
|
710
|
+
export interface DrmHealth {
|
|
711
|
+
service: "ok";
|
|
712
|
+
database: boolean;
|
|
713
|
+
object_storage: boolean;
|
|
714
|
+
worker: DrmHealthWorker;
|
|
715
|
+
tools: DrmHealthTools;
|
|
716
|
+
storage: DrmHealthStorage;
|
|
717
|
+
}
|
|
718
|
+
export interface DrmError {
|
|
719
|
+
error: string;
|
|
720
|
+
}
|
|
721
|
+
//# sourceMappingURL=wire.types.d.ts.map
|