@futdevpro/fsm-dynamo 1.20.40 → 1.20.42

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.
Files changed (33) hide show
  1. package/build/_modules/ai/_collections/ai-media-provenance.util.d.ts +22 -0
  2. package/build/_modules/ai/_collections/ai-media-provenance.util.d.ts.map +1 -0
  3. package/build/_modules/ai/_collections/ai-media-provenance.util.js +29 -0
  4. package/build/_modules/ai/_collections/ai-media-provenance.util.js.map +1 -0
  5. package/build/_modules/ai/_models/ai-image-request.interface.d.ts +34 -0
  6. package/build/_modules/ai/_models/ai-image-request.interface.d.ts.map +1 -0
  7. package/build/_modules/ai/_models/ai-image-request.interface.js +3 -0
  8. package/build/_modules/ai/_models/ai-image-request.interface.js.map +1 -0
  9. package/build/_modules/ai/_models/ai-image-response.interface.d.ts +17 -0
  10. package/build/_modules/ai/_models/ai-image-response.interface.d.ts.map +1 -0
  11. package/build/_modules/ai/_models/ai-image-response.interface.js +3 -0
  12. package/build/_modules/ai/_models/ai-image-response.interface.js.map +1 -0
  13. package/build/_modules/ai/_models/ai-media-file.interface.d.ts +15 -0
  14. package/build/_modules/ai/_models/ai-media-file.interface.d.ts.map +1 -0
  15. package/build/_modules/ai/_models/ai-media-file.interface.js +3 -0
  16. package/build/_modules/ai/_models/ai-media-file.interface.js.map +1 -0
  17. package/build/_modules/ai/_models/ai-media-provenance.interface.d.ts +60 -0
  18. package/build/_modules/ai/_models/ai-media-provenance.interface.d.ts.map +1 -0
  19. package/build/_modules/ai/_models/ai-media-provenance.interface.js +3 -0
  20. package/build/_modules/ai/_models/ai-media-provenance.interface.js.map +1 -0
  21. package/build/_modules/ai/_models/ai-speech-request.interface.d.ts +31 -0
  22. package/build/_modules/ai/_models/ai-speech-request.interface.d.ts.map +1 -0
  23. package/build/_modules/ai/_models/ai-speech-request.interface.js +3 -0
  24. package/build/_modules/ai/_models/ai-speech-request.interface.js.map +1 -0
  25. package/build/_modules/ai/_models/ai-speech-response.interface.d.ts +32 -0
  26. package/build/_modules/ai/_models/ai-speech-response.interface.d.ts.map +1 -0
  27. package/build/_modules/ai/_models/ai-speech-response.interface.js +3 -0
  28. package/build/_modules/ai/_models/ai-speech-response.interface.js.map +1 -0
  29. package/build/_modules/ai/index.d.ts +7 -0
  30. package/build/_modules/ai/index.d.ts.map +1 -1
  31. package/build/_modules/ai/index.js +7 -0
  32. package/build/_modules/ai/index.js.map +1 -1
  33. package/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ import { DyFM_AI_MediaProvenance_Record } from '../_models/ai-media-provenance.interface';
