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",
|
||||
"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
7
schemas/config/providers.d.ts
vendored
7
schemas/config/providers.d.ts
vendored
|
@ -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"];
|
||||
|
|
|
@ -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"];
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue