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
|
@@ -3,132 +3,140 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @since 2.0.0
|
|
5
5
|
*/
|
|
6
|
-
export type
|
|
6
|
+
export type Lib_Schema_ContextConfigName = string;
|
|
7
7
|
|
|
8
|
-
export type
|
|
8
|
+
export type Lib_Schema_ContextConfigType = 'http' | 'email';
|
|
9
9
|
|
|
10
|
-
export type
|
|
10
|
+
export type Lib_Schema_ContextConfigId = string;
|
|
11
11
|
|
|
12
|
-
export type
|
|
13
|
-
settings: LibSchemaConfigSchemaSettings;
|
|
14
|
-
servers: LibSchemaConfigSchemaServers;
|
|
15
|
-
contexts: LibSchemaConfigSchemaContexts;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export type LibSchemaContextConfigName = string;
|
|
19
|
-
|
|
20
|
-
export type LibSchemaContextConfigType = 'http' | 'email';
|
|
12
|
+
export type Lib_Schema_ContextConfigInterpreter = 'plain-text' | 'ntfy-json' | 'seerr' | 'synology' | 'statuspage' | 'pfsense' | 'unifi';
|
|
21
13
|
|
|
22
|
-
export type
|
|
14
|
+
export type Lib_Schema_ContextConfigTopic = string;
|
|
23
15
|
|
|
24
|
-
export type
|
|
16
|
+
export type Lib_Schema_ContextConfigErrorTopic = string | undefined;
|
|
25
17
|
|
|
26
|
-
export type
|
|
18
|
+
export type Lib_Schema_ContextConfigErrorEvent = 'authentication' | 'interpretation';
|
|
27
19
|
|
|
28
|
-
export type
|
|
20
|
+
export type Lib_Schema_ContextConfigMode = 'send-once' | 'send-all';
|
|
29
21
|
|
|
30
|
-
export type
|
|
22
|
+
export type Lib_Schema_ContextConfigShowVisitorInfo = boolean;
|
|
31
23
|
|
|
32
|
-
export type
|
|
24
|
+
export type Lib_Schema_ContextConfigPrimaryServer = string;
|
|
33
25
|
|
|
34
|
-
export type
|
|
26
|
+
export type Lib_Schema_ContextConfigServers = string[];
|
|
35
27
|
|
|
36
|
-
export type
|
|
28
|
+
export type Lib_Schema_EmailContextConfigName = string;
|
|
37
29
|
|
|
38
|
-
export type
|
|
30
|
+
export type Lib_Schema_EmailContextConfigType = 'email';
|
|
39
31
|
|
|
40
|
-
export type
|
|
32
|
+
export type Lib_Schema_EmailContextConfigId = string;
|
|
41
33
|
|
|
42
|
-
export type
|
|
34
|
+
export type Lib_Schema_EmailContextConfigInterpreter = Lib_Schema_ContextConfigInterpreter;
|
|
43
35
|
|
|
44
|
-
export type
|
|
36
|
+
export type Lib_Schema_EmailContextConfigTopic = string;
|
|
45
37
|
|
|
46
|
-
export type
|
|
38
|
+
export type Lib_Schema_EmailContextConfigErrorTopic = string | undefined;
|
|
47
39
|
|
|
48
|
-
export type
|
|
40
|
+
export type Lib_Schema_EmailContextConfigErrorEvents = Lib_Schema_ContextConfigErrorEvent[] | undefined;
|
|
49
41
|
|
|
50
|
-
export type
|
|
42
|
+
export type Lib_Schema_EmailContextConfigMode = 'send-once' | 'send-all';
|
|
51
43
|
|
|
52
|
-
export type
|
|
44
|
+
export type Lib_Schema_EmailContextConfigShowVisitorInfo = boolean;
|
|
53
45
|
|
|
54
|
-
export type
|
|
46
|
+
export type Lib_Schema_EmailContextConfigPrimaryServer = string;
|
|
55
47
|
|
|
56
|
-
export type
|
|
48
|
+
export type Lib_Schema_EmailContextConfigServers = string[];
|
|
57
49
|
|
|
58
|
-
export type
|
|
50
|
+
export type Lib_Schema_EmailContextConfigAllowedFrom = string | undefined;
|
|
59
51
|
|
|
60
|
-
export type
|
|
61
|
-
name:
|
|
62
|
-
type:
|
|
63
|
-
id:
|
|
64
|
-
interpreter:
|
|
65
|
-
topic:
|
|
66
|
-
error_topic?:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
52
|
+
export type Lib_Schema_EmailContextConfig = {
|
|
53
|
+
name: Lib_Schema_EmailContextConfigName;
|
|
54
|
+
type: Lib_Schema_EmailContextConfigType;
|
|
55
|
+
id: Lib_Schema_EmailContextConfigId;
|
|
56
|
+
interpreter: Lib_Schema_EmailContextConfigInterpreter;
|
|
57
|
+
topic: Lib_Schema_EmailContextConfigTopic;
|
|
58
|
+
error_topic?: Lib_Schema_EmailContextConfigErrorTopic | undefined;
|
|
59
|
+
error_events?: Lib_Schema_EmailContextConfigErrorEvents | undefined;
|
|
60
|
+
mode: Lib_Schema_EmailContextConfigMode;
|
|
61
|
+
show_visitor_info: Lib_Schema_EmailContextConfigShowVisitorInfo;
|
|
62
|
+
primary_server: Lib_Schema_EmailContextConfigPrimaryServer;
|
|
63
|
+
servers: Lib_Schema_EmailContextConfigServers;
|
|
64
|
+
allowed_from?: Lib_Schema_EmailContextConfigAllowedFrom | undefined;
|
|
72
65
|
};
|
|
73
66
|
|
|
74
|
-
export type
|
|
67
|
+
export type Lib_Schema_HttpContextConfigName = string;
|
|
75
68
|
|
|
76
|
-
export type
|
|
69
|
+
export type Lib_Schema_HttpContextConfigType = 'http';
|
|
77
70
|
|
|
78
|
-
export type
|
|
71
|
+
export type Lib_Schema_HttpContextConfigId = string;
|
|
79
72
|
|
|
80
|
-
export type
|
|
73
|
+
export type Lib_Schema_HttpContextConfigInterpreter = Lib_Schema_ContextConfigInterpreter;
|
|
81
74
|
|
|
82
|
-
export type
|
|
75
|
+
export type Lib_Schema_HttpContextConfigTopic = string;
|
|
83
76
|
|
|
84
|
-
export type
|
|
77
|
+
export type Lib_Schema_HttpContextConfigErrorTopic = string | undefined;
|
|
85
78
|
|
|
86
|
-
export type
|
|
79
|
+
export type Lib_Schema_HttpContextConfigErrorEvents = Lib_Schema_ContextConfigErrorEvent[] | undefined;
|
|
87
80
|
|
|
88
|
-
export type
|
|
81
|
+
export type Lib_Schema_HttpContextConfigMode = 'send-once' | 'send-all';
|
|
89
82
|
|
|
90
|
-
export type
|
|
83
|
+
export type Lib_Schema_HttpContextConfigShowVisitorInfo = boolean;
|
|
91
84
|
|
|
92
|
-
export type
|
|
85
|
+
export type Lib_Schema_HttpContextConfigPrimaryServer = string;
|
|
93
86
|
|
|
94
|
-
export type
|
|
87
|
+
export type Lib_Schema_HttpContextConfigServers = string[];
|
|
95
88
|
|
|
96
|
-
export type
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
89
|
+
export type Lib_Schema_HttpContextConfigToken = string | undefined;
|
|
90
|
+
|
|
91
|
+
export type Lib_Schema_HttpContextConfig = {
|
|
92
|
+
name: Lib_Schema_HttpContextConfigName;
|
|
93
|
+
type: Lib_Schema_HttpContextConfigType;
|
|
94
|
+
id: Lib_Schema_HttpContextConfigId;
|
|
95
|
+
interpreter: Lib_Schema_HttpContextConfigInterpreter;
|
|
96
|
+
topic: Lib_Schema_HttpContextConfigTopic;
|
|
97
|
+
error_topic?: Lib_Schema_HttpContextConfigErrorTopic | undefined;
|
|
98
|
+
error_events?: Lib_Schema_HttpContextConfigErrorEvents | undefined;
|
|
99
|
+
mode: Lib_Schema_HttpContextConfigMode;
|
|
100
|
+
show_visitor_info: Lib_Schema_HttpContextConfigShowVisitorInfo;
|
|
101
|
+
primary_server: Lib_Schema_HttpContextConfigPrimaryServer;
|
|
102
|
+
servers: Lib_Schema_HttpContextConfigServers;
|
|
103
|
+
token?: Lib_Schema_HttpContextConfigToken | undefined;
|
|
108
104
|
};
|
|
109
105
|
|
|
110
|
-
export type
|
|
106
|
+
export type Lib_Schema_ContextConfig = Lib_Schema_HttpContextConfig | Lib_Schema_EmailContextConfig;
|
|
107
|
+
|
|
108
|
+
export type Lib_Schema_ServerConfigName = string;
|
|
109
|
+
|
|
110
|
+
export type Lib_Schema_ServerConfigServer = string;
|
|
111
|
+
|
|
112
|
+
export type Lib_Schema_ServerConfigToken = string;
|
|
113
|
+
|
|
114
|
+
export type Lib_Schema_ServerConfig = {
|
|
115
|
+
name: Lib_Schema_ServerConfigName;
|
|
116
|
+
server: Lib_Schema_ServerConfigServer;
|
|
117
|
+
token: Lib_Schema_ServerConfigToken;
|
|
118
|
+
};
|
|
111
119
|
|
|
112
|
-
export type
|
|
120
|
+
export type Lib_Schema_SettingsConfigWorkerName = string;
|
|
113
121
|
|
|
114
|
-
export type
|
|
122
|
+
export type Lib_Schema_SettingsConfigBaseDomain = string;
|
|
115
123
|
|
|
116
|
-
export type
|
|
124
|
+
export type Lib_Schema_SettingsConfigShowResponseOutput = boolean;
|
|
117
125
|
|
|
118
|
-
export type
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
126
|
+
export type Lib_Schema_SettingsConfig = {
|
|
127
|
+
worker_name: Lib_Schema_SettingsConfigWorkerName;
|
|
128
|
+
base_domain: Lib_Schema_SettingsConfigBaseDomain;
|
|
129
|
+
show_response_output: Lib_Schema_SettingsConfigShowResponseOutput;
|
|
122
130
|
};
|
|
123
131
|
|
|
124
|
-
export type
|
|
132
|
+
export type Lib_Schema_ConfigSchemaSettings = Lib_Schema_SettingsConfig;
|
|
125
133
|
|
|
126
|
-
export type
|
|
134
|
+
export type Lib_Schema_ConfigSchemaServers = Lib_Schema_ServerConfig[];
|
|
127
135
|
|
|
128
|
-
export type
|
|
136
|
+
export type Lib_Schema_ConfigSchemaContexts = Lib_Schema_ContextConfig[];
|
|
129
137
|
|
|
130
|
-
export type
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
138
|
+
export type Lib_Schema_ConfigSchema = {
|
|
139
|
+
settings: Lib_Schema_ConfigSchemaSettings;
|
|
140
|
+
servers: Lib_Schema_ConfigSchemaServers;
|
|
141
|
+
contexts: Lib_Schema_ConfigSchemaContexts;
|
|
134
142
|
};
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @since 2.0.0
|
|
5
5
|
*/
|
|
6
|
-
export type
|
|
6
|
+
export type Lib_Utility_StripHtml_Html = string;
|
|
7
7
|
|
|
8
|
-
export type
|
|
8
|
+
export type Lib_Utility_StripHtml_Returns = string;
|
|
9
|
+
|
|
10
|
+
export type Lib_Utility_StripHtml_Text = string;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared - Status Page - Component Diff Entry.
|
|
3
|
+
*
|
|
4
|
+
* @since 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export type Shared_StatusPage_ComponentDiffEntry_Name = string;
|
|
7
|
+
|
|
8
|
+
export type Shared_StatusPage_ComponentDiffEntry_NewStatus = string;
|
|
9
|
+
|
|
10
|
+
export type Shared_StatusPage_ComponentDiffEntry_OldStatus = string | undefined;
|
|
11
|
+
|
|
12
|
+
export type Shared_StatusPage_ComponentDiffEntry_Changed = boolean;
|
|
13
|
+
|
|
14
|
+
export type Shared_StatusPage_ComponentDiffEntry = {
|
|
15
|
+
name: Shared_StatusPage_ComponentDiffEntry_Name;
|
|
16
|
+
oldStatus: Shared_StatusPage_ComponentDiffEntry_OldStatus;
|
|
17
|
+
newStatus: Shared_StatusPage_ComponentDiffEntry_NewStatus;
|
|
18
|
+
changed: Shared_StatusPage_ComponentDiffEntry_Changed;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Shared - Status Page - Component Diff.
|
|
23
|
+
*
|
|
24
|
+
* @since 2.0.0
|
|
25
|
+
*/
|
|
26
|
+
export type Shared_StatusPage_ComponentDiff = Shared_StatusPage_ComponentDiffEntry[];
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Shared - Status Page - Component State.
|
|
30
|
+
*
|
|
31
|
+
* @since 2.0.0
|
|
32
|
+
*/
|
|
33
|
+
export type Shared_StatusPage_ComponentState_Name = string;
|
|
34
|
+
|
|
35
|
+
export type Shared_StatusPage_ComponentState_Status = string;
|
|
36
|
+
|
|
37
|
+
export type Shared_StatusPage_ComponentState = {
|
|
38
|
+
name: Shared_StatusPage_ComponentState_Name;
|
|
39
|
+
status: Shared_StatusPage_ComponentState_Status;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Shared - Status Page - Components Map.
|
|
44
|
+
*
|
|
45
|
+
* @since 2.0.0
|
|
46
|
+
*/
|
|
47
|
+
export type Shared_StatusPage_ComponentsMap = Record<string, Shared_StatusPage_ComponentState>;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Shared - Status Page - Stored State.
|
|
51
|
+
*
|
|
52
|
+
* @since 2.0.0
|
|
53
|
+
*/
|
|
54
|
+
export type Shared_StatusPage_StoredState_IncidentId = string | undefined;
|
|
55
|
+
|
|
56
|
+
export type Shared_StatusPage_StoredState_IncidentName = string | undefined;
|
|
57
|
+
|
|
58
|
+
export type Shared_StatusPage_StoredState_Status = string | undefined;
|
|
59
|
+
|
|
60
|
+
export type Shared_StatusPage_StoredState_Impact = string | undefined;
|
|
61
|
+
|
|
62
|
+
export type Shared_StatusPage_StoredState_Body = string | undefined;
|
|
63
|
+
|
|
64
|
+
export type Shared_StatusPage_StoredState_Shortlink = string | undefined;
|
|
65
|
+
|
|
66
|
+
export type Shared_StatusPage_StoredState_ServiceName = string;
|
|
67
|
+
|
|
68
|
+
export type Shared_StatusPage_StoredState_UnsubscribeUrl = string | undefined;
|
|
69
|
+
|
|
70
|
+
export type Shared_StatusPage_StoredState_UpdateId = string | undefined;
|
|
71
|
+
|
|
72
|
+
export type Shared_StatusPage_StoredState_Components = Shared_StatusPage_ComponentsMap;
|
|
73
|
+
|
|
74
|
+
export type Shared_StatusPage_StoredState = {
|
|
75
|
+
incidentId: Shared_StatusPage_StoredState_IncidentId;
|
|
76
|
+
incidentName: Shared_StatusPage_StoredState_IncidentName;
|
|
77
|
+
status: Shared_StatusPage_StoredState_Status;
|
|
78
|
+
impact: Shared_StatusPage_StoredState_Impact;
|
|
79
|
+
body: Shared_StatusPage_StoredState_Body;
|
|
80
|
+
shortlink: Shared_StatusPage_StoredState_Shortlink;
|
|
81
|
+
serviceName: Shared_StatusPage_StoredState_ServiceName;
|
|
82
|
+
unsubscribeUrl: Shared_StatusPage_StoredState_UnsubscribeUrl;
|
|
83
|
+
updateId: Shared_StatusPage_StoredState_UpdateId;
|
|
84
|
+
components: Shared_StatusPage_StoredState_Components;
|
|
85
|
+
};
|
|
@@ -3,55 +3,126 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @since 2.0.0
|
|
5
5
|
*/
|
|
6
|
-
export type
|
|
6
|
+
export type Tests_Cli_Commands_Context_TestConfigPathFragment = string;
|
|
7
7
|
|
|
8
|
-
export type
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
export type Tests_Cli_Commands_Context_TestConfigTmpDir = string;
|
|
9
|
+
|
|
10
|
+
export type Tests_Cli_Commands_Context_TestConfigPath = string;
|
|
11
|
+
|
|
12
|
+
export type Tests_Cli_Commands_Context_BaseConfigSettingsWorkerName = string;
|
|
13
|
+
|
|
14
|
+
export type Tests_Cli_Commands_Context_BaseConfigSettingsBaseDomain = string;
|
|
13
15
|
|
|
14
|
-
export type
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
export type Tests_Cli_Commands_Context_BaseConfigSettingsShowResponseOutput = boolean;
|
|
17
|
+
|
|
18
|
+
export type Tests_Cli_Commands_Context_BaseConfigSettings = {
|
|
19
|
+
worker_name: Tests_Cli_Commands_Context_BaseConfigSettingsWorkerName;
|
|
20
|
+
base_domain: Tests_Cli_Commands_Context_BaseConfigSettingsBaseDomain;
|
|
21
|
+
show_response_output: Tests_Cli_Commands_Context_BaseConfigSettingsShowResponseOutput;
|
|
18
22
|
};
|
|
19
23
|
|
|
20
|
-
export type
|
|
24
|
+
export type Tests_Cli_Commands_Context_BaseConfigServerName = string;
|
|
25
|
+
|
|
26
|
+
export type Tests_Cli_Commands_Context_BaseConfigServerUrl = string;
|
|
21
27
|
|
|
22
|
-
export type
|
|
28
|
+
export type Tests_Cli_Commands_Context_BaseConfigServerToken = string;
|
|
29
|
+
|
|
30
|
+
export type Tests_Cli_Commands_Context_BaseConfigServer = {
|
|
31
|
+
name: Tests_Cli_Commands_Context_BaseConfigServerName;
|
|
32
|
+
server: Tests_Cli_Commands_Context_BaseConfigServerUrl;
|
|
33
|
+
token: Tests_Cli_Commands_Context_BaseConfigServerToken;
|
|
34
|
+
};
|
|
23
35
|
|
|
24
|
-
export type
|
|
36
|
+
export type Tests_Cli_Commands_Context_BaseConfigServers = Tests_Cli_Commands_Context_BaseConfigServer[];
|
|
25
37
|
|
|
26
|
-
export type
|
|
38
|
+
export type Tests_Cli_Commands_Context_BaseConfigContexts = never[];
|
|
27
39
|
|
|
28
|
-
export type
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
40
|
+
export type Tests_Cli_Commands_Context_BaseConfig = {
|
|
41
|
+
settings: Tests_Cli_Commands_Context_BaseConfigSettings;
|
|
42
|
+
servers: Tests_Cli_Commands_Context_BaseConfigServers;
|
|
43
|
+
contexts: Tests_Cli_Commands_Context_BaseConfigContexts;
|
|
32
44
|
};
|
|
33
45
|
|
|
34
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Tests - CLI - Commands - Context.
|
|
48
|
+
*
|
|
49
|
+
* @since 2.0.0
|
|
50
|
+
*/
|
|
51
|
+
export type Tests_Cli_Commands_Context_ContextCommands_ConfigJson = string;
|
|
35
52
|
|
|
36
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Tests - CLI - Commands - Context.
|
|
55
|
+
*
|
|
56
|
+
* @since 2.0.0
|
|
57
|
+
*/
|
|
58
|
+
export type Tests_Cli_Commands_Context_ContextCommands_AddsAContext_ConfigJson = string;
|
|
59
|
+
|
|
60
|
+
export type Tests_Cli_Commands_Context_ContextCommands_AddsAContext_Config_Contexts = unknown[];
|
|
61
|
+
|
|
62
|
+
export type Tests_Cli_Commands_Context_ContextCommands_AddsAContext_Config = {
|
|
63
|
+
contexts: Tests_Cli_Commands_Context_ContextCommands_AddsAContext_Config_Contexts;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Tests - CLI - Commands - Context.
|
|
68
|
+
*
|
|
69
|
+
* @since 2.0.0
|
|
70
|
+
*/
|
|
71
|
+
export type Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateIds_ConfigJson = string;
|
|
37
72
|
|
|
38
|
-
export type
|
|
73
|
+
export type Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateIds_Config_Contexts_Item_Id = string;
|
|
39
74
|
|
|
40
|
-
export type
|
|
75
|
+
export type Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateIds_Config_Contexts_Item = {
|
|
76
|
+
id: Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateIds_Config_Contexts_Item_Id;
|
|
77
|
+
};
|
|
41
78
|
|
|
42
|
-
export type
|
|
79
|
+
export type Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateIds_Config_Contexts = Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateIds_Config_Contexts_Item[];
|
|
43
80
|
|
|
44
|
-
export type
|
|
45
|
-
contexts:
|
|
81
|
+
export type Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateIds_Config = {
|
|
82
|
+
contexts: Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateIds_Config_Contexts;
|
|
46
83
|
};
|
|
47
84
|
|
|
48
|
-
|
|
85
|
+
/**
|
|
86
|
+
* Tests - CLI - Commands - Context.
|
|
87
|
+
*
|
|
88
|
+
* @since 2.0.0
|
|
89
|
+
*/
|
|
90
|
+
export type Tests_Cli_Commands_Context_ContextCommands_GeneratesRandomIdStrings_Id1 = string;
|
|
91
|
+
|
|
92
|
+
export type Tests_Cli_Commands_Context_ContextCommands_GeneratesRandomIdStrings_Id2 = string;
|
|
49
93
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
94
|
+
/**
|
|
95
|
+
* Tests - CLI - Commands - Context.
|
|
96
|
+
*
|
|
97
|
+
* @since 2.0.0
|
|
98
|
+
*/
|
|
99
|
+
export type Tests_Cli_Commands_Context_ContextCommands_ListsContexts_Contexts = unknown[];
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Tests - CLI - Commands - Context.
|
|
103
|
+
*
|
|
104
|
+
* @since 2.0.0
|
|
105
|
+
*/
|
|
106
|
+
export type Tests_Cli_Commands_Context_ContextCommands_RejectsContextReferencingNonExistentServer_Config_Contexts = unknown[];
|
|
107
|
+
|
|
108
|
+
export type Tests_Cli_Commands_Context_ContextCommands_RejectsContextReferencingNonExistentServer_Config = {
|
|
109
|
+
contexts: Tests_Cli_Commands_Context_ContextCommands_RejectsContextReferencingNonExistentServer_Config_Contexts;
|
|
53
110
|
};
|
|
54
111
|
|
|
55
|
-
|
|
112
|
+
/**
|
|
113
|
+
* Tests - CLI - Commands - Context.
|
|
114
|
+
*
|
|
115
|
+
* @since 2.0.0
|
|
116
|
+
*/
|
|
117
|
+
export type Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateContextNames_Config_Contexts = unknown[];
|
|
118
|
+
|
|
119
|
+
export type Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateContextNames_Config = {
|
|
120
|
+
contexts: Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateContextNames_Config_Contexts;
|
|
121
|
+
};
|
|
56
122
|
|
|
57
|
-
|
|
123
|
+
/**
|
|
124
|
+
* Tests - CLI - Commands - Context.
|
|
125
|
+
*
|
|
126
|
+
* @since 2.0.0
|
|
127
|
+
*/
|
|
128
|
+
export type Tests_Cli_Commands_Context_ContextCommands_RemovesAContext_Contexts = unknown[];
|
|
@@ -3,10 +3,56 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @since 2.0.0
|
|
5
5
|
*/
|
|
6
|
-
export type
|
|
6
|
+
export type Tests_Cli_Commands_Generate_TestConfigPathFragment = string;
|
|
7
7
|
|
|
8
|
-
export type
|
|
8
|
+
export type Tests_Cli_Commands_Generate_TestConfigTmpDir = string;
|
|
9
9
|
|
|
10
|
-
export type
|
|
10
|
+
export type Tests_Cli_Commands_Generate_TestConfigPath = string;
|
|
11
11
|
|
|
12
|
-
export type
|
|
12
|
+
export type Tests_Cli_Commands_Generate_TestOutputPathFragment = string;
|
|
13
|
+
|
|
14
|
+
export type Tests_Cli_Commands_Generate_TestOutputPath = string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Tests - CLI - Commands - Generate.
|
|
18
|
+
*
|
|
19
|
+
* @since 2.0.0
|
|
20
|
+
*/
|
|
21
|
+
export type Tests_Cli_Commands_Generate_GenerateCommand_ConfigJson = string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Tests - CLI - Commands - Generate.
|
|
25
|
+
*
|
|
26
|
+
* @since 2.0.0
|
|
27
|
+
*/
|
|
28
|
+
export type Tests_Cli_Commands_Generate_GenerateCommand_EmbedsConfigAsVars_Toml = string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Tests - CLI - Commands - Generate.
|
|
32
|
+
*
|
|
33
|
+
* @since 2.0.0
|
|
34
|
+
*/
|
|
35
|
+
export type Tests_Cli_Commands_Generate_GenerateCommand_GeneratesEmailRoutingCommentsForEmailContexts_Toml = string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Tests - CLI - Commands - Generate.
|
|
39
|
+
*
|
|
40
|
+
* @since 2.0.0
|
|
41
|
+
*/
|
|
42
|
+
export type Tests_Cli_Commands_Generate_GenerateCommand_GeneratesRoutesFromHTTPContextIdsAndBaseDomain_Toml = string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Tests - CLI - Commands - Generate.
|
|
46
|
+
*
|
|
47
|
+
* @since 2.0.0
|
|
48
|
+
*/
|
|
49
|
+
export type Tests_Cli_Commands_Generate_GenerateCommand_GeneratesValidWranglerToml_Toml = string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Tests - CLI - Commands - Generate.
|
|
53
|
+
*
|
|
54
|
+
* @since 2.0.0
|
|
55
|
+
*/
|
|
56
|
+
export type Tests_Cli_Commands_Generate_GenerateCommand_OmitsEmailRoutingSectionWhenNoEmailContextsExist_ConfigJson = string;
|
|
57
|
+
|
|
58
|
+
export type Tests_Cli_Commands_Generate_GenerateCommand_OmitsEmailRoutingSectionWhenNoEmailContextsExist_Toml = string;
|