2
+ /**
3
+ * Chain-depth rules of the media provenance contract.
4
+ *
5
+ * A generation made from a previous generation's output loses quality, and its provenance stops pointing at
6
+ * anything a person made - so consumers ban such chains, and an explicit override may allow a bounded number
7
+ * of steps. The depth arithmetic lives here once, so every writer records, and every reader checks, the same
8
+ * number. It is the rule `dc media-image` already applies (dynamo-cli `DyCLI_MIG_Provenance_Util`).
9
+ */
10
+ export declare class DyFM_AI_MediaProvenance_Util {
11
+ /**
12
+ * The chain depth a new output gets: 0 when none of its inputs is a recorded generation (a prompt-only
13
+ * generation, or an edit of originals), otherwise the deepest generated input's depth + 1.
14
+ * A generated input recorded without `chainDepth` counts as a first generation (depth 0).
15
+ */
16
+ static nextChainDepth(generatedInputs: DyFM_AI_MediaProvenance_Record[]): number;
17
+ /**
18
+ * True when using `generatedInput` as an input would create a chain deeper than `maxChainDepth`.
19
+ */
20
+ static exceedsChainLimit(generatedInput: DyFM_AI_MediaProvenance_Record, maxChainDepth: number): boolean;
21
+ }
22
+ //# sourceMappingURL=ai-media-provenance.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-media-provenance.util.d.ts","sourceRoot":"","sources":["../../../../src/_modules/ai/_collections/ai-media-provenance.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAE1F;;;;;;;GAOG;AACH,qBAAa,4BAA4B;IAEvC;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,eAAe,EAAE,8BAA8B,EAAE,GAAG,MAAM;IAQhF;;OAEG;IACH,MAAM,CAAC,iBAAiB,CAAC,cAAc,EAAE,8BAA8B,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO;CAGzG"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DyFM_AI_MediaProvenance_Util = void 0;
4
+ /**
5
+ * Chain-depth rules of the media provenance contract.
6
+ *
7
+ * A generation made from a previous generation's output loses quality, and its provenance stops pointing at
8
+ * anything a person made - so consumers ban such chains, and an explicit override may allow a bounded number
9
+ * of steps. The depth arithmetic lives here once, so every writer records, and every reader checks, the same
10
+ * number. It is the rule `dc media-image` already applies (dynamo-cli `DyCLI_MIG_Provenance_Util`).
11
+ */
12
+ class DyFM_AI_MediaProvenance_Util {
13
+ /**
14
+ * The chain depth a new output gets: 0 when none of its inputs is a recorded generation (a prompt-only
15
+ * generation, or an edit of originals), otherwise the deepest generated input's depth + 1.
16
+ * A generated input recorded without `chainDepth` counts as a first generation (depth 0).
17
+ */
18
+ static nextChainDepth(generatedInputs) {
19
+ return generatedInputs.reduce((depth, input) => Math.max(depth, (input.chainDepth ?? 0) + 1), 0);
20
+ }
21
+ /**
22
+ * True when using `generatedInput` as an input would create a chain deeper than `maxChainDepth`.
23
+ */
24
+ static exceedsChainLimit(generatedInput, maxChainDepth) {
25
+ return (generatedInput.chainDepth ?? 0) + 1 > maxChainDepth;
26
+ }
27
+ }
28
+ exports.DyFM_AI_MediaProvenance_Util = DyFM_AI_MediaProvenance_Util;
29
+ //# sourceMappingURL=ai-media-provenance.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-media-provenance.util.js","sourceRoot":"","sources":["../../../../src/_modules/ai/_collections/ai-media-provenance.util.ts"],"names":[],"mappings":";;;AAEA;;;;;;;GAOG;AACH,MAAa,4BAA4B;IAEvC;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,eAAiD;QACrE,OAAO,eAAe,CAAC,MAAM,CAC3B,CAAC,KAAa,EAAE,KAAqC,EAAU,EAAE,CAC/D,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,UAAU,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,EAC9C,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,iBAAiB,CAAC,cAA8C,EAAE,aAAqB;QAC5F,OAAO,CAAC,cAAc,CAAC,UAAU,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC;IAC9D,CAAC;CACF;AArBD,oEAqBC"}
@@ -0,0 +1,34 @@
1
+ import { DyFM_AI_MediaFile } from './ai-media-file.interface';
2
+ /**
3
+ * Provider-independent image generation request.
4
+ *
5
+ * The optional knobs use the vocabulary `dc media-image` already sends (dynamo-cli `DyCLI_MIG_GenerateRequest`),
6
+ * and they stay strings on purpose: their accepted values are provider-specific (`1024x1024`, `high`,
7
+ * `transparent`), and the provider adapter - not this contract - is the place that knows them.
8
+ */
9
+ export interface DyFM_AI_ImageGeneration_Request {
10
+ /** The exact prompt - also what provenance records. */
11
+ prompt: string;
12
+ model: string;
13
+ /** The identity the call is made for. */
14
+ issuer: string;
15
+ /** Image dimensions, provider vocabulary (e.g. `1024x1024`). */
16
+ size?: string;
17
+ /** Rendering quality, provider vocabulary (e.g. `high`). */
18
+ quality?: string;
19
+ /** Background handling, provider vocabulary (e.g. `transparent`). */
20
+ background?: string;
21
+ /** Output encoding (e.g. `png`). */
22
+ format?: string;
23
+ debugLog?: boolean;
24
+ }
25
+ /**
26
+ * Image edit request: a generation request plus the input images it works from.
27
+ */
28
+ export interface DyFM_AI_ImageEdit_Request extends DyFM_AI_ImageGeneration_Request {
29
+ /** Input images. More than one only where the provider supports composition. */
30
+ images: DyFM_AI_MediaFile[];
31
+ /** Optional RGBA mask; transparent pixels mark the editable region. */
32
+ mask?: DyFM_AI_MediaFile;
33
+ }
34
+ //# sourceMappingURL=ai-image-request.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-image-request.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/ai/_models/ai-image-request.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;;;;;GAMG;AACH,MAAM,WAAW,+BAA+B;IAC9C,uDAAuD;IACvD,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,+BAA+B;IAChF,gFAAgF;IAChF,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,uEAAuE;IACvE,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC1B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ai-image-request.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-image-request.interface.js","sourceRoot":"","sources":["../../../../src/_modules/ai/_models/ai-image-request.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import { DyFM_AI_MediaFile } from './ai-media-file.interface';
2
+ /**
3
+ * Provider-independent result of an image generation or edit.
4
+ */
5
+ export interface DyFM_AI_Image_Response {
6
+ /** The provider that served the call (e.g. `openai`) - recorded, because a default can change. */
7
+ provider: string;
8
+ /** The model the provider used, when it says. Provenance records it. */
9
+ model?: string;
10
+ /** The produced images, in the order the provider returned them. */
11
+ images: DyFM_AI_MediaFile[];
12
+ /** Present only where the provider reports usage that can be priced. */
13
+ estimatedCostUSD?: number;
14
+ /** Provider-specific raw response. */
15
+ rawResponse?: unknown;
16
+ }
17
+ //# sourceMappingURL=ai-image-response.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-image-response.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/ai/_models/ai-image-response.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,kGAAkG;IAClG,QAAQ,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sCAAsC;IACtC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ai-image-response.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-image-response.interface.js","sourceRoot":"","sources":["../../../../src/_modules/ai/_models/ai-image-response.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * One media payload carried in memory - an input image, a generated image, an audio clip.
3
+ *
4
+ * Base64 rather than a path: this contract crosses process and machine boundaries (browser, server, CLI), and
5
+ * a file path means nothing on the other side. A CLI that works with files reads and writes them at its edge.
6
+ */
7
+ export interface DyFM_AI_MediaFile {
8
+ /** File name only, when the payload has one (multipart uploads, provenance inputs). */
9
+ name?: string;
10
+ /** IANA media type, e.g. `image/png` or `audio/mpeg`. */
11
+ mimeType: string;
12
+ /** The bytes, base64-encoded. */
13
+ base64: string;
14
+ }
15
+ //# sourceMappingURL=ai-media-file.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-media-file.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/ai/_models/ai-media-file.interface.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,uFAAuF;IACvF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,QAAQ,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ai-media-file.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-media-file.interface.js","sourceRoot":"","sources":["../../../../src/_modules/ai/_models/ai-media-file.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * One input a generated media file was derived from (e.g. the source images of an edit), identified by hash.
3
+ */
4
+ export interface DyFM_AI_MediaProvenance_Input {
5
+ /** File name only - inputs may live outside the registry's folder, so no path is claimed. */
6
+ name: string;
7
+ /** SHA-256 of the input file (hex). */
8
+ sha256: string;
9
+ }
10
+ /**
11
+ * Immutable provenance record of one generated media file (image, speech, ...).
12
+ *
13
+ * Carries what a reproduction needs: output hash · exact prompt · reference list · model · parameters ·
14
+ * input hashes · timestamp · chain depth.
15
+ *
16
+ * Mirrors, field for field, the v2 record `dc media-image` already writes into `prompt-provenance.json`
17
+ * (`DyCLI_MIP_ProvenanceEntry`, schema version 2): a record the CLI wrote is a valid value of this
18
+ * contract, and a record built against this contract passes the CLI's strict key allowlist. Renaming or
19
+ * adding a required field here would break that reader - add optional fields behind a schema version.
20
+ */
21
+ export interface DyFM_AI_MediaProvenance_Record {
22
+ /** The generated file, as the registry records it. */
23
+ sourceFile: string;
24
+ /** SHA-256 of the generated output (hex). */
25
+ sha256: string;
26
+ /** The tool that produced the file (e.g. `dc media-image`). */
27
+ generator: string;
28
+ /** The exact prompt sent to the provider - never a paraphrase. */
29
+ prompt: string;
30
+ /** Reference files the prompt pointed the provider at. */
31
+ referenceFiles?: string[];
32
+ /** ISO-8601 timestamp of the generation. Optional only for retrospective records. */
33
+ generatedAt?: string;
34
+ /** `native` when written at generation time, `retrospective` when reconstructed afterwards. */
35
+ recordOrigin?: 'native' | 'retrospective';
36
+ /** Pixel size of an image output. */
37
+ dimensions?: {
38
+ width: number;
39
+ height: number;
40
+ };
41
+ /** v2: the provider model that produced the file. */
42
+ model?: string;
43
+ /** v2: the request parameters that shaped the output (size, quality, voice, ...). */
44
+ parameters?: Record<string, string | number | boolean>;
45
+ /** v2: the inputs the output was derived from, by hash. */
46
+ inputs?: DyFM_AI_MediaProvenance_Input[];
47
+ /**
48
+ * v2: generations deep - 0 for a prompt-only generation or an edit of an original, otherwise the
49
+ * deepest generated input + 1. A chain ban reads this, so a record without it cannot vouch for itself.
50
+ */
51
+ chainDepth?: number;
52
+ /** v2: true only when a chain ban was explicitly overridden for this output. */
53
+ chainOverride?: boolean;
54
+ }
55
+ /** A media provenance registry file (`prompt-provenance.json`). */
56
+ export interface DyFM_AI_MediaProvenance_Registry {
57
+ schemaVersion: number;
58
+ entries: DyFM_AI_MediaProvenance_Record[];
59
+ }
60
+ //# sourceMappingURL=ai-media-provenance.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-media-provenance.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/ai/_models/ai-media-provenance.interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,6FAA6F;IAC7F,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,8BAA8B;IAC7C,sDAAsD;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,+DAA+D;IAC/D,SAAS,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,qFAAqF;IACrF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+FAA+F;IAC/F,YAAY,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;IAC1C,qCAAqC;IACrC,UAAU,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAE/C,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IACvD,2DAA2D;IAC3D,MAAM,CAAC,EAAE,6BAA6B,EAAE,CAAC;IACzC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gFAAgF;IAChF,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,mEAAmE;AACnE,MAAM,WAAW,gCAAgC;IAC/C,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,8BAA8B,EAAE,CAAC;CAC3C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ai-media-provenance.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-media-provenance.interface.js","sourceRoot":"","sources":["../../../../src/_modules/ai/_models/ai-media-provenance.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ import { DyFM_AI_MediaFile } from './ai-media-file.interface';
2
+ /**
3
+ * Provider-independent text-to-speech request, in the vocabulary `dc media-speech` already sends
4
+ * (dynamo-cli `DyCLI_MSP_SpeakRequest`).
5
+ */
6
+ export interface DyFM_AI_Speech_Request {
7
+ /** The text to speak. */
8
+ text: string;
9
+ model: string;
10
+ /** The identity the call is made for. */
11
+ issuer: string;
12
+ /** Provider voice id. A provider that requires one refuses rather than picking silently. */
13
+ voice?: string;
14
+ /** Provider output format token (e.g. `mp3`, `mp3_44100_128`). */
15
+ format?: string;
16
+ debugLog?: boolean;
17
+ }
18
+ /**
19
+ * Provider-independent speech-to-text request (dynamo-cli `DyCLI_MSP_TranscribeRequest`).
20
+ */
21
+ export interface DyFM_AI_Transcription_Request {
22
+ /** The audio to transcribe. */
23
+ audio: DyFM_AI_MediaFile;
24
+ model: string;
25
+ /** The identity the call is made for. */
26
+ issuer: string;
27
+ /** BCP-47-ish language hint. Providers that auto-detect may ignore it. */
28
+ language?: string;
29
+ debugLog?: boolean;
30
+ }
31
+ //# sourceMappingURL=ai-speech-request.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-speech-request.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/ai/_models/ai-speech-request.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,4FAA4F;IAC5F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,+BAA+B;IAC/B,KAAK,EAAE,iBAAiB,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ai-speech-request.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-speech-request.interface.js","sourceRoot":"","sources":["../../../../src/_modules/ai/_models/ai-speech-request.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ import { DyFM_AI_MediaFile } from './ai-media-file.interface';
2
+ /**
3
+ * Provider-independent result of a text-to-speech call.
4
+ */
5
+ export interface DyFM_AI_Speech_Response {
6
+ /** The provider that served the call (e.g. `elevenlabs`). */
7
+ provider: string;
8
+ /** The model the provider used, when it says. Provenance records it. */
9
+ model?: string;
10
+ /** The produced audio. */
11
+ audio: DyFM_AI_MediaFile;
12
+ /** The format token actually sent to the provider. */
13
+ format: string;
14
+ /** Provider-specific raw response. */
15
+ rawResponse?: unknown;
16
+ }
17
+ /**
18
+ * Provider-independent result of a speech-to-text call.
19
+ */
20
+ export interface DyFM_AI_Transcription_Response {
21
+ /** The provider that served the call (e.g. `openai`). */
22
+ provider: string;
23
+ /** The model the provider used, when it says. */
24
+ model?: string;
25
+ /** The transcript. */
26
+ text: string;
27
+ /** The language the provider reported, where it reports one. */
28
+ language?: string;
29
+ /** Provider-specific raw response. */
30
+ rawResponse?: unknown;
31
+ }
32
+ //# sourceMappingURL=ai-speech-response.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-speech-response.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/ai/_models/ai-speech-response.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0BAA0B;IAC1B,KAAK,EAAE,iBAAiB,CAAC;IACzB,sDAAsD;IACtD,MAAM,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,yDAAyD;IACzD,QAAQ,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ai-speech-response.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-speech-response.interface.js","sourceRoot":"","sources":["../../../../src/_modules/ai/_models/ai-speech-response.interface.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
+ export * from './_collections/ai-media-provenance.util';
1
2
  export * from './_collections/ai-model-ref.util';
