ntfy-reverse-proxy 2.0.4 → 2.1.1
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/LICENSE +22 -0
- package/README.md +10 -0
- package/build/src/cli/commands/config-io.d.ts +3 -3
- package/build/src/cli/commands/config-io.d.ts.map +1 -1
- package/build/src/cli/commands/config-io.js +1 -1
- package/build/src/cli/commands/config-io.js.map +1 -1
- package/build/src/cli/commands/context.d.ts +7 -7
- package/build/src/cli/commands/context.d.ts.map +1 -1
- package/build/src/cli/commands/context.js +1 -1
- package/build/src/cli/commands/context.js.map +1 -1
- package/build/src/cli/commands/deploy.d.ts +2 -2
- package/build/src/cli/commands/deploy.d.ts.map +1 -1
- package/build/src/cli/commands/deploy.js +72 -30
- package/build/src/cli/commands/deploy.js.map +1 -1
- package/build/src/cli/commands/generate.d.ts +2 -2
- package/build/src/cli/commands/generate.d.ts.map +1 -1
- package/build/src/cli/commands/generate.js +3 -3
- package/build/src/cli/commands/generate.js.map +1 -1
- package/build/src/cli/commands/server.d.ts +5 -5
- package/build/src/cli/commands/server.d.ts.map +1 -1
- package/build/src/cli/commands/server.js.map +1 -1
- package/build/src/cli/commands/settings.d.ts +3 -3
- package/build/src/cli/commands/settings.d.ts.map +1 -1
- package/build/src/cli/commands/settings.js.map +1 -1
- package/build/src/cli/commands/validate.d.ts +2 -2
- package/build/src/cli/commands/validate.d.ts.map +1 -1
- package/build/src/cli/commands/validate.js +3 -0
- package/build/src/cli/commands/validate.js.map +1 -1
- package/build/src/cli/index.d.ts +2 -2
- package/build/src/cli/index.d.ts.map +1 -1
- package/build/src/cli/index.js +4 -4
- package/build/src/cli/index.js.map +1 -1
- package/build/src/cli/menu/interactive.d.ts +2 -2
- package/build/src/cli/menu/interactive.d.ts.map +1 -1
- package/build/src/cli/menu/interactive.js +260 -94
- package/build/src/cli/menu/interactive.js.map +1 -1
- package/build/src/lib/regex.d.ts +4 -1
- package/build/src/lib/regex.d.ts.map +1 -1
- package/build/src/lib/regex.js +4 -1
- package/build/src/lib/regex.js.map +1 -1
- package/build/src/lib/schema.d.ts +24 -0
- package/build/src/lib/schema.d.ts.map +1 -1
- package/build/src/lib/schema.js +11 -2
- package/build/src/lib/schema.js.map +1 -1
- package/build/src/lib/utility.d.ts +2 -2
- package/build/src/lib/utility.d.ts.map +1 -1
- package/build/src/lib/utility.js +1 -1
- package/build/src/lib/utility.js.map +1 -1
- package/build/src/types/cli/commands/config-io.d.ts +12 -12
- package/build/src/types/cli/commands/context.d.ts +96 -58
- package/build/src/types/cli/commands/deploy.d.ts +342 -298
- package/build/src/types/cli/commands/generate.d.ts +40 -24
- package/build/src/types/cli/commands/server.d.ts +23 -23
- package/build/src/types/cli/commands/settings.d.ts +8 -8
- package/build/src/types/cli/commands/validate.d.ts +16 -16
- package/build/src/types/cli/index.d.ts +16 -20
- package/build/src/types/cli/menu/interactive.d.ts +233 -178
- package/build/src/types/lib/schema.d.ts +89 -81
- package/build/src/types/lib/utility.d.ts +4 -2
- package/build/src/types/shared.d.ts +85 -0
- package/build/src/types/tests/cli/commands/context.test.d.ts +102 -31
- package/build/src/types/tests/cli/commands/generate.test.d.ts +50 -4
- package/build/src/types/tests/cli/commands/server.test.d.ts +88 -23
- package/build/src/types/tests/cli/commands/settings.test.d.ts +65 -21
- package/build/src/types/tests/cli/commands/validate.test.d.ts +69 -8
- package/build/src/types/tests/cli/menu/interactive-integration.test.d.ts +99 -0
- package/build/src/types/tests/cli/menu/interactive.test.d.ts +275 -2
- package/build/src/types/tests/lib/schema.test.d.ts +258 -3
- package/build/src/types/tests/worker/index.test.d.ts +166 -8
- package/build/src/types/tests/worker/interpreters/ntfy-json.test.d.ts +94 -10
- package/build/src/types/tests/worker/interpreters/pfsense.test.d.ts +163 -4
- package/build/src/types/tests/worker/interpreters/plain-text.test.d.ts +67 -4
- package/build/src/types/tests/worker/interpreters/seerr.test.d.ts +138 -3
- package/build/src/types/tests/worker/interpreters/statuspage.test.d.ts +235 -30
- package/build/src/types/tests/worker/interpreters/synology.test.d.ts +61 -3
- package/build/src/types/tests/worker/interpreters/unifi.test.d.ts +93 -3
- package/build/src/types/tests/worker/landing/page.test.d.ts +73 -50
- package/build/src/types/tests/worker/pipeline/accumulate.test.d.ts +226 -15
- package/build/src/types/tests/worker/pipeline/authenticate.test.d.ts +148 -4
- package/build/src/types/tests/worker/pipeline/email.test.d.ts +82 -8
- package/build/src/types/tests/worker/pipeline/format.test.d.ts +112 -32
- package/build/src/types/tests/worker/pipeline/interpret.test.d.ts +109 -17
- package/build/src/types/tests/worker/pipeline/parse.test.d.ts +70 -5
- package/build/src/types/tests/worker/pipeline/receive.test.d.ts +156 -15
- package/build/src/types/tests/worker/pipeline/respond.test.d.ts +129 -10
- package/build/src/types/tests/worker/pipeline/route.test.d.ts +412 -74
- package/build/src/types/tests/worker/pipeline/send.test.d.ts +58 -23
- package/build/src/types/tests/worker/pipeline/split.test.d.ts +47 -9
- package/build/src/types/worker/handlers.d.ts +193 -0
- package/build/src/types/worker/index.d.ts +58 -203
- package/build/src/types/worker/interpreters/ntfy-json.d.ts +10 -10
- package/build/src/types/worker/interpreters/pfsense.d.ts +57 -49
- package/build/src/types/worker/interpreters/plain-text.d.ts +7 -7
- package/build/src/types/worker/interpreters/seerr.d.ts +63 -61
- package/build/src/types/worker/interpreters/statuspage.d.ts +201 -116
- package/build/src/types/worker/interpreters/synology.d.ts +48 -46
- package/build/src/types/worker/interpreters/unifi.d.ts +79 -54
- package/build/src/types/worker/landing/page.d.ts +30 -23
- package/build/src/types/worker/pipeline/accumulate.d.ts +46 -32
- package/build/src/types/worker/pipeline/authenticate.d.ts +94 -34
- package/build/src/types/worker/pipeline/email.d.ts +114 -50
- package/build/src/types/worker/pipeline/format.d.ts +31 -23
- package/build/src/types/worker/pipeline/interpret.d.ts +34 -34
- package/build/src/types/worker/pipeline/parse.d.ts +25 -19
- package/build/src/types/worker/pipeline/receive.d.ts +36 -34
- package/build/src/types/worker/pipeline/respond.d.ts +119 -63
- package/build/src/types/worker/pipeline/route.d.ts +33 -16
- package/build/src/types/worker/pipeline/send.d.ts +116 -79
- package/build/src/types/worker/pipeline/split.d.ts +21 -16
- package/build/src/worker/handlers.d.ts +5 -4
- package/build/src/worker/handlers.d.ts.map +1 -1
- package/build/src/worker/handlers.js +238 -202
- package/build/src/worker/handlers.js.map +1 -1
- package/build/src/worker/index.d.ts +2 -2
- package/build/src/worker/index.d.ts.map +1 -1
- package/build/src/worker/index.js +37 -9
- package/build/src/worker/index.js.map +1 -1
- package/build/src/worker/interpreters/ntfy-json.d.ts +2 -2
- package/build/src/worker/interpreters/ntfy-json.d.ts.map +1 -1
- package/build/src/worker/interpreters/ntfy-json.js.map +1 -1
- package/build/src/worker/interpreters/pfsense.d.ts +2 -2
- package/build/src/worker/interpreters/pfsense.d.ts.map +1 -1
- package/build/src/worker/interpreters/pfsense.js +20 -27
- package/build/src/worker/interpreters/pfsense.js.map +1 -1
- package/build/src/worker/interpreters/plain-text.d.ts +2 -2
- package/build/src/worker/interpreters/plain-text.d.ts.map +1 -1
- package/build/src/worker/interpreters/plain-text.js.map +1 -1
- package/build/src/worker/interpreters/seerr.d.ts +2 -2
- package/build/src/worker/interpreters/seerr.d.ts.map +1 -1
- package/build/src/worker/interpreters/seerr.js +16 -12
- package/build/src/worker/interpreters/seerr.js.map +1 -1
- package/build/src/worker/interpreters/statuspage.d.ts +2 -2
- package/build/src/worker/interpreters/statuspage.d.ts.map +1 -1
- package/build/src/worker/interpreters/statuspage.js +98 -47
- package/build/src/worker/interpreters/statuspage.js.map +1 -1
- package/build/src/worker/interpreters/synology.d.ts +2 -2
- package/build/src/worker/interpreters/synology.d.ts.map +1 -1
- package/build/src/worker/interpreters/synology.js +9 -5
- package/build/src/worker/interpreters/synology.js.map +1 -1
- package/build/src/worker/interpreters/unifi.d.ts +2 -2
- package/build/src/worker/interpreters/unifi.d.ts.map +1 -1
- package/build/src/worker/interpreters/unifi.js +34 -20
- package/build/src/worker/interpreters/unifi.js.map +1 -1
- package/build/src/worker/landing/page.d.ts +2 -2
- package/build/src/worker/landing/page.d.ts.map +1 -1
- package/build/src/worker/landing/page.js +4 -3
- package/build/src/worker/landing/page.js.map +1 -1
- package/build/src/worker/pipeline/accumulate.d.ts +5 -6
- package/build/src/worker/pipeline/accumulate.d.ts.map +1 -1
- package/build/src/worker/pipeline/accumulate.js +4 -11
- package/build/src/worker/pipeline/accumulate.js.map +1 -1
- package/build/src/worker/pipeline/authenticate.d.ts +2 -2
- package/build/src/worker/pipeline/authenticate.d.ts.map +1 -1
- package/build/src/worker/pipeline/authenticate.js +25 -7
- package/build/src/worker/pipeline/authenticate.js.map +1 -1
- package/build/src/worker/pipeline/email.d.ts +2 -2
- package/build/src/worker/pipeline/email.d.ts.map +1 -1
- package/build/src/worker/pipeline/email.js +34 -11
- package/build/src/worker/pipeline/email.js.map +1 -1
- package/build/src/worker/pipeline/format.d.ts +2 -3
- package/build/src/worker/pipeline/format.d.ts.map +1 -1
- package/build/src/worker/pipeline/format.js +2 -1
- package/build/src/worker/pipeline/format.js.map +1 -1
- package/build/src/worker/pipeline/interpret.d.ts +4 -3
- package/build/src/worker/pipeline/interpret.d.ts.map +1 -1
- package/build/src/worker/pipeline/interpret.js +7 -7
- package/build/src/worker/pipeline/interpret.js.map +1 -1
- package/build/src/worker/pipeline/parse.d.ts +2 -2
- package/build/src/worker/pipeline/parse.d.ts.map +1 -1
- package/build/src/worker/pipeline/parse.js +14 -7
- package/build/src/worker/pipeline/parse.js.map +1 -1
- package/build/src/worker/pipeline/receive.d.ts +2 -2
- package/build/src/worker/pipeline/receive.d.ts.map +1 -1
- package/build/src/worker/pipeline/receive.js +6 -6
- package/build/src/worker/pipeline/receive.js.map +1 -1
- package/build/src/worker/pipeline/respond.d.ts +2 -2
- package/build/src/worker/pipeline/respond.d.ts.map +1 -1
- package/build/src/worker/pipeline/respond.js +1 -1
- package/build/src/worker/pipeline/respond.js.map +1 -1
- package/build/src/worker/pipeline/route.d.ts +2 -3
- package/build/src/worker/pipeline/route.d.ts.map +1 -1
- package/build/src/worker/pipeline/route.js.map +1 -1
- package/build/src/worker/pipeline/send.d.ts +2 -2
- package/build/src/worker/pipeline/send.d.ts.map +1 -1
- package/build/src/worker/pipeline/send.js +80 -41
- package/build/src/worker/pipeline/send.js.map +1 -1
- package/build/src/worker/pipeline/split.d.ts +2 -2
- package/build/src/worker/pipeline/split.d.ts.map +1 -1
- package/build/src/worker/pipeline/split.js +4 -2
- package/build/src/worker/pipeline/split.js.map +1 -1
- package/package.json +11 -9
- package/build/src/types/tests/type-declarations.test.d.ts +0 -173
- package/build/src/types/worker/pipeline/shared.d.ts +0 -85
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type prompts from 'prompts';
|
|
2
2
|
|
|
3
3
|
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
LibSchemaSettingsConfig,
|
|
4
|
+
Lib_Schema_ContextConfig,
|
|
5
|
+
Lib_Schema_ContextConfigErrorEvent,
|
|
6
|
+
Lib_Schema_ServerConfig,
|
|
7
|
+
Lib_Schema_SettingsConfig,
|
|
9
8
|
} from '../../lib/schema.d.ts';
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -13,369 +12,425 @@ import type {
|
|
|
13
12
|
*
|
|
14
13
|
* @since 2.0.0
|
|
15
14
|
*/
|
|
16
|
-
export type
|
|
15
|
+
export type Cli_Menu_Interactive_AddContextFlow_ConfigPath = string;
|
|
17
16
|
|
|
18
|
-
export type
|
|
17
|
+
export type Cli_Menu_Interactive_AddContextFlow_Servers = Lib_Schema_ServerConfig[];
|
|
19
18
|
|
|
20
|
-
export type
|
|
19
|
+
export type Cli_Menu_Interactive_AddContextFlow_Returns = Promise<void>;
|
|
21
20
|
|
|
22
|
-
export type
|
|
21
|
+
export type Cli_Menu_Interactive_AddContextFlow_AutoId = string;
|
|
23
22
|
|
|
24
|
-
export type
|
|
23
|
+
export type Cli_Menu_Interactive_AddContextFlow_TypeResponse = prompts.Answers<string>;
|
|
25
24
|
|
|
26
|
-
export type
|
|
25
|
+
export type Cli_Menu_Interactive_AddContextFlow_ContextType = string | undefined;
|
|
27
26
|
|
|
28
|
-
export type
|
|
27
|
+
export type Cli_Menu_Interactive_AddContextFlow_ChoiceTitle = string;
|
|
29
28
|
|
|
30
|
-
export type
|
|
29
|
+
export type Cli_Menu_Interactive_AddContextFlow_ChoiceValue = string;
|
|
31
30
|
|
|
32
|
-
export type
|
|
33
|
-
title:
|
|
34
|
-
value:
|
|
31
|
+
export type Cli_Menu_Interactive_AddContextFlow_Choice = {
|
|
32
|
+
title: Cli_Menu_Interactive_AddContextFlow_ChoiceTitle;
|
|
33
|
+
value: Cli_Menu_Interactive_AddContextFlow_ChoiceValue;
|
|
35
34
|
};
|
|
36
35
|
|
|
37
|
-
export type
|
|
36
|
+
export type Cli_Menu_Interactive_AddContextFlow_HttpInterpreters = Cli_Menu_Interactive_AddContextFlow_Choice[];
|
|
38
37
|
|
|
39
|
-
export type
|
|
38
|
+
export type Cli_Menu_Interactive_AddContextFlow_EmailInterpreters = Cli_Menu_Interactive_AddContextFlow_Choice[];
|
|
40
39
|
|
|
41
|
-
export type
|
|
40
|
+
export type Cli_Menu_Interactive_AddContextFlow_NameResponse = prompts.Answers<string>;
|
|
42
41
|
|
|
43
|
-
export type
|
|
42
|
+
export type Cli_Menu_Interactive_AddContextFlow_NameValidateValue = string;
|
|
44
43
|
|
|
45
|
-
export type
|
|
44
|
+
export type Cli_Menu_Interactive_AddContextFlow_Name = string | undefined;
|
|
46
45
|
|
|
47
|
-
export type
|
|
46
|
+
export type Cli_Menu_Interactive_AddContextFlow_IdMessage = string;
|
|
48
47
|
|
|
49
|
-
export type
|
|
48
|
+
export type Cli_Menu_Interactive_AddContextFlow_IdResponse = prompts.Answers<string>;
|
|
50
49
|
|
|
51
|
-
export type
|
|
50
|
+
export type Cli_Menu_Interactive_AddContextFlow_IdValidateValue = string;
|
|
52
51
|
|
|
53
|
-
export type
|
|
52
|
+
export type Cli_Menu_Interactive_AddContextFlow_RawId = string | undefined;
|
|
54
53
|
|
|
55
|
-
export type
|
|
54
|
+
export type Cli_Menu_Interactive_AddContextFlow_InterpreterChoices = Cli_Menu_Interactive_AddContextFlow_Choice[];
|
|
56
55
|
|
|
57
|
-
export type
|
|
56
|
+
export type Cli_Menu_Interactive_AddContextFlow_InterpreterResponse = prompts.Answers<string>;
|
|
58
57
|
|
|
59
|
-
export type
|
|
58
|
+
export type Cli_Menu_Interactive_AddContextFlow_Interpreter = string | undefined;
|
|
60
59
|
|
|
61
|
-
export type
|
|
60
|
+
export type Cli_Menu_Interactive_AddContextFlow_TopicResponse = prompts.Answers<string>;
|
|
62
61
|
|
|
63
|
-
export type
|
|
62
|
+
export type Cli_Menu_Interactive_AddContextFlow_TopicValidateValue = string;
|
|
64
63
|
|
|
65
|
-
export type
|
|
64
|
+
export type Cli_Menu_Interactive_AddContextFlow_Topic = string | undefined;
|
|
66
65
|
|
|
67
|
-
export type
|
|
66
|
+
export type Cli_Menu_Interactive_AddContextFlow_ErrorTopicResponse = prompts.Answers<string>;
|
|
68
67
|
|
|
69
|
-
export type
|
|
68
|
+
export type Cli_Menu_Interactive_AddContextFlow_ErrorTopic = string | undefined;
|
|
70
69
|
|
|
71
|
-
export type
|
|
70
|
+
export type Cli_Menu_Interactive_AddContextFlow_ErrorEventsResponse = prompts.Answers<string>;
|
|
72
71
|
|
|
73
|
-
export type
|
|
72
|
+
export type Cli_Menu_Interactive_AddContextFlow_ErrorEvents = string[] | undefined;
|
|
74
73
|
|
|
75
|
-
export type
|
|
74
|
+
export type Cli_Menu_Interactive_AddContextFlow_ModeResponse = prompts.Answers<string>;
|
|
76
75
|
|
|
77
|
-
export type
|
|
76
|
+
export type Cli_Menu_Interactive_AddContextFlow_Mode = string | undefined;
|
|
78
77
|
|
|
79
|
-
export type
|
|
78
|
+
export type Cli_Menu_Interactive_AddContextFlow_ShowVisitorInfoResponse = prompts.Answers<string>;
|
|
80
79
|
|
|
81
|
-
export type
|
|
80
|
+
export type Cli_Menu_Interactive_AddContextFlow_ShowVisitorInfo = boolean | undefined;
|
|
82
81
|
|
|
83
|
-
export type
|
|
82
|
+
export type Cli_Menu_Interactive_AddContextFlow_PrimaryServerResponse = prompts.Answers<string>;
|
|
84
83
|
|
|
85
|
-
export type
|
|
84
|
+
export type Cli_Menu_Interactive_AddContextFlow_PrimaryServer = string | undefined;
|
|
86
85
|
|
|
87
|
-
export type
|
|
86
|
+
export type Cli_Menu_Interactive_AddContextFlow_SelectedServersResponse = prompts.Answers<string>;
|
|
88
87
|
|
|
89
|
-
export type
|
|
88
|
+
export type Cli_Menu_Interactive_AddContextFlow_SelectedServers = string[] | undefined;
|
|
90
89
|
|
|
91
|
-
export type
|
|
90
|
+
export type Cli_Menu_Interactive_AddContextFlow_RawIdString = string;
|
|
92
91
|
|
|
93
|
-
export type
|
|
92
|
+
export type Cli_Menu_Interactive_AddContextFlow_IdTrimmed = string;
|
|
94
93
|
|
|
95
|
-
export type
|
|
94
|
+
export type Cli_Menu_Interactive_AddContextFlow_ResolvedId = string;
|
|
96
95
|
|
|
97
|
-
export type
|
|
96
|
+
export type Cli_Menu_Interactive_AddContextFlow_ErrorTopicString = string;
|
|
98
97
|
|
|
99
|
-
export type
|
|
98
|
+
export type Cli_Menu_Interactive_AddContextFlow_ErrorTopicTrimmed = string;
|
|
100
99
|
|
|
101
|
-
export type
|
|
100
|
+
export type Cli_Menu_Interactive_AddContextFlow_ResolvedErrorTopic = string | undefined;
|
|
102
101
|
|
|
103
|
-
export type
|
|
102
|
+
export type Cli_Menu_Interactive_AddContextFlow_TopicString = string;
|
|
104
103
|
|
|
105
|
-
export type
|
|
104
|
+
export type Cli_Menu_Interactive_AddContextFlow_TypedInterpreter = 'plain-text' | 'ntfy-json' | 'seerr' | 'synology' | 'statuspage' | 'pfsense' | 'unifi';
|
|
106
105
|
|
|
107
|
-
export type
|
|
106
|
+
export type Cli_Menu_Interactive_AddContextFlow_TypedMode = 'send-once' | 'send-all';
|
|
108
107
|
|
|
109
|
-
export type
|
|
108
|
+
export type Cli_Menu_Interactive_AddContextFlow_TypedErrorEvents = Array<Lib_Schema_ContextConfigErrorEvent> | undefined;
|
|
110
109
|
|
|
111
|
-
export type
|
|
110
|
+
export type Cli_Menu_Interactive_AddContextFlow_AutoToken = string;
|
|
112
111
|
|
|
113
|
-
export type
|
|
112
|
+
export type Cli_Menu_Interactive_AddContextFlow_TokenResponse = prompts.Answers<string>;
|
|
114
113
|
|
|
115
|
-
export type
|
|
114
|
+
export type Cli_Menu_Interactive_AddContextFlow_RawToken = string | undefined;
|
|
116
115
|
|
|
117
|
-
export type
|
|
116
|
+
export type Cli_Menu_Interactive_AddContextFlow_TokenTrimmed = string;
|
|
118
117
|
|
|
119
|
-
export type
|
|
118
|
+
export type Cli_Menu_Interactive_AddContextFlow_ResolvedToken = string | undefined;
|
|
120
119
|
|
|
121
|
-
export type
|
|
120
|
+
export type Cli_Menu_Interactive_AddContextFlow_AllowedFromResponse = prompts.Answers<string>;
|
|
121
|
+
|
|
122
|
+
export type Cli_Menu_Interactive_AddContextFlow_RawAllowedFrom = string | undefined;
|
|
123
|
+
|
|
124
|
+
export type Cli_Menu_Interactive_AddContextFlow_AllowedFromTrimmed = string;
|
|
125
|
+
|
|
126
|
+
export type Cli_Menu_Interactive_AddContextFlow_ResolvedAllowedFrom = string | undefined;
|
|
122
127
|
|
|
123
128
|
/**
|
|
124
129
|
* CLI - Menu - Interactive - Context Menu.
|
|
125
130
|
*
|
|
126
131
|
* @since 2.0.0
|
|
127
132
|
*/
|
|
128
|
-
export type
|
|
133
|
+
export type Cli_Menu_Interactive_ContextMenu_ConfigPath = string;
|
|
134
|
+
|
|
135
|
+
export type Cli_Menu_Interactive_ContextMenu_Returns = Promise<void>;
|
|
129
136
|
|
|
130
|
-
export type
|
|
137
|
+
export type Cli_Menu_Interactive_ContextMenu_InMenu = boolean;
|
|
131
138
|
|
|
132
|
-
export type
|
|
139
|
+
export type Cli_Menu_Interactive_ContextMenu_Response = prompts.Answers<string>;
|
|
133
140
|
|
|
134
|
-
export type
|
|
141
|
+
export type Cli_Menu_Interactive_ContextMenu_Action = string | undefined;
|
|
135
142
|
|
|
136
|
-
export type
|
|
143
|
+
export type Cli_Menu_Interactive_ContextMenu_Servers = Array<Lib_Schema_ServerConfig>;
|
|
137
144
|
|
|
138
|
-
export type
|
|
145
|
+
export type Cli_Menu_Interactive_ContextMenu_ErrorMessage = string;
|
|
139
146
|
|
|
140
|
-
export type
|
|
147
|
+
export type Cli_Menu_Interactive_ContextMenu_Contexts = Array<Lib_Schema_ContextConfig>;
|
|
141
148
|
|
|
142
|
-
export type
|
|
149
|
+
export type Cli_Menu_Interactive_ContextMenu_SelectResponse = prompts.Answers<string>;
|
|
143
150
|
|
|
144
|
-
export type
|
|
151
|
+
export type Cli_Menu_Interactive_ContextMenu_Name = string | undefined;
|
|
145
152
|
|
|
146
|
-
export type
|
|
153
|
+
export type Cli_Menu_Interactive_ContextMenu_Current = Lib_Schema_ContextConfig | undefined;
|
|
147
154
|
|
|
148
|
-
export type
|
|
155
|
+
export type Cli_Menu_Interactive_ContextMenu_EditServers = Array<Lib_Schema_ServerConfig>;
|
|
149
156
|
|
|
150
|
-
export type
|
|
157
|
+
export type Cli_Menu_Interactive_ContextMenu_ServerChoices = Array<{
|
|
151
158
|
title: string;
|
|
152
159
|
value: string;
|
|
153
160
|
}>;
|
|
154
161
|
|
|
155
|
-
export type
|
|
162
|
+
export type Cli_Menu_Interactive_ContextMenu_KeepIdResponse = prompts.Answers<string>;
|
|
156
163
|
|
|
157
|
-
export type
|
|
164
|
+
export type Cli_Menu_Interactive_ContextMenu_KeepId = boolean | undefined;
|
|
158
165
|
|
|
159
|
-
export type
|
|
166
|
+
export type Cli_Menu_Interactive_ContextMenu_Id = string | undefined;
|
|
160
167
|
|
|
161
|
-
export type
|
|
168
|
+
export type Cli_Menu_Interactive_ContextMenu_ChoiceTitle = string;
|
|
162
169
|
|
|
163
|
-
export type
|
|
170
|
+
export type Cli_Menu_Interactive_ContextMenu_ChoiceValue = string;
|
|
164
171
|
|
|
165
|
-
export type
|
|
166
|
-
title:
|
|
167
|
-
value:
|
|
172
|
+
export type Cli_Menu_Interactive_ContextMenu_Choice = {
|
|
173
|
+
title: Cli_Menu_Interactive_ContextMenu_ChoiceTitle;
|
|
174
|
+
value: Cli_Menu_Interactive_ContextMenu_ChoiceValue;
|
|
168
175
|
};
|
|
169
176
|
|
|
170
|
-
export type
|
|
177
|
+
export type Cli_Menu_Interactive_ContextMenu_HttpChoices = Cli_Menu_Interactive_ContextMenu_Choice[];
|
|
178
|
+
|
|
179
|
+
export type Cli_Menu_Interactive_ContextMenu_EmailChoices = Cli_Menu_Interactive_ContextMenu_Choice[];
|
|
180
|
+
|
|
181
|
+
export type Cli_Menu_Interactive_ContextMenu_KnownChoices = Cli_Menu_Interactive_ContextMenu_Choice[];
|
|
182
|
+
|
|
183
|
+
export type Cli_Menu_Interactive_ContextMenu_Exists = boolean;
|
|
184
|
+
|
|
185
|
+
export type Cli_Menu_Interactive_ContextMenu_HttpValues = string[];
|
|
186
|
+
|
|
187
|
+
export type Cli_Menu_Interactive_ContextMenu_EmailValues = string[];
|
|
188
|
+
|
|
189
|
+
export type Cli_Menu_Interactive_ContextMenu_KnownValues = string[];
|
|
190
|
+
|
|
191
|
+
export type Cli_Menu_Interactive_ContextMenu_InterpreterIdx = number;
|
|
192
|
+
|
|
193
|
+
export type Cli_Menu_Interactive_ContextMenu_InterpreterInitial = number;
|
|
194
|
+
|
|
195
|
+
export type Cli_Menu_Interactive_ContextMenu_InterpreterResponse = prompts.Answers<string>;
|
|
196
|
+
|
|
197
|
+
export type Cli_Menu_Interactive_ContextMenu_Interpreter = string | undefined;
|
|
171
198
|
|
|
172
|
-
export type
|
|
199
|
+
export type Cli_Menu_Interactive_ContextMenu_TopicResponse = prompts.Answers<string>;
|
|
173
200
|
|
|
174
|
-
export type
|
|
201
|
+
export type Cli_Menu_Interactive_ContextMenu_TopicValidateValue = string;
|
|
175
202
|
|
|
176
|
-
export type
|
|
203
|
+
export type Cli_Menu_Interactive_ContextMenu_Topic = string | undefined;
|
|
177
204
|
|
|
178
|
-
export type
|
|
205
|
+
export type Cli_Menu_Interactive_ContextMenu_CurrentErrorTopic = string;
|
|
179
206
|
|
|
180
|
-
export type
|
|
207
|
+
export type Cli_Menu_Interactive_ContextMenu_ErrorTopicResponse = prompts.Answers<string>;
|
|
181
208
|
|
|
182
|
-
export type
|
|
209
|
+
export type Cli_Menu_Interactive_ContextMenu_ErrorTopic = string | undefined;
|
|
183
210
|
|
|
184
|
-
export type
|
|
211
|
+
export type Cli_Menu_Interactive_ContextMenu_CurrentErrorEvents = Array<Lib_Schema_ContextConfigErrorEvent> | undefined;
|
|
185
212
|
|
|
186
|
-
export type
|
|
213
|
+
export type Cli_Menu_Interactive_ContextMenu_ErrorEventsResponse = prompts.Answers<string>;
|
|
187
214
|
|
|
188
|
-
export type
|
|
215
|
+
export type Cli_Menu_Interactive_ContextMenu_ErrorEvents = string[] | undefined;
|
|
189
216
|
|
|
190
|
-
export type
|
|
217
|
+
export type Cli_Menu_Interactive_ContextMenu_ModeInitial = number;
|
|
191
218
|
|
|
192
|
-
export type
|
|
219
|
+
export type Cli_Menu_Interactive_ContextMenu_ModeResponse = prompts.Answers<string>;
|
|
193
220
|
|
|
194
|
-
export type
|
|
221
|
+
export type Cli_Menu_Interactive_ContextMenu_Mode = string | undefined;
|
|
195
222
|
|
|
196
|
-
export type
|
|
223
|
+
export type Cli_Menu_Interactive_ContextMenu_ShowVisitorInfoResponse = prompts.Answers<string>;
|
|
197
224
|
|
|
198
|
-
export type
|
|
225
|
+
export type Cli_Menu_Interactive_ContextMenu_ShowVisitorInfo = boolean | undefined;
|
|
199
226
|
|
|
200
|
-
export type
|
|
227
|
+
export type Cli_Menu_Interactive_ContextMenu_PrimaryServerIdx = number;
|
|
201
228
|
|
|
202
|
-
export type
|
|
229
|
+
export type Cli_Menu_Interactive_ContextMenu_PrimaryServerInitial = number;
|
|
203
230
|
|
|
204
|
-
export type
|
|
231
|
+
export type Cli_Menu_Interactive_ContextMenu_PrimaryServerResponse = prompts.Answers<string>;
|
|
205
232
|
|
|
206
|
-
export type
|
|
233
|
+
export type Cli_Menu_Interactive_ContextMenu_PrimaryServer = string | undefined;
|
|
207
234
|
|
|
208
|
-
export type
|
|
235
|
+
export type Cli_Menu_Interactive_ContextMenu_SelectedServersResponse = prompts.Answers<string>;
|
|
209
236
|
|
|
210
|
-
export type
|
|
237
|
+
export type Cli_Menu_Interactive_ContextMenu_SelectedServers = string[] | undefined;
|
|
211
238
|
|
|
212
|
-
export type
|
|
239
|
+
export type Cli_Menu_Interactive_ContextMenu_Updates = Record<string, unknown>;
|
|
213
240
|
|
|
214
|
-
export type
|
|
241
|
+
export type Cli_Menu_Interactive_ContextMenu_ErrorTopicValue = string | undefined;
|
|
215
242
|
|
|
216
|
-
export type
|
|
243
|
+
export type Cli_Menu_Interactive_ContextMenu_ErrorTopicTrimmed = string;
|
|
217
244
|
|
|
218
|
-
export type
|
|
245
|
+
export type Cli_Menu_Interactive_ContextMenu_ResolvedErrorTopic = string | undefined;
|
|
219
246
|
|
|
220
|
-
export type
|
|
247
|
+
export type Cli_Menu_Interactive_ContextMenu_KeepTokenResponse = prompts.Answers<string>;
|
|
221
248
|
|
|
222
|
-
export type
|
|
249
|
+
export type Cli_Menu_Interactive_ContextMenu_KeepToken = boolean | undefined;
|
|
223
250
|
|
|
224
|
-
export type
|
|
251
|
+
export type Cli_Menu_Interactive_ContextMenu_NewToken = string;
|
|
225
252
|
|
|
226
|
-
export type
|
|
253
|
+
export type Cli_Menu_Interactive_ContextMenu_AddTokenResponse = prompts.Answers<string>;
|
|
227
254
|
|
|
228
|
-
export type
|
|
255
|
+
export type Cli_Menu_Interactive_ContextMenu_AddToken = boolean | undefined;
|
|
229
256
|
|
|
230
|
-
export type
|
|
257
|
+
export type Cli_Menu_Interactive_ContextMenu_AddNewToken = string;
|
|
231
258
|
|
|
232
|
-
export type
|
|
259
|
+
export type Cli_Menu_Interactive_ContextMenu_CurrentAllowedFrom = string;
|
|
233
260
|
|
|
234
|
-
export type
|
|
261
|
+
export type Cli_Menu_Interactive_ContextMenu_AllowedFromResponse = prompts.Answers<string>;
|
|
235
262
|
|
|
236
|
-
export type
|
|
263
|
+
export type Cli_Menu_Interactive_ContextMenu_AllowedFrom = string | undefined;
|
|
237
264
|
|
|
238
|
-
export type
|
|
239
|
-
|
|
265
|
+
export type Cli_Menu_Interactive_ContextMenu_AllowedFromTrimmed = string;
|
|
266
|
+
|
|
267
|
+
export type Cli_Menu_Interactive_ContextMenu_ResolvedAllowedFrom = string | undefined;
|
|
268
|
+
|
|
269
|
+
export type Cli_Menu_Interactive_ContextMenu_EditImportEditContext = (configPath: string, name: string, updates: Partial<Lib_Schema_ContextConfig>) => void;
|
|
270
|
+
|
|
271
|
+
export type Cli_Menu_Interactive_ContextMenu_EditImport = {
|
|
272
|
+
editContext: Cli_Menu_Interactive_ContextMenu_EditImportEditContext;
|
|
240
273
|
};
|
|
241
274
|
|
|
242
|
-
export type
|
|
275
|
+
export type Cli_Menu_Interactive_ContextMenu_EditErrorMessage = string;
|
|
276
|
+
|
|
277
|
+
export type Cli_Menu_Interactive_ContextMenu_RemoveContexts = Array<Lib_Schema_ContextConfig>;
|
|
278
|
+
|
|
279
|
+
export type Cli_Menu_Interactive_ContextMenu_RemoveSelectResponse = prompts.Answers<string>;
|
|
280
|
+
|
|
281
|
+
export type Cli_Menu_Interactive_ContextMenu_RemoveName = string | undefined;
|
|
282
|
+
|
|
283
|
+
export type Cli_Menu_Interactive_ContextMenu_ConfirmResponse = prompts.Answers<string>;
|
|
243
284
|
|
|
244
|
-
export type
|
|
285
|
+
export type Cli_Menu_Interactive_ContextMenu_Confirmed = boolean | undefined;
|
|
286
|
+
|
|
287
|
+
export type Cli_Menu_Interactive_ContextMenu_RemoveErrorMessage = string;
|
|
245
288
|
|
|
246
289
|
/**
|
|
247
290
|
* CLI - Menu - Interactive - Interactive Menu.
|
|
248
291
|
*
|
|
249
292
|
* @since 2.0.0
|
|
250
293
|
*/
|
|
251
|
-
export type
|
|
294
|
+
export type Cli_Menu_Interactive_InteractiveMenu_ConfigDirs = string[];
|
|
252
295
|
|
|
253
|
-
export type
|
|
296
|
+
export type Cli_Menu_Interactive_InteractiveMenu_Returns = Promise<void>;
|
|
254
297
|
|
|
255
|
-
export type
|
|
298
|
+
export type Cli_Menu_Interactive_InteractiveMenu_CurrentFilePath = string;
|
|
256
299
|
|
|
257
|
-
export type
|
|
300
|
+
export type Cli_Menu_Interactive_InteractiveMenu_Dir = string;
|
|
258
301
|
|
|
259
|
-
export type
|
|
302
|
+
export type Cli_Menu_Interactive_InteractiveMenu_Version = string;
|
|
260
303
|
|
|
261
|
-
export type
|
|
304
|
+
export type Cli_Menu_Interactive_InteractiveMenu_PackageJsonPath = string;
|
|
262
305
|
|
|
263
|
-
export type
|
|
306
|
+
export type Cli_Menu_Interactive_InteractiveMenu_PackageJsonRaw = string;
|
|
264
307
|
|
|
265
|
-
export type
|
|
308
|
+
export type Cli_Menu_Interactive_InteractiveMenu_PackageJsonParsed = Record<string, unknown>;
|
|
266
309
|
|
|
267
|
-
export type
|
|
310
|
+
export type Cli_Menu_Interactive_InteractiveMenu_Parent = string;
|
|
268
311
|
|
|
269
|
-
export type
|
|
312
|
+
export type Cli_Menu_Interactive_InteractiveMenu_Header = string;
|
|
270
313
|
|
|
271
|
-
export type
|
|
314
|
+
export type Cli_Menu_Interactive_InteractiveMenu_ConfigPath = string | undefined;
|
|
272
315
|
|
|
273
|
-
export type
|
|
316
|
+
export type Cli_Menu_Interactive_InteractiveMenu_ConfigDirResponse = prompts.Answers<string>;
|
|
274
317
|
|
|
275
|
-
export type
|
|
318
|
+
export type Cli_Menu_Interactive_InteractiveMenu_DefaultConfigDir = string;
|
|
276
319
|
|
|
277
|
-
export type
|
|
320
|
+
export type Cli_Menu_Interactive_InteractiveMenu_Running = boolean;
|
|
278
321
|
|
|
279
|
-
export type
|
|
322
|
+
export type Cli_Menu_Interactive_InteractiveMenu_Response = prompts.Answers<string>;
|
|
280
323
|
|
|
281
|
-
export type
|
|
324
|
+
export type Cli_Menu_Interactive_InteractiveMenu_Action = string | undefined;
|
|
282
325
|
|
|
283
|
-
export type
|
|
326
|
+
export type Cli_Menu_Interactive_InteractiveMenu_ErrorMessage = string;
|
|
284
327
|
|
|
285
328
|
/**
|
|
286
329
|
* CLI - Menu - Interactive - Server Menu.
|
|
287
330
|
*
|
|
288
331
|
* @since 2.0.0
|
|
289
332
|
*/
|
|
290
|
-
export type
|
|
333
|
+
export type Cli_Menu_Interactive_ServerMenu_ConfigPath = string;
|
|
291
334
|
|
|
292
|
-
export type
|
|
335
|
+
export type Cli_Menu_Interactive_ServerMenu_Returns = Promise<void>;
|
|
293
336
|
|
|
294
|
-
export type
|
|
337
|
+
export type Cli_Menu_Interactive_ServerMenu_InMenu = boolean;
|
|
295
338
|
|
|
296
|
-
export type
|
|
339
|
+
export type Cli_Menu_Interactive_ServerMenu_Response = prompts.Answers<string>;
|
|
297
340
|
|
|
298
|
-
export type
|
|
341
|
+
export type Cli_Menu_Interactive_ServerMenu_Action = string | undefined;
|
|
299
342
|
|
|
300
|
-
export type
|
|
343
|
+
export type Cli_Menu_Interactive_ServerMenu_Answers = prompts.Answers<string>;
|
|
301
344
|
|
|
302
|
-
export type
|
|
345
|
+
export type Cli_Menu_Interactive_ServerMenu_UrlInstance = URL;
|
|
303
346
|
|
|
304
|
-
export type
|
|
347
|
+
export type Cli_Menu_Interactive_ServerMenu_AnswersName = string | undefined;
|
|
305
348
|
|
|
306
|
-
export type
|
|
349
|
+
export type Cli_Menu_Interactive_ServerMenu_AnswersServer = string | undefined;
|
|
307
350
|
|
|
308
|
-
export type
|
|
351
|
+
export type Cli_Menu_Interactive_ServerMenu_AnswersToken = string | undefined;
|
|
309
352
|
|
|
310
|
-
export type
|
|
353
|
+
export type Cli_Menu_Interactive_ServerMenu_ErrorMessage = string;
|
|
311
354
|
|
|
312
|
-
export type
|
|
355
|
+
export type Cli_Menu_Interactive_ServerMenu_Servers = Array<Lib_Schema_ServerConfig>;
|
|
313
356
|
|
|
314
|
-
export type
|
|
357
|
+
export type Cli_Menu_Interactive_ServerMenu_SelectResponse = prompts.Answers<string>;
|
|
315
358
|
|
|
316
|
-
export type
|
|
359
|
+
export type Cli_Menu_Interactive_ServerMenu_Name = string | undefined;
|
|
317
360
|
|
|
318
|
-
export type
|
|
361
|
+
export type Cli_Menu_Interactive_ServerMenu_Current = Lib_Schema_ServerConfig | undefined;
|
|
319
362
|
|
|
320
|
-
export type
|
|
363
|
+
export type Cli_Menu_Interactive_ServerMenu_CurrentServer = string | undefined;
|
|
321
364
|
|
|
322
|
-
export type
|
|
365
|
+
export type Cli_Menu_Interactive_ServerMenu_Updates = prompts.Answers<string>;
|
|
323
366
|
|
|
324
|
-
export type
|
|
367
|
+
export type Cli_Menu_Interactive_ServerMenu_EditUrlInstance = URL;
|
|
325
368
|
|
|
326
|
-
export type
|
|
369
|
+
export type Cli_Menu_Interactive_ServerMenu_TrimmedEmpty = boolean;
|
|
327
370
|
|
|
328
|
-
export type
|
|
371
|
+
export type Cli_Menu_Interactive_ServerMenu_StartsWithTk = boolean;
|
|
329
372
|
|
|
330
|
-
export type
|
|
373
|
+
export type Cli_Menu_Interactive_ServerMenu_EditImportEditServer = (configPath: string, name: string, updates: Partial<Lib_Schema_ServerConfig>) => void;
|
|
331
374
|
|
|
332
|
-
export type
|
|
333
|
-
editServer:
|
|
375
|
+
export type Cli_Menu_Interactive_ServerMenu_EditImport = {
|
|
376
|
+
editServer: Cli_Menu_Interactive_ServerMenu_EditImportEditServer;
|
|
334
377
|
};
|
|
335
378
|
|
|
336
|
-
export type
|
|
379
|
+
export type Cli_Menu_Interactive_ServerMenu_UpdatesServerString = string;
|
|
380
|
+
|
|
381
|
+
export type Cli_Menu_Interactive_ServerMenu_ServerUrlTrimmed = string;
|
|
382
|
+
|
|
383
|
+
export type Cli_Menu_Interactive_ServerMenu_ServerUrl = string | undefined;
|
|
384
|
+
|
|
385
|
+
export type Cli_Menu_Interactive_ServerMenu_UpdatesTokenString = string;
|
|
337
386
|
|
|
338
|
-
export type
|
|
387
|
+
export type Cli_Menu_Interactive_ServerMenu_TokenTrimmed = string;
|
|
339
388
|
|
|
340
|
-
export type
|
|
389
|
+
export type Cli_Menu_Interactive_ServerMenu_TokenValue = string | undefined;
|
|
341
390
|
|
|
342
|
-
export type
|
|
391
|
+
export type Cli_Menu_Interactive_ServerMenu_EditUpdates = Partial<Lib_Schema_ServerConfig>;
|
|
343
392
|
|
|
344
|
-
export type
|
|
393
|
+
export type Cli_Menu_Interactive_ServerMenu_EditErrorMessage = string;
|
|
345
394
|
|
|
346
|
-
export type
|
|
395
|
+
export type Cli_Menu_Interactive_ServerMenu_RemoveServers = Array<Lib_Schema_ServerConfig>;
|
|
347
396
|
|
|
348
|
-
export type
|
|
397
|
+
export type Cli_Menu_Interactive_ServerMenu_RemoveSelectResponse = prompts.Answers<string>;
|
|
349
398
|
|
|
350
|
-
export type
|
|
399
|
+
export type Cli_Menu_Interactive_ServerMenu_RemoveName = string | undefined;
|
|
351
400
|
|
|
352
|
-
export type
|
|
401
|
+
export type Cli_Menu_Interactive_ServerMenu_ConfirmResponse = prompts.Answers<string>;
|
|
402
|
+
|
|
403
|
+
export type Cli_Menu_Interactive_ServerMenu_Confirmed = boolean | undefined;
|
|
404
|
+
|
|
405
|
+
export type Cli_Menu_Interactive_ServerMenu_RemoveErrorMessage = string;
|
|
353
406
|
|
|
354
407
|
/**
|
|
355
408
|
* CLI - Menu - Interactive - Settings Flow.
|
|
356
409
|
*
|
|
357
410
|
* @since 2.0.0
|
|
358
411
|
*/
|
|
359
|
-
export type
|
|
412
|
+
export type Cli_Menu_Interactive_SettingsFlow_ConfigPath = string;
|
|
413
|
+
|
|
414
|
+
export type Cli_Menu_Interactive_SettingsFlow_Returns = Promise<void>;
|
|
360
415
|
|
|
361
|
-
export type
|
|
416
|
+
export type Cli_Menu_Interactive_SettingsFlow_CurrentSettings = Lib_Schema_SettingsConfig | undefined;
|
|
362
417
|
|
|
363
|
-
export type
|
|
418
|
+
export type Cli_Menu_Interactive_SettingsFlow_ErrorMessage = string;
|
|
364
419
|
|
|
365
|
-
export type
|
|
420
|
+
export type Cli_Menu_Interactive_SettingsFlow_WorkerNameResponse = prompts.Answers<string>;
|
|
366
421
|
|
|
367
|
-
export type
|
|
422
|
+
export type Cli_Menu_Interactive_SettingsFlow_WorkerNameValidateValue = string;
|
|
368
423
|
|
|
369
|
-
export type
|
|
424
|
+
export type Cli_Menu_Interactive_SettingsFlow_WorkerName = string | undefined;
|
|
370
425
|
|
|
371
|
-
export type
|
|
426
|
+
export type Cli_Menu_Interactive_SettingsFlow_BaseDomainResponse = prompts.Answers<string>;
|
|
372
427
|
|
|
373
|
-
export type
|
|
428
|
+
export type Cli_Menu_Interactive_SettingsFlow_BaseDomainValidateValue = string;
|
|
374
429
|
|
|
375
|
-
export type
|
|
430
|
+
export type Cli_Menu_Interactive_SettingsFlow_BaseDomain = string | undefined;
|
|
376
431
|
|
|
377
|
-
export type
|
|
432
|
+
export type Cli_Menu_Interactive_SettingsFlow_ShowResponseOutputResponse = prompts.Answers<string>;
|
|
378
433
|
|
|
379
|
-
export type
|
|
434
|
+
export type Cli_Menu_Interactive_SettingsFlow_ShowResponseOutput = boolean | undefined;
|
|
380
435
|
|
|
381
|
-
export type
|
|
436
|
+
export type Cli_Menu_Interactive_SettingsFlow_UpdateErrorMessage = string;
|