@mengine/medeo-tool 2.0.1-alpha.11 → 2.0.1-alpha.12

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.
@@ -30,6 +30,18 @@ type CreateEntityInput = { [K in KnownEntityKind]: {
30
30
  entity_id?: string;
31
31
  entity_kind: K;
32
32
  payload: StoredEntityPayload<K>;
33
+ /**
34
+ * The stored resource this entity is made from.
35
+ *
36
+ * Naming it here is the only way to say where an entity's bytes come from:
37
+ * the Asset row and the `from-asset` Relation that reaches it are assembled
38
+ * by the host, never authored. Only a kind that declares `FromAsset` —
39
+ * video, audio, image, caption, audio-script — accepts one.
40
+ */
41
+ asset?: {
42
+ system: 'memota' | 'memota-speech';
43
+ key: string;
44
+ };
33
45
  } }[KnownEntityKind];
34
46
  interface DeleteEntityInput {
35
47
  entity_id: string;
@@ -1,4 +1,4 @@
1
- import { l as EntityStoreSnapshot } from "./entity-contract-Cf3AiSe7.mjs";
1
+ import { l as EntityStoreSnapshot } from "./entity-contract-DNIIwpn1.mjs";
2
2
  import { VideoDocument } from "@mengine/medeo-client";
3
3
 
4
4
  //#region src/sandbox/worker-entry.d.ts
@@ -1,4 +1,4 @@
1
- import { n as toDslRows, r as businessFacades, t as EntitySandbox } from "./entity-sandbox-BTR2cRl1.mjs";
1
+ import { n as toDslRows, r as businessFacades, t as EntitySandbox } from "./entity-sandbox-DpIkxcei.mjs";
2
2
  import { LoroEntityDocument, assertCanonicalEditorResources, assertMediaAssetWritePolicy, audioScriptAssetContent, audioScriptAssetFields, audioScriptAssetOf, base64ToBytes, bytesToBase64, projectEntityTimeline } from "@mengine/medeo-client";
3
3
  import { parentPort, workerData } from "node:worker_threads";
4
4
  import { randomUUID } from "node:crypto";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mengine/medeo-tool",
3
- "version": "2.0.1-alpha.11",
3
+ "version": "2.0.1-alpha.12",
4
4
  "license": "UNLICENSED",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,7 +24,7 @@
24
24
  "registry": "https://registry.npmjs.org/"
25
25
  },
26
26
  "dependencies": {
27
- "@mengine/medeo-client": "2.0.1-alpha.11"
27
+ "@mengine/medeo-client": "2.0.1-alpha.12"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "^25.9.1",