add agent to schema

This commit is contained in:
yusing 2025-02-18 21:08:54 +08:00
parent 571f36e405
commit da39593c15
5 changed files with 17 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "godoxy-schemas",
"version": "0.9.6",
"version": "0.10.0-2",
"description": "JSON Schema and typescript types for GoDoxy configuration",
"license": "MIT",
"repository": {

File diff suppressed because one or more lines are too long

View file

@ -16,6 +16,12 @@ export type Providers = {
docker?: {
[name: string]: URL | "$DOCKER_HOST";
};
/** List of GoDoxy agents
*
* @minItems 1
* @examples require(".").agentExamples
*/
agents?: `${string}:${number}`[];
/** List of notification providers
*
* @minItems 1
@ -42,3 +48,4 @@ export declare const notificationExamples: readonly [{
readonly template: "discord";
readonly url: "https://discord.com/api/webhooks/1234/abcd";
}];
export declare const agentExamples: readonly ["10.0.2.3:8890", "10.0.2.4:8890"];

View file

@ -18,3 +18,4 @@ export const notificationExamples = [
url: "https://discord.com/api/webhooks/1234/abcd",
},
];
export const agentExamples = ["10.0.2.3:8890", "10.0.2.4:8890"];

View file

@ -15,6 +15,12 @@ export type Providers = {
* @examples require(".").dockerExamples
*/
docker?: { [name: string]: URL | "$DOCKER_HOST" };
/** List of GoDoxy agents
*
* @minItems 1
* @examples require(".").agentExamples
*/
agents?: `${string}:${number}`[];
/** List of notification providers
*
* @minItems 1
@ -43,3 +49,4 @@ export const notificationExamples = [
url: "https://discord.com/api/webhooks/1234/abcd",
},
] as const;
export const agentExamples = ["10.0.2.3:8890", "10.0.2.4:8890"] as const;