mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
add agent to schema
This commit is contained in:
parent
571f36e405
commit
da39593c15
5 changed files with 17 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "godoxy-schemas",
|
"name": "godoxy-schemas",
|
||||||
"version": "0.9.6",
|
"version": "0.10.0-2",
|
||||||
"description": "JSON Schema and typescript types for GoDoxy configuration",
|
"description": "JSON Schema and typescript types for GoDoxy configuration",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
File diff suppressed because one or more lines are too long
7
schemas/config/providers.d.ts
vendored
7
schemas/config/providers.d.ts
vendored
|
@ -16,6 +16,12 @@ export type Providers = {
|
||||||
docker?: {
|
docker?: {
|
||||||
[name: string]: URL | "$DOCKER_HOST";
|
[name: string]: URL | "$DOCKER_HOST";
|
||||||
};
|
};
|
||||||
|
/** List of GoDoxy agents
|
||||||
|
*
|
||||||
|
* @minItems 1
|
||||||
|
* @examples require(".").agentExamples
|
||||||
|
*/
|
||||||
|
agents?: `${string}:${number}`[];
|
||||||
/** List of notification providers
|
/** List of notification providers
|
||||||
*
|
*
|
||||||
* @minItems 1
|
* @minItems 1
|
||||||
|
@ -42,3 +48,4 @@ export declare const notificationExamples: readonly [{
|
||||||
readonly template: "discord";
|
readonly template: "discord";
|
||||||
readonly url: "https://discord.com/api/webhooks/1234/abcd";
|
readonly url: "https://discord.com/api/webhooks/1234/abcd";
|
||||||
}];
|
}];
|
||||||
|
export declare const agentExamples: readonly ["10.0.2.3:8890", "10.0.2.4:8890"];
|
||||||
|
|
|
@ -18,3 +18,4 @@ export const notificationExamples = [
|
||||||
url: "https://discord.com/api/webhooks/1234/abcd",
|
url: "https://discord.com/api/webhooks/1234/abcd",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
export const agentExamples = ["10.0.2.3:8890", "10.0.2.4:8890"];
|
||||||
|
|
|
@ -15,6 +15,12 @@ export type Providers = {
|
||||||
* @examples require(".").dockerExamples
|
* @examples require(".").dockerExamples
|
||||||
*/
|
*/
|
||||||
docker?: { [name: string]: URL | "$DOCKER_HOST" };
|
docker?: { [name: string]: URL | "$DOCKER_HOST" };
|
||||||
|
/** List of GoDoxy agents
|
||||||
|
*
|
||||||
|
* @minItems 1
|
||||||
|
* @examples require(".").agentExamples
|
||||||
|
*/
|
||||||
|
agents?: `${string}:${number}`[];
|
||||||
/** List of notification providers
|
/** List of notification providers
|
||||||
*
|
*
|
||||||
* @minItems 1
|
* @minItems 1
|
||||||
|
@ -43,3 +49,4 @@ export const notificationExamples = [
|
||||||
url: "https://discord.com/api/webhooks/1234/abcd",
|
url: "https://discord.com/api/webhooks/1234/abcd",
|
||||||
},
|
},
|
||||||
] as const;
|
] as const;
|
||||||
|
export const agentExamples = ["10.0.2.3:8890", "10.0.2.4:8890"] as const;
|
||||||
|
|
Loading…
Add table
Reference in a new issue