adminforth 2.4.0-next.92 → 2.4.0-next.93

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.
@@ -0,0 +1,31 @@
1
+ export interface ImageVisionAdapter {
2
+
3
+ /**
4
+ * This method is called to validate the configuration of the adapter
5
+ * and should throw a clear user-readable error if the configuration is invalid.
6
+ */
7
+ validate(): void;
8
+
9
+ /**
10
+ * Input file extension supported
11
+ */
12
+ inputFileExtensionSupported(): string[];
13
+
14
+ /**
15
+ * This method should generate an image based on the provided prompt and input files.
16
+ * @param prompt - The prompt to generate the image
17
+ * @param inputFileUrls - An array of input file paths (optional)
18
+ * @returns A promise that resolves to an object containing the generated image and any error message
19
+ */
20
+ generate({
21
+ prompt,
22
+ inputFileUrls,
23
+ }: {
24
+ prompt: string,
25
+ fieldsToFill: Record<string, string>,
26
+ inputFileUrls: string[],
27
+ }): Promise<{
28
+ response: string;
29
+ error?: string;
30
+ }>;
31
+ }
@@ -1,5 +1,6 @@
1
1
  export type { EmailAdapter } from './EmailAdapter.js';
2
2
  export type { CompletionAdapter } from './CompletionAdapter.js';
3
3
  export type { ImageGenerationAdapter } from './ImageGenerationAdapter.js';
4
+ export type { ImageVisionAdapter } from './ImageVisionAdapter.js';
4
5
  export type { OAuth2Adapter } from './OAuth2Adapter.js';
5
6
  export type { StorageAdapter } from './StorageAdapter.js';
@@ -0,0 +1,26 @@
1
+ export interface ImageVisionAdapter {
2
+ /**
3
+ * This method is called to validate the configuration of the adapter
4
+ * and should throw a clear user-readable error if the configuration is invalid.
5
+ */
6
+ validate(): void;
7
+ /**
8
+ * Input file extension supported
9
+ */
10
+ inputFileExtensionSupported(): string[];
11
+ /**
12
+ * This method should generate an image based on the provided prompt and input files.
13
+ * @param prompt - The prompt to generate the image
14
+ * @param inputFileUrls - An array of input file paths (optional)
15
+ * @returns A promise that resolves to an object containing the generated image and any error message
16
+ */
17
+ generate({ prompt, inputFileUrls, }: {
18
+ prompt: string;
19
+ fieldsToFill: Record<string, string>;
20
+ inputFileUrls: string[];
21
+ }): Promise<{
22
+ response: string;
23
+ error?: string;
24
+ }>;
25
+ }
26
+ //# sourceMappingURL=ImageVisionAdapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageVisionAdapter.d.ts","sourceRoot":"","sources":["../../../types/adapters/ImageVisionAdapter.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IAEjC;;;OAGG;IACH,QAAQ,IAAI,IAAI,CAAC;IAEjB;;OAEG;IACH,2BAA2B,IAAI,MAAM,EAAE,CAAC;IAExC;;;;;OAKG;IACH,QAAQ,CAAC,EACP,MAAM,EACN,aAAa,GACd,EAAE;QACD,MAAM,EAAE,MAAM,CAAC;QACf,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACrC,aAAa,EAAE,MAAM,EAAE,CAAC;KACzB,GAAG,OAAO,CAAC;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC;CACJ"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ImageVisionAdapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageVisionAdapter.js","sourceRoot":"","sources":["../../../types/adapters/ImageVisionAdapter.ts"],"names":[],"mappings":""}
@@ -1,6 +1,7 @@
1
1
  export type { EmailAdapter } from './EmailAdapter.js';
2
2
  export type { CompletionAdapter } from './CompletionAdapter.js';
3
3
  export type { ImageGenerationAdapter } from './ImageGenerationAdapter.js';
4
+ export type { ImageVisionAdapter } from './ImageVisionAdapter.js';
4
5
  export type { OAuth2Adapter } from './OAuth2Adapter.js';
5
6
  export type { StorageAdapter } from './StorageAdapter.js';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../types/adapters/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,YAAY,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,YAAY,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../types/adapters/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,YAAY,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,YAAY,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.4.0-next.92",
3
+ "version": "2.4.0-next.93",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",