-
-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathconfig.schema.json
166 lines (166 loc) · 5.38 KB
/
config.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"$schema": {},
"check_fares": { "$ref": "#/$defs/check_fares" },
"notification_urls": { "$ref": "#/$defs/notification_urls" },
"notification_level": { "$ref": "#/$defs/notification_level" },
"notification_24_hour_time": {
"type": "boolean",
"description": "Display flight times in notifications and console messages in 24-hour format instead of 12-hour format.",
"default": false
},
"browser_path": {
"type": "string",
"description": "Path to your Chromium-based browser executable (if not using Chrome or Chromium)"
},
"retrieval_interval": { "$ref": "#/$defs/retrieval_interval" },
"accounts": {
"type": "array",
"description": "List of accounts",
"default": [],
"items": {
"type": "object",
"properties": {
"username": {
"type": "string",
"description": "Account username",
"minLength": 1
},
"password": {
"type": "string",
"description": "Account password",
"minLength": 1
},
"check_fares": { "$ref": "#/$defs/check_fares" },
"healthchecks_url": { "$ref": "#/$defs/healthchecks_url" },
"notification_urls": { "$ref": "#/$defs/notification_urls" },
"notification_level": { "$ref": "#/$defs/notification_level" },
"retrieval_interval": { "$ref": "#/$defs/retrieval_interval" }
},
"required": ["username", "password"],
"additionalProperties": false
}
},
"reservations": {
"type": "array",
"description": "List of reservations",
"default": [],
"items": {
"type": "object",
"properties": {
"confirmationNumber": {
"type": "string",
"description": "Reservation confirmation number",
"minLength": 1
},
"firstName": {
"type": "string",
"description": "First name of the passenger",
"minLength": 1
},
"lastName": {
"type": "string",
"description": "Last name of the passenger",
"minLength": 1
},
"check_fares": { "$ref": "#/$defs/check_fares" },
"healthchecks_url": { "$ref": "#/$defs/healthchecks_url" },
"notification_urls": { "$ref": "#/$defs/notification_urls" },
"notification_level": { "$ref": "#/$defs/notification_level" },
"retrieval_interval": { "$ref": "#/$defs/retrieval_interval" }
},
"required": ["confirmationNumber", "firstName", "lastName"],
"additionalProperties": false
}
}
},
"additionalProperties": false,
"$defs": {
"check_fares": {
"description": "Configure fare checking behavior",
"oneOf": [
{
"type": "boolean",
"const": false,
"description": "Do not check for lower fares"
},
{
"type": "boolean",
"const": true,
"description": "Check for lower fares on the same flight"
},
{
"type": "string",
"const": "no",
"description": "Do not check for lower fares"
},
{
"type": "string",
"const": "same_flight",
"description": "Check for lower fares on the same flight"
},
{
"type": "string",
"const": "same_day_nonstop",
"description": "Check for lower fares on all nonstop flights on the same day as the flight"
},
{
"type": "string",
"const": "same_day",
"description": "Check for lower fares on all flights on the same day as the flight"
}
],
"default": true
},
"notification_urls": {
"description": "List of notification URLs in the Apprise format",
"oneOf": [
{
"type": "string",
"description": "A single notification URL"
},
{
"type": "array",
"description": "A list of notification URLs",
"items": {
"type": "string"
}
}
],
"default": []
},
"notification_level": {
"description": "The level of notifications you want to receive",
"oneOf": [
{
"type": "integer",
"const": 1,
"description": "Level 1: Receive notices of skipped reservation retrievals due to driver timeouts and Too Many Requests errors during logins as well as all messages in later levels."
},
{
"type": "integer",
"const": 2,
"description": "Level 2: Receive successful scheduling and check-in messages, lower fare messages, and all messages in later levels."
},
{
"type": "integer",
"const": 3,
"description": "Level 3: Receive only error messages (failed scheduling and check-ins)."
}
],
"default": 2
},
"retrieval_interval": {
"type": "integer",
"minimum": 0,
"description": "How often the script checks for lower fares on scheduled flights (in hours). Set to 0 to disable account/fare monitoring.",
"default": 24
},
"healthchecks_url": {
"type": "string",
"description": "Healthchecks.io URL to monitor successful and failed fare checks"
}
}
}