@skaldapp/shared 1.2.76 → 1.2.78
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/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/schemas/openai.d.ts +28 -0
- package/dist/schemas/openai.js +12 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { FromSchema } from "json-schema-to-ts";
|
|
2
2
|
import Credential from "./schemas/credential.js";
|
|
3
|
+
import OpenAI from "./schemas/openai.js";
|
|
3
4
|
import Page from "./schemas/page.js";
|
|
4
5
|
export type TCredential = FromSchema<typeof Credential>;
|
|
6
|
+
export type TOpenAI = FromSchema<typeof OpenAI>;
|
|
5
7
|
export type TPage = FromSchema<typeof Page> & {
|
|
6
8
|
$branch: TPage[];
|
|
7
9
|
$children: TPage[];
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { generateSlug } from "random-word-slugs";
|
|
|
5
5
|
import { computed, reactive, ref, toRef, watch } from "vue";
|
|
6
6
|
import Credential from "./schemas/credential.js";
|
|
7
7
|
import Nodes from "./schemas/nodes.js";
|
|
8
|
+
import OpenAI from "./schemas/openai.js";
|
|
8
9
|
import Page from "./schemas/page.js";
|
|
9
10
|
dynamicDefaults.DEFAULTS["uuid"] = () => generateSlug;
|
|
10
11
|
const isVisible = ({ frontmatter: { hidden }, path }) => path !== undefined && !hidden;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly $id: "openai";
|
|
3
|
+
readonly additionalProperties: false;
|
|
4
|
+
readonly properties: {
|
|
5
|
+
readonly apiKey: {
|
|
6
|
+
readonly default: null;
|
|
7
|
+
readonly nullable: true;
|
|
8
|
+
readonly type: "string";
|
|
9
|
+
};
|
|
10
|
+
readonly baseURL: {
|
|
11
|
+
readonly default: null;
|
|
12
|
+
readonly nullable: true;
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
};
|
|
15
|
+
readonly endpoint: {
|
|
16
|
+
readonly default: null;
|
|
17
|
+
readonly nullable: true;
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
};
|
|
20
|
+
readonly model: {
|
|
21
|
+
readonly default: null;
|
|
22
|
+
readonly nullable: true;
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
readonly type: "object";
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const $id = "openai", additionalProperties = false, nullable = true, type = "string";
|
|
2
|
+
export default {
|
|
3
|
+
$id,
|
|
4
|
+
additionalProperties,
|
|
5
|
+
properties: {
|
|
6
|
+
apiKey: { default: null, nullable, type },
|
|
7
|
+
baseURL: { default: null, nullable, type },
|
|
8
|
+
endpoint: { default: null, nullable, type },
|
|
9
|
+
model: { default: null, nullable, type },
|
|
10
|
+
},
|
|
11
|
+
type: "object",
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package",
|
|
3
3
|
"name": "@skaldapp/shared",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.78",
|
|
5
5
|
"description": "A TypeScript library providing reactive data structures, JSON schema validation, and tree utilities for Vue-based applications in the skald ecosystem.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"vue",
|