sil-openclaw 0.6.0 → 0.8.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/CHANGELOG.md +44 -0
- package/EXAMPLES.md +93 -0
- package/README.md +58 -120
- package/SECURITY.md +12 -9
- package/assets/banner-dark.svg +15 -0
- package/assets/banner.svg +15 -0
- package/dist/gateway/screen.js +174 -0
- package/dist/index.js +5 -9
- package/dist/lib/answers.js +59 -0
- package/dist/lib/screen-log.js +13 -0
- package/dist/lib/shopping-call.js +27 -28
- package/dist/lib/sil-client.js +49 -66
- package/dist/lib/tool-result.js +1 -1
- package/dist/tools/catalog.js +113 -272
- package/dist/tools/identity.js +79 -88
- package/openclaw.plugin.json +12 -7
- package/package.json +4 -2
- package/schema/PROVENANCE.md +7 -4
- package/schema/shopping-brief-read-request.schema.json +2 -1
- package/schema/shopping-brief-read-response.schema.json +98 -50
- package/schema/shopping-brief-write-request.schema.json +322 -0
- package/schema/{shopping-brief-create-response.schema.json → shopping-brief-write-response.schema.json} +3 -3
- package/schema/shopping-content-request.schema.json +12 -31
- package/schema/shopping-content-response.schema.json +14 -95
- package/schema/shopping-domain-get-request.schema.json +24 -1
- package/schema/shopping-domain-get-response.schema.json +23 -421
- package/schema/shopping-domain-search-request.schema.json +3 -3
- package/schema/shopping-domain-search-response.schema.json +3 -56
- package/schema/shopping-offers-request.schema.json +14 -9
- package/schema/shopping-offers-response.schema.json +368 -91
- package/schema/shopping-product-get-request.schema.json +4 -3
- package/schema/shopping-product-get-response.schema.json +347 -46
- package/schema/shopping-search-request.schema.json +53 -40
- package/schema/shopping-search-response.schema.json +408 -116
- package/schema/shopping-seller-get-request.schema.json +13 -1
- package/schema/shopping-seller-get-response.schema.json +594 -225
- package/schema/shopping-user-forget-request.schema.json +43 -0
- package/schema/shopping-user-forget-response.schema.json +74 -0
- package/schema/shopping-user-read-request.schema.json +37 -0
- package/schema/shopping-user-read-response.schema.json +372 -0
- package/schema/shopping-user-remember-request.schema.json +341 -0
- package/schema/shopping-user-remember-response.schema.json +66 -0
- package/schema/sil-whoami-request.schema.json +8 -0
- package/schema/sil-whoami-response.schema.json +99 -0
- package/sil-shopping/SKILL.md +149 -208
- package/dist/gateway/search-results.js +0 -99
- package/dist/lib/search-results-log.js +0 -23
- package/dist/lib/search-results-store.js +0 -116
- package/schema/shopping-brief-create-request.schema.json +0 -98
- package/schema/shopping-brief-edit-request.schema.json +0 -125
- package/schema/shopping-brief-edit-response.schema.json +0 -24
- package/schema/shopping-profile-edit-request.schema.json +0 -97
- package/schema/shopping-profile-edit-response.schema.json +0 -17
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"required": [
|
|
7
7
|
"status",
|
|
8
|
+
"ship_to",
|
|
8
9
|
"sellers"
|
|
9
10
|
],
|
|
10
11
|
"properties": {
|
|
@@ -13,6 +14,35 @@
|
|
|
13
14
|
"const": "ok",
|
|
14
15
|
"description": "Reads the answer. Every other status arrives as an error body carrying recovery."
|
|
15
16
|
},
|
|
17
|
+
"ship_to": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"required": [
|
|
20
|
+
"country"
|
|
21
|
+
],
|
|
22
|
+
"properties": {
|
|
23
|
+
"label": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1,
|
|
26
|
+
"maxLength": 64,
|
|
27
|
+
"description": "Names the address."
|
|
28
|
+
},
|
|
29
|
+
"locality": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1,
|
|
32
|
+
"maxLength": 128,
|
|
33
|
+
"description": "Says the town."
|
|
34
|
+
},
|
|
35
|
+
"country": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^[A-Z]{2}$",
|
|
38
|
+
"minLength": 2,
|
|
39
|
+
"maxLength": 2,
|
|
40
|
+
"description": "Says the country every `ships` is relative to."
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"additionalProperties": false,
|
|
44
|
+
"description": "Says where delivery was priced to: every `ships` is relative to it."
|
|
45
|
+
},
|
|
16
46
|
"sellers": {
|
|
17
47
|
"type": "array",
|
|
18
48
|
"items": {
|
|
@@ -23,18 +53,21 @@
|
|
|
23
53
|
"host",
|
|
24
54
|
"country",
|
|
25
55
|
"ships",
|
|
26
|
-
"
|
|
56
|
+
"promotions",
|
|
57
|
+
"terms",
|
|
58
|
+
"policy_urls",
|
|
59
|
+
"reviews"
|
|
27
60
|
],
|
|
28
61
|
"properties": {
|
|
29
62
|
"id": {
|
|
30
63
|
"type": "string",
|
|
31
64
|
"minLength": 1,
|
|
32
65
|
"maxLength": 256,
|
|
33
|
-
"description": "Matches the seller to
|
|
66
|
+
"description": "Matches the seller to its offers."
|
|
34
67
|
},
|
|
35
68
|
"name": {
|
|
36
69
|
"type": "string",
|
|
37
|
-
"description": "Names the shop
|
|
70
|
+
"description": "Names the shop."
|
|
38
71
|
},
|
|
39
72
|
"host": {
|
|
40
73
|
"type": "string",
|
|
@@ -46,14 +79,15 @@
|
|
|
46
79
|
"type": "string",
|
|
47
80
|
"pattern": "^[A-Z]{2}$",
|
|
48
81
|
"minLength": 2,
|
|
49
|
-
"maxLength": 2
|
|
82
|
+
"maxLength": 2,
|
|
83
|
+
"description": "Where the shop is."
|
|
50
84
|
},
|
|
51
85
|
{
|
|
52
86
|
"type": "string",
|
|
53
87
|
"const": "unknown"
|
|
54
88
|
}
|
|
55
89
|
],
|
|
56
|
-
"description": "Says where the shop is; `unknown
|
|
90
|
+
"description": "Says where the shop is; `unknown`, sil has not read it."
|
|
57
91
|
},
|
|
58
92
|
"ships": {
|
|
59
93
|
"anyOf": [
|
|
@@ -72,270 +106,605 @@
|
|
|
72
106
|
],
|
|
73
107
|
"description": "Says whether it ships there; `unknown` keeps the seller and says sil has not read its policy."
|
|
74
108
|
},
|
|
75
|
-
"
|
|
109
|
+
"delivery": {
|
|
76
110
|
"type": "object",
|
|
77
|
-
"
|
|
78
|
-
"
|
|
111
|
+
"properties": {
|
|
112
|
+
"cost": {
|
|
79
113
|
"anyOf": [
|
|
80
114
|
{
|
|
81
|
-
"type": "
|
|
115
|
+
"type": "object",
|
|
116
|
+
"required": [
|
|
117
|
+
"amount",
|
|
118
|
+
"currency"
|
|
119
|
+
],
|
|
120
|
+
"properties": {
|
|
121
|
+
"amount": {
|
|
122
|
+
"type": "integer",
|
|
123
|
+
"minimum": 0,
|
|
124
|
+
"maximum": 9007199254740991,
|
|
125
|
+
"description": "The amount in the currency’s minor unit (cents): €130 is 13000."
|
|
126
|
+
},
|
|
127
|
+
"currency": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"pattern": "^[A-Z]{3}$",
|
|
130
|
+
"minLength": 3,
|
|
131
|
+
"maxLength": 3,
|
|
132
|
+
"description": "In this currency."
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"additionalProperties": false
|
|
82
136
|
},
|
|
83
137
|
{
|
|
84
|
-
"type": "
|
|
138
|
+
"type": "object",
|
|
139
|
+
"required": [
|
|
140
|
+
"currency"
|
|
141
|
+
],
|
|
142
|
+
"properties": {
|
|
143
|
+
"min": {
|
|
144
|
+
"type": "integer",
|
|
145
|
+
"minimum": 0,
|
|
146
|
+
"maximum": 9007199254740991,
|
|
147
|
+
"description": "The low end, in the minor unit."
|
|
148
|
+
},
|
|
149
|
+
"max": {
|
|
150
|
+
"type": "integer",
|
|
151
|
+
"minimum": 0,
|
|
152
|
+
"maximum": 9007199254740991,
|
|
153
|
+
"description": "The high end, in the minor unit."
|
|
154
|
+
},
|
|
155
|
+
"currency": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"pattern": "^[A-Z]{3}$",
|
|
158
|
+
"minLength": 3,
|
|
159
|
+
"maxLength": 3,
|
|
160
|
+
"description": "Both ends in this currency; sil converts nothing."
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"additionalProperties": false
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"description": "Quotes one fee, or the range from the cheapest route’s to the dearest’s."
|
|
167
|
+
},
|
|
168
|
+
"free_over": {
|
|
169
|
+
"type": "object",
|
|
170
|
+
"required": [
|
|
171
|
+
"amount",
|
|
172
|
+
"currency"
|
|
173
|
+
],
|
|
174
|
+
"properties": {
|
|
175
|
+
"amount": {
|
|
176
|
+
"type": "integer",
|
|
177
|
+
"minimum": 0,
|
|
178
|
+
"maximum": 9007199254740991,
|
|
179
|
+
"description": "The amount in the currency’s minor unit (cents): €130 is 13000."
|
|
85
180
|
},
|
|
86
|
-
{
|
|
87
|
-
"type": "string"
|
|
181
|
+
"currency": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"pattern": "^[A-Z]{3}$",
|
|
184
|
+
"minLength": 3,
|
|
185
|
+
"maxLength": 3,
|
|
186
|
+
"description": "In this currency."
|
|
88
187
|
}
|
|
89
|
-
|
|
188
|
+
},
|
|
189
|
+
"additionalProperties": false,
|
|
190
|
+
"description": "Quotes the basket that clears the charge."
|
|
191
|
+
},
|
|
192
|
+
"days": {
|
|
193
|
+
"type": "object",
|
|
194
|
+
"required": [
|
|
195
|
+
"min",
|
|
196
|
+
"max"
|
|
197
|
+
],
|
|
198
|
+
"properties": {
|
|
199
|
+
"min": {
|
|
200
|
+
"type": "integer",
|
|
201
|
+
"description": "Tells the buyer the soonest it arrives."
|
|
202
|
+
},
|
|
203
|
+
"max": {
|
|
204
|
+
"type": "integer",
|
|
205
|
+
"description": "Tells the buyer the latest."
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"additionalProperties": false,
|
|
209
|
+
"description": "Tells the buyer how long the route takes."
|
|
90
210
|
}
|
|
91
211
|
},
|
|
92
|
-
"
|
|
212
|
+
"additionalProperties": false,
|
|
213
|
+
"description": "Tells the buyer what delivery to their country costs and how long it takes."
|
|
93
214
|
},
|
|
94
|
-
"
|
|
95
|
-
"type": "
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
215
|
+
"returns_days": {
|
|
216
|
+
"type": "integer",
|
|
217
|
+
"minimum": 0,
|
|
218
|
+
"description": "Says how many days the buyer has to return it."
|
|
219
|
+
},
|
|
220
|
+
"warranty_months": {
|
|
221
|
+
"type": "integer",
|
|
222
|
+
"minimum": 0,
|
|
223
|
+
"description": "Says how many months the shop stands behind it."
|
|
224
|
+
},
|
|
225
|
+
"promotions": {
|
|
226
|
+
"type": "array",
|
|
227
|
+
"items": {
|
|
228
|
+
"type": "object",
|
|
229
|
+
"required": [
|
|
230
|
+
"what"
|
|
231
|
+
],
|
|
232
|
+
"properties": {
|
|
233
|
+
"what": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"description": "Quotes the promotion as the shop prints it."
|
|
236
|
+
},
|
|
237
|
+
"discount": {
|
|
238
|
+
"type": "number",
|
|
239
|
+
"minimum": 0,
|
|
240
|
+
"maximum": 100,
|
|
241
|
+
"description": "Quotes its discount, in percent, where the shop states one."
|
|
242
|
+
},
|
|
243
|
+
"minimum_spend": {
|
|
115
244
|
"type": "object",
|
|
116
245
|
"required": [
|
|
117
|
-
"
|
|
118
|
-
"
|
|
246
|
+
"amount",
|
|
247
|
+
"currency"
|
|
119
248
|
],
|
|
120
249
|
"properties": {
|
|
121
|
-
"
|
|
122
|
-
"type": "
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"description": "
|
|
250
|
+
"amount": {
|
|
251
|
+
"type": "integer",
|
|
252
|
+
"minimum": 0,
|
|
253
|
+
"maximum": 9007199254740991,
|
|
254
|
+
"description": "The amount in the currency’s minor unit (cents): €130 is 13000."
|
|
126
255
|
},
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
256
|
+
"currency": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"pattern": "^[A-Z]{3}$",
|
|
259
|
+
"minLength": 3,
|
|
260
|
+
"maxLength": 3,
|
|
261
|
+
"description": "In this currency."
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"additionalProperties": false,
|
|
265
|
+
"description": "Quotes the spend it needs."
|
|
266
|
+
},
|
|
267
|
+
"until": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"format": "date",
|
|
270
|
+
"description": "Says when it ends."
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"additionalProperties": false
|
|
274
|
+
},
|
|
275
|
+
"description": "Quotes the shop’s promotions: ask who qualifies; a reduced price only from `discount` and only on the buyer’s yes."
|
|
276
|
+
},
|
|
277
|
+
"terms": {
|
|
278
|
+
"type": "object",
|
|
279
|
+
"properties": {
|
|
280
|
+
"who": {
|
|
281
|
+
"type": "object",
|
|
282
|
+
"patternProperties": {
|
|
283
|
+
"^.*$": {
|
|
284
|
+
"anyOf": [
|
|
285
|
+
{
|
|
286
|
+
"type": "number"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"type": "boolean"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"type": "string"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"type": "array",
|
|
296
|
+
"items": {
|
|
297
|
+
"type": "string"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"type": "object",
|
|
302
|
+
"required": [
|
|
303
|
+
"amount",
|
|
304
|
+
"currency"
|
|
305
|
+
],
|
|
306
|
+
"properties": {
|
|
307
|
+
"amount": {
|
|
308
|
+
"type": "integer",
|
|
309
|
+
"minimum": 0,
|
|
310
|
+
"maximum": 9007199254740991,
|
|
311
|
+
"description": "The amount in the currency’s minor unit (cents): €130 is 13000."
|
|
312
|
+
},
|
|
313
|
+
"currency": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"pattern": "^[A-Z]{3}$",
|
|
316
|
+
"minLength": 3,
|
|
317
|
+
"maxLength": 3,
|
|
318
|
+
"description": "In this currency."
|
|
319
|
+
}
|
|
148
320
|
},
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
321
|
+
"additionalProperties": false
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
"description": "Says who the shop is."
|
|
327
|
+
},
|
|
328
|
+
"delivery": {
|
|
329
|
+
"type": "object",
|
|
330
|
+
"patternProperties": {
|
|
331
|
+
"^.*$": {
|
|
332
|
+
"anyOf": [
|
|
333
|
+
{
|
|
334
|
+
"type": "number"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"type": "boolean"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"type": "string"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"type": "array",
|
|
344
|
+
"items": {
|
|
345
|
+
"type": "string"
|
|
152
346
|
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
"amount"
|
|
166
|
-
"currency"
|
|
167
|
-
],
|
|
168
|
-
"properties": {
|
|
169
|
-
"amount": {
|
|
170
|
-
"type": "string",
|
|
171
|
-
"pattern": "^[0-9]+(\\.[0-9]+)?$",
|
|
172
|
-
"description": "Quotes the amount as the page states it."
|
|
173
|
-
},
|
|
174
|
-
"currency": {
|
|
175
|
-
"type": "string",
|
|
176
|
-
"pattern": "^[A-Z]{3}$",
|
|
177
|
-
"minLength": 3,
|
|
178
|
-
"maxLength": 3,
|
|
179
|
-
"description": "Quotes the amount in this currency."
|
|
180
|
-
}
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"type": "object",
|
|
350
|
+
"required": [
|
|
351
|
+
"amount",
|
|
352
|
+
"currency"
|
|
353
|
+
],
|
|
354
|
+
"properties": {
|
|
355
|
+
"amount": {
|
|
356
|
+
"type": "integer",
|
|
357
|
+
"minimum": 0,
|
|
358
|
+
"maximum": 9007199254740991,
|
|
359
|
+
"description": "The amount in the currency’s minor unit (cents): €130 is 13000."
|
|
181
360
|
},
|
|
182
|
-
"
|
|
361
|
+
"currency": {
|
|
362
|
+
"type": "string",
|
|
363
|
+
"pattern": "^[A-Z]{3}$",
|
|
364
|
+
"minLength": 3,
|
|
365
|
+
"maxLength": 3,
|
|
366
|
+
"description": "In this currency."
|
|
367
|
+
}
|
|
183
368
|
},
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
369
|
+
"additionalProperties": false
|
|
370
|
+
}
|
|
371
|
+
]
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"description": "Says how the shop delivers, beyond the buyer’s own country."
|
|
375
|
+
},
|
|
376
|
+
"payment": {
|
|
377
|
+
"type": "object",
|
|
378
|
+
"patternProperties": {
|
|
379
|
+
"^.*$": {
|
|
380
|
+
"anyOf": [
|
|
381
|
+
{
|
|
382
|
+
"type": "number"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"type": "boolean"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"type": "string"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"type": "array",
|
|
392
|
+
"items": {
|
|
393
|
+
"type": "string"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"type": "object",
|
|
398
|
+
"required": [
|
|
399
|
+
"amount",
|
|
400
|
+
"currency"
|
|
401
|
+
],
|
|
402
|
+
"properties": {
|
|
403
|
+
"amount": {
|
|
404
|
+
"type": "integer",
|
|
405
|
+
"minimum": 0,
|
|
406
|
+
"maximum": 9007199254740991,
|
|
407
|
+
"description": "The amount in the currency’s minor unit (cents): €130 is 13000."
|
|
209
408
|
},
|
|
210
|
-
"
|
|
409
|
+
"currency": {
|
|
410
|
+
"type": "string",
|
|
411
|
+
"pattern": "^[A-Z]{3}$",
|
|
412
|
+
"minLength": 3,
|
|
413
|
+
"maxLength": 3,
|
|
414
|
+
"description": "In this currency."
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
"additionalProperties": false
|
|
418
|
+
}
|
|
419
|
+
]
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
"description": "Says how the buyer pays."
|
|
423
|
+
},
|
|
424
|
+
"support": {
|
|
425
|
+
"type": "object",
|
|
426
|
+
"patternProperties": {
|
|
427
|
+
"^.*$": {
|
|
428
|
+
"anyOf": [
|
|
429
|
+
{
|
|
430
|
+
"type": "number"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"type": "boolean"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"type": "string"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"type": "array",
|
|
440
|
+
"items": {
|
|
441
|
+
"type": "string"
|
|
211
442
|
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
"
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
"
|
|
225
|
-
"type": "string",
|
|
226
|
-
"pattern": "^[0-9]+(\\.[0-9]+)?$",
|
|
227
|
-
"description": "Quotes the amount as the page states it."
|
|
228
|
-
},
|
|
229
|
-
"currency": {
|
|
230
|
-
"type": "string",
|
|
231
|
-
"pattern": "^[A-Z]{3}$",
|
|
232
|
-
"minLength": 3,
|
|
233
|
-
"maxLength": 3,
|
|
234
|
-
"description": "Quotes the amount in this currency."
|
|
235
|
-
}
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"type": "object",
|
|
446
|
+
"required": [
|
|
447
|
+
"amount",
|
|
448
|
+
"currency"
|
|
449
|
+
],
|
|
450
|
+
"properties": {
|
|
451
|
+
"amount": {
|
|
452
|
+
"type": "integer",
|
|
453
|
+
"minimum": 0,
|
|
454
|
+
"maximum": 9007199254740991,
|
|
455
|
+
"description": "The amount in the currency’s minor unit (cents): €130 is 13000."
|
|
236
456
|
},
|
|
237
|
-
"
|
|
457
|
+
"currency": {
|
|
458
|
+
"type": "string",
|
|
459
|
+
"pattern": "^[A-Z]{3}$",
|
|
460
|
+
"minLength": 3,
|
|
461
|
+
"maxLength": 3,
|
|
462
|
+
"description": "In this currency."
|
|
463
|
+
}
|
|
238
464
|
},
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
465
|
+
"additionalProperties": false
|
|
466
|
+
}
|
|
467
|
+
]
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
"description": "Says how the buyer reaches help."
|
|
471
|
+
},
|
|
472
|
+
"returns": {
|
|
473
|
+
"type": "object",
|
|
474
|
+
"patternProperties": {
|
|
475
|
+
"^.*$": {
|
|
476
|
+
"anyOf": [
|
|
477
|
+
{
|
|
478
|
+
"type": "number"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"type": "boolean"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"type": "string"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"type": "array",
|
|
488
|
+
"items": {
|
|
489
|
+
"type": "string"
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"type": "object",
|
|
494
|
+
"required": [
|
|
495
|
+
"amount",
|
|
496
|
+
"currency"
|
|
497
|
+
],
|
|
498
|
+
"properties": {
|
|
499
|
+
"amount": {
|
|
500
|
+
"type": "integer",
|
|
501
|
+
"minimum": 0,
|
|
502
|
+
"maximum": 9007199254740991,
|
|
503
|
+
"description": "The amount in the currency’s minor unit (cents): €130 is 13000."
|
|
264
504
|
},
|
|
265
|
-
"
|
|
505
|
+
"currency": {
|
|
506
|
+
"type": "string",
|
|
507
|
+
"pattern": "^[A-Z]{3}$",
|
|
508
|
+
"minLength": 3,
|
|
509
|
+
"maxLength": 3,
|
|
510
|
+
"description": "In this currency."
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
"additionalProperties": false
|
|
514
|
+
}
|
|
515
|
+
]
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
"description": "Says how a return works."
|
|
519
|
+
},
|
|
520
|
+
"warranty": {
|
|
521
|
+
"type": "object",
|
|
522
|
+
"patternProperties": {
|
|
523
|
+
"^.*$": {
|
|
524
|
+
"anyOf": [
|
|
525
|
+
{
|
|
526
|
+
"type": "number"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"type": "boolean"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"type": "string"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"type": "array",
|
|
536
|
+
"items": {
|
|
537
|
+
"type": "string"
|
|
266
538
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
"
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"type": "object",
|
|
542
|
+
"required": [
|
|
543
|
+
"amount",
|
|
544
|
+
"currency"
|
|
545
|
+
],
|
|
546
|
+
"properties": {
|
|
547
|
+
"amount": {
|
|
548
|
+
"type": "integer",
|
|
549
|
+
"minimum": 0,
|
|
550
|
+
"maximum": 9007199254740991,
|
|
551
|
+
"description": "The amount in the currency’s minor unit (cents): €130 is 13000."
|
|
552
|
+
},
|
|
553
|
+
"currency": {
|
|
554
|
+
"type": "string",
|
|
555
|
+
"pattern": "^[A-Z]{3}$",
|
|
556
|
+
"minLength": 3,
|
|
557
|
+
"maxLength": 3,
|
|
558
|
+
"description": "In this currency."
|
|
559
|
+
}
|
|
280
560
|
},
|
|
281
|
-
"
|
|
282
|
-
|
|
283
|
-
|
|
561
|
+
"additionalProperties": false
|
|
562
|
+
}
|
|
563
|
+
]
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
"description": "Says what the shop stands behind."
|
|
567
|
+
},
|
|
568
|
+
"guarantees": {
|
|
569
|
+
"type": "object",
|
|
570
|
+
"patternProperties": {
|
|
571
|
+
"^.*$": {
|
|
572
|
+
"anyOf": [
|
|
573
|
+
{
|
|
574
|
+
"type": "number"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"type": "boolean"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"type": "string"
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"type": "array",
|
|
584
|
+
"items": {
|
|
585
|
+
"type": "string"
|
|
284
586
|
}
|
|
285
587
|
},
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
588
|
+
{
|
|
589
|
+
"type": "object",
|
|
590
|
+
"required": [
|
|
591
|
+
"amount",
|
|
592
|
+
"currency"
|
|
593
|
+
],
|
|
594
|
+
"properties": {
|
|
595
|
+
"amount": {
|
|
596
|
+
"type": "integer",
|
|
597
|
+
"minimum": 0,
|
|
598
|
+
"maximum": 9007199254740991,
|
|
599
|
+
"description": "The amount in the currency’s minor unit (cents): €130 is 13000."
|
|
600
|
+
},
|
|
601
|
+
"currency": {
|
|
602
|
+
"type": "string",
|
|
603
|
+
"pattern": "^[A-Z]{3}$",
|
|
604
|
+
"minLength": 3,
|
|
605
|
+
"maxLength": 3,
|
|
606
|
+
"description": "In this currency."
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
"additionalProperties": false
|
|
610
|
+
}
|
|
611
|
+
]
|
|
612
|
+
}
|
|
291
613
|
},
|
|
292
|
-
"description": "
|
|
614
|
+
"description": "Says what the shop promises."
|
|
293
615
|
}
|
|
294
616
|
},
|
|
295
617
|
"additionalProperties": false,
|
|
296
|
-
"description": "
|
|
618
|
+
"description": "Reads every other term sil holds, by the lever it weighs the shop by; a lever with nothing held is absent."
|
|
297
619
|
},
|
|
298
|
-
"
|
|
299
|
-
"type": "
|
|
300
|
-
"
|
|
301
|
-
"
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
620
|
+
"policy_urls": {
|
|
621
|
+
"type": "array",
|
|
622
|
+
"items": {
|
|
623
|
+
"type": "object",
|
|
624
|
+
"required": [
|
|
625
|
+
"kind",
|
|
626
|
+
"url"
|
|
627
|
+
],
|
|
628
|
+
"properties": {
|
|
629
|
+
"kind": {
|
|
630
|
+
"anyOf": [
|
|
631
|
+
{
|
|
632
|
+
"type": "string",
|
|
633
|
+
"const": "shipping"
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
"type": "string",
|
|
637
|
+
"const": "returns"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"type": "string",
|
|
641
|
+
"const": "warranty"
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"type": "string",
|
|
645
|
+
"const": "terms"
|
|
646
|
+
}
|
|
647
|
+
],
|
|
648
|
+
"description": "Reads which policy the page holds."
|
|
649
|
+
},
|
|
650
|
+
"url": {
|
|
651
|
+
"type": "string",
|
|
652
|
+
"description": "Opens the shop’s own page."
|
|
653
|
+
}
|
|
318
654
|
},
|
|
319
|
-
"
|
|
320
|
-
"type": "number",
|
|
321
|
-
"description": "Tells the buyer what a return costs: the fraction of the price the seller withholds, 0 to 1."
|
|
322
|
-
}
|
|
655
|
+
"additionalProperties": false
|
|
323
656
|
},
|
|
324
|
-
"
|
|
325
|
-
"description": "Tells the buyer the return terms and links the page."
|
|
657
|
+
"description": "Hands the buyer the shop’s own policy pages."
|
|
326
658
|
},
|
|
327
|
-
"
|
|
659
|
+
"reviews": {
|
|
328
660
|
"type": "array",
|
|
329
661
|
"items": {
|
|
330
|
-
"type": "
|
|
662
|
+
"type": "object",
|
|
663
|
+
"required": [
|
|
664
|
+
"source",
|
|
665
|
+
"url",
|
|
666
|
+
"score",
|
|
667
|
+
"of",
|
|
668
|
+
"count"
|
|
669
|
+
],
|
|
670
|
+
"properties": {
|
|
671
|
+
"source": {
|
|
672
|
+
"type": "string",
|
|
673
|
+
"description": "Names the site that gathered the reviews."
|
|
674
|
+
},
|
|
675
|
+
"url": {
|
|
676
|
+
"type": "string",
|
|
677
|
+
"description": "Hands the buyer the reviews."
|
|
678
|
+
},
|
|
679
|
+
"score": {
|
|
680
|
+
"type": "number",
|
|
681
|
+
"minimum": 0,
|
|
682
|
+
"description": "Quotes the score as that site gives it."
|
|
683
|
+
},
|
|
684
|
+
"of": {
|
|
685
|
+
"type": "number",
|
|
686
|
+
"exclusiveMinimum": 0,
|
|
687
|
+
"description": "Reads the scale’s top: 5, 10, 100."
|
|
688
|
+
},
|
|
689
|
+
"count": {
|
|
690
|
+
"type": "integer",
|
|
691
|
+
"minimum": 0,
|
|
692
|
+
"description": "Says how many reviews the score rests on."
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
"additionalProperties": false
|
|
331
696
|
},
|
|
332
|
-
"
|
|
333
|
-
"description": "Opens the shop's own shipping, returns and terms pages where sil has read none of them yet. A link is not a claim: `ships` stays `unknown` until sil reads what is behind it."
|
|
697
|
+
"description": "Gives scores from a source the shop does not control; empty until sil reads one."
|
|
334
698
|
}
|
|
335
699
|
},
|
|
336
700
|
"additionalProperties": false
|
|
337
701
|
},
|
|
338
702
|
"description": "Reads the terms before recommending a seller."
|
|
703
|
+
},
|
|
704
|
+
"next_page": {
|
|
705
|
+
"type": "integer",
|
|
706
|
+
"minimum": 2,
|
|
707
|
+
"description": "Sends it as `page` to read the sellers on; absent on the last page."
|
|
339
708
|
}
|
|
340
709
|
},
|
|
341
710
|
"additionalProperties": false
|