sil-openclaw 0.6.0 → 0.7.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 +15 -0
- package/README.md +12 -11
- package/SECURITY.md +3 -3
- package/dist/lib/shopping-call.js +5 -1
- package/dist/lib/sil-client.js +34 -62
- package/dist/lib/tool-result.js +1 -1
- package/dist/tools/catalog.js +83 -239
- package/dist/tools/identity.js +74 -87
- package/openclaw.plugin.json +11 -6
- package/package.json +1 -1
- package/schema/PROVENANCE.md +7 -4
- package/schema/shopping-brief-write-request.schema.json +225 -0
- package/schema/{shopping-brief-create-response.schema.json → shopping-brief-write-response.schema.json} +3 -3
- package/schema/shopping-content-request.schema.json +4 -7
- package/schema/shopping-content-response.schema.json +234 -108
- package/schema/shopping-domain-get-request.schema.json +18 -0
- package/schema/shopping-domain-get-response.schema.json +124 -86
- package/schema/shopping-offers-request.schema.json +174 -23
- package/schema/shopping-offers-response.schema.json +20 -10
- package/schema/shopping-product-get-request.schema.json +2 -2
- package/schema/shopping-product-get-response.schema.json +113 -16
- package/schema/shopping-search-request.schema.json +16 -25
- package/schema/shopping-search-response.schema.json +95 -21
- package/schema/shopping-seller-get-response.schema.json +249 -221
- 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 +36 -0
- package/schema/shopping-user-read-response.schema.json +372 -0
- package/schema/shopping-user-remember-request.schema.json +340 -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 +90 -0
- package/sil-shopping/SKILL.md +149 -203
- 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
|
@@ -6,14 +6,7 @@
|
|
|
6
6
|
"required": [
|
|
7
7
|
"status",
|
|
8
8
|
"path",
|
|
9
|
-
"
|
|
10
|
-
"labels",
|
|
11
|
-
"specs",
|
|
12
|
-
"seller_specs",
|
|
13
|
-
"reach",
|
|
14
|
-
"kinds",
|
|
15
|
-
"parts",
|
|
16
|
-
"made_for"
|
|
9
|
+
"specs"
|
|
17
10
|
],
|
|
18
11
|
"properties": {
|
|
19
12
|
"status": {
|
|
@@ -28,16 +21,7 @@
|
|
|
28
21
|
"name": {
|
|
29
22
|
"type": "string",
|
|
30
23
|
"maxLength": 64,
|
|
31
|
-
"description": "Calls the thing this in English
|
|
32
|
-
},
|
|
33
|
-
"labels": {
|
|
34
|
-
"type": "array",
|
|
35
|
-
"items": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"maxLength": 64
|
|
38
|
-
},
|
|
39
|
-
"maxItems": 20,
|
|
40
|
-
"description": "Reads every other word for the thing — the market's own English, folded to the form sil maps under. sil asks each index in them; the agent never sends them."
|
|
24
|
+
"description": "Calls the thing this in English. Absent on a page read with `after`."
|
|
41
25
|
},
|
|
42
26
|
"specs": {
|
|
43
27
|
"type": "array",
|
|
@@ -62,11 +46,6 @@
|
|
|
62
46
|
"maxLength": 128,
|
|
63
47
|
"description": "Calls the key this when it writes it down or says it out loud."
|
|
64
48
|
},
|
|
65
|
-
"description": {
|
|
66
|
-
"type": "string",
|
|
67
|
-
"maxLength": 1024,
|
|
68
|
-
"description": "Reads how this one key moves the fit — what it decides, what goes wrong at either end of it, and how a buyer's own fact becomes a value for it. Reason from it; ask from it; never recite it back."
|
|
69
|
-
},
|
|
70
49
|
"type": {
|
|
71
50
|
"anyOf": [
|
|
72
51
|
{
|
|
@@ -135,50 +114,50 @@
|
|
|
135
114
|
"minItems": 1,
|
|
136
115
|
"description": "Picks the comparison that fits: `eq`/`in` on a variant spec and on enums, `gte`/`lte` on numbers and money."
|
|
137
116
|
},
|
|
117
|
+
"description": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"maxLength": 1024,
|
|
120
|
+
"description": "Reads how this one key moves the fit — what it decides, what goes wrong at either end of it, and how a buyer's own fact becomes a value for it. Reason from it; ask from it; never recite it back. Only on a `keys` read."
|
|
121
|
+
},
|
|
138
122
|
"step": {
|
|
139
123
|
"type": "number",
|
|
140
124
|
"exclusiveMinimum": 0,
|
|
141
|
-
"description": "Asks on the grid the maker prints the axis in — 0.5 for a Mondopoint size. A figure off the grid is something sil has not read as a value."
|
|
142
|
-
},
|
|
143
|
-
"forms": {
|
|
144
|
-
"type": "object",
|
|
145
|
-
"patternProperties": {
|
|
146
|
-
"^.*$": {
|
|
147
|
-
"type": "string"
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
"description": "Reads what pages print for a value, mapped to the value — `{\"27/27.5\": \"27.5\"}`. Never sent: the request takes the value, and this is how sil recognises it in the wild."
|
|
151
|
-
},
|
|
152
|
-
"labels": {
|
|
153
|
-
"type": "array",
|
|
154
|
-
"items": {
|
|
155
|
-
"type": "string",
|
|
156
|
-
"minLength": 1,
|
|
157
|
-
"maxLength": 60
|
|
158
|
-
},
|
|
159
|
-
"minItems": 1,
|
|
160
|
-
"maxItems": 20,
|
|
161
|
-
"description": "Sends any of these as the key and reaches this one: the names sil maps here — the headings pages print it under and the keys other agents send for it, one mapping with no origin between them. Folded to the form the mapping stores, best-attested first, at most 20."
|
|
125
|
+
"description": "Asks on the grid the maker prints the axis in — 0.5 for a Mondopoint size. A figure off the grid is something sil has not read as a value. Only on a `keys` read."
|
|
162
126
|
},
|
|
163
127
|
"variant_spec": {
|
|
164
128
|
"type": "boolean",
|
|
165
129
|
"const": true,
|
|
166
|
-
"description": "
|
|
130
|
+
"description": "Expects its values under `variants[]`."
|
|
167
131
|
},
|
|
168
132
|
"product_spec": {
|
|
169
133
|
"type": "boolean",
|
|
170
134
|
"const": true,
|
|
171
|
-
"description": "
|
|
135
|
+
"description": "Never treats two products that differ on it as one."
|
|
172
136
|
},
|
|
173
137
|
"several": {
|
|
174
138
|
"type": "boolean",
|
|
175
139
|
"const": true,
|
|
176
|
-
"description": "Reads a list for it
|
|
140
|
+
"description": "Reads a list for it: a product holds several at once."
|
|
141
|
+
},
|
|
142
|
+
"ordered": {
|
|
143
|
+
"type": "boolean",
|
|
144
|
+
"const": true,
|
|
145
|
+
"description": "`allowed_values` run in order, least first: `gte`/`lte` take one and reach every one past it — \"filter or coarser\" is `gte filter`, never `eq filter`."
|
|
177
146
|
}
|
|
178
147
|
},
|
|
179
148
|
"additionalProperties": false
|
|
180
149
|
},
|
|
181
|
-
"description": "Builds
|
|
150
|
+
"description": "Builds spec rows with keys sil holds: index lines in the place’s own order, own keys first, as many as one answer holds; or only the `keys` asked, whole."
|
|
151
|
+
},
|
|
152
|
+
"next": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"maxLength": 64,
|
|
155
|
+
"description": "Sends it as `after` to read the index on: the first key not listed. Absent on the last page, so nothing is cut unseen."
|
|
156
|
+
},
|
|
157
|
+
"keys_total": {
|
|
158
|
+
"type": "integer",
|
|
159
|
+
"minimum": 0,
|
|
160
|
+
"description": "Counts the keys of the whole index, over its pages."
|
|
182
161
|
},
|
|
183
162
|
"seller_specs": {
|
|
184
163
|
"type": "array",
|
|
@@ -203,11 +182,6 @@
|
|
|
203
182
|
"maxLength": 128,
|
|
204
183
|
"description": "Calls the key this when it writes it down or says it out loud."
|
|
205
184
|
},
|
|
206
|
-
"description": {
|
|
207
|
-
"type": "string",
|
|
208
|
-
"maxLength": 1024,
|
|
209
|
-
"description": "Reads how this one key moves the fit — what it decides, what goes wrong at either end of it, and how a buyer's own fact becomes a value for it. Reason from it; ask from it; never recite it back."
|
|
210
|
-
},
|
|
211
185
|
"type": {
|
|
212
186
|
"anyOf": [
|
|
213
187
|
{
|
|
@@ -276,35 +250,29 @@
|
|
|
276
250
|
"minItems": 1,
|
|
277
251
|
"description": "Picks the comparison that fits: `eq`/`in` on a variant spec and on enums, `gte`/`lte` on numbers and money."
|
|
278
252
|
},
|
|
253
|
+
"description": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"maxLength": 1024,
|
|
256
|
+
"description": "Reads how this one key moves the fit — what it decides, what goes wrong at either end of it, and how a buyer's own fact becomes a value for it. Reason from it; ask from it; never recite it back. Only on a `keys` read."
|
|
257
|
+
},
|
|
279
258
|
"step": {
|
|
280
259
|
"type": "number",
|
|
281
260
|
"exclusiveMinimum": 0,
|
|
282
|
-
"description": "Asks on the grid the maker prints the axis in — 0.5 for a Mondopoint size. A figure off the grid is something sil has not read as a value."
|
|
283
|
-
},
|
|
284
|
-
"forms": {
|
|
285
|
-
"type": "object",
|
|
286
|
-
"patternProperties": {
|
|
287
|
-
"^.*$": {
|
|
288
|
-
"type": "string"
|
|
289
|
-
}
|
|
290
|
-
},
|
|
291
|
-
"description": "Reads what pages print for a value, mapped to the value — `{\"27/27.5\": \"27.5\"}`. Never sent: the request takes the value, and this is how sil recognises it in the wild."
|
|
292
|
-
},
|
|
293
|
-
"labels": {
|
|
294
|
-
"type": "array",
|
|
295
|
-
"items": {
|
|
296
|
-
"type": "string",
|
|
297
|
-
"minLength": 1,
|
|
298
|
-
"maxLength": 60
|
|
299
|
-
},
|
|
300
|
-
"minItems": 1,
|
|
301
|
-
"maxItems": 20,
|
|
302
|
-
"description": "Sends any of these as the key and reaches this one: the names sil maps here — the headings pages print it under and the keys other agents send for it, one mapping with no origin between them. Folded to the form the mapping stores, best-attested first, at most 20."
|
|
261
|
+
"description": "Asks on the grid the maker prints the axis in — 0.5 for a Mondopoint size. A figure off the grid is something sil has not read as a value. Only on a `keys` read."
|
|
303
262
|
}
|
|
304
263
|
},
|
|
305
264
|
"additionalProperties": false
|
|
306
265
|
},
|
|
307
|
-
"description": "Builds seller rows with keys
|
|
266
|
+
"description": "Builds seller rows for `shopping_offers`; with `keys`, only those asked. First page only."
|
|
267
|
+
},
|
|
268
|
+
"labels": {
|
|
269
|
+
"type": "array",
|
|
270
|
+
"items": {
|
|
271
|
+
"type": "string",
|
|
272
|
+
"maxLength": 64
|
|
273
|
+
},
|
|
274
|
+
"maxItems": 20,
|
|
275
|
+
"description": "Reads every other word for the thing; never sends them. Absent with `keys` and after the first page."
|
|
308
276
|
},
|
|
309
277
|
"reach": {
|
|
310
278
|
"type": "array",
|
|
@@ -320,7 +288,7 @@
|
|
|
320
288
|
"type": "string",
|
|
321
289
|
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
322
290
|
"maxLength": 255,
|
|
323
|
-
"description": "Reads the node that declares these keys
|
|
291
|
+
"description": "Reads the node that declares these keys."
|
|
324
292
|
},
|
|
325
293
|
"via": {
|
|
326
294
|
"anyOf": [
|
|
@@ -335,9 +303,13 @@
|
|
|
335
303
|
{
|
|
336
304
|
"type": "string",
|
|
337
305
|
"const": "part"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"type": "string",
|
|
309
|
+
"const": "leaf"
|
|
338
310
|
}
|
|
339
311
|
],
|
|
340
|
-
"description": "Reads how:
|
|
312
|
+
"description": "Reads how: its own, a kind it is, a part’s link, or a leaf under a kind."
|
|
341
313
|
},
|
|
342
314
|
"part": {
|
|
343
315
|
"type": "string",
|
|
@@ -348,14 +320,15 @@
|
|
|
348
320
|
"items": {
|
|
349
321
|
"type": "string",
|
|
350
322
|
"minLength": 1,
|
|
351
|
-
"maxLength": 64
|
|
323
|
+
"maxLength": 64,
|
|
324
|
+
"description": "A key."
|
|
352
325
|
},
|
|
353
|
-
"description": "Reads the keys, in the
|
|
326
|
+
"description": "Reads the keys, in the node’s order."
|
|
354
327
|
}
|
|
355
328
|
},
|
|
356
329
|
"additionalProperties": false
|
|
357
330
|
},
|
|
358
|
-
"description": "Reads where each key comes from
|
|
331
|
+
"description": "Reads where each key comes from. Absent with `keys` and after the first page."
|
|
359
332
|
},
|
|
360
333
|
"kinds": {
|
|
361
334
|
"type": "array",
|
|
@@ -380,7 +353,7 @@
|
|
|
380
353
|
},
|
|
381
354
|
"additionalProperties": false
|
|
382
355
|
},
|
|
383
|
-
"description": "Reads every kind this thing is, nearest first
|
|
356
|
+
"description": "Reads every kind this thing is, nearest first. Absent with `keys` and after the first page."
|
|
384
357
|
},
|
|
385
358
|
"parts": {
|
|
386
359
|
"type": "array",
|
|
@@ -452,7 +425,7 @@
|
|
|
452
425
|
},
|
|
453
426
|
"additionalProperties": false
|
|
454
427
|
},
|
|
455
|
-
"description": "Reads what the thing has
|
|
428
|
+
"description": "Reads what the thing has. Absent with `keys` and after the first page."
|
|
456
429
|
},
|
|
457
430
|
"made_for": {
|
|
458
431
|
"type": "array",
|
|
@@ -488,7 +461,7 @@
|
|
|
488
461
|
}
|
|
489
462
|
]
|
|
490
463
|
},
|
|
491
|
-
"description": "Reads what
|
|
464
|
+
"description": "Reads what a part is made for. Absent with `keys` and after the first page."
|
|
492
465
|
},
|
|
493
466
|
"leaves": {
|
|
494
467
|
"type": "array",
|
|
@@ -503,7 +476,7 @@
|
|
|
503
476
|
"type": "string",
|
|
504
477
|
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
505
478
|
"maxLength": 255,
|
|
506
|
-
"description": "Sends the leaf to `shopping_domain_get`
|
|
479
|
+
"description": "Sends the leaf to `shopping_domain_get` or `shopping_search`."
|
|
507
480
|
},
|
|
508
481
|
"name": {
|
|
509
482
|
"type": "string",
|
|
@@ -513,7 +486,7 @@
|
|
|
513
486
|
},
|
|
514
487
|
"additionalProperties": false
|
|
515
488
|
},
|
|
516
|
-
"description": "On a kind: every leaf under it
|
|
489
|
+
"description": "On a kind: every leaf under it. A search on the kind answers across them, `leaf` a key it takes. Absent with `keys` and after the first page."
|
|
517
490
|
},
|
|
518
491
|
"record": {
|
|
519
492
|
"anyOf": [
|
|
@@ -526,7 +499,72 @@
|
|
|
526
499
|
"const": "specs"
|
|
527
500
|
}
|
|
528
501
|
],
|
|
529
|
-
"description": "On a leaf:
|
|
502
|
+
"description": "On a leaf: bought on its measures alone, or on its measures and its record. Absent with `keys` and after the first page."
|
|
503
|
+
},
|
|
504
|
+
"guides": {
|
|
505
|
+
"type": "array",
|
|
506
|
+
"items": {
|
|
507
|
+
"type": "object",
|
|
508
|
+
"required": [
|
|
509
|
+
"id",
|
|
510
|
+
"kind",
|
|
511
|
+
"title",
|
|
512
|
+
"about"
|
|
513
|
+
],
|
|
514
|
+
"properties": {
|
|
515
|
+
"id": {
|
|
516
|
+
"type": "string",
|
|
517
|
+
"minLength": 1,
|
|
518
|
+
"maxLength": 256,
|
|
519
|
+
"description": "Sends it as `shopping_content.document` to read the guide."
|
|
520
|
+
},
|
|
521
|
+
"kind": {
|
|
522
|
+
"anyOf": [
|
|
523
|
+
{
|
|
524
|
+
"type": "string",
|
|
525
|
+
"const": "guide"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"type": "string",
|
|
529
|
+
"const": "tutorial"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"type": "string",
|
|
533
|
+
"const": "faq"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"type": "string",
|
|
537
|
+
"const": "glossary"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"type": "string",
|
|
541
|
+
"const": "review"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"type": "string",
|
|
545
|
+
"const": "comparison"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"type": "string",
|
|
549
|
+
"const": "news"
|
|
550
|
+
}
|
|
551
|
+
],
|
|
552
|
+
"description": "Names what the document is."
|
|
553
|
+
},
|
|
554
|
+
"title": {
|
|
555
|
+
"type": "string",
|
|
556
|
+
"description": "Reads the document’s title."
|
|
557
|
+
},
|
|
558
|
+
"about": {
|
|
559
|
+
"type": "string",
|
|
560
|
+
"maxLength": 160,
|
|
561
|
+
"description": "Reads what the document teaches, cut at a word."
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
"additionalProperties": false
|
|
565
|
+
},
|
|
566
|
+
"maxItems": 6,
|
|
567
|
+
"description": "Teaches from what sil holds on the place; the first is the domain’s index of every source it holds, each with what it teaches. Then its own documents, then each kind, then the places above, nearest first. Reads one with `shopping_content.document`. First page and `keys` only."
|
|
530
568
|
}
|
|
531
569
|
},
|
|
532
570
|
"additionalProperties": false
|
|
@@ -2,30 +2,181 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schemas.sil.com/shopping-offers-request.schema.json",
|
|
4
4
|
"title": "sil shopping_offers — request",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": [
|
|
9
|
+
"ids"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"ids": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"maxLength": 256,
|
|
18
|
+
"description": "An id sil minted, passed back verbatim."
|
|
19
|
+
},
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"maxItems": 10,
|
|
22
|
+
"description": "Sends the picked variant ids."
|
|
23
|
+
},
|
|
24
|
+
"confirm": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"description": "Re-reads the listing of up to three ids now, for the link the buyer is sent to."
|
|
27
|
+
},
|
|
28
|
+
"seller_specs": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"required": [
|
|
33
|
+
"key",
|
|
34
|
+
"op",
|
|
35
|
+
"value"
|
|
36
|
+
],
|
|
37
|
+
"properties": {
|
|
38
|
+
"key": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"minLength": 1,
|
|
41
|
+
"maxLength": 64,
|
|
42
|
+
"description": "Names the key from the domain read; `price` is a key every domain has."
|
|
43
|
+
},
|
|
44
|
+
"op": {
|
|
45
|
+
"anyOf": [
|
|
46
|
+
{
|
|
47
|
+
"type": "string",
|
|
48
|
+
"const": "eq"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"type": "string",
|
|
52
|
+
"const": "neq"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "string",
|
|
56
|
+
"const": "gte"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "string",
|
|
60
|
+
"const": "lte"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "string",
|
|
64
|
+
"const": "in"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": "string",
|
|
68
|
+
"const": "nin"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"description": "Sends the operator the domain read listed for this key."
|
|
72
|
+
},
|
|
73
|
+
"value": {
|
|
74
|
+
"description": "Sends the desired value, typed by the key's type."
|
|
75
|
+
},
|
|
76
|
+
"currency": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"pattern": "^[A-Z]{3}$",
|
|
79
|
+
"minLength": 3,
|
|
80
|
+
"maxLength": 3,
|
|
81
|
+
"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."
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"additionalProperties": false
|
|
85
|
+
},
|
|
86
|
+
"maxItems": 32,
|
|
87
|
+
"description": "Sends the seller terms the buyer settled; each offer answers them in `seller_fit`."
|
|
88
|
+
},
|
|
89
|
+
"brief": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"minLength": 1,
|
|
92
|
+
"maxLength": 256,
|
|
93
|
+
"description": "Ties the call to a brief in sil’s record; never required."
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"additionalProperties": false
|
|
16
97
|
},
|
|
17
|
-
|
|
18
|
-
"type": "
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
98
|
+
{
|
|
99
|
+
"type": "object",
|
|
100
|
+
"required": [
|
|
101
|
+
"name"
|
|
102
|
+
],
|
|
103
|
+
"properties": {
|
|
104
|
+
"name": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"minLength": 1,
|
|
107
|
+
"maxLength": 128,
|
|
108
|
+
"description": "Sends a product’s name for a price check: maker, model, the size if named."
|
|
109
|
+
},
|
|
110
|
+
"seller_specs": {
|
|
111
|
+
"type": "array",
|
|
112
|
+
"items": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"required": [
|
|
115
|
+
"key",
|
|
116
|
+
"op",
|
|
117
|
+
"value"
|
|
118
|
+
],
|
|
119
|
+
"properties": {
|
|
120
|
+
"key": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"minLength": 1,
|
|
123
|
+
"maxLength": 64,
|
|
124
|
+
"description": "Names the key from the domain read; `price` is a key every domain has."
|
|
125
|
+
},
|
|
126
|
+
"op": {
|
|
127
|
+
"anyOf": [
|
|
128
|
+
{
|
|
129
|
+
"type": "string",
|
|
130
|
+
"const": "eq"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"type": "string",
|
|
134
|
+
"const": "neq"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"type": "string",
|
|
138
|
+
"const": "gte"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"type": "string",
|
|
142
|
+
"const": "lte"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"type": "string",
|
|
146
|
+
"const": "in"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"type": "string",
|
|
150
|
+
"const": "nin"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"description": "Sends the operator the domain read listed for this key."
|
|
154
|
+
},
|
|
155
|
+
"value": {
|
|
156
|
+
"description": "Sends the desired value, typed by the key's type."
|
|
157
|
+
},
|
|
158
|
+
"currency": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"pattern": "^[A-Z]{3}$",
|
|
161
|
+
"minLength": 3,
|
|
162
|
+
"maxLength": 3,
|
|
163
|
+
"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."
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"additionalProperties": false
|
|
167
|
+
},
|
|
168
|
+
"maxItems": 32,
|
|
169
|
+
"description": "Sends the seller terms the buyer settled; each offer answers them in `seller_fit`."
|
|
170
|
+
},
|
|
171
|
+
"brief": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"minLength": 1,
|
|
174
|
+
"maxLength": 256,
|
|
175
|
+
"description": "Ties the call to a brief in sil’s record; never required."
|
|
176
|
+
}
|
|
24
177
|
},
|
|
25
|
-
"
|
|
26
|
-
"maxItems": 10,
|
|
27
|
-
"description": "Sends the picked variant ids and nothing else: sil reads the brief's seller specs and price, the buyer's address and currency, off the brief and the profile."
|
|
178
|
+
"additionalProperties": false
|
|
28
179
|
}
|
|
29
|
-
|
|
30
|
-
"
|
|
180
|
+
],
|
|
181
|
+
"type": "object"
|
|
31
182
|
}
|
|
@@ -13,18 +13,13 @@
|
|
|
13
13
|
"const": "ok",
|
|
14
14
|
"description": "Reads the answer. Every other status arrives as an error body carrying recovery."
|
|
15
15
|
},
|
|
16
|
-
"ship_to": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"minLength": 1,
|
|
19
|
-
"maxLength": 64,
|
|
20
|
-
"description": "Says which address every `seller_fit.ships` below is about; absent when the default address carries no label."
|
|
21
|
-
},
|
|
22
16
|
"offers": {
|
|
23
17
|
"type": "array",
|
|
24
18
|
"items": {
|
|
25
19
|
"type": "object",
|
|
26
20
|
"required": [
|
|
27
21
|
"variant_id",
|
|
22
|
+
"title",
|
|
28
23
|
"seller_id",
|
|
29
24
|
"seller_name",
|
|
30
25
|
"price",
|
|
@@ -39,7 +34,11 @@
|
|
|
39
34
|
"type": "string",
|
|
40
35
|
"minLength": 1,
|
|
41
36
|
"maxLength": 256,
|
|
42
|
-
"description": "Matches the offer to the pick."
|
|
37
|
+
"description": "Matches the offer to the pick; passes it to the dossier."
|
|
38
|
+
},
|
|
39
|
+
"title": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Names what the listing sells."
|
|
43
42
|
},
|
|
44
43
|
"seller_id": {
|
|
45
44
|
"type": "string",
|
|
@@ -49,7 +48,7 @@
|
|
|
49
48
|
},
|
|
50
49
|
"seller_name": {
|
|
51
50
|
"type": "string",
|
|
52
|
-
"description": "Names the shop
|
|
51
|
+
"description": "Names the shop."
|
|
53
52
|
},
|
|
54
53
|
"price": {
|
|
55
54
|
"type": "string",
|
|
@@ -95,7 +94,7 @@
|
|
|
95
94
|
"observed_at": {
|
|
96
95
|
"type": "string",
|
|
97
96
|
"format": "date-time",
|
|
98
|
-
"description": "Dates the price
|
|
97
|
+
"description": "Dates the price: when sil last read it."
|
|
99
98
|
},
|
|
100
99
|
"url": {
|
|
101
100
|
"type": "string",
|
|
@@ -165,7 +164,18 @@
|
|
|
165
164
|
},
|
|
166
165
|
"additionalProperties": false
|
|
167
166
|
},
|
|
168
|
-
"description": "Lists where
|
|
167
|
+
"description": "Lists where it can be bought, best for the buyer first."
|
|
168
|
+
},
|
|
169
|
+
"pending": {
|
|
170
|
+
"type": "array",
|
|
171
|
+
"items": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"minLength": 1,
|
|
174
|
+
"maxLength": 256,
|
|
175
|
+
"description": "Names a variant whose offers sil is still finding."
|
|
176
|
+
},
|
|
177
|
+
"maxItems": 10,
|
|
178
|
+
"description": "Names the asked variants whose offers sil is still finding; ask again in a few seconds."
|
|
169
179
|
}
|
|
170
180
|
},
|
|
171
181
|
"additionalProperties": false
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"description": "An id sil minted, passed back verbatim."
|
|
17
17
|
},
|
|
18
18
|
"minItems": 1,
|
|
19
|
-
"maxItems":
|
|
20
|
-
"description": "Sends the variant ids it wants the whole of; one sil
|
|
19
|
+
"maxItems": 3,
|
|
20
|
+
"description": "Sends the variant ids it wants the whole of; one sil holds no product for is named in `not_held`."
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"additionalProperties": false
|