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,7 +5,7 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"required": [
|
|
7
7
|
"status",
|
|
8
|
-
"
|
|
8
|
+
"products"
|
|
9
9
|
],
|
|
10
10
|
"properties": {
|
|
11
11
|
"status": {
|
|
@@ -13,114 +13,415 @@
|
|
|
13
13
|
"const": "ok",
|
|
14
14
|
"description": "Reads the answer. Every other status arrives as an error body carrying recovery."
|
|
15
15
|
},
|
|
16
|
-
"
|
|
16
|
+
"products": {
|
|
17
17
|
"type": "array",
|
|
18
18
|
"items": {
|
|
19
19
|
"type": "object",
|
|
20
20
|
"required": [
|
|
21
21
|
"id",
|
|
22
22
|
"title",
|
|
23
|
+
"leaf",
|
|
23
24
|
"images",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
25
|
+
"values",
|
|
26
|
+
"reviews",
|
|
27
|
+
"variants"
|
|
26
28
|
],
|
|
27
29
|
"properties": {
|
|
28
30
|
"id": {
|
|
29
31
|
"type": "string",
|
|
30
32
|
"minLength": 1,
|
|
31
33
|
"maxLength": 256,
|
|
32
|
-
"description": "
|
|
34
|
+
"description": "Names the product."
|
|
33
35
|
},
|
|
34
36
|
"title": {
|
|
35
37
|
"type": "string",
|
|
36
|
-
"description": "
|
|
38
|
+
"description": "Names the product."
|
|
37
39
|
},
|
|
38
40
|
"brand": {
|
|
39
41
|
"type": "string",
|
|
40
|
-
"description": "Names the
|
|
42
|
+
"description": "Names the brand it is sold under."
|
|
41
43
|
},
|
|
42
|
-
"
|
|
44
|
+
"maker": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "Names who makes it; `OEM` where the page names no one."
|
|
47
|
+
},
|
|
48
|
+
"leaf": {
|
|
43
49
|
"type": "string",
|
|
44
|
-
"
|
|
50
|
+
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
51
|
+
"maxLength": 255,
|
|
52
|
+
"description": "Reads what kind of thing it is."
|
|
45
53
|
},
|
|
46
54
|
"images": {
|
|
47
55
|
"type": "array",
|
|
48
56
|
"items": {
|
|
49
57
|
"type": "string"
|
|
50
58
|
},
|
|
51
|
-
"description": "Shows it
|
|
59
|
+
"description": "Shows it: every picture sil holds, each variant’s own by position."
|
|
52
60
|
},
|
|
53
|
-
"
|
|
61
|
+
"values": {
|
|
54
62
|
"type": "object",
|
|
55
63
|
"patternProperties": {
|
|
56
64
|
"^.*$": {
|
|
57
65
|
"anyOf": [
|
|
58
66
|
{
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
67
|
+
"anyOf": [
|
|
68
|
+
{
|
|
69
|
+
"anyOf": [
|
|
70
|
+
{
|
|
71
|
+
"type": "number"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "boolean"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "string"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"type": "object",
|
|
83
|
+
"required": [
|
|
84
|
+
"min",
|
|
85
|
+
"max"
|
|
86
|
+
],
|
|
87
|
+
"properties": {
|
|
88
|
+
"min": {
|
|
89
|
+
"type": "number",
|
|
90
|
+
"description": "Reads the low end."
|
|
91
|
+
},
|
|
92
|
+
"max": {
|
|
93
|
+
"type": "number",
|
|
94
|
+
"description": "Reads the high end."
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"description": "A range, in the key’s unit."
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "object",
|
|
102
|
+
"patternProperties": {
|
|
103
|
+
"^.*$": {
|
|
104
|
+
"anyOf": [
|
|
105
|
+
{
|
|
106
|
+
"type": "number"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"type": "boolean"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"type": "string"
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"description": "One entry of a `records` key."
|
|
118
|
+
}
|
|
119
|
+
]
|
|
66
120
|
},
|
|
67
121
|
{
|
|
68
122
|
"type": "array",
|
|
69
123
|
"items": {
|
|
70
|
-
"
|
|
124
|
+
"anyOf": [
|
|
125
|
+
{
|
|
126
|
+
"anyOf": [
|
|
127
|
+
{
|
|
128
|
+
"type": "number"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "boolean"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"type": "string"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"type": "object",
|
|
140
|
+
"required": [
|
|
141
|
+
"min",
|
|
142
|
+
"max"
|
|
143
|
+
],
|
|
144
|
+
"properties": {
|
|
145
|
+
"min": {
|
|
146
|
+
"type": "number",
|
|
147
|
+
"description": "Reads the low end."
|
|
148
|
+
},
|
|
149
|
+
"max": {
|
|
150
|
+
"type": "number",
|
|
151
|
+
"description": "Reads the high end."
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"additionalProperties": false,
|
|
155
|
+
"description": "A range, in the key’s unit."
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"type": "object",
|
|
159
|
+
"patternProperties": {
|
|
160
|
+
"^.*$": {
|
|
161
|
+
"anyOf": [
|
|
162
|
+
{
|
|
163
|
+
"type": "number"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"type": "boolean"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"type": "string"
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"description": "One entry of a `records` key."
|
|
175
|
+
}
|
|
176
|
+
]
|
|
71
177
|
}
|
|
72
178
|
}
|
|
73
179
|
]
|
|
74
180
|
}
|
|
75
181
|
},
|
|
76
|
-
"description": "
|
|
182
|
+
"description": "Reads every value its variants share, once, keyed as the search takes them."
|
|
183
|
+
},
|
|
184
|
+
"description": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"description": "Reads the page’s own words about it."
|
|
77
187
|
},
|
|
78
|
-
"
|
|
188
|
+
"pros": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"description": "Reads what the page praises."
|
|
191
|
+
},
|
|
192
|
+
"cons": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"description": "Reads what the page warns of."
|
|
195
|
+
},
|
|
196
|
+
"persona": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"description": "Reads who the page says it is for."
|
|
199
|
+
},
|
|
200
|
+
"reviews": {
|
|
79
201
|
"type": "array",
|
|
80
202
|
"items": {
|
|
81
203
|
"type": "object",
|
|
82
204
|
"required": [
|
|
83
|
-
"
|
|
84
|
-
"
|
|
205
|
+
"source",
|
|
206
|
+
"url",
|
|
207
|
+
"score",
|
|
208
|
+
"of",
|
|
209
|
+
"count"
|
|
85
210
|
],
|
|
86
211
|
"properties": {
|
|
87
|
-
"
|
|
212
|
+
"source": {
|
|
88
213
|
"type": "string",
|
|
89
|
-
"description": "
|
|
214
|
+
"description": "Names the site that gathered the reviews."
|
|
90
215
|
},
|
|
91
|
-
"
|
|
216
|
+
"url": {
|
|
92
217
|
"type": "string",
|
|
93
|
-
"
|
|
94
|
-
|
|
218
|
+
"description": "Hands the buyer the reviews."
|
|
219
|
+
},
|
|
220
|
+
"score": {
|
|
221
|
+
"type": "number",
|
|
222
|
+
"minimum": 0,
|
|
223
|
+
"description": "Quotes the score as that site gives it."
|
|
224
|
+
},
|
|
225
|
+
"of": {
|
|
226
|
+
"type": "number",
|
|
227
|
+
"exclusiveMinimum": 0,
|
|
228
|
+
"description": "Reads the scale’s top: 5, 10, 100."
|
|
229
|
+
},
|
|
230
|
+
"count": {
|
|
231
|
+
"type": "integer",
|
|
232
|
+
"minimum": 0,
|
|
233
|
+
"description": "Says how many reviews the score rests on."
|
|
95
234
|
}
|
|
96
235
|
},
|
|
97
236
|
"additionalProperties": false
|
|
98
237
|
},
|
|
99
|
-
"description": "
|
|
238
|
+
"description": "Gives scores from sources the shops do not control; empty until sil reads one."
|
|
100
239
|
},
|
|
101
|
-
"
|
|
102
|
-
"type": "
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
240
|
+
"variants": {
|
|
241
|
+
"type": "array",
|
|
242
|
+
"items": {
|
|
243
|
+
"type": "object",
|
|
244
|
+
"required": [
|
|
245
|
+
"id",
|
|
246
|
+
"values",
|
|
247
|
+
"images"
|
|
248
|
+
],
|
|
249
|
+
"properties": {
|
|
250
|
+
"id": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"minLength": 1,
|
|
253
|
+
"maxLength": 256,
|
|
254
|
+
"description": "Passes it to `shopping_offers`."
|
|
255
|
+
},
|
|
256
|
+
"values": {
|
|
257
|
+
"type": "object",
|
|
258
|
+
"patternProperties": {
|
|
259
|
+
"^.*$": {
|
|
260
|
+
"anyOf": [
|
|
261
|
+
{
|
|
262
|
+
"anyOf": [
|
|
263
|
+
{
|
|
264
|
+
"anyOf": [
|
|
265
|
+
{
|
|
266
|
+
"type": "number"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"type": "boolean"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"type": "string"
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"type": "object",
|
|
278
|
+
"required": [
|
|
279
|
+
"min",
|
|
280
|
+
"max"
|
|
281
|
+
],
|
|
282
|
+
"properties": {
|
|
283
|
+
"min": {
|
|
284
|
+
"type": "number",
|
|
285
|
+
"description": "Reads the low end."
|
|
286
|
+
},
|
|
287
|
+
"max": {
|
|
288
|
+
"type": "number",
|
|
289
|
+
"description": "Reads the high end."
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"additionalProperties": false,
|
|
293
|
+
"description": "A range, in the key’s unit."
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"type": "object",
|
|
297
|
+
"patternProperties": {
|
|
298
|
+
"^.*$": {
|
|
299
|
+
"anyOf": [
|
|
300
|
+
{
|
|
301
|
+
"type": "number"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"type": "boolean"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"type": "string"
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"description": "One entry of a `records` key."
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"type": "array",
|
|
318
|
+
"items": {
|
|
319
|
+
"anyOf": [
|
|
320
|
+
{
|
|
321
|
+
"anyOf": [
|
|
322
|
+
{
|
|
323
|
+
"type": "number"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"type": "boolean"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"type": "string"
|
|
330
|
+
}
|
|
331
|
+
]
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"type": "object",
|
|
335
|
+
"required": [
|
|
336
|
+
"min",
|
|
337
|
+
"max"
|
|
338
|
+
],
|
|
339
|
+
"properties": {
|
|
340
|
+
"min": {
|
|
341
|
+
"type": "number",
|
|
342
|
+
"description": "Reads the low end."
|
|
343
|
+
},
|
|
344
|
+
"max": {
|
|
345
|
+
"type": "number",
|
|
346
|
+
"description": "Reads the high end."
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"additionalProperties": false,
|
|
350
|
+
"description": "A range, in the key’s unit."
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"type": "object",
|
|
354
|
+
"patternProperties": {
|
|
355
|
+
"^.*$": {
|
|
356
|
+
"anyOf": [
|
|
357
|
+
{
|
|
358
|
+
"type": "number"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"type": "boolean"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"type": "string"
|
|
365
|
+
}
|
|
366
|
+
]
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"description": "One entry of a `records` key."
|
|
370
|
+
}
|
|
371
|
+
]
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
]
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
"description": "Reads what sets this variant apart from the product’s others; empty where it is the only one."
|
|
378
|
+
},
|
|
379
|
+
"price_range": {
|
|
380
|
+
"type": "object",
|
|
381
|
+
"required": [
|
|
382
|
+
"currency"
|
|
383
|
+
],
|
|
384
|
+
"properties": {
|
|
385
|
+
"min": {
|
|
386
|
+
"type": "integer",
|
|
387
|
+
"minimum": 0,
|
|
388
|
+
"maximum": 9007199254740991,
|
|
389
|
+
"description": "The low end, in the minor unit."
|
|
390
|
+
},
|
|
391
|
+
"max": {
|
|
392
|
+
"type": "integer",
|
|
393
|
+
"minimum": 0,
|
|
394
|
+
"maximum": 9007199254740991,
|
|
395
|
+
"description": "The high end, in the minor unit."
|
|
396
|
+
},
|
|
397
|
+
"currency": {
|
|
398
|
+
"type": "string",
|
|
399
|
+
"pattern": "^[A-Z]{3}$",
|
|
400
|
+
"minLength": 3,
|
|
401
|
+
"maxLength": 3,
|
|
402
|
+
"description": "Both ends in this currency; sil converts nothing."
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"additionalProperties": false,
|
|
406
|
+
"description": "Quotes its offers’ one-off prices, cheapest to dearest, in one currency; absent where none is buyable in it."
|
|
407
|
+
},
|
|
408
|
+
"images": {
|
|
409
|
+
"type": "array",
|
|
410
|
+
"items": {
|
|
411
|
+
"type": "integer",
|
|
412
|
+
"minimum": 0
|
|
413
|
+
},
|
|
414
|
+
"description": "Shows its own pictures: positions in the product’s `images`, first its best."
|
|
415
|
+
}
|
|
111
416
|
},
|
|
112
|
-
"
|
|
113
|
-
"type": "string",
|
|
114
|
-
"description": "Reads the whole page in the shop's own words for what sil has not keyed yet — a provisional read, never a verified one."
|
|
115
|
-
}
|
|
417
|
+
"additionalProperties": false
|
|
116
418
|
},
|
|
117
|
-
"
|
|
118
|
-
"description": "Reads a page sil has not read yet, in the page's own words."
|
|
419
|
+
"description": "Lists every variant: pick the ones to buy, then read their offers."
|
|
119
420
|
}
|
|
120
421
|
},
|
|
121
422
|
"additionalProperties": false
|
|
122
423
|
},
|
|
123
|
-
"description": "Reads the whole
|
|
424
|
+
"description": "Reads the whole before recommending."
|
|
124
425
|
}
|
|
125
426
|
},
|
|
126
427
|
"additionalProperties": false
|
|
@@ -4,51 +4,30 @@
|
|
|
4
4
|
"title": "sil shopping_search — request",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"required": [
|
|
7
|
-
"
|
|
8
|
-
"domain",
|
|
9
|
-
"query",
|
|
10
|
-
"n"
|
|
7
|
+
"domain"
|
|
11
8
|
],
|
|
12
9
|
"properties": {
|
|
13
|
-
"brief": {
|
|
14
|
-
"type": "string",
|
|
15
|
-
"minLength": 1,
|
|
16
|
-
"maxLength": 256,
|
|
17
|
-
"description": "Names the session's brief, so sil records this call against the want behind it. A brief that is not the buyer's answers `not_found`."
|
|
18
|
-
},
|
|
19
10
|
"domain": {
|
|
20
11
|
"type": "string",
|
|
21
12
|
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
22
13
|
"maxLength": 255,
|
|
23
|
-
"description": "Sends
|
|
24
|
-
},
|
|
25
|
-
"query": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"minLength": 1,
|
|
28
|
-
"maxLength": 512,
|
|
29
|
-
"description": "Sends the shopping words: the thing as a shop lists it and the numbers that pick the product, never a sentence."
|
|
30
|
-
},
|
|
31
|
-
"n": {
|
|
32
|
-
"type": "integer",
|
|
33
|
-
"minimum": 1,
|
|
34
|
-
"maximum": 10,
|
|
35
|
-
"description": "Asks for this many variants — one size or one colour each, grouped under their products."
|
|
14
|
+
"description": "Sends the leaf, or the kind above its leaves when the question is which kind; a shelf, domain or top answers `not_a_leaf`."
|
|
36
15
|
},
|
|
37
16
|
"specs": {
|
|
38
17
|
"type": "array",
|
|
39
18
|
"items": {
|
|
40
19
|
"type": "object",
|
|
41
20
|
"required": [
|
|
42
|
-
"
|
|
21
|
+
"spec",
|
|
43
22
|
"op",
|
|
44
23
|
"value"
|
|
45
24
|
],
|
|
46
25
|
"properties": {
|
|
47
|
-
"
|
|
26
|
+
"spec": {
|
|
48
27
|
"type": "string",
|
|
49
28
|
"minLength": 1,
|
|
50
29
|
"maxLength": 64,
|
|
51
|
-
"description": "
|
|
30
|
+
"description": "Sends a spec the domain read listed, unchanged: a part’s by its path (`boiler.boilerVolume`)."
|
|
52
31
|
},
|
|
53
32
|
"op": {
|
|
54
33
|
"anyOf": [
|
|
@@ -77,30 +56,64 @@
|
|
|
77
56
|
"const": "nin"
|
|
78
57
|
}
|
|
79
58
|
],
|
|
80
|
-
"description": "Sends the operator the domain read listed for this
|
|
59
|
+
"description": "Sends the operator the domain read listed for this spec."
|
|
81
60
|
},
|
|
82
61
|
"value": {
|
|
83
|
-
"description": "Sends the desired value, typed by the
|
|
84
|
-
},
|
|
85
|
-
"currency": {
|
|
86
|
-
"type": "string",
|
|
87
|
-
"pattern": "^[A-Z]{3}$",
|
|
88
|
-
"minLength": 3,
|
|
89
|
-
"maxLength": 3,
|
|
90
|
-
"description": "On money, the currency the bound is tested in: sil holds no exchange rate, so it is tested against offers in this currency only. Leave it out to mean the buyer's own currency, as `sil_whoami` answers it."
|
|
62
|
+
"description": "Sends the desired value, typed by the spec's type."
|
|
91
63
|
}
|
|
92
64
|
},
|
|
93
65
|
"additionalProperties": false
|
|
94
66
|
},
|
|
95
67
|
"maxItems": 32,
|
|
96
|
-
"description": "Sends
|
|
68
|
+
"description": "Sends every settled want: a spec from the domain read, one of its operators, a value in its unit or its set; on a kind, `leaf` in or nin its leaves."
|
|
97
69
|
},
|
|
98
|
-
"
|
|
70
|
+
"price": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"required": [
|
|
73
|
+
"currency"
|
|
74
|
+
],
|
|
75
|
+
"properties": {
|
|
76
|
+
"min": {
|
|
77
|
+
"type": "integer",
|
|
78
|
+
"minimum": 0,
|
|
79
|
+
"maximum": 9007199254740991,
|
|
80
|
+
"description": "The low end, in the minor unit."
|
|
81
|
+
},
|
|
82
|
+
"max": {
|
|
83
|
+
"type": "integer",
|
|
84
|
+
"minimum": 0,
|
|
85
|
+
"maximum": 9007199254740991,
|
|
86
|
+
"description": "The high end, in the minor unit."
|
|
87
|
+
},
|
|
88
|
+
"currency": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"pattern": "^[A-Z]{3}$",
|
|
91
|
+
"minLength": 3,
|
|
92
|
+
"maxLength": 3,
|
|
93
|
+
"description": "Both ends in this currency; sil converts nothing."
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"additionalProperties": false,
|
|
97
|
+
"description": "Keeps variants with an offer in this currency within one or both ends; sil converts nothing."
|
|
98
|
+
},
|
|
99
|
+
"query": {
|
|
99
100
|
"type": "string",
|
|
100
101
|
"minLength": 1,
|
|
101
|
-
"maxLength":
|
|
102
|
-
"description": "
|
|
102
|
+
"maxLength": 512,
|
|
103
|
+
"description": "Sends the words the buyer used for what no spec holds — a name, a model, \"travel\" — matched against the products’ titles and words."
|
|
104
|
+
},
|
|
105
|
+
"n": {
|
|
106
|
+
"type": "integer",
|
|
107
|
+
"minimum": 1,
|
|
108
|
+
"description": "Asks for this many products, at most 10; default 5."
|
|
109
|
+
},
|
|
110
|
+
"brief": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"minLength": 1,
|
|
113
|
+
"maxLength": 256,
|
|
114
|
+
"description": "Ties the call to a brief in sil’s record; never required."
|
|
103
115
|
}
|
|
104
116
|
},
|
|
105
|
-
"additionalProperties": false
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"description": "Money is in the minor unit: €130 is 13000."
|
|
106
119
|
}
|