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,8 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"required": [
|
|
7
7
|
"status",
|
|
8
|
+
"asked",
|
|
9
|
+
"search_stats",
|
|
8
10
|
"products"
|
|
9
11
|
],
|
|
10
12
|
"properties": {
|
|
@@ -13,6 +15,171 @@
|
|
|
13
15
|
"const": "ok",
|
|
14
16
|
"description": "Reads the answer. Every other status arrives as an error body carrying recovery."
|
|
15
17
|
},
|
|
18
|
+
"asked": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"anyOf": [
|
|
22
|
+
{
|
|
23
|
+
"type": "object",
|
|
24
|
+
"required": [
|
|
25
|
+
"n",
|
|
26
|
+
"spec",
|
|
27
|
+
"op",
|
|
28
|
+
"value"
|
|
29
|
+
],
|
|
30
|
+
"properties": {
|
|
31
|
+
"n": {
|
|
32
|
+
"type": "integer",
|
|
33
|
+
"minimum": 1,
|
|
34
|
+
"description": "An ask by its number in `asked`."
|
|
35
|
+
},
|
|
36
|
+
"spec": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"minLength": 1,
|
|
39
|
+
"maxLength": 64,
|
|
40
|
+
"description": "Names the spec asked."
|
|
41
|
+
},
|
|
42
|
+
"op": {
|
|
43
|
+
"anyOf": [
|
|
44
|
+
{
|
|
45
|
+
"type": "string",
|
|
46
|
+
"const": "eq"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "string",
|
|
50
|
+
"const": "neq"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "string",
|
|
54
|
+
"const": "gte"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"type": "string",
|
|
58
|
+
"const": "lte"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "string",
|
|
62
|
+
"const": "in"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "string",
|
|
66
|
+
"const": "nin"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"description": "Reads the operator asked."
|
|
70
|
+
},
|
|
71
|
+
"value": {
|
|
72
|
+
"description": "Reads the value asked, as sent."
|
|
73
|
+
},
|
|
74
|
+
"unit": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 1,
|
|
77
|
+
"description": "Reads the value in this unit."
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"additionalProperties": false
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "object",
|
|
84
|
+
"required": [
|
|
85
|
+
"n",
|
|
86
|
+
"price"
|
|
87
|
+
],
|
|
88
|
+
"properties": {
|
|
89
|
+
"n": {
|
|
90
|
+
"type": "integer",
|
|
91
|
+
"minimum": 1,
|
|
92
|
+
"description": "An ask by its number in `asked`."
|
|
93
|
+
},
|
|
94
|
+
"price": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"required": [
|
|
97
|
+
"currency"
|
|
98
|
+
],
|
|
99
|
+
"properties": {
|
|
100
|
+
"min": {
|
|
101
|
+
"type": "integer",
|
|
102
|
+
"minimum": 0,
|
|
103
|
+
"maximum": 9007199254740991,
|
|
104
|
+
"description": "The low end, in the minor unit."
|
|
105
|
+
},
|
|
106
|
+
"max": {
|
|
107
|
+
"type": "integer",
|
|
108
|
+
"minimum": 0,
|
|
109
|
+
"maximum": 9007199254740991,
|
|
110
|
+
"description": "The high end, in the minor unit."
|
|
111
|
+
},
|
|
112
|
+
"currency": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"pattern": "^[A-Z]{3}$",
|
|
115
|
+
"minLength": 3,
|
|
116
|
+
"maxLength": 3,
|
|
117
|
+
"description": "Both ends in this currency; sil converts nothing."
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"additionalProperties": false,
|
|
121
|
+
"description": "Reads the price filter, as sent."
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"additionalProperties": false
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"description": "Echoes the ask, numbered from 1: each spec with its unit, then the price."
|
|
129
|
+
},
|
|
130
|
+
"search_stats": {
|
|
131
|
+
"type": "object",
|
|
132
|
+
"required": [
|
|
133
|
+
"sellers",
|
|
134
|
+
"products"
|
|
135
|
+
],
|
|
136
|
+
"properties": {
|
|
137
|
+
"sellers": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"required": [
|
|
140
|
+
"searched",
|
|
141
|
+
"with_fit"
|
|
142
|
+
],
|
|
143
|
+
"properties": {
|
|
144
|
+
"searched": {
|
|
145
|
+
"type": "integer",
|
|
146
|
+
"minimum": 0,
|
|
147
|
+
"description": "Shops behind the products searched."
|
|
148
|
+
},
|
|
149
|
+
"with_fit": {
|
|
150
|
+
"type": "integer",
|
|
151
|
+
"minimum": 0,
|
|
152
|
+
"description": "Shops behind a product holding every ask."
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"additionalProperties": false,
|
|
156
|
+
"description": "Counts the shops."
|
|
157
|
+
},
|
|
158
|
+
"products": {
|
|
159
|
+
"type": "object",
|
|
160
|
+
"required": [
|
|
161
|
+
"searched",
|
|
162
|
+
"with_all_specs"
|
|
163
|
+
],
|
|
164
|
+
"properties": {
|
|
165
|
+
"searched": {
|
|
166
|
+
"type": "integer",
|
|
167
|
+
"minimum": 0,
|
|
168
|
+
"description": "Products weighed under the place."
|
|
169
|
+
},
|
|
170
|
+
"with_all_specs": {
|
|
171
|
+
"type": "integer",
|
|
172
|
+
"minimum": 0,
|
|
173
|
+
"description": "Products holding a value for every spec asked."
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"additionalProperties": false,
|
|
177
|
+
"description": "Counts the products."
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"additionalProperties": false,
|
|
181
|
+
"description": "Explains the shortlist: how much was searched, and how much answers the whole ask."
|
|
182
|
+
},
|
|
16
183
|
"products": {
|
|
17
184
|
"type": "array",
|
|
18
185
|
"items": {
|
|
@@ -20,8 +187,11 @@
|
|
|
20
187
|
"required": [
|
|
21
188
|
"id",
|
|
22
189
|
"title",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
190
|
+
"images",
|
|
191
|
+
"holds",
|
|
192
|
+
"misses",
|
|
193
|
+
"unknown",
|
|
194
|
+
"store_stock",
|
|
25
195
|
"variants"
|
|
26
196
|
],
|
|
27
197
|
"properties": {
|
|
@@ -29,76 +199,90 @@
|
|
|
29
199
|
"type": "string",
|
|
30
200
|
"minLength": 1,
|
|
31
201
|
"maxLength": 256,
|
|
32
|
-
"description": "
|
|
202
|
+
"description": "Passes it to `shopping_product_get`."
|
|
33
203
|
},
|
|
34
204
|
"title": {
|
|
35
205
|
"type": "string",
|
|
36
|
-
"description": "
|
|
206
|
+
"description": "Names the product."
|
|
37
207
|
},
|
|
38
208
|
"brand": {
|
|
39
209
|
"type": "string",
|
|
40
|
-
"description": "Names the
|
|
210
|
+
"description": "Names the brand it is sold under."
|
|
41
211
|
},
|
|
42
|
-
"
|
|
212
|
+
"leaf": {
|
|
43
213
|
"type": "string",
|
|
44
|
-
"
|
|
214
|
+
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
215
|
+
"maxLength": 255,
|
|
216
|
+
"description": "On a search over a kind: which leaf it is."
|
|
45
217
|
},
|
|
46
|
-
"
|
|
47
|
-
"type": "
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"anyOf": [
|
|
51
|
-
{
|
|
52
|
-
"type": "number"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"type": "boolean"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"type": "string"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"type": "array",
|
|
62
|
-
"items": {
|
|
63
|
-
"type": "string"
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
}
|
|
218
|
+
"images": {
|
|
219
|
+
"type": "array",
|
|
220
|
+
"items": {
|
|
221
|
+
"type": "string"
|
|
68
222
|
},
|
|
69
|
-
"
|
|
223
|
+
"maxItems": 5,
|
|
224
|
+
"description": "Shows it: the recommended variant’s pictures first, then the product’s; the product read has every one."
|
|
70
225
|
},
|
|
71
|
-
"
|
|
226
|
+
"holds": {
|
|
72
227
|
"type": "array",
|
|
73
228
|
"items": {
|
|
74
|
-
"type": "
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
229
|
+
"type": "integer",
|
|
230
|
+
"minimum": 1,
|
|
231
|
+
"description": "An ask by its number in `asked`."
|
|
232
|
+
},
|
|
233
|
+
"description": "Names the asks one of its variants holds."
|
|
234
|
+
},
|
|
235
|
+
"misses": {
|
|
236
|
+
"type": "array",
|
|
237
|
+
"items": {
|
|
238
|
+
"type": "integer",
|
|
239
|
+
"minimum": 1,
|
|
240
|
+
"description": "An ask by its number in `asked`."
|
|
241
|
+
},
|
|
242
|
+
"description": "Names the asks it holds a value for that fails on every variant."
|
|
243
|
+
},
|
|
244
|
+
"unknown": {
|
|
245
|
+
"type": "array",
|
|
246
|
+
"items": {
|
|
247
|
+
"type": "integer",
|
|
248
|
+
"minimum": 1,
|
|
249
|
+
"description": "An ask by its number in `asked`."
|
|
250
|
+
},
|
|
251
|
+
"description": "Names the asks sil could not test on it: say them as unverified."
|
|
252
|
+
},
|
|
253
|
+
"price_range": {
|
|
254
|
+
"type": "object",
|
|
255
|
+
"required": [
|
|
256
|
+
"currency"
|
|
257
|
+
],
|
|
258
|
+
"properties": {
|
|
259
|
+
"min": {
|
|
260
|
+
"type": "integer",
|
|
261
|
+
"minimum": 0,
|
|
262
|
+
"maximum": 9007199254740991,
|
|
263
|
+
"description": "The low end, in the minor unit."
|
|
98
264
|
},
|
|
99
|
-
"
|
|
265
|
+
"max": {
|
|
266
|
+
"type": "integer",
|
|
267
|
+
"minimum": 0,
|
|
268
|
+
"maximum": 9007199254740991,
|
|
269
|
+
"description": "The high end, in the minor unit."
|
|
270
|
+
},
|
|
271
|
+
"currency": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"pattern": "^[A-Z]{3}$",
|
|
274
|
+
"minLength": 3,
|
|
275
|
+
"maxLength": 3,
|
|
276
|
+
"description": "Both ends in this currency; sil converts nothing."
|
|
277
|
+
}
|
|
100
278
|
},
|
|
101
|
-
"
|
|
279
|
+
"additionalProperties": false,
|
|
280
|
+
"description": "Quotes its variants’ one-off prices, cheapest to dearest, in one currency."
|
|
281
|
+
},
|
|
282
|
+
"store_stock": {
|
|
283
|
+
"type": "integer",
|
|
284
|
+
"minimum": 0,
|
|
285
|
+
"description": "Says how many shops sell the product, any variant."
|
|
102
286
|
},
|
|
103
287
|
"variants": {
|
|
104
288
|
"type": "array",
|
|
@@ -106,82 +290,190 @@
|
|
|
106
290
|
"type": "object",
|
|
107
291
|
"required": [
|
|
108
292
|
"id",
|
|
109
|
-
"
|
|
293
|
+
"values",
|
|
294
|
+
"images"
|
|
110
295
|
],
|
|
111
296
|
"properties": {
|
|
112
297
|
"id": {
|
|
113
298
|
"type": "string",
|
|
114
299
|
"minLength": 1,
|
|
115
300
|
"maxLength": 256,
|
|
116
|
-
"description": "Passes it to `
|
|
301
|
+
"description": "Passes it to `shopping_offers`."
|
|
302
|
+
},
|
|
303
|
+
"values": {
|
|
304
|
+
"type": "object",
|
|
305
|
+
"patternProperties": {
|
|
306
|
+
"^.*$": {
|
|
307
|
+
"anyOf": [
|
|
308
|
+
{
|
|
309
|
+
"anyOf": [
|
|
310
|
+
{
|
|
311
|
+
"anyOf": [
|
|
312
|
+
{
|
|
313
|
+
"type": "number"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"type": "boolean"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"type": "string"
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"type": "object",
|
|
325
|
+
"required": [
|
|
326
|
+
"min",
|
|
327
|
+
"max"
|
|
328
|
+
],
|
|
329
|
+
"properties": {
|
|
330
|
+
"min": {
|
|
331
|
+
"type": "number",
|
|
332
|
+
"description": "Reads the low end."
|
|
333
|
+
},
|
|
334
|
+
"max": {
|
|
335
|
+
"type": "number",
|
|
336
|
+
"description": "Reads the high end."
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"additionalProperties": false,
|
|
340
|
+
"description": "A range, in the key’s unit."
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"type": "object",
|
|
344
|
+
"patternProperties": {
|
|
345
|
+
"^.*$": {
|
|
346
|
+
"anyOf": [
|
|
347
|
+
{
|
|
348
|
+
"type": "number"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"type": "boolean"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"type": "string"
|
|
355
|
+
}
|
|
356
|
+
]
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"description": "One entry of a `records` key."
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"type": "array",
|
|
365
|
+
"items": {
|
|
366
|
+
"anyOf": [
|
|
367
|
+
{
|
|
368
|
+
"anyOf": [
|
|
369
|
+
{
|
|
370
|
+
"type": "number"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"type": "boolean"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"type": "string"
|
|
377
|
+
}
|
|
378
|
+
]
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"type": "object",
|
|
382
|
+
"required": [
|
|
383
|
+
"min",
|
|
384
|
+
"max"
|
|
385
|
+
],
|
|
386
|
+
"properties": {
|
|
387
|
+
"min": {
|
|
388
|
+
"type": "number",
|
|
389
|
+
"description": "Reads the low end."
|
|
390
|
+
},
|
|
391
|
+
"max": {
|
|
392
|
+
"type": "number",
|
|
393
|
+
"description": "Reads the high end."
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"additionalProperties": false,
|
|
397
|
+
"description": "A range, in the key’s unit."
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"type": "object",
|
|
401
|
+
"patternProperties": {
|
|
402
|
+
"^.*$": {
|
|
403
|
+
"anyOf": [
|
|
404
|
+
{
|
|
405
|
+
"type": "number"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"type": "boolean"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"type": "string"
|
|
412
|
+
}
|
|
413
|
+
]
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
"description": "One entry of a `records` key."
|
|
417
|
+
}
|
|
418
|
+
]
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"description": "Reads what sets this variant apart from the product’s others; empty where it is the only one."
|
|
117
425
|
},
|
|
118
|
-
"
|
|
426
|
+
"price_range": {
|
|
427
|
+
"type": "object",
|
|
428
|
+
"required": [
|
|
429
|
+
"currency"
|
|
430
|
+
],
|
|
431
|
+
"properties": {
|
|
432
|
+
"min": {
|
|
433
|
+
"type": "integer",
|
|
434
|
+
"minimum": 0,
|
|
435
|
+
"maximum": 9007199254740991,
|
|
436
|
+
"description": "The low end, in the minor unit."
|
|
437
|
+
},
|
|
438
|
+
"max": {
|
|
439
|
+
"type": "integer",
|
|
440
|
+
"minimum": 0,
|
|
441
|
+
"maximum": 9007199254740991,
|
|
442
|
+
"description": "The high end, in the minor unit."
|
|
443
|
+
},
|
|
444
|
+
"currency": {
|
|
445
|
+
"type": "string",
|
|
446
|
+
"pattern": "^[A-Z]{3}$",
|
|
447
|
+
"minLength": 3,
|
|
448
|
+
"maxLength": 3,
|
|
449
|
+
"description": "Both ends in this currency; sil converts nothing."
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
"additionalProperties": false,
|
|
453
|
+
"description": "Quotes its offers’ one-off prices, cheapest to dearest, in one currency; absent where none is buyable in it."
|
|
454
|
+
},
|
|
455
|
+
"images": {
|
|
119
456
|
"type": "array",
|
|
120
457
|
"items": {
|
|
121
|
-
"type": "
|
|
122
|
-
"
|
|
123
|
-
"from",
|
|
124
|
-
"to",
|
|
125
|
-
"currency"
|
|
126
|
-
],
|
|
127
|
-
"properties": {
|
|
128
|
-
"from": {
|
|
129
|
-
"type": "string",
|
|
130
|
-
"pattern": "^[0-9]+(\\.[0-9]+)?$",
|
|
131
|
-
"description": "Quotes the low end of what the product costs in this currency."
|
|
132
|
-
},
|
|
133
|
-
"to": {
|
|
134
|
-
"type": "string",
|
|
135
|
-
"pattern": "^[0-9]+(\\.[0-9]+)?$",
|
|
136
|
-
"description": "Quotes the high end."
|
|
137
|
-
},
|
|
138
|
-
"currency": {
|
|
139
|
-
"type": "string",
|
|
140
|
-
"pattern": "^[A-Z]{3}$",
|
|
141
|
-
"minLength": 3,
|
|
142
|
-
"maxLength": 3,
|
|
143
|
-
"description": "Reads which currency the range is in; sil converts nothing."
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
"additionalProperties": false
|
|
458
|
+
"type": "integer",
|
|
459
|
+
"minimum": 0
|
|
147
460
|
},
|
|
148
|
-
"description": "
|
|
461
|
+
"description": "Shows its own pictures: positions in the product’s `images`, first its best."
|
|
462
|
+
},
|
|
463
|
+
"recommended": {
|
|
464
|
+
"type": "boolean",
|
|
465
|
+
"const": true,
|
|
466
|
+
"description": "Is the one to show and start from: most asks held, then most it holds a value for, then the cheapest."
|
|
149
467
|
}
|
|
150
468
|
},
|
|
151
|
-
"additionalProperties":
|
|
152
|
-
"anyOf": [
|
|
153
|
-
{
|
|
154
|
-
"type": "number"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"type": "string"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"type": "boolean"
|
|
161
|
-
}
|
|
162
|
-
]
|
|
163
|
-
},
|
|
164
|
-
"description": "A variant that answers the ask, and every option value that identifies it. One carrying none is a listing sil has not read sizes from."
|
|
165
|
-
},
|
|
166
|
-
"description": "Passes an `id` on to the dossier and the offers; names the option to the buyer."
|
|
167
|
-
},
|
|
168
|
-
"host": {
|
|
169
|
-
"type": "string",
|
|
170
|
-
"description": "Names the shop whose page sil read in this request."
|
|
171
|
-
},
|
|
172
|
-
"printed": {
|
|
173
|
-
"type": "object",
|
|
174
|
-
"patternProperties": {
|
|
175
|
-
"^.*$": {
|
|
176
|
-
"type": "string"
|
|
177
|
-
}
|
|
469
|
+
"additionalProperties": false
|
|
178
470
|
},
|
|
179
|
-
"description": "
|
|
471
|
+
"description": "Lists the variants the ask leaves standing, one of them recommended."
|
|
180
472
|
}
|
|
181
473
|
},
|
|
182
474
|
"additionalProperties": false
|
|
183
475
|
},
|
|
184
|
-
"description": "Shows the
|
|
476
|
+
"description": "Shows the products closest to the ask: those holding most asks first."
|
|
185
477
|
}
|
|
186
478
|
},
|
|
187
479
|
"additionalProperties": false
|
|
@@ -18,7 +18,19 @@
|
|
|
18
18
|
"minItems": 1,
|
|
19
19
|
"maxItems": 10,
|
|
20
20
|
"description": "Sends the seller ids the offers named."
|
|
21
|
+
},
|
|
22
|
+
"ship_to": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1,
|
|
25
|
+
"maxLength": 128,
|
|
26
|
+
"description": "Names one of the buyer’s addresses from `sil_whoami`, by label or town; the default when absent."
|
|
27
|
+
},
|
|
28
|
+
"page": {
|
|
29
|
+
"type": "integer",
|
|
30
|
+
"minimum": 2,
|
|
31
|
+
"description": "Reads on: the `next_page` the last answer gave."
|
|
21
32
|
}
|
|
22
33
|
},
|
|
23
|
-
"additionalProperties": false
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"description": "Money is in the minor unit: €130 is 13000."
|
|
24
36
|
}
|