ntfy-reverse-proxy 0.0.0 → 2.0.0
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/README.md +48 -0
- package/build/src/cli/commands/config-io.d.ts +5 -0
- package/build/src/cli/commands/config-io.d.ts.map +1 -0
- package/build/src/cli/commands/config-io.js +19 -0
- package/build/src/cli/commands/config-io.js.map +1 -0
- package/build/src/cli/commands/context.d.ts +9 -0
- package/build/src/cli/commands/context.d.ts.map +1 -0
- package/build/src/cli/commands/context.js +108 -0
- package/build/src/cli/commands/context.js.map +1 -0
- package/build/src/cli/commands/deploy.d.ts +4 -0
- package/build/src/cli/commands/deploy.d.ts.map +1 -0
- package/build/src/cli/commands/deploy.js +496 -0
- package/build/src/cli/commands/deploy.js.map +1 -0
- package/build/src/cli/commands/generate.d.ts +4 -0
- package/build/src/cli/commands/generate.d.ts.map +1 -0
- package/build/src/cli/commands/generate.js +68 -0
- package/build/src/cli/commands/generate.js.map +1 -0
- package/build/src/cli/commands/server.d.ts +7 -0
- package/build/src/cli/commands/server.d.ts.map +1 -0
- package/build/src/cli/commands/server.js +43 -0
- package/build/src/cli/commands/server.js.map +1 -0
- package/build/src/cli/commands/settings.d.ts +5 -0
- package/build/src/cli/commands/settings.d.ts.map +1 -0
- package/build/src/cli/commands/settings.js +16 -0
- package/build/src/cli/commands/settings.js.map +1 -0
- package/build/src/cli/commands/validate.d.ts +4 -0
- package/build/src/cli/commands/validate.d.ts.map +1 -0
- package/build/src/cli/commands/validate.js +45 -0
- package/build/src/cli/commands/validate.js.map +1 -0
- package/build/src/cli/index.d.ts +5 -0
- package/build/src/cli/index.d.ts.map +1 -0
- package/build/src/cli/index.js +118 -0
- package/build/src/cli/index.js.map +1 -0
- package/build/src/cli/menu/interactive.d.ts +4 -0
- package/build/src/cli/menu/interactive.d.ts.map +1 -0
- package/build/src/cli/menu/interactive.js +902 -0
- package/build/src/cli/menu/interactive.js.map +1 -0
- package/build/src/lib/item.d.ts +3 -0
- package/build/src/lib/item.d.ts.map +1 -0
- package/build/src/lib/item.js +3 -0
- package/build/src/lib/item.js.map +1 -0
- package/build/src/lib/regex.d.ts +30 -0
- package/build/src/lib/regex.d.ts.map +1 -0
- package/build/src/lib/regex.js +30 -0
- package/build/src/lib/regex.js.map +1 -0
- package/build/src/lib/schema.d.ts +167 -0
- package/build/src/lib/schema.d.ts.map +1 -0
- package/build/src/lib/schema.js +70 -0
- package/build/src/lib/schema.js.map +1 -0
- package/build/src/lib/utility.d.ts +4 -0
- package/build/src/lib/utility.d.ts.map +1 -0
- package/build/src/lib/utility.js +14 -0
- package/build/src/lib/utility.js.map +1 -0
- package/build/src/types/cli/commands/config-io.d.ts +38 -0
- package/build/src/types/cli/commands/context.d.ts +131 -0
- package/build/src/types/cli/commands/deploy.d.ts +622 -0
- package/build/src/types/cli/commands/generate.d.ts +51 -0
- package/build/src/types/cli/commands/server.d.ts +65 -0
- package/build/src/types/cli/commands/settings.d.ts +25 -0
- package/build/src/types/cli/commands/validate.d.ts +37 -0
- package/build/src/types/cli/index.d.ts +55 -0
- package/build/src/types/cli/menu/interactive.d.ts +381 -0
- package/build/src/types/fetch-response.d.ts +11 -0
- package/build/src/types/lib/schema.d.ts +134 -0
- package/build/src/types/lib/utility.d.ts +8 -0
- package/build/src/types/tests/cli/commands/context.test.d.ts +57 -0
- package/build/src/types/tests/cli/commands/generate.test.d.ts +12 -0
- package/build/src/types/tests/cli/commands/server.test.d.ts +45 -0
- package/build/src/types/tests/cli/commands/settings.test.d.ts +40 -0
- package/build/src/types/tests/cli/commands/validate.test.d.ts +19 -0
- package/build/src/types/tests/cli/menu/interactive.test.d.ts +6 -0
- package/build/src/types/tests/lib/schema.test.d.ts +10 -0
- package/build/src/types/tests/type-declarations.test.d.ts +173 -0
- package/build/src/types/tests/worker/index.test.d.ts +20 -0
- package/build/src/types/tests/worker/interpreters/ntfy-json.test.d.ts +19 -0
- package/build/src/types/tests/worker/interpreters/pfsense.test.d.ts +10 -0
- package/build/src/types/tests/worker/interpreters/plain-text.test.d.ts +10 -0
- package/build/src/types/tests/worker/interpreters/seerr.test.d.ts +8 -0
- package/build/src/types/tests/worker/interpreters/statuspage.test.d.ts +58 -0
- package/build/src/types/tests/worker/interpreters/synology.test.d.ts +8 -0
- package/build/src/types/tests/worker/interpreters/unifi.test.d.ts +8 -0
- package/build/src/types/tests/worker/landing/page.test.d.ts +55 -0
- package/build/src/types/tests/worker/pipeline/accumulate.test.d.ts +28 -0
- package/build/src/types/tests/worker/pipeline/authenticate.test.d.ts +9 -0
- package/build/src/types/tests/worker/pipeline/email.test.d.ts +15 -0
- package/build/src/types/tests/worker/pipeline/format.test.d.ts +38 -0
- package/build/src/types/tests/worker/pipeline/interpret.test.d.ts +43 -0
- package/build/src/types/tests/worker/pipeline/parse.test.d.ts +17 -0
- package/build/src/types/tests/worker/pipeline/receive.test.d.ts +23 -0
- package/build/src/types/tests/worker/pipeline/respond.test.d.ts +20 -0
- package/build/src/types/tests/worker/pipeline/route.test.d.ts +80 -0
- package/build/src/types/tests/worker/pipeline/send.test.d.ts +37 -0
- package/build/src/types/tests/worker/pipeline/split.test.d.ts +17 -0
- package/build/src/types/worker/index.d.ts +232 -0
- package/build/src/types/worker/interpreters/ntfy-json.d.ts +28 -0
- package/build/src/types/worker/interpreters/pfsense.d.ts +97 -0
- package/build/src/types/worker/interpreters/plain-text.d.ts +24 -0
- package/build/src/types/worker/interpreters/seerr.d.ts +124 -0
- package/build/src/types/worker/interpreters/statuspage.d.ts +239 -0
- package/build/src/types/worker/interpreters/synology.d.ts +99 -0
- package/build/src/types/worker/interpreters/unifi.d.ts +111 -0
- package/build/src/types/worker/landing/page.d.ts +44 -0
- package/build/src/types/worker/pipeline/accumulate.d.ts +79 -0
- package/build/src/types/worker/pipeline/authenticate.d.ts +68 -0
- package/build/src/types/worker/pipeline/email.d.ts +108 -0
- package/build/src/types/worker/pipeline/format.d.ts +47 -0
- package/build/src/types/worker/pipeline/interpret.d.ts +63 -0
- package/build/src/types/worker/pipeline/parse.d.ts +39 -0
- package/build/src/types/worker/pipeline/receive.d.ts +64 -0
- package/build/src/types/worker/pipeline/respond.d.ts +113 -0
- package/build/src/types/worker/pipeline/route.d.ts +34 -0
- package/build/src/types/worker/pipeline/send.d.ts +143 -0
- package/build/src/types/worker/pipeline/shared.d.ts +85 -0
- package/build/src/types/worker/pipeline/split.d.ts +35 -0
- package/build/src/worker/handlers.d.ts +5 -0
- package/build/src/worker/handlers.d.ts.map +1 -0
- package/build/src/worker/handlers.js +360 -0
- package/build/src/worker/handlers.js.map +1 -0
- package/build/src/worker/index.d.ts +4 -0
- package/build/src/worker/index.d.ts.map +1 -0
- package/build/src/worker/index.js +52 -0
- package/build/src/worker/index.js.map +1 -0
- package/build/src/worker/interpreters/ntfy-json.d.ts +4 -0
- package/build/src/worker/interpreters/ntfy-json.d.ts.map +1 -0
- package/build/src/worker/interpreters/ntfy-json.js +49 -0
- package/build/src/worker/interpreters/ntfy-json.js.map +1 -0
- package/build/src/worker/interpreters/pfsense.d.ts +4 -0
- package/build/src/worker/interpreters/pfsense.d.ts.map +1 -0
- package/build/src/worker/interpreters/pfsense.js +150 -0
- package/build/src/worker/interpreters/pfsense.js.map +1 -0
- package/build/src/worker/interpreters/plain-text.d.ts +4 -0
- package/build/src/worker/interpreters/plain-text.d.ts.map +1 -0
- package/build/src/worker/interpreters/plain-text.js +18 -0
- package/build/src/worker/interpreters/plain-text.js.map +1 -0
- package/build/src/worker/interpreters/seerr.d.ts +4 -0
- package/build/src/worker/interpreters/seerr.d.ts.map +1 -0
- package/build/src/worker/interpreters/seerr.js +173 -0
- package/build/src/worker/interpreters/seerr.js.map +1 -0
- package/build/src/worker/interpreters/statuspage.d.ts +4 -0
- package/build/src/worker/interpreters/statuspage.d.ts.map +1 -0
- package/build/src/worker/interpreters/statuspage.js +266 -0
- package/build/src/worker/interpreters/statuspage.js.map +1 -0
- package/build/src/worker/interpreters/synology.d.ts +4 -0
- package/build/src/worker/interpreters/synology.d.ts.map +1 -0
- package/build/src/worker/interpreters/synology.js +177 -0
- package/build/src/worker/interpreters/synology.js.map +1 -0
- package/build/src/worker/interpreters/unifi.d.ts +4 -0
- package/build/src/worker/interpreters/unifi.d.ts.map +1 -0
- package/build/src/worker/interpreters/unifi.js +152 -0
- package/build/src/worker/interpreters/unifi.js.map +1 -0
- package/build/src/worker/landing/page.d.ts +4 -0
- package/build/src/worker/landing/page.d.ts.map +1 -0
- package/build/src/worker/landing/page.js +260 -0
- package/build/src/worker/landing/page.js.map +1 -0
- package/build/src/worker/pipeline/accumulate.d.ts +7 -0
- package/build/src/worker/pipeline/accumulate.d.ts.map +1 -0
- package/build/src/worker/pipeline/accumulate.js +53 -0
- package/build/src/worker/pipeline/accumulate.js.map +1 -0
- package/build/src/worker/pipeline/authenticate.d.ts +4 -0
- package/build/src/worker/pipeline/authenticate.d.ts.map +1 -0
- package/build/src/worker/pipeline/authenticate.js +53 -0
- package/build/src/worker/pipeline/authenticate.js.map +1 -0
- package/build/src/worker/pipeline/email.d.ts +4 -0
- package/build/src/worker/pipeline/email.d.ts.map +1 -0
- package/build/src/worker/pipeline/email.js +149 -0
- package/build/src/worker/pipeline/email.js.map +1 -0
- package/build/src/worker/pipeline/format.d.ts +5 -0
- package/build/src/worker/pipeline/format.d.ts.map +1 -0
- package/build/src/worker/pipeline/format.js +48 -0
- package/build/src/worker/pipeline/format.js.map +1 -0
- package/build/src/worker/pipeline/interpret.d.ts +4 -0
- package/build/src/worker/pipeline/interpret.d.ts.map +1 -0
- package/build/src/worker/pipeline/interpret.js +30 -0
- package/build/src/worker/pipeline/interpret.js.map +1 -0
- package/build/src/worker/pipeline/parse.d.ts +4 -0
- package/build/src/worker/pipeline/parse.d.ts.map +1 -0
- package/build/src/worker/pipeline/parse.js +59 -0
- package/build/src/worker/pipeline/parse.js.map +1 -0
- package/build/src/worker/pipeline/receive.d.ts +4 -0
- package/build/src/worker/pipeline/receive.d.ts.map +1 -0
- package/build/src/worker/pipeline/receive.js +52 -0
- package/build/src/worker/pipeline/receive.js.map +1 -0
- package/build/src/worker/pipeline/respond.d.ts +4 -0
- package/build/src/worker/pipeline/respond.d.ts.map +1 -0
- package/build/src/worker/pipeline/respond.js +48 -0
- package/build/src/worker/pipeline/respond.js.map +1 -0
- package/build/src/worker/pipeline/route.d.ts +5 -0
- package/build/src/worker/pipeline/route.d.ts.map +1 -0
- package/build/src/worker/pipeline/route.js +23 -0
- package/build/src/worker/pipeline/route.js.map +1 -0
- package/build/src/worker/pipeline/send.d.ts +4 -0
- package/build/src/worker/pipeline/send.d.ts.map +1 -0
- package/build/src/worker/pipeline/send.js +156 -0
- package/build/src/worker/pipeline/send.js.map +1 -0
- package/build/src/worker/pipeline/split.d.ts +4 -0
- package/build/src/worker/pipeline/split.d.ts.map +1 -0
- package/build/src/worker/pipeline/split.js +40 -0
- package/build/src/worker/pipeline/split.js.map +1 -0
- package/package.json +95 -2
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { LibSchemaConfigSchema, LibSchemaContextConfig, LibSchemaServerConfig } from '../../lib/schema.d.ts';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* CLI - Commands - Server - Add Server.
|
|
5
|
+
*
|
|
6
|
+
* @since 2.0.0
|
|
7
|
+
*/
|
|
8
|
+
export type CliCommandsServerAddServerConfigPath = string;
|
|
9
|
+
|
|
10
|
+
export type CliCommandsServerAddServerServer = LibSchemaServerConfig;
|
|
11
|
+
|
|
12
|
+
export type CliCommandsServerAddServerReturn = void;
|
|
13
|
+
|
|
14
|
+
export type CliCommandsServerAddServerConfig = LibSchemaConfigSchema;
|
|
15
|
+
|
|
16
|
+
export type CliCommandsServerAddServerDuplicate = boolean;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* CLI - Commands - Server - Edit Server.
|
|
20
|
+
*
|
|
21
|
+
* @since 2.0.0
|
|
22
|
+
*/
|
|
23
|
+
export type CliCommandsServerEditServerConfigPath = string;
|
|
24
|
+
|
|
25
|
+
export type CliCommandsServerEditServerName = string;
|
|
26
|
+
|
|
27
|
+
export type CliCommandsServerEditServerUpdates = Partial<LibSchemaServerConfig>;
|
|
28
|
+
|
|
29
|
+
export type CliCommandsServerEditServerReturn = void;
|
|
30
|
+
|
|
31
|
+
export type CliCommandsServerEditServerConfig = LibSchemaConfigSchema;
|
|
32
|
+
|
|
33
|
+
export type CliCommandsServerEditServerIndex = number;
|
|
34
|
+
|
|
35
|
+
export type CliCommandsServerEditServerMerged = LibSchemaServerConfig;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* CLI - Commands - Server - List Servers.
|
|
39
|
+
*
|
|
40
|
+
* @since 2.0.0
|
|
41
|
+
*/
|
|
42
|
+
export type CliCommandsServerListServersConfigPath = string;
|
|
43
|
+
|
|
44
|
+
export type CliCommandsServerListServersReturn = LibSchemaServerConfig[];
|
|
45
|
+
|
|
46
|
+
export type CliCommandsServerListServersConfig = LibSchemaConfigSchema;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* CLI - Commands - Server - Remove Server.
|
|
50
|
+
*
|
|
51
|
+
* @since 2.0.0
|
|
52
|
+
*/
|
|
53
|
+
export type CliCommandsServerRemoveServerConfigPath = string;
|
|
54
|
+
|
|
55
|
+
export type CliCommandsServerRemoveServerName = string;
|
|
56
|
+
|
|
57
|
+
export type CliCommandsServerRemoveServerReturn = void;
|
|
58
|
+
|
|
59
|
+
export type CliCommandsServerRemoveServerConfig = LibSchemaConfigSchema;
|
|
60
|
+
|
|
61
|
+
export type CliCommandsServerRemoveServerReferencedContexts = LibSchemaContextConfig[];
|
|
62
|
+
|
|
63
|
+
export type CliCommandsServerRemoveServerContextNames = string;
|
|
64
|
+
|
|
65
|
+
export type CliCommandsServerRemoveServerFiltered = LibSchemaServerConfig[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { LibSchemaConfigSchema, LibSchemaSettingsConfig } from '../../lib/schema.d.ts';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* CLI - Commands - Settings - Get Settings.
|
|
5
|
+
*
|
|
6
|
+
* @since 2.0.0
|
|
7
|
+
*/
|
|
8
|
+
export type CliCommandsSettingsGetSettingsConfigPath = string;
|
|
9
|
+
|
|
10
|
+
export type CliCommandsSettingsGetSettingsReturn = LibSchemaSettingsConfig;
|
|
11
|
+
|
|
12
|
+
export type CliCommandsSettingsGetSettingsConfig = LibSchemaConfigSchema;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* CLI - Commands - Settings - Update Settings.
|
|
16
|
+
*
|
|
17
|
+
* @since 2.0.0
|
|
18
|
+
*/
|
|
19
|
+
export type CliCommandsSettingsUpdateSettingsConfigPath = string;
|
|
20
|
+
|
|
21
|
+
export type CliCommandsSettingsUpdateSettingsUpdates = Partial<LibSchemaSettingsConfig>;
|
|
22
|
+
|
|
23
|
+
export type CliCommandsSettingsUpdateSettingsReturn = void;
|
|
24
|
+
|
|
25
|
+
export type CliCommandsSettingsUpdateSettingsConfig = LibSchemaConfigSchema;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
import type { LibSchemaConfigSchema } from '../../lib/schema.d.ts';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* CLI - Commands - Validate - Validate Config.
|
|
7
|
+
*
|
|
8
|
+
* @since 2.0.0
|
|
9
|
+
*/
|
|
10
|
+
export type CliCommandsValidateValidateConfigConfigPath = string;
|
|
11
|
+
|
|
12
|
+
export type CliCommandsValidateValidateConfigReturn = CliCommandsValidateValidateConfigResult;
|
|
13
|
+
|
|
14
|
+
export type CliCommandsValidateValidateConfigErrors = string[];
|
|
15
|
+
|
|
16
|
+
export type CliCommandsValidateValidateConfigRaw = unknown;
|
|
17
|
+
|
|
18
|
+
export type CliCommandsValidateValidateConfigParseResult = z.ZodSafeParseResult<LibSchemaConfigSchema>;
|
|
19
|
+
|
|
20
|
+
export type CliCommandsValidateValidateConfigConfig = LibSchemaConfigSchema;
|
|
21
|
+
|
|
22
|
+
export type CliCommandsValidateValidateConfigServerNames = Set<string>;
|
|
23
|
+
|
|
24
|
+
export type CliCommandsValidateValidateConfigIdCounts = Map<string, number>;
|
|
25
|
+
|
|
26
|
+
export type CliCommandsValidateValidateConfigEntryId = string;
|
|
27
|
+
|
|
28
|
+
export type CliCommandsValidateValidateConfigEntryCount = number;
|
|
29
|
+
|
|
30
|
+
export type CliCommandsValidateValidateConfigResultValid = boolean;
|
|
31
|
+
|
|
32
|
+
export type CliCommandsValidateValidateConfigResultErrors = string[];
|
|
33
|
+
|
|
34
|
+
export type CliCommandsValidateValidateConfigResult = {
|
|
35
|
+
valid: CliCommandsValidateValidateConfigResultValid;
|
|
36
|
+
errors: CliCommandsValidateValidateConfigResultErrors;
|
|
37
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { Command } from 'commander';
|
|
2
|
+
|
|
3
|
+
import type { CliCommandsValidateValidateConfigReturn } from './commands/validate.d.ts';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* CLI - Env Dir.
|
|
7
|
+
*
|
|
8
|
+
* @since 2.0.0
|
|
9
|
+
*/
|
|
10
|
+
export type CliIndexEnvDir = string | undefined;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* CLI - Get Config File Path.
|
|
14
|
+
*
|
|
15
|
+
* @since 2.0.0
|
|
16
|
+
*/
|
|
17
|
+
export type CliIndexGetConfigFilePathReturn = string;
|
|
18
|
+
|
|
19
|
+
export type CliIndexConfigDir = string | undefined;
|
|
20
|
+
|
|
21
|
+
export type CliIndexConfigPath = string;
|
|
22
|
+
|
|
23
|
+
export type CliIndexSamplePath = string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* CLI - Main.
|
|
27
|
+
*
|
|
28
|
+
* @since 2.0.0
|
|
29
|
+
*/
|
|
30
|
+
export type CliIndexMainReturn = Promise<void>;
|
|
31
|
+
|
|
32
|
+
export type CliIndexMainConfigDirs = string[];
|
|
33
|
+
|
|
34
|
+
export type CliIndexMainConfigPath = string;
|
|
35
|
+
|
|
36
|
+
export type CliIndexMainServerCommand = Command;
|
|
37
|
+
|
|
38
|
+
export type CliIndexMainServerRemoveName = string;
|
|
39
|
+
|
|
40
|
+
export type CliIndexMainContextCommand = Command;
|
|
41
|
+
|
|
42
|
+
export type CliIndexMainContextRemoveName = string;
|
|
43
|
+
|
|
44
|
+
export type CliIndexMainValidateResult = CliCommandsValidateValidateConfigReturn;
|
|
45
|
+
|
|
46
|
+
export type CliIndexMainValidateError = string;
|
|
47
|
+
|
|
48
|
+
export type CliIndexMainCatchError = unknown;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* CLI - Program.
|
|
52
|
+
*
|
|
53
|
+
* @since 2.0.0
|
|
54
|
+
*/
|
|
55
|
+
export type CliIndexProgram = Command;
|
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import type prompts from 'prompts';
|
|
2
|
+
|
|
3
|
+
import type {
|
|
4
|
+
LibSchemaContextConfig,
|
|
5
|
+
LibSchemaContextConfigInterpreter,
|
|
6
|
+
LibSchemaContextConfigMode,
|
|
7
|
+
LibSchemaServerConfig,
|
|
8
|
+
LibSchemaSettingsConfig,
|
|
9
|
+
} from '../../lib/schema.d.ts';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* CLI - Menu - Interactive - Add Context Flow.
|
|
13
|
+
*
|
|
14
|
+
* @since 2.0.0
|
|
15
|
+
*/
|
|
16
|
+
export type CliMenuInteractiveAddContextFlowConfigPath = string;
|
|
17
|
+
|
|
18
|
+
export type CliMenuInteractiveAddContextFlowServers = LibSchemaServerConfig[];
|
|
19
|
+
|
|
20
|
+
export type CliMenuInteractiveAddContextFlowReturn = Promise<void>;
|
|
21
|
+
|
|
22
|
+
export type CliMenuInteractiveAddContextFlowAutoId = string;
|
|
23
|
+
|
|
24
|
+
export type CliMenuInteractiveAddContextFlowTypeResponse = prompts.Answers<string>;
|
|
25
|
+
|
|
26
|
+
export type CliMenuInteractiveAddContextFlowContextType = string | undefined;
|
|
27
|
+
|
|
28
|
+
export type CliMenuInteractiveAddContextFlowChoiceTitle = string;
|
|
29
|
+
|
|
30
|
+
export type CliMenuInteractiveAddContextFlowChoiceValue = string;
|
|
31
|
+
|
|
32
|
+
export type CliMenuInteractiveAddContextFlowChoice = {
|
|
33
|
+
title: CliMenuInteractiveAddContextFlowChoiceTitle;
|
|
34
|
+
value: CliMenuInteractiveAddContextFlowChoiceValue;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type CliMenuInteractiveAddContextFlowHttpInterpreters = CliMenuInteractiveAddContextFlowChoice[];
|
|
38
|
+
|
|
39
|
+
export type CliMenuInteractiveAddContextFlowEmailInterpreters = CliMenuInteractiveAddContextFlowChoice[];
|
|
40
|
+
|
|
41
|
+
export type CliMenuInteractiveAddContextFlowNameResponse = prompts.Answers<string>;
|
|
42
|
+
|
|
43
|
+
export type CliMenuInteractiveAddContextFlowNameValidateValue = string;
|
|
44
|
+
|
|
45
|
+
export type CliMenuInteractiveAddContextFlowName = string | undefined;
|
|
46
|
+
|
|
47
|
+
export type CliMenuInteractiveAddContextFlowIdMessage = string;
|
|
48
|
+
|
|
49
|
+
export type CliMenuInteractiveAddContextFlowIdResponse = prompts.Answers<string>;
|
|
50
|
+
|
|
51
|
+
export type CliMenuInteractiveAddContextFlowIdValidateValue = string;
|
|
52
|
+
|
|
53
|
+
export type CliMenuInteractiveAddContextFlowRawId = string | undefined;
|
|
54
|
+
|
|
55
|
+
export type CliMenuInteractiveAddContextFlowInterpreterChoices = CliMenuInteractiveAddContextFlowChoice[];
|
|
56
|
+
|
|
57
|
+
export type CliMenuInteractiveAddContextFlowInterpreterResponse = prompts.Answers<string>;
|
|
58
|
+
|
|
59
|
+
export type CliMenuInteractiveAddContextFlowInterpreter = string | undefined;
|
|
60
|
+
|
|
61
|
+
export type CliMenuInteractiveAddContextFlowTopicResponse = prompts.Answers<string>;
|
|
62
|
+
|
|
63
|
+
export type CliMenuInteractiveAddContextFlowTopicValidateValue = string;
|
|
64
|
+
|
|
65
|
+
export type CliMenuInteractiveAddContextFlowTopic = string | undefined;
|
|
66
|
+
|
|
67
|
+
export type CliMenuInteractiveAddContextFlowErrorTopicResponse = prompts.Answers<string>;
|
|
68
|
+
|
|
69
|
+
export type CliMenuInteractiveAddContextFlowErrorTopic = string | undefined;
|
|
70
|
+
|
|
71
|
+
export type CliMenuInteractiveAddContextFlowModeResponse = prompts.Answers<string>;
|
|
72
|
+
|
|
73
|
+
export type CliMenuInteractiveAddContextFlowMode = string | undefined;
|
|
74
|
+
|
|
75
|
+
export type CliMenuInteractiveAddContextFlowShowVisitorInfoResponse = prompts.Answers<string>;
|
|
76
|
+
|
|
77
|
+
export type CliMenuInteractiveAddContextFlowShowVisitorInfo = boolean | undefined;
|
|
78
|
+
|
|
79
|
+
export type CliMenuInteractiveAddContextFlowPrimaryServerResponse = prompts.Answers<string>;
|
|
80
|
+
|
|
81
|
+
export type CliMenuInteractiveAddContextFlowPrimaryServer = string | undefined;
|
|
82
|
+
|
|
83
|
+
export type CliMenuInteractiveAddContextFlowSelectedServersResponse = prompts.Answers<string>;
|
|
84
|
+
|
|
85
|
+
export type CliMenuInteractiveAddContextFlowSelectedServers = string[] | undefined;
|
|
86
|
+
|
|
87
|
+
export type CliMenuInteractiveAddContextFlowRawIdString = string;
|
|
88
|
+
|
|
89
|
+
export type CliMenuInteractiveAddContextFlowIdTrimmed = string;
|
|
90
|
+
|
|
91
|
+
export type CliMenuInteractiveAddContextFlowResolvedId = string;
|
|
92
|
+
|
|
93
|
+
export type CliMenuInteractiveAddContextFlowErrorTopicString = string;
|
|
94
|
+
|
|
95
|
+
export type CliMenuInteractiveAddContextFlowErrorTopicTrimmed = string;
|
|
96
|
+
|
|
97
|
+
export type CliMenuInteractiveAddContextFlowResolvedErrorTopic = string | undefined;
|
|
98
|
+
|
|
99
|
+
export type CliMenuInteractiveAddContextFlowTopicString = string;
|
|
100
|
+
|
|
101
|
+
export type CliMenuInteractiveAddContextFlowTypedInterpreter = LibSchemaContextConfigInterpreter;
|
|
102
|
+
|
|
103
|
+
export type CliMenuInteractiveAddContextFlowTypedMode = LibSchemaContextConfigMode;
|
|
104
|
+
|
|
105
|
+
export type CliMenuInteractiveAddContextFlowAutoToken = string;
|
|
106
|
+
|
|
107
|
+
export type CliMenuInteractiveAddContextFlowTokenResponse = prompts.Answers<string>;
|
|
108
|
+
|
|
109
|
+
export type CliMenuInteractiveAddContextFlowRawToken = string | undefined;
|
|
110
|
+
|
|
111
|
+
export type CliMenuInteractiveAddContextFlowTokenTrimmed = string;
|
|
112
|
+
|
|
113
|
+
export type CliMenuInteractiveAddContextFlowResolvedToken = string | undefined;
|
|
114
|
+
|
|
115
|
+
export type CliMenuInteractiveAddContextFlowAllowedFromResponse = prompts.Answers<string>;
|
|
116
|
+
|
|
117
|
+
export type CliMenuInteractiveAddContextFlowRawAllowedFrom = string | undefined;
|
|
118
|
+
|
|
119
|
+
export type CliMenuInteractiveAddContextFlowAllowedFromTrimmed = string;
|
|
120
|
+
|
|
121
|
+
export type CliMenuInteractiveAddContextFlowResolvedAllowedFrom = string | undefined;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* CLI - Menu - Interactive - Context Menu.
|
|
125
|
+
*
|
|
126
|
+
* @since 2.0.0
|
|
127
|
+
*/
|
|
128
|
+
export type CliMenuInteractiveContextMenuConfigPath = string;
|
|
129
|
+
|
|
130
|
+
export type CliMenuInteractiveContextMenuReturn = Promise<void>;
|
|
131
|
+
|
|
132
|
+
export type CliMenuInteractiveContextMenuInMenu = boolean;
|
|
133
|
+
|
|
134
|
+
export type CliMenuInteractiveContextMenuResponse = prompts.Answers<string>;
|
|
135
|
+
|
|
136
|
+
export type CliMenuInteractiveContextMenuAction = string | undefined;
|
|
137
|
+
|
|
138
|
+
export type CliMenuInteractiveContextMenuServers = LibSchemaServerConfig[];
|
|
139
|
+
|
|
140
|
+
export type CliMenuInteractiveContextMenuErrorMessage = string;
|
|
141
|
+
|
|
142
|
+
export type CliMenuInteractiveContextMenuContexts = LibSchemaContextConfig[];
|
|
143
|
+
|
|
144
|
+
export type CliMenuInteractiveContextMenuSelectResponse = prompts.Answers<string>;
|
|
145
|
+
|
|
146
|
+
export type CliMenuInteractiveContextMenuName = string | undefined;
|
|
147
|
+
|
|
148
|
+
export type CliMenuInteractiveContextMenuCurrent = LibSchemaContextConfig | undefined;
|
|
149
|
+
|
|
150
|
+
export type CliMenuInteractiveContextMenuServerChoices = Array<{
|
|
151
|
+
title: string;
|
|
152
|
+
value: string;
|
|
153
|
+
}>;
|
|
154
|
+
|
|
155
|
+
export type CliMenuInteractiveContextMenuKeepIdResponse = prompts.Answers<string>;
|
|
156
|
+
|
|
157
|
+
export type CliMenuInteractiveContextMenuKeepId = boolean | undefined;
|
|
158
|
+
|
|
159
|
+
export type CliMenuInteractiveContextMenuId = string | undefined;
|
|
160
|
+
|
|
161
|
+
export type CliMenuInteractiveContextMenuChoiceTitle = string;
|
|
162
|
+
|
|
163
|
+
export type CliMenuInteractiveContextMenuChoiceValue = string;
|
|
164
|
+
|
|
165
|
+
export type CliMenuInteractiveContextMenuChoice = {
|
|
166
|
+
title: CliMenuInteractiveContextMenuChoiceTitle;
|
|
167
|
+
value: CliMenuInteractiveContextMenuChoiceValue;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
export type CliMenuInteractiveContextMenuHttpChoices = CliMenuInteractiveContextMenuChoice[];
|
|
171
|
+
|
|
172
|
+
export type CliMenuInteractiveContextMenuEmailChoices = CliMenuInteractiveContextMenuChoice[];
|
|
173
|
+
|
|
174
|
+
export type CliMenuInteractiveContextMenuKnownChoices = CliMenuInteractiveContextMenuChoice[];
|
|
175
|
+
|
|
176
|
+
export type CliMenuInteractiveContextMenuExists = boolean;
|
|
177
|
+
|
|
178
|
+
export type CliMenuInteractiveContextMenuKnownValues = string[];
|
|
179
|
+
|
|
180
|
+
export type CliMenuInteractiveContextMenuIdx = number;
|
|
181
|
+
|
|
182
|
+
export type CliMenuInteractiveContextMenuInterpreterResponse = prompts.Answers<string>;
|
|
183
|
+
|
|
184
|
+
export type CliMenuInteractiveContextMenuInterpreter = string | undefined;
|
|
185
|
+
|
|
186
|
+
export type CliMenuInteractiveContextMenuTopicResponse = prompts.Answers<string>;
|
|
187
|
+
|
|
188
|
+
export type CliMenuInteractiveContextMenuTopicValidateValue = string;
|
|
189
|
+
|
|
190
|
+
export type CliMenuInteractiveContextMenuTopic = string | undefined;
|
|
191
|
+
|
|
192
|
+
export type CliMenuInteractiveContextMenuErrorTopic = string | undefined;
|
|
193
|
+
|
|
194
|
+
export type CliMenuInteractiveContextMenuErrorTopicResponse = prompts.Answers<string>;
|
|
195
|
+
|
|
196
|
+
export type CliMenuInteractiveContextMenuModeResponse = prompts.Answers<string>;
|
|
197
|
+
|
|
198
|
+
export type CliMenuInteractiveContextMenuMode = string | undefined;
|
|
199
|
+
|
|
200
|
+
export type CliMenuInteractiveContextMenuShowVisitorInfoResponse = prompts.Answers<string>;
|
|
201
|
+
|
|
202
|
+
export type CliMenuInteractiveContextMenuShowVisitorInfo = boolean | undefined;
|
|
203
|
+
|
|
204
|
+
export type CliMenuInteractiveContextMenuPrimaryServerIdx = number;
|
|
205
|
+
|
|
206
|
+
export type CliMenuInteractiveContextMenuPrimaryServerResponse = prompts.Answers<string>;
|
|
207
|
+
|
|
208
|
+
export type CliMenuInteractiveContextMenuPrimaryServer = string | undefined;
|
|
209
|
+
|
|
210
|
+
export type CliMenuInteractiveContextMenuSelectedServersResponse = prompts.Answers<string>;
|
|
211
|
+
|
|
212
|
+
export type CliMenuInteractiveContextMenuSelectedServers = string[] | undefined;
|
|
213
|
+
|
|
214
|
+
export type CliMenuInteractiveContextMenuUpdates = Record<string, unknown>;
|
|
215
|
+
|
|
216
|
+
export type CliMenuInteractiveContextMenuErrorTopicValue = string | undefined;
|
|
217
|
+
|
|
218
|
+
export type CliMenuInteractiveContextMenuErrorTopicTrimmed = string;
|
|
219
|
+
|
|
220
|
+
export type CliMenuInteractiveContextMenuKeepTokenResponse = prompts.Answers<string>;
|
|
221
|
+
|
|
222
|
+
export type CliMenuInteractiveContextMenuKeepToken = boolean | undefined;
|
|
223
|
+
|
|
224
|
+
export type CliMenuInteractiveContextMenuNewToken = string;
|
|
225
|
+
|
|
226
|
+
export type CliMenuInteractiveContextMenuAddTokenResponse = prompts.Answers<string>;
|
|
227
|
+
|
|
228
|
+
export type CliMenuInteractiveContextMenuAddToken = boolean | undefined;
|
|
229
|
+
|
|
230
|
+
export type CliMenuInteractiveContextMenuAllowedFrom = string | undefined;
|
|
231
|
+
|
|
232
|
+
export type CliMenuInteractiveContextMenuAllowedFromResponse = prompts.Answers<string>;
|
|
233
|
+
|
|
234
|
+
export type CliMenuInteractiveContextMenuAllowedFromTrimmed = string;
|
|
235
|
+
|
|
236
|
+
export type CliMenuInteractiveContextMenuEditImportEditContext = (configPath: string, name: string, updates: Partial<LibSchemaContextConfig>) => void;
|
|
237
|
+
|
|
238
|
+
export type CliMenuInteractiveContextMenuEditImport = {
|
|
239
|
+
editContext: CliMenuInteractiveContextMenuEditImportEditContext;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
export type CliMenuInteractiveContextMenuConfirmResponse = prompts.Answers<string>;
|
|
243
|
+
|
|
244
|
+
export type CliMenuInteractiveContextMenuConfirmed = boolean | undefined;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* CLI - Menu - Interactive - Interactive Menu.
|
|
248
|
+
*
|
|
249
|
+
* @since 2.0.0
|
|
250
|
+
*/
|
|
251
|
+
export type CliMenuInteractiveInteractiveMenuConfigDirs = string[];
|
|
252
|
+
|
|
253
|
+
export type CliMenuInteractiveInteractiveMenuReturn = Promise<void>;
|
|
254
|
+
|
|
255
|
+
export type CliMenuInteractiveInteractiveMenuCurrentFilePath = string;
|
|
256
|
+
|
|
257
|
+
export type CliMenuInteractiveInteractiveMenuDir = string;
|
|
258
|
+
|
|
259
|
+
export type CliMenuInteractiveInteractiveMenuVersion = string;
|
|
260
|
+
|
|
261
|
+
export type CliMenuInteractiveInteractiveMenuPackageJsonPath = string;
|
|
262
|
+
|
|
263
|
+
export type CliMenuInteractiveInteractiveMenuPackageJsonRaw = string;
|
|
264
|
+
|
|
265
|
+
export type CliMenuInteractiveInteractiveMenuPackageJsonParsed = Record<string, unknown>;
|
|
266
|
+
|
|
267
|
+
export type CliMenuInteractiveInteractiveMenuParent = string;
|
|
268
|
+
|
|
269
|
+
export type CliMenuInteractiveInteractiveMenuHeader = string;
|
|
270
|
+
|
|
271
|
+
export type CliMenuInteractiveInteractiveMenuInteractiveConfigPath = string | undefined;
|
|
272
|
+
|
|
273
|
+
export type CliMenuInteractiveInteractiveMenuConfigDirResponse = prompts.Answers<string>;
|
|
274
|
+
|
|
275
|
+
export type CliMenuInteractiveInteractiveMenuDefaultConfigDir = string;
|
|
276
|
+
|
|
277
|
+
export type CliMenuInteractiveInteractiveMenuRunning = boolean;
|
|
278
|
+
|
|
279
|
+
export type CliMenuInteractiveInteractiveMenuResponse = prompts.Answers<string>;
|
|
280
|
+
|
|
281
|
+
export type CliMenuInteractiveInteractiveMenuAction = string | undefined;
|
|
282
|
+
|
|
283
|
+
export type CliMenuInteractiveInteractiveMenuErrorMessage = string;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* CLI - Menu - Interactive - Server Menu.
|
|
287
|
+
*
|
|
288
|
+
* @since 2.0.0
|
|
289
|
+
*/
|
|
290
|
+
export type CliMenuInteractiveServerMenuConfigPath = string;
|
|
291
|
+
|
|
292
|
+
export type CliMenuInteractiveServerMenuReturn = Promise<void>;
|
|
293
|
+
|
|
294
|
+
export type CliMenuInteractiveServerMenuInMenu = boolean;
|
|
295
|
+
|
|
296
|
+
export type CliMenuInteractiveServerMenuResponse = prompts.Answers<string>;
|
|
297
|
+
|
|
298
|
+
export type CliMenuInteractiveServerMenuAction = string | undefined;
|
|
299
|
+
|
|
300
|
+
export type CliMenuInteractiveServerMenuAnswers = prompts.Answers<string>;
|
|
301
|
+
|
|
302
|
+
export type CliMenuInteractiveServerMenuNameValidateValue = string;
|
|
303
|
+
|
|
304
|
+
export type CliMenuInteractiveServerMenuServerValidateValue = string;
|
|
305
|
+
|
|
306
|
+
export type CliMenuInteractiveServerMenuUrlInstance = URL;
|
|
307
|
+
|
|
308
|
+
export type CliMenuInteractiveServerMenuTokenValidateValue = string;
|
|
309
|
+
|
|
310
|
+
export type CliMenuInteractiveServerMenuName = string | undefined;
|
|
311
|
+
|
|
312
|
+
export type CliMenuInteractiveServerMenuServer = string | undefined;
|
|
313
|
+
|
|
314
|
+
export type CliMenuInteractiveServerMenuToken = string | undefined;
|
|
315
|
+
|
|
316
|
+
export type CliMenuInteractiveServerMenuErrorMessage = string;
|
|
317
|
+
|
|
318
|
+
export type CliMenuInteractiveServerMenuServers = LibSchemaServerConfig[];
|
|
319
|
+
|
|
320
|
+
export type CliMenuInteractiveServerMenuSelectResponse = prompts.Answers<string>;
|
|
321
|
+
|
|
322
|
+
export type CliMenuInteractiveServerMenuCurrent = LibSchemaServerConfig | undefined;
|
|
323
|
+
|
|
324
|
+
export type CliMenuInteractiveServerMenuUpdates = prompts.Answers<string>;
|
|
325
|
+
|
|
326
|
+
export type CliMenuInteractiveServerMenuTrimmedEmpty = boolean;
|
|
327
|
+
|
|
328
|
+
export type CliMenuInteractiveServerMenuStartsWithTk = boolean;
|
|
329
|
+
|
|
330
|
+
export type CliMenuInteractiveServerMenuEditImportEditServer = (configPath: string, name: string, updates: Partial<LibSchemaServerConfig>) => void;
|
|
331
|
+
|
|
332
|
+
export type CliMenuInteractiveServerMenuEditImport = {
|
|
333
|
+
editServer: CliMenuInteractiveServerMenuEditImportEditServer;
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
export type CliMenuInteractiveServerMenuUpdatesServerString = string;
|
|
337
|
+
|
|
338
|
+
export type CliMenuInteractiveServerMenuServerUrlTrimmed = string;
|
|
339
|
+
|
|
340
|
+
export type CliMenuInteractiveServerMenuServerUrl = string | undefined;
|
|
341
|
+
|
|
342
|
+
export type CliMenuInteractiveServerMenuUpdatesTokenString = string;
|
|
343
|
+
|
|
344
|
+
export type CliMenuInteractiveServerMenuTokenTrimmed = string;
|
|
345
|
+
|
|
346
|
+
export type CliMenuInteractiveServerMenuTokenValue = string | undefined;
|
|
347
|
+
|
|
348
|
+
export type CliMenuInteractiveServerMenuEditUpdates = Partial<LibSchemaServerConfig>;
|
|
349
|
+
|
|
350
|
+
export type CliMenuInteractiveServerMenuConfirmResponse = prompts.Answers<string>;
|
|
351
|
+
|
|
352
|
+
export type CliMenuInteractiveServerMenuConfirmed = boolean | undefined;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* CLI - Menu - Interactive - Settings Flow.
|
|
356
|
+
*
|
|
357
|
+
* @since 2.0.0
|
|
358
|
+
*/
|
|
359
|
+
export type CliMenuInteractiveSettingsFlowConfigPath = string;
|
|
360
|
+
|
|
361
|
+
export type CliMenuInteractiveSettingsFlowReturn = Promise<void>;
|
|
362
|
+
|
|
363
|
+
export type CliMenuInteractiveSettingsFlowCurrentSettings = LibSchemaSettingsConfig | undefined;
|
|
364
|
+
|
|
365
|
+
export type CliMenuInteractiveSettingsFlowErrorMessage = string;
|
|
366
|
+
|
|
367
|
+
export type CliMenuInteractiveSettingsFlowWorkerNameResponse = prompts.Answers<string>;
|
|
368
|
+
|
|
369
|
+
export type CliMenuInteractiveSettingsFlowWorkerNameValidateValue = string;
|
|
370
|
+
|
|
371
|
+
export type CliMenuInteractiveSettingsFlowWorkerName = string | undefined;
|
|
372
|
+
|
|
373
|
+
export type CliMenuInteractiveSettingsFlowBaseDomainResponse = prompts.Answers<string>;
|
|
374
|
+
|
|
375
|
+
export type CliMenuInteractiveSettingsFlowBaseDomainValidateValue = string;
|
|
376
|
+
|
|
377
|
+
export type CliMenuInteractiveSettingsFlowBaseDomain = string | undefined;
|
|
378
|
+
|
|
379
|
+
export type CliMenuInteractiveSettingsFlowShowResponseOutputResponse = prompts.Answers<string>;
|
|
380
|
+
|
|
381
|
+
export type CliMenuInteractiveSettingsFlowShowResponseOutput = boolean | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fetch Response.
|
|
3
|
+
*
|
|
4
|
+
* Augments the global Response interface to add a generic json<T>() overload
|
|
5
|
+
* so call sites can type the parsed response without an explicit cast.
|
|
6
|
+
*
|
|
7
|
+
* @since 2.0.0
|
|
8
|
+
*/
|
|
9
|
+
interface Response {
|
|
10
|
+
json<T = unknown>(): Promise<T>;
|
|
11
|
+
}
|