2
3
  export * from './_collections/ai-model-registry.util';
3
4
  export * from './_enums/ai-provider.enum';
@@ -7,6 +8,10 @@ export * from './_models/ai-call-settings.interface';
7
8
  export * from './_models/ai-config.interface';
8
9
  export * from './_models/ai-embedding-request.interface';
9
10
  export * from './_models/ai-embedding-response.interface';
11
+ export * from './_models/ai-image-request.interface';
12
+ export * from './_models/ai-image-response.interface';
13
+ export * from './_models/ai-media-file.interface';
14
+ export * from './_models/ai-media-provenance.interface';
10
15
  export * from './_models/ai-llm-request.interface';
11
16
  export * from './_models/ai-llm-response.interface';
12
17
  export * from './_models/ai-message.interface';
@@ -15,6 +20,8 @@ export * from './_models/ai-model-info.interface';
15
20
  export * from './_models/ai-model-settings-schema.interface';
16
21
  export * from './_models/ai-provider-capabilities.interface';
17
22
  export * from './_models/ai-settings.interface';
23
+ export * from './_models/ai-speech-request.interface';
24
+ export * from './_models/ai-speech-response.interface';
18
25
  export * from './_models/ai-tool.interface';
19
26
  export * from './_models/ai-tool-call.interface';
