sil-openclaw 0.4.5 → 0.5.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 +186 -0
- package/README.md +33 -45
- package/dist/gateway/search-results.js +11 -7
- package/dist/index.js +24 -24
- package/dist/lib/allowlist-script.js +13 -0
- package/dist/lib/artifacts.js +30 -0
- package/dist/lib/credentials.js +2 -3
- package/dist/lib/host-wiring.js +44 -15
- package/dist/lib/pkce.js +3 -3
- package/dist/lib/search-results-log.js +23 -0
- package/dist/lib/search-results-store.js +13 -10
- package/dist/lib/shopping-call.js +143 -0
- package/dist/lib/sil-client.js +185 -1046
- package/dist/lib/tool-result.js +10 -3
- package/dist/tools/catalog.js +311 -1197
- package/dist/tools/doctor.js +25 -63
- package/dist/tools/identity.js +110 -245
- package/openclaw.plugin.json +16 -12
- package/package.json +7 -6
- package/schema/PROVENANCE.md +15 -0
- package/schema/shopping-brief-create-request.schema.json +98 -0
- package/schema/shopping-brief-create-response.schema.json +24 -0
- package/schema/shopping-brief-edit-request.schema.json +125 -0
- package/schema/shopping-brief-edit-response.schema.json +24 -0
- package/schema/shopping-brief-read-request.schema.json +15 -0
- package/schema/shopping-brief-read-response.schema.json +235 -0
- package/schema/shopping-domain-create-request.schema.json +160 -0
- package/schema/shopping-domain-create-response.schema.json +60 -0
- package/schema/shopping-domain-get-request.schema.json +18 -0
- package/schema/shopping-domain-get-response.schema.json +307 -0
- package/schema/shopping-domain-search-request.schema.json +18 -0
- package/schema/shopping-domain-search-response.schema.json +92 -0
- package/schema/shopping-offers-request.schema.json +31 -0
- package/schema/shopping-offers-response.schema.json +172 -0
- package/schema/shopping-product-get-request.schema.json +24 -0
- package/schema/shopping-product-get-response.schema.json +121 -0
- package/schema/shopping-profile-edit-request.schema.json +97 -0
- package/schema/shopping-profile-edit-response.schema.json +17 -0
- package/schema/shopping-search-request.schema.json +106 -0
- package/schema/shopping-search-response.schema.json +182 -0
- package/schema/shopping-seller-get-request.schema.json +24 -0
- package/schema/shopping-seller-get-response.schema.json +342 -0
- package/scripts/allowlist-openclaw.mjs +4 -5
- package/sil-shopping/SKILL.md +196 -97
- package/sil-shopping/references/mint.md +190 -0
- package/dist/lib/bind-channel.js +0 -10
- package/dist/lib/creation-entrypoint.js +0 -111
- package/dist/lib/derive-agent-id.js +0 -36
- package/dist/lib/profile-store.js +0 -568
- package/dist/tools/profile.js +0 -300
- package/scripts/create-shopper.mjs +0 -677
- package/sil-shopping/examples/multi_domain_shopper_walkthrough.md +0 -65
- package/sil-shopping/references/agent_creation_engine.md +0 -223
- package/sil-shopping/references/fill_and_feedback.md +0 -102
- package/sil-shopping/references/method_and_prds.md +0 -143
- package/sil-shopping/references/setup_onboarding.md +0 -64
- package/sil-shopping/references/shop_loop.md +0 -118
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sil-openclaw",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Turn your OpenClaw into an expert shopping agent.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -27,12 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"main": "./dist/index.js",
|
|
29
29
|
"bin": {
|
|
30
|
-
"sil-openclaw-allowlist": "./scripts/allowlist-openclaw.mjs"
|
|
31
|
-
"sil-openclaw-create-shopper": "./scripts/create-shopper.mjs"
|
|
30
|
+
"sil-openclaw-allowlist": "./scripts/allowlist-openclaw.mjs"
|
|
32
31
|
},
|
|
33
32
|
"files": [
|
|
34
33
|
"dist",
|
|
35
|
-
"
|
|
34
|
+
"schema",
|
|
36
35
|
"scripts/allowlist-openclaw.mjs",
|
|
37
36
|
"sil-shopping",
|
|
38
37
|
"openclaw.plugin.json",
|
|
@@ -54,8 +53,8 @@
|
|
|
54
53
|
"minGatewayVersion": ">=2026.7.1"
|
|
55
54
|
},
|
|
56
55
|
"build": {
|
|
57
|
-
"openclawVersion": "2026.
|
|
58
|
-
"pluginSdkVersion": "2026.
|
|
56
|
+
"openclawVersion": "2026.9.3",
|
|
57
|
+
"pluginSdkVersion": "2026.9.3"
|
|
59
58
|
},
|
|
60
59
|
"hostTargets": [
|
|
61
60
|
"darwin-arm64",
|
|
@@ -98,6 +97,8 @@
|
|
|
98
97
|
},
|
|
99
98
|
"devDependencies": {
|
|
100
99
|
"@types/node": "22.15.3",
|
|
100
|
+
"ajv": "8.20.0",
|
|
101
|
+
"ajv-formats": "3.0.1",
|
|
101
102
|
"typescript": "5.8.3",
|
|
102
103
|
"vitest": "4.1.2"
|
|
103
104
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Where these twenty-two files come from
|
|
2
|
+
|
|
3
|
+
Copied verbatim from `sil-services` `packages/schemas/schema/`, commit
|
|
4
|
+
`3781741d0470ef136ba9363b8e26e70aa8bb99b9`. One request and one response artifact per
|
|
5
|
+
shopping tool; each is `JSON.stringify` of the TypeBox object the API serialises against.
|
|
6
|
+
|
|
7
|
+
**Re-copy, never hand-edit.** A local edit is drift the moment the sibling moves, and the
|
|
8
|
+
plugin registers these bytes as each tool's `parameters` — an edited artifact is a
|
|
9
|
+
contract the API never agreed to.
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
cp <sil-services>/packages/schemas/schema/shopping-*.schema.json schema/
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Byte-identity against the sibling is graded by sil-stage, not here.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sil.com/shopping-brief-create-request.schema.json",
|
|
4
|
+
"title": "sil shopping_brief_create — request",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"title",
|
|
8
|
+
"narrative"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"title": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"minLength": 1,
|
|
14
|
+
"maxLength": 128,
|
|
15
|
+
"description": "Names the job in a few words, so the buyer picks it out of their list."
|
|
16
|
+
},
|
|
17
|
+
"narrative": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"minLength": 1,
|
|
20
|
+
"maxLength": 2000,
|
|
21
|
+
"description": "Writes what a good buy looks like for THIS buyer, in their own terms — what they are after, what it has to do for them, and what would make it a bad buy. It is the spec of the job, so a want no keyed spec can carry stays here and still counts."
|
|
22
|
+
},
|
|
23
|
+
"domain": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
26
|
+
"maxLength": 255,
|
|
27
|
+
"description": "Names the domain the specs below sit under: a domain path for product specs, `seller` for the seller specs, which belong to the whole brief."
|
|
28
|
+
},
|
|
29
|
+
"specs": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"required": [
|
|
34
|
+
"key",
|
|
35
|
+
"op",
|
|
36
|
+
"value"
|
|
37
|
+
],
|
|
38
|
+
"properties": {
|
|
39
|
+
"key": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"minLength": 1,
|
|
42
|
+
"maxLength": 64,
|
|
43
|
+
"description": "Names the key from the domain read; `price` is a key every domain has."
|
|
44
|
+
},
|
|
45
|
+
"op": {
|
|
46
|
+
"anyOf": [
|
|
47
|
+
{
|
|
48
|
+
"type": "string",
|
|
49
|
+
"const": "eq"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "string",
|
|
53
|
+
"const": "neq"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": "string",
|
|
57
|
+
"const": "gte"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "string",
|
|
61
|
+
"const": "lte"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"type": "string",
|
|
65
|
+
"const": "in"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "string",
|
|
69
|
+
"const": "nin"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"description": "Sends the operator the domain read listed for this key."
|
|
73
|
+
},
|
|
74
|
+
"value": {
|
|
75
|
+
"description": "Sends the desired value, typed by the key's type."
|
|
76
|
+
},
|
|
77
|
+
"currency": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"pattern": "^[A-Z]{3}$",
|
|
80
|
+
"minLength": 3,
|
|
81
|
+
"maxLength": 3,
|
|
82
|
+
"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."
|
|
83
|
+
},
|
|
84
|
+
"reason": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"minLength": 1,
|
|
87
|
+
"maxLength": 256,
|
|
88
|
+
"description": "Quotes the buyer's own words behind the spec, verbatim — never a paraphrase, never a sentence they did not say; a spec the guide derives from a measurement quotes the measurement. Reads them back before proposing to relax it."
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"additionalProperties": false
|
|
92
|
+
},
|
|
93
|
+
"maxItems": 32,
|
|
94
|
+
"description": "Writes the wants it can already express, keyed and typed by the domain read."
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"additionalProperties": false
|
|
98
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sil.com/shopping-brief-create-response.schema.json",
|
|
4
|
+
"title": "sil shopping_brief_create — response",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"status",
|
|
8
|
+
"id"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"status": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "ok",
|
|
14
|
+
"description": "Reads the answer. Every other status arrives as an error body carrying recovery."
|
|
15
|
+
},
|
|
16
|
+
"id": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"minLength": 1,
|
|
19
|
+
"maxLength": 256,
|
|
20
|
+
"description": "Holds it for the session and names it on every search and offers call."
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"additionalProperties": false
|
|
24
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sil.com/shopping-brief-edit-request.schema.json",
|
|
4
|
+
"title": "sil shopping_brief_edit — request",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"id"
|
|
8
|
+
],
|
|
9
|
+
"properties": {
|
|
10
|
+
"id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 1,
|
|
13
|
+
"maxLength": 256,
|
|
14
|
+
"description": "Names the brief to write to; one that is not the buyer's answers `not_found`."
|
|
15
|
+
},
|
|
16
|
+
"title": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"minLength": 1,
|
|
19
|
+
"maxLength": 128,
|
|
20
|
+
"description": "Renames the job."
|
|
21
|
+
},
|
|
22
|
+
"narrative": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1,
|
|
25
|
+
"maxLength": 2000,
|
|
26
|
+
"description": "Replaces the whole narrative, never appends to it."
|
|
27
|
+
},
|
|
28
|
+
"domain": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
31
|
+
"maxLength": 255,
|
|
32
|
+
"description": "Names the domain `specs` and `remove` below sit under."
|
|
33
|
+
},
|
|
34
|
+
"specs": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"required": [
|
|
39
|
+
"key",
|
|
40
|
+
"op",
|
|
41
|
+
"value"
|
|
42
|
+
],
|
|
43
|
+
"properties": {
|
|
44
|
+
"key": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"minLength": 1,
|
|
47
|
+
"maxLength": 64,
|
|
48
|
+
"description": "Names the key from the domain read; `price` is a key every domain has."
|
|
49
|
+
},
|
|
50
|
+
"op": {
|
|
51
|
+
"anyOf": [
|
|
52
|
+
{
|
|
53
|
+
"type": "string",
|
|
54
|
+
"const": "eq"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"type": "string",
|
|
58
|
+
"const": "neq"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "string",
|
|
62
|
+
"const": "gte"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "string",
|
|
66
|
+
"const": "lte"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "string",
|
|
70
|
+
"const": "in"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"type": "string",
|
|
74
|
+
"const": "nin"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"description": "Sends the operator the domain read listed for this key."
|
|
78
|
+
},
|
|
79
|
+
"value": {
|
|
80
|
+
"description": "Sends the desired value, typed by the key's type."
|
|
81
|
+
},
|
|
82
|
+
"currency": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"pattern": "^[A-Z]{3}$",
|
|
85
|
+
"minLength": 3,
|
|
86
|
+
"maxLength": 3,
|
|
87
|
+
"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."
|
|
88
|
+
},
|
|
89
|
+
"reason": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"minLength": 1,
|
|
92
|
+
"maxLength": 256,
|
|
93
|
+
"description": "Quotes the buyer's own words behind the spec, verbatim — never a paraphrase, never a sentence they did not say; a spec the guide derives from a measurement quotes the measurement. Reads them back before proposing to relax it."
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"additionalProperties": false
|
|
97
|
+
},
|
|
98
|
+
"maxItems": 32,
|
|
99
|
+
"description": "Replaces every spec on the keys they name under that domain; a range is the two rows on its key."
|
|
100
|
+
},
|
|
101
|
+
"remove": {
|
|
102
|
+
"type": "array",
|
|
103
|
+
"items": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"minLength": 1,
|
|
106
|
+
"maxLength": 64,
|
|
107
|
+
"description": "Names a key whose specs go."
|
|
108
|
+
},
|
|
109
|
+
"maxItems": 32,
|
|
110
|
+
"description": "Drops the specs on these keys when the buyer gives a row up."
|
|
111
|
+
},
|
|
112
|
+
"decision": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"minLength": 1,
|
|
115
|
+
"maxLength": 512,
|
|
116
|
+
"description": "Logs in one sentence what the buyer changed and why; sil stamps it with the time, and the next session reads the reasoning rather than re-asking."
|
|
117
|
+
},
|
|
118
|
+
"status": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"const": "closed",
|
|
121
|
+
"description": "Closes the brief when the job is over."
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"additionalProperties": false
|
|
125
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sil.com/shopping-brief-edit-response.schema.json",
|
|
4
|
+
"title": "sil shopping_brief_edit — response",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"status",
|
|
8
|
+
"id"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"status": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "ok",
|
|
14
|
+
"description": "Reads the answer. Every other status arrives as an error body carrying recovery."
|
|
15
|
+
},
|
|
16
|
+
"id": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"minLength": 1,
|
|
19
|
+
"maxLength": 256,
|
|
20
|
+
"description": "Confirms which brief was written."
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"additionalProperties": false
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sil.com/shopping-brief-read-request.schema.json",
|
|
4
|
+
"title": "sil shopping_brief_read — request",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"maxLength": 256,
|
|
11
|
+
"description": "Reads this brief whole; without it, the list of the buyer's briefs comes back."
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"additionalProperties": false
|
|
15
|
+
}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sil.com/shopping-brief-read-response.schema.json",
|
|
4
|
+
"title": "sil shopping_brief_read — response",
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": [
|
|
9
|
+
"status",
|
|
10
|
+
"brief"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"status": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"const": "ok",
|
|
16
|
+
"description": "Reads the answer. Every other status arrives as an error body carrying recovery."
|
|
17
|
+
},
|
|
18
|
+
"brief": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"required": [
|
|
21
|
+
"id",
|
|
22
|
+
"title",
|
|
23
|
+
"status",
|
|
24
|
+
"narrative",
|
|
25
|
+
"specs",
|
|
26
|
+
"decisions"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"id": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1,
|
|
32
|
+
"maxLength": 256,
|
|
33
|
+
"description": "Names it on every search and offers call."
|
|
34
|
+
},
|
|
35
|
+
"title": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"minLength": 1,
|
|
38
|
+
"maxLength": 128,
|
|
39
|
+
"description": "Tells the buyer which job this is."
|
|
40
|
+
},
|
|
41
|
+
"status": {
|
|
42
|
+
"anyOf": [
|
|
43
|
+
{
|
|
44
|
+
"type": "string",
|
|
45
|
+
"const": "active"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"type": "string",
|
|
49
|
+
"const": "closed"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"description": "Reads whether the job is still open; a closed brief is history, not a session."
|
|
53
|
+
},
|
|
54
|
+
"narrative": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"minLength": 1,
|
|
57
|
+
"maxLength": 2000,
|
|
58
|
+
"description": "Reads what a good buy looks like for this buyer, and judges a pick against it."
|
|
59
|
+
},
|
|
60
|
+
"specs": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"patternProperties": {
|
|
63
|
+
"^.*$": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"items": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"required": [
|
|
68
|
+
"key",
|
|
69
|
+
"op",
|
|
70
|
+
"value"
|
|
71
|
+
],
|
|
72
|
+
"properties": {
|
|
73
|
+
"key": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"minLength": 1,
|
|
76
|
+
"maxLength": 64,
|
|
77
|
+
"description": "Names the key from the domain read; `price` is a key every domain has."
|
|
78
|
+
},
|
|
79
|
+
"op": {
|
|
80
|
+
"anyOf": [
|
|
81
|
+
{
|
|
82
|
+
"type": "string",
|
|
83
|
+
"const": "eq"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"type": "string",
|
|
87
|
+
"const": "neq"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "string",
|
|
91
|
+
"const": "gte"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "string",
|
|
95
|
+
"const": "lte"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"type": "string",
|
|
99
|
+
"const": "in"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "string",
|
|
103
|
+
"const": "nin"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"description": "Sends the operator the domain read listed for this key."
|
|
107
|
+
},
|
|
108
|
+
"value": {
|
|
109
|
+
"description": "Sends the desired value, typed by the key's type."
|
|
110
|
+
},
|
|
111
|
+
"currency": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"pattern": "^[A-Z]{3}$",
|
|
114
|
+
"minLength": 3,
|
|
115
|
+
"maxLength": 3,
|
|
116
|
+
"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."
|
|
117
|
+
},
|
|
118
|
+
"reason": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"minLength": 1,
|
|
121
|
+
"maxLength": 256,
|
|
122
|
+
"description": "Quotes the buyer's own words behind the spec, verbatim — never a paraphrase, never a sentence they did not say; a spec the guide derives from a measurement quotes the measurement. Reads them back before proposing to relax it."
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"additionalProperties": false
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"description": "Writes each call's specs from these — the key is the domain they sit under, `seller` for the seller specs."
|
|
130
|
+
},
|
|
131
|
+
"decisions": {
|
|
132
|
+
"type": "array",
|
|
133
|
+
"items": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"required": [
|
|
136
|
+
"at",
|
|
137
|
+
"text"
|
|
138
|
+
],
|
|
139
|
+
"properties": {
|
|
140
|
+
"at": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"format": "date-time",
|
|
143
|
+
"description": "Says when the buyer decided it."
|
|
144
|
+
},
|
|
145
|
+
"text": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"description": "Reads back what they changed and why."
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"additionalProperties": false
|
|
151
|
+
},
|
|
152
|
+
"description": "Reads what the buyer has already settled, newest last, and never re-asks it."
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"additionalProperties": false,
|
|
156
|
+
"description": "Reads the whole job back, and writes the next search and offers call from it."
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"additionalProperties": false
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"type": "object",
|
|
163
|
+
"required": [
|
|
164
|
+
"status",
|
|
165
|
+
"briefs"
|
|
166
|
+
],
|
|
167
|
+
"properties": {
|
|
168
|
+
"status": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"const": "ok",
|
|
171
|
+
"description": "Reads the answer. Every other status arrives as an error body carrying recovery."
|
|
172
|
+
},
|
|
173
|
+
"briefs": {
|
|
174
|
+
"type": "array",
|
|
175
|
+
"items": {
|
|
176
|
+
"type": "object",
|
|
177
|
+
"required": [
|
|
178
|
+
"id",
|
|
179
|
+
"title",
|
|
180
|
+
"status",
|
|
181
|
+
"domains",
|
|
182
|
+
"updated_at"
|
|
183
|
+
],
|
|
184
|
+
"properties": {
|
|
185
|
+
"id": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"minLength": 1,
|
|
188
|
+
"maxLength": 256,
|
|
189
|
+
"description": "Sends it back as `id` to read the whole brief."
|
|
190
|
+
},
|
|
191
|
+
"title": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"minLength": 1,
|
|
194
|
+
"maxLength": 128,
|
|
195
|
+
"description": "Tells the buyer which job this is."
|
|
196
|
+
},
|
|
197
|
+
"status": {
|
|
198
|
+
"anyOf": [
|
|
199
|
+
{
|
|
200
|
+
"type": "string",
|
|
201
|
+
"const": "active"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"type": "string",
|
|
205
|
+
"const": "closed"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"description": "Reads whether the job is still open; a closed brief is history, not a session."
|
|
209
|
+
},
|
|
210
|
+
"domains": {
|
|
211
|
+
"type": "array",
|
|
212
|
+
"items": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
215
|
+
"maxLength": 255,
|
|
216
|
+
"description": "Names a domain the brief already holds specs under."
|
|
217
|
+
},
|
|
218
|
+
"description": "Reads what this job already covers without opening it."
|
|
219
|
+
},
|
|
220
|
+
"updated_at": {
|
|
221
|
+
"type": "string",
|
|
222
|
+
"format": "date-time",
|
|
223
|
+
"description": "Picks up the job the buyer worked on last."
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"additionalProperties": false
|
|
227
|
+
},
|
|
228
|
+
"description": "Reads the buyer's briefs, the one worked on last first, and asks which one this is."
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"additionalProperties": false
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
"type": "object"
|
|
235
|
+
}
|