@devultur/convex 1.6.0 → 1.6.1
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/dist/{chunk-V5YH4YJG.js → chunk-5E5O6VTK.js} +2 -0
- package/dist/{chunk-34XXHYL3.js → chunk-6B56MANA.js} +2 -1
- package/dist/{error-labels-Sf6gow24.d.ts → error-labels-DRvjG-Vd.d.ts} +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +1 -1
- package/dist/locales/es-formal.d.ts +3 -3
- package/dist/locales/es-formal.js +2 -2
- package/dist/locales/es.d.ts +3 -3
- package/dist/locales/es.js +2 -2
- package/dist/{preview-labels-C2nUUY_f.d.ts → preview-labels-CnFuWb4Z.d.ts} +1 -1
- package/dist/react.d.ts +3 -3
- package/dist/react.js +1 -1
- package/dist/{types-C0ruHUcu.d.ts → types-VIMqtvkA.d.ts} +18 -18
- package/dist/validators.d.ts +7 -7
- package/package.json +3 -3
|
@@ -39,6 +39,7 @@ var DEVULTUR_ERROR_CODES = [
|
|
|
39
39
|
"link_not_found",
|
|
40
40
|
"link_expired",
|
|
41
41
|
"link_used",
|
|
42
|
+
"file_gone",
|
|
42
43
|
"not_configured",
|
|
43
44
|
// Download grants
|
|
44
45
|
"invalid_grant",
|
|
@@ -182,6 +183,7 @@ var devulturErrorLabels = {
|
|
|
182
183
|
link_not_found: "This download link doesn't exist.",
|
|
183
184
|
link_expired: "This download link has expired.",
|
|
184
185
|
link_used: "This download link was already used.",
|
|
186
|
+
file_gone: "This download link's file was deleted.",
|
|
185
187
|
not_configured: "This feature isn't set up.",
|
|
186
188
|
invalid_grant: "This download grant isn't valid.",
|
|
187
189
|
grant_gone: "This download grant is no longer valid.",
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
formatBytes,
|
|
8
8
|
formatDate,
|
|
9
9
|
labelText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5E5O6VTK.js";
|
|
11
11
|
|
|
12
12
|
// src/locales/es.ts
|
|
13
13
|
var LOCALE = "es";
|
|
@@ -56,6 +56,7 @@ var devulturErrorLabels = {
|
|
|
56
56
|
link_not_found: "Este enlace de descarga no existe.",
|
|
57
57
|
link_expired: "Este enlace de descarga ya venci\xF3.",
|
|
58
58
|
link_used: "Este enlace de descarga ya se us\xF3.",
|
|
59
|
+
file_gone: "El archivo de este enlace de descarga se elimin\xF3.",
|
|
59
60
|
not_configured: "Esta funci\xF3n no est\xE1 configurada.",
|
|
60
61
|
invalid_grant: "Este permiso de descarga no es v\xE1lido.",
|
|
61
62
|
grant_gone: "Este permiso de descarga ya no es v\xE1lido.",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const DEVULTUR_ERROR_CODES: readonly ["file_too_large", "content_type_not_allowed", "content_type_mismatch", "content_unverified", "unsupported_content_type", "media_type_mismatch", "already_exists", "write_conflict", "upload_not_found", "invalid_upload_key", "invalid_path", "path_required", "invalid_expires_in", "invalid_file_expires_in", "invalid_cache_control", "invalid_limits", "invalid_prefix", "invalid_visibility", "invalid_cursor", "invalid_sha256", "sha256_mismatch", "max_files_reached", "invalid_multipart", "invalid_size", "invalid_part", "invalid_parts", "part_size_mismatch", "part_sha256_required", "invalid_media_metadata", "expired", "invalid_key", "invalid_max_uses", "link_exists", "link_not_found", "link_expired", "link_used", "not_configured", "invalid_grant", "grant_gone", "grant_exhausted", "grant_exists", "grant_in_query", "grant_not_found", "grant_cannot_delete", "link_exceeds_grant", "invalid_link_caps", "invalid_max_links", "invalid_can_delete", "invalid_metadata", "retention_active", "lock_conflict", "compliance_extend_only", "lock_privilege_required", "lock_record_unreadable", "lock_below_minimum", "invalid_lock", "invalid_hold", "reserved_key", "keys_bucket_missing", "encryption_key_missing", "unauthorized", "session_mismatch", "token_rejected", "reserved_user_id", "invalid_scopes", "user_mismatch", "transcode_not_configured", "transcode_runner_unavailable", "transcode_launch_failed", "original_not_retained", "locale_not_allowed", "captions_provider_rate_limited", "captions_provider_error", "captions_failed", "webhook_secret_missing", "worker_auth_secret_missing", "worker_error", "http_error", "too_large", "unsupported_type", "type_mismatch", "token_unavailable", "page_cap", "render_failed", "capability_unavailable"];
|
|
1
|
+
declare const DEVULTUR_ERROR_CODES: readonly ["file_too_large", "content_type_not_allowed", "content_type_mismatch", "content_unverified", "unsupported_content_type", "media_type_mismatch", "already_exists", "write_conflict", "upload_not_found", "invalid_upload_key", "invalid_path", "path_required", "invalid_expires_in", "invalid_file_expires_in", "invalid_cache_control", "invalid_limits", "invalid_prefix", "invalid_visibility", "invalid_cursor", "invalid_sha256", "sha256_mismatch", "max_files_reached", "invalid_multipart", "invalid_size", "invalid_part", "invalid_parts", "part_size_mismatch", "part_sha256_required", "invalid_media_metadata", "expired", "invalid_key", "invalid_max_uses", "link_exists", "link_not_found", "link_expired", "link_used", "file_gone", "not_configured", "invalid_grant", "grant_gone", "grant_exhausted", "grant_exists", "grant_in_query", "grant_not_found", "grant_cannot_delete", "link_exceeds_grant", "invalid_link_caps", "invalid_max_links", "invalid_can_delete", "invalid_metadata", "retention_active", "lock_conflict", "compliance_extend_only", "lock_privilege_required", "lock_record_unreadable", "lock_below_minimum", "invalid_lock", "invalid_hold", "reserved_key", "keys_bucket_missing", "encryption_key_missing", "unauthorized", "session_mismatch", "token_rejected", "reserved_user_id", "invalid_scopes", "user_mismatch", "transcode_not_configured", "transcode_runner_unavailable", "transcode_launch_failed", "original_not_retained", "locale_not_allowed", "captions_provider_rate_limited", "captions_provider_error", "captions_failed", "webhook_secret_missing", "worker_auth_secret_missing", "worker_error", "http_error", "too_large", "unsupported_type", "type_mismatch", "token_unavailable", "page_cap", "render_failed", "capability_unavailable"];
|
|
2
2
|
/** A stable error code: match on it, not on `message`. */
|
|
3
3
|
type DevulturErrorCode = (typeof DEVULTUR_ERROR_CODES)[number];
|
|
4
4
|
declare function isDevulturErrorCode(code: unknown): code is DevulturErrorCode;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { WorkerUploadResult, DeleteVideoResult, TranscodeJobResult, ObjectLock,
|
|
|
2
2
|
export { CaptionLocale, DevulturConfig, DevulturKind, DevulturMedia, ImageFit, ImageFormat, SecurityLevel, SpeechProvider, StorageProvider, TranscodePreset, TranscodeProvider, TranslationProvider, VideoModuleConfig, Visibility } from '@devultur/core';
|
|
3
3
|
import { FunctionReference, PaginationResult, FunctionVisibility, DefaultFunctionArgs, GenericQueryCtx, GenericDataModel, GenericMutationCtx, GenericActionCtx, RegisteredQuery, RegisteredMutation, RegisteredAction, PaginationOptions } from 'convex/server';
|
|
4
4
|
import { PropertyValidators, Value, ConvexError } from 'convex/values';
|
|
5
|
-
import { M as MediaRecord, P as ProgressRecord, D as DevulturComponentConfig } from './types-
|
|
6
|
-
export { a as DevulturUploadConfig } from './types-
|
|
7
|
-
export { a as DEVULTUR_ERROR_CODES, b as DevulturErrorCode, c as DevulturErrorDetails, d as DevulturErrorLabel, D as DevulturErrorLabels, e as describeDevulturError, f as devulturErrorLabels, i as isDevulturErrorCode } from './error-labels-
|
|
5
|
+
import { M as MediaRecord, P as ProgressRecord, D as DevulturComponentConfig } from './types-VIMqtvkA.js';
|
|
6
|
+
export { a as DevulturUploadConfig } from './types-VIMqtvkA.js';
|
|
7
|
+
export { a as DEVULTUR_ERROR_CODES, b as DevulturErrorCode, c as DevulturErrorDetails, d as DevulturErrorLabel, D as DevulturErrorLabels, e as describeDevulturError, f as devulturErrorLabels, i as isDevulturErrorCode } from './error-labels-DRvjG-Vd.js';
|
|
8
8
|
export { dv } from './validators.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -247,20 +247,20 @@ declare function exposedFunctions(component: ComponentApi, config?: DevulturComp
|
|
|
247
247
|
}, any>;
|
|
248
248
|
createUploadUrl: ExposedFunction<"action", {
|
|
249
249
|
visibility?: "public" | "private" | undefined;
|
|
250
|
-
contentType: string;
|
|
251
250
|
filename: string;
|
|
251
|
+
contentType: string;
|
|
252
252
|
}, any>;
|
|
253
253
|
confirmUpload: ExposedFunction<"action", {
|
|
254
254
|
filename?: string | undefined;
|
|
255
|
+
width?: number | undefined;
|
|
255
256
|
height?: number | undefined;
|
|
256
257
|
pageCount?: number | undefined;
|
|
257
|
-
width?: number | undefined;
|
|
258
258
|
key: string;
|
|
259
259
|
}, any>;
|
|
260
260
|
updateMediaMeta: ExposedFunction<"mutation", {
|
|
261
|
+
title?: string | undefined;
|
|
261
262
|
alt?: string | undefined;
|
|
262
263
|
tags?: string[] | undefined;
|
|
263
|
-
title?: string | undefined;
|
|
264
264
|
key: string;
|
|
265
265
|
}, any>;
|
|
266
266
|
deleteMedia: ExposedFunction<"action", {
|
|
@@ -277,7 +277,7 @@ declare function exposedFunctions(component: ComponentApi, config?: DevulturComp
|
|
|
277
277
|
key: string;
|
|
278
278
|
}, any>;
|
|
279
279
|
listMediaPage: ExposedFunction<"query", {
|
|
280
|
-
type?: "
|
|
280
|
+
type?: "image" | "video" | "file" | undefined;
|
|
281
281
|
paginationOpts: {
|
|
282
282
|
id?: number;
|
|
283
283
|
endCursor?: string | null;
|
|
@@ -288,7 +288,7 @@ declare function exposedFunctions(component: ComponentApi, config?: DevulturComp
|
|
|
288
288
|
};
|
|
289
289
|
}, any>;
|
|
290
290
|
searchMedia: ExposedFunction<"query", {
|
|
291
|
-
type?: "
|
|
291
|
+
type?: "image" | "video" | "file" | undefined;
|
|
292
292
|
paginationOpts: {
|
|
293
293
|
id?: number;
|
|
294
294
|
endCursor?: string | null;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VideoPlayerLabels } from '@devultur/react';
|
|
2
|
-
import { A as AttachmentLabels, M as MediaLibraryLabels, a as MediaPickerLabels, P as PreviewLabels } from '../preview-labels-
|
|
3
|
-
import { D as DevulturErrorLabels } from '../error-labels-
|
|
4
|
-
import '../types-
|
|
2
|
+
import { A as AttachmentLabels, M as MediaLibraryLabels, a as MediaPickerLabels, P as PreviewLabels } from '../preview-labels-CnFuWb4Z.js';
|
|
3
|
+
import { D as DevulturErrorLabels } from '../error-labels-DRvjG-Vd.js';
|
|
4
|
+
import '../types-VIMqtvkA.js';
|
|
5
5
|
import '@devultur/core';
|
|
6
6
|
import 'convex/values';
|
|
7
7
|
import 'convex/server';
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
mediaPickerLabels,
|
|
6
6
|
previewLabels,
|
|
7
7
|
videoPlayerLabels
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-6B56MANA.js";
|
|
9
9
|
import "../chunk-QBHIZBOQ.js";
|
|
10
10
|
import {
|
|
11
11
|
describeDevulturError,
|
|
12
12
|
labelText
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-5E5O6VTK.js";
|
|
14
14
|
|
|
15
15
|
// src/locales/es-formal.ts
|
|
16
16
|
var TRY_AGAIN = "Vuelva a intentarlo.";
|
package/dist/locales/es.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VideoPlayerLabels } from '@devultur/react';
|
|
2
|
-
import { A as AttachmentLabels, M as MediaLibraryLabels, a as MediaPickerLabels, P as PreviewLabels } from '../preview-labels-
|
|
3
|
-
import { D as DevulturErrorLabels } from '../error-labels-
|
|
4
|
-
import '../types-
|
|
2
|
+
import { A as AttachmentLabels, M as MediaLibraryLabels, a as MediaPickerLabels, P as PreviewLabels } from '../preview-labels-CnFuWb4Z.js';
|
|
3
|
+
import { D as DevulturErrorLabels } from '../error-labels-DRvjG-Vd.js';
|
|
4
|
+
import '../types-VIMqtvkA.js';
|
|
5
5
|
import '@devultur/core';
|
|
6
6
|
import 'convex/values';
|
|
7
7
|
import 'convex/server';
|
package/dist/locales/es.js
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
mediaPickerLabels,
|
|
6
6
|
previewLabels,
|
|
7
7
|
videoPlayerLabels
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-6B56MANA.js";
|
|
9
9
|
import "../chunk-QBHIZBOQ.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-5E5O6VTK.js";
|
|
11
11
|
export {
|
|
12
12
|
attachmentLabels,
|
|
13
13
|
devulturErrorLabels,
|
package/dist/react.d.ts
CHANGED
|
@@ -3,12 +3,12 @@ import { V as ViewerTokenAction, a as ViewerTokenArgs, D as DevulturApi } from '
|
|
|
3
3
|
export { b as DevulturApiContext, c as DevulturContext, d as DevulturContextValue, e as DevulturProgressContext, f as DevulturProgressContextValue, T as TokenStatus, U as UploadOptions, g as UploadedMedia, h as ViewerTokenResult, u as useCanDeliver, i as useDevultur, j as useDevulturApi, k as useDevulturOptional, l as useDevulturProgress } from './contexts-6F8TJINX.js';
|
|
4
4
|
import { BakeOutputFormat, MediaUploadState, MediaUploadError } from '@devultur/react';
|
|
5
5
|
export { MediaUploadError, MediaUploadState, UploadProgress } from '@devultur/react';
|
|
6
|
-
import { A as AttachmentLabels, b as MediaFetchError, M as MediaLibraryLabels, P as PreviewLabels, a as MediaPickerLabels } from './preview-labels-
|
|
7
|
-
export { c as AttachmentKind, d as MediaFetchErrorCode, e as defaultAttachmentLabels, f as defaultMediaLibraryLabels, g as defaultMediaPickerLabels, h as defaultPreviewLabels, i as formatDuration, j as formatFileSize } from './preview-labels-
|
|
6
|
+
import { A as AttachmentLabels, b as MediaFetchError, M as MediaLibraryLabels, P as PreviewLabels, a as MediaPickerLabels } from './preview-labels-CnFuWb4Z.js';
|
|
7
|
+
export { c as AttachmentKind, d as MediaFetchErrorCode, e as defaultAttachmentLabels, f as defaultMediaLibraryLabels, g as defaultMediaPickerLabels, h as defaultPreviewLabels, i as formatDuration, j as formatFileSize } from './preview-labels-CnFuWb4Z.js';
|
|
8
8
|
import { Visibility, DevulturMedia, MediaUrlOptions, MediaStatusValue, ProcessingPhase, FailureReason } from '@devultur/core';
|
|
9
9
|
import { VideoProps } from './react/hooks.js';
|
|
10
10
|
export { useMediaUrl, useVideoProps } from './react/hooks.js';
|
|
11
|
-
import { M as MediaRecord } from './types-
|
|
11
|
+
import { M as MediaRecord } from './types-VIMqtvkA.js';
|
|
12
12
|
import { P as PdfjsLoader } from './pdf-render-BwJGagvz.js';
|
|
13
13
|
export { a as PdfjsModule } from './pdf-render-BwJGagvz.js';
|
|
14
14
|
import 'convex/server';
|
package/dist/react.js
CHANGED
|
@@ -5,13 +5,16 @@ import * as convex_server from 'convex/server';
|
|
|
5
5
|
|
|
6
6
|
declare const _default: convex_server.SchemaDefinition<{
|
|
7
7
|
media: convex_server.TableDefinition<convex_values.VObject<{
|
|
8
|
+
visibility?: "public" | "private" | undefined;
|
|
9
|
+
width?: number | undefined;
|
|
10
|
+
height?: number | undefined;
|
|
11
|
+
title?: string | undefined;
|
|
8
12
|
alt?: string | undefined;
|
|
9
13
|
tags?: string[] | undefined;
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
duration?: number | undefined;
|
|
15
|
+
pageCount?: number | undefined;
|
|
12
16
|
captionLocales?: string[] | undefined;
|
|
13
17
|
captionsPending?: boolean | undefined;
|
|
14
|
-
duration?: number | undefined;
|
|
15
18
|
failureReason?: "internal" | "invalid_input" | "unsupported_codec" | "timeout" | "capacity" | undefined;
|
|
16
19
|
playlistUrl?: string | undefined;
|
|
17
20
|
retriable?: boolean | undefined;
|
|
@@ -23,17 +26,14 @@ declare const _default: convex_server.SchemaDefinition<{
|
|
|
23
26
|
total: number;
|
|
24
27
|
} | undefined;
|
|
25
28
|
transcodeStatus?: "queued" | "transcoding" | "captioning" | "ready" | "failed" | undefined;
|
|
26
|
-
height?: number | undefined;
|
|
27
|
-
pageCount?: number | undefined;
|
|
28
|
-
width?: number | undefined;
|
|
29
29
|
objectKey?: string | undefined;
|
|
30
30
|
searchText?: string | undefined;
|
|
31
31
|
renditions?: {
|
|
32
|
-
height?: number | undefined;
|
|
33
32
|
width?: number | undefined;
|
|
33
|
+
height?: number | undefined;
|
|
34
|
+
kind: "hls" | "mp4";
|
|
34
35
|
key: string;
|
|
35
36
|
variant: string;
|
|
36
|
-
kind: "hls" | "mp4";
|
|
37
37
|
rung: string;
|
|
38
38
|
url: string;
|
|
39
39
|
}[] | undefined;
|
|
@@ -43,11 +43,11 @@ declare const _default: convex_server.SchemaDefinition<{
|
|
|
43
43
|
} | undefined;
|
|
44
44
|
hasAudio?: boolean | undefined;
|
|
45
45
|
storyboardKey?: string | undefined;
|
|
46
|
-
type: "
|
|
47
|
-
key: string;
|
|
48
|
-
contentType: string;
|
|
46
|
+
type: "image" | "video" | "file";
|
|
49
47
|
filename: string;
|
|
48
|
+
key: string;
|
|
50
49
|
sizeBytes: number;
|
|
50
|
+
contentType: string;
|
|
51
51
|
createdAt: number;
|
|
52
52
|
}, {
|
|
53
53
|
captionLocales: convex_values.VArray<string[] | undefined, convex_values.VString<string, "required">, "optional">;
|
|
@@ -55,19 +55,19 @@ declare const _default: convex_server.SchemaDefinition<{
|
|
|
55
55
|
duration: convex_values.VFloat64<number | undefined, "optional">;
|
|
56
56
|
createdAt: convex_values.VFloat64<number, "required">;
|
|
57
57
|
renditions: convex_values.VArray<{
|
|
58
|
-
height?: number | undefined;
|
|
59
58
|
width?: number | undefined;
|
|
59
|
+
height?: number | undefined;
|
|
60
|
+
kind: "hls" | "mp4";
|
|
60
61
|
key: string;
|
|
61
62
|
variant: string;
|
|
62
|
-
kind: "hls" | "mp4";
|
|
63
63
|
rung: string;
|
|
64
64
|
url: string;
|
|
65
65
|
}[] | undefined, convex_values.VObject<{
|
|
66
|
-
height?: number | undefined;
|
|
67
66
|
width?: number | undefined;
|
|
67
|
+
height?: number | undefined;
|
|
68
|
+
kind: "hls" | "mp4";
|
|
68
69
|
key: string;
|
|
69
70
|
variant: string;
|
|
70
|
-
kind: "hls" | "mp4";
|
|
71
71
|
rung: string;
|
|
72
72
|
url: string;
|
|
73
73
|
}, {
|
|
@@ -78,7 +78,7 @@ declare const _default: convex_server.SchemaDefinition<{
|
|
|
78
78
|
width: convex_values.VFloat64<number | undefined, "optional">;
|
|
79
79
|
height: convex_values.VFloat64<number | undefined, "optional">;
|
|
80
80
|
url: convex_values.VString<string, "required">;
|
|
81
|
-
}, "required", "
|
|
81
|
+
}, "required", "kind" | "key" | "width" | "height" | "variant" | "rung" | "url">, "optional">;
|
|
82
82
|
posterUrls: convex_values.VObject<{
|
|
83
83
|
jpg?: string | undefined;
|
|
84
84
|
avif?: string | undefined;
|
|
@@ -89,7 +89,7 @@ declare const _default: convex_server.SchemaDefinition<{
|
|
|
89
89
|
hasAudio: convex_values.VBoolean<boolean | undefined, "optional">;
|
|
90
90
|
storyboardKey: convex_values.VString<string | undefined, "optional">;
|
|
91
91
|
key: convex_values.VString<string, "required">;
|
|
92
|
-
type: convex_values.VUnion<"
|
|
92
|
+
type: convex_values.VUnion<"image" | "video" | "file", [convex_values.VLiteral<"video", "required">, convex_values.VLiteral<"image", "required">, convex_values.VLiteral<"file", "required">], "required", never>;
|
|
93
93
|
filename: convex_values.VString<string, "required">;
|
|
94
94
|
contentType: convex_values.VString<string, "required">;
|
|
95
95
|
sizeBytes: convex_values.VFloat64<number, "required">;
|
|
@@ -117,7 +117,7 @@ declare const _default: convex_server.SchemaDefinition<{
|
|
|
117
117
|
retriable: convex_values.VBoolean<boolean | undefined, "optional">;
|
|
118
118
|
playlistUrl: convex_values.VString<string | undefined, "optional">;
|
|
119
119
|
thumbnailKey: convex_values.VString<string | undefined, "optional">;
|
|
120
|
-
}, "required", "type" | "
|
|
120
|
+
}, "required", "type" | "visibility" | "filename" | "key" | "width" | "height" | "title" | "alt" | "tags" | "sizeBytes" | "duration" | "pageCount" | "contentType" | "captionLocales" | "captionsPending" | "failureReason" | "playlistUrl" | "retriable" | "thumbnailKey" | "transcodeError" | "transcodeProgress" | "transcodeStatus" | "objectKey" | "searchText" | "createdAt" | "renditions" | "posterUrls" | "hasAudio" | "storyboardKey" | "transcodeProgress.current" | "transcodeProgress.total" | "transcodeProgress.phase" | "posterUrls.jpg" | "posterUrls.avif">, {
|
|
121
121
|
by_key: ["key", "_creationTime"];
|
|
122
122
|
by_type: ["type", "_creationTime"];
|
|
123
123
|
}, {
|
package/dist/validators.d.ts
CHANGED
|
@@ -12,21 +12,21 @@ import { DevulturKind } from '@devultur/core';
|
|
|
12
12
|
*/
|
|
13
13
|
declare const dv: {
|
|
14
14
|
media(kind?: DevulturKind): convex_values.VObject<{
|
|
15
|
+
filename?: string | undefined;
|
|
15
16
|
key?: string | undefined;
|
|
17
|
+
width?: number | undefined;
|
|
18
|
+
height?: number | undefined;
|
|
19
|
+
title?: string | undefined;
|
|
16
20
|
alt?: string | undefined;
|
|
17
21
|
tags?: string[] | undefined;
|
|
18
|
-
title?: string | undefined;
|
|
19
|
-
filename?: string | undefined;
|
|
20
22
|
sizeBytes?: number | undefined;
|
|
21
23
|
duration?: number | undefined;
|
|
22
|
-
height?: number | undefined;
|
|
23
24
|
pageCount?: number | undefined;
|
|
24
|
-
width?: number | undefined;
|
|
25
|
-
visibility: "public" | "private";
|
|
26
25
|
id: string;
|
|
27
26
|
kind: DevulturKind;
|
|
27
|
+
visibility: "public" | "private";
|
|
28
28
|
}, {
|
|
29
|
-
kind: convex_values.VLiteral<DevulturKind, "required"> | convex_values.VUnion<"
|
|
29
|
+
kind: convex_values.VLiteral<DevulturKind, "required"> | convex_values.VUnion<"image" | "video" | "file", [convex_values.VLiteral<"image", "required">, convex_values.VLiteral<"video", "required">, convex_values.VLiteral<"file", "required">], "required", never>;
|
|
30
30
|
id: convex_values.VString<string, "required">;
|
|
31
31
|
visibility: convex_values.VUnion<"public" | "private", [convex_values.VLiteral<"public", "required">, convex_values.VLiteral<"private", "required">], "required", never>;
|
|
32
32
|
filename: convex_values.VString<string | undefined, "optional">;
|
|
@@ -39,7 +39,7 @@ declare const dv: {
|
|
|
39
39
|
sizeBytes: convex_values.VFloat64<number | undefined, "optional">;
|
|
40
40
|
duration: convex_values.VFloat64<number | undefined, "optional">;
|
|
41
41
|
pageCount: convex_values.VFloat64<number | undefined, "optional">;
|
|
42
|
-
}, "required", "
|
|
42
|
+
}, "required", "id" | "kind" | "visibility" | "filename" | "key" | "width" | "height" | "title" | "alt" | "tags" | "sizeBytes" | "duration" | "pageCount">;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
export { dv };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devultur/convex",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Convex component for Devultur media: media records, uploads, transcodes, watch progress and React bindings",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"convex",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"docs"
|
|
70
70
|
],
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@devultur/core": "1.6.
|
|
73
|
-
"@devultur/react": "1.6.
|
|
72
|
+
"@devultur/core": "1.6.1",
|
|
73
|
+
"@devultur/react": "1.6.1"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"convex": ">=1.25.0",
|