20
27
  export * from './_models/ai-tool-result.interface';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/_modules/ai/index.ts"],"names":[],"mappings":"AACA,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AAGtD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAG9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC;AAClD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iDAAiD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/_modules/ai/index.ts"],"names":[],"mappings":"AACA,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AAGtD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAG9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC;AAClD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iDAAiD,CAAC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  // COLLECTIONS
5
+ tslib_1.__exportStar(require("./_collections/ai-media-provenance.util"), exports);
5
6
  tslib_1.__exportStar(require("./_collections/ai-model-ref.util"), exports);
6
7
  tslib_1.__exportStar(require("./_collections/ai-model-registry.util"), exports);
7
8
  // ENUMS
@@ -13,6 +14,10 @@ tslib_1.__exportStar(require("./_models/ai-call-settings.interface"), exports);
13
14
  tslib_1.__exportStar(require("./_models/ai-config.interface"), exports);
14
15
  tslib_1.__exportStar(require("./_models/ai-embedding-request.interface"), exports);
15
16
  tslib_1.__exportStar(require("./_models/ai-embedding-response.interface"), exports);
17
+ tslib_1.__exportStar(require("./_models/ai-image-request.interface"), exports);
18
+ tslib_1.__exportStar(require("./_models/ai-image-response.interface"), exports);
19
+ tslib_1.__exportStar(require("./_models/ai-media-file.interface"), exports);
20
+ tslib_1.__exportStar(require("./_models/ai-media-provenance.interface"), exports);
16
21
  tslib_1.__exportStar(require("./_models/ai-llm-request.interface"), exports);
17
22
  tslib_1.__exportStar(require("./_models/ai-llm-response.interface"), exports);
18
23
  tslib_1.__exportStar(require("./_models/ai-message.interface"), exports);
@@ -21,6 +26,8 @@ tslib_1.__exportStar(require("./_models/ai-model-info.interface"), exports);
21
26
  tslib_1.__exportStar(require("./_models/ai-model-settings-schema.interface"), exports);
22
27
  tslib_1.__exportStar(require("./_models/ai-provider-capabilities.interface"), exports);
23
28
  tslib_1.__exportStar(require("./_models/ai-settings.interface"), exports);
29
+ tslib_1.__exportStar(require("./_models/ai-speech-request.interface"), exports);
30
+ tslib_1.__exportStar(require("./_models/ai-speech-response.interface"), exports);
24
31
  tslib_1.__exportStar(require("./_models/ai-tool.interface"), exports);
25
32
  tslib_1.__exportStar(require("./_models/ai-tool-call.interface"), exports);
26
33
  tslib_1.__exportStar(require("./_models/ai-tool-result.interface"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/_modules/ai/index.ts"],"names":[],"mappings":";;;AAAA,cAAc;AACd,2EAAiD;AACjD,gFAAsD;AAEtD,QAAQ;AACR,oEAA0C;AAC1C,sEAA4C;AAC5C,wEAA8C;AAE9C,SAAS;AACT,+EAAqD;AACrD,wEAA8C;AAC9C,mFAAyD;AACzD,oFAA0D;AAC1D,6EAAmD;AACnD,8EAAoD;AACpD,yEAA+C;AAC/C,oFAA0D;AAC1D,4EAAkD;AAClD,uFAA6D;AAC7D,uFAA6D;AAC7D,0EAAgD;AAChD,sEAA4C;AAC5C,2EAAiD;AACjD,6EAAmD;AACnD,yEAA+C;AAC/C,0FAAgE"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/_modules/ai/index.ts"],"names":[],"mappings":";;;AAAA,cAAc;AACd,kFAAwD;AACxD,2EAAiD;AACjD,gFAAsD;AAEtD,QAAQ;AACR,oEAA0C;AAC1C,sEAA4C;AAC5C,wEAA8C;AAE9C,SAAS;AACT,+EAAqD;AACrD,wEAA8C;AAC9C,mFAAyD;AACzD,oFAA0D;AAC1D,+EAAqD;AACrD,gFAAsD;AACtD,4EAAkD;AAClD,kFAAwD;AACxD,6EAAmD;AACnD,8EAAoD;AACpD,yEAA+C;AAC/C,oFAA0D;AAC1D,4EAAkD;AAClD,uFAA6D;AAC7D,uFAA6D;AAC7D,0EAAgD;AAChD,gFAAsD;AACtD,iFAAuD;AACvD,sEAA4C;AAC5C,2EAAiD;AACjD,6EAAmD;AACnD,yEAA+C;AAC/C,0FAAgE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@futdevpro/fsm-dynamo",
3
- "version": "1.20.40",
3
+ "version": "1.20.42",
4
4
  "description": "Full Stack Model Collection for Dynamic (NodeJS-Typescript) Framework called Dynamo, by Future Development Ltd.",
5
5
  "DyBu_settings": {
6
6
  "packageType": "full-stack-package",