@brainai/satp-client 2.0.6 → 2.0.8
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/LICENSE +201 -0
- package/README.md +63 -35
- package/idls/v3/attestations_v3.json +439 -0
- package/idls/v3/escrow_v3.json +972 -0
- package/idls/v3/identity_v3.json +1344 -0
- package/idls/v3/reputation_v3.json +140 -0
- package/idls/v3/reviews_v3.json +300 -0
- package/idls/v3/validation_v3.json +146 -0
- package/package.json +12 -4
- package/src/attestation-request.js +176 -0
- package/src/index.d.ts +221 -0
- package/src/index.js +12 -1
- package/src/runtime-authorization-evidence.js +350 -0
- package/src/runtime-policy-adapter.js +335 -5
- package/examples/adoption-quickstarts.js +0 -173
- package/examples/integration-patterns.js +0 -495
- package/examples/runtime-policy-adapter.js +0 -107
- package/examples/x402-discovery-evidence-lookup.js +0 -66
- package/examples/x402-reputation-evidence-lookup-client.js +0 -182
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "",
|
|
3
|
+
"metadata": {
|
|
4
|
+
"name": "reputation_v3",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"spec": "0.1.0",
|
|
7
|
+
"description": "SATP Reputation V3 — computes reputation from V3 reviews, CPI to V3 identity"
|
|
8
|
+
},
|
|
9
|
+
"instructions": [
|
|
10
|
+
{
|
|
11
|
+
"name": "recompute_reputation",
|
|
12
|
+
"discriminator": [
|
|
13
|
+
236,
|
|
14
|
+
193,
|
|
15
|
+
222,
|
|
16
|
+
116,
|
|
17
|
+
54,
|
|
18
|
+
55,
|
|
19
|
+
49,
|
|
20
|
+
217
|
|
21
|
+
],
|
|
22
|
+
"accounts": [
|
|
23
|
+
{
|
|
24
|
+
"name": "genesis",
|
|
25
|
+
"writable": true
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "reputation_authority"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "identity_program"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "caller",
|
|
35
|
+
"signer": true
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"args": []
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"types": [
|
|
42
|
+
{
|
|
43
|
+
"name": "reputation_v3::identity_v3::accounts::GenesisRecord",
|
|
44
|
+
"type": {
|
|
45
|
+
"kind": "struct",
|
|
46
|
+
"fields": [
|
|
47
|
+
{
|
|
48
|
+
"name": "agent_id_hash",
|
|
49
|
+
"type": {
|
|
50
|
+
"array": [
|
|
51
|
+
"u8",
|
|
52
|
+
32
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "agent_name",
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "description",
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "category",
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "capabilities",
|
|
70
|
+
"type": {
|
|
71
|
+
"vec": "string"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "metadata_uri",
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "face_image",
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "face_mint",
|
|
84
|
+
"type": "pubkey"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "face_burn_tx",
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "genesis_record",
|
|
92
|
+
"type": "i64"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "is_active",
|
|
96
|
+
"type": "bool"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "authority",
|
|
100
|
+
"type": "pubkey"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "pending_authority",
|
|
104
|
+
"type": {
|
|
105
|
+
"option": "pubkey"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "reputation_score",
|
|
110
|
+
"type": "u64"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "verification_level",
|
|
114
|
+
"type": "u8"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "reputation_updated_at",
|
|
118
|
+
"type": "i64"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "verification_updated_at",
|
|
122
|
+
"type": "i64"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "created_at",
|
|
126
|
+
"type": "i64"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "updated_at",
|
|
130
|
+
"type": "i64"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "bump",
|
|
134
|
+
"type": "u8"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
}
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "",
|
|
3
|
+
"metadata": {
|
|
4
|
+
"name": "reviews_v3",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"spec": "0.1.0",
|
|
7
|
+
"description": "SATP Reviews V3 — agent_id-based reviews with attestation CPI"
|
|
8
|
+
},
|
|
9
|
+
"instructions": [
|
|
10
|
+
{
|
|
11
|
+
"name": "create_review",
|
|
12
|
+
"docs": [
|
|
13
|
+
"Create a review for an agent (identified by agent_id, not wallet).",
|
|
14
|
+
"PDA: `[b\"review_v3\", SHA256(agent_id), reviewer]`"
|
|
15
|
+
],
|
|
16
|
+
"discriminator": [
|
|
17
|
+
69,
|
|
18
|
+
237,
|
|
19
|
+
87,
|
|
20
|
+
43,
|
|
21
|
+
238,
|
|
22
|
+
125,
|
|
23
|
+
40,
|
|
24
|
+
1
|
|
25
|
+
],
|
|
26
|
+
"accounts": [
|
|
27
|
+
{
|
|
28
|
+
"name": "review",
|
|
29
|
+
"writable": true
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "review_counter",
|
|
33
|
+
"writable": true
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "reviewer",
|
|
37
|
+
"writable": true,
|
|
38
|
+
"signer": true
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "identity_program",
|
|
42
|
+
"docs": [
|
|
43
|
+
"When provided (non-system_program), the instruction validates that the reviewer",
|
|
44
|
+
"is not the agent's authority via on-chain identity PDA deserialization."
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "identity_account",
|
|
49
|
+
"docs": [
|
|
50
|
+
"Pass any account when identity_program == system_program (check skipped).",
|
|
51
|
+
"Validated in instruction body when identity_program is provided."
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "system_program"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"args": [
|
|
59
|
+
{
|
|
60
|
+
"name": "agent_id",
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "rating",
|
|
65
|
+
"type": "u8"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "review_text",
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "metadata",
|
|
73
|
+
"type": "string"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "update_review",
|
|
79
|
+
"docs": [
|
|
80
|
+
"Update an existing review (reviewer only)."
|
|
81
|
+
],
|
|
82
|
+
"discriminator": [
|
|
83
|
+
254,
|
|
84
|
+
84,
|
|
85
|
+
60,
|
|
86
|
+
221,
|
|
87
|
+
68,
|
|
88
|
+
163,
|
|
89
|
+
94,
|
|
90
|
+
29
|
|
91
|
+
],
|
|
92
|
+
"accounts": [
|
|
93
|
+
{
|
|
94
|
+
"name": "review",
|
|
95
|
+
"writable": true
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "reviewer",
|
|
99
|
+
"signer": true
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"args": [
|
|
103
|
+
{
|
|
104
|
+
"name": "rating",
|
|
105
|
+
"type": {
|
|
106
|
+
"option": "u8"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "review_text",
|
|
111
|
+
"type": {
|
|
112
|
+
"option": "string"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "metadata",
|
|
117
|
+
"type": {
|
|
118
|
+
"option": "string"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "delete_review",
|
|
125
|
+
"docs": [
|
|
126
|
+
"Soft-delete a review (reviewer only)."
|
|
127
|
+
],
|
|
128
|
+
"discriminator": [
|
|
129
|
+
217,
|
|
130
|
+
101,
|
|
131
|
+
10,
|
|
132
|
+
71,
|
|
133
|
+
231,
|
|
134
|
+
220,
|
|
135
|
+
241,
|
|
136
|
+
202
|
|
137
|
+
],
|
|
138
|
+
"accounts": [
|
|
139
|
+
{
|
|
140
|
+
"name": "review",
|
|
141
|
+
"writable": true
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "reviewer",
|
|
145
|
+
"signer": true
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"args": []
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "init_review_counter",
|
|
152
|
+
"docs": [
|
|
153
|
+
"Initialize a review counter for an agent (by agent_id).",
|
|
154
|
+
"PDA: `[b\"review_counter_v3\", SHA256(agent_id)]`"
|
|
155
|
+
],
|
|
156
|
+
"discriminator": [
|
|
157
|
+
22,
|
|
158
|
+
101,
|
|
159
|
+
236,
|
|
160
|
+
30,
|
|
161
|
+
237,
|
|
162
|
+
207,
|
|
163
|
+
181,
|
|
164
|
+
36
|
|
165
|
+
],
|
|
166
|
+
"accounts": [
|
|
167
|
+
{
|
|
168
|
+
"name": "review_counter",
|
|
169
|
+
"writable": true
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "payer",
|
|
173
|
+
"writable": true,
|
|
174
|
+
"signer": true
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "system_program"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"args": [
|
|
181
|
+
{
|
|
182
|
+
"name": "agent_id",
|
|
183
|
+
"type": "string"
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"accounts": [
|
|
189
|
+
{
|
|
190
|
+
"name": "reviews_v3::Review",
|
|
191
|
+
"discriminator": [
|
|
192
|
+
124,
|
|
193
|
+
63,
|
|
194
|
+
203,
|
|
195
|
+
215,
|
|
196
|
+
226,
|
|
197
|
+
30,
|
|
198
|
+
222,
|
|
199
|
+
15
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "reviews_v3::ReviewCounter",
|
|
204
|
+
"discriminator": [
|
|
205
|
+
89,
|
|
206
|
+
31,
|
|
207
|
+
82,
|
|
208
|
+
96,
|
|
209
|
+
68,
|
|
210
|
+
42,
|
|
211
|
+
80,
|
|
212
|
+
60
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"types": [
|
|
217
|
+
{
|
|
218
|
+
"name": "reviews_v3::Review",
|
|
219
|
+
"type": {
|
|
220
|
+
"kind": "struct",
|
|
221
|
+
"fields": [
|
|
222
|
+
{
|
|
223
|
+
"name": "agent_id",
|
|
224
|
+
"type": "string"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "agent_id_hash",
|
|
228
|
+
"type": {
|
|
229
|
+
"array": [
|
|
230
|
+
"u8",
|
|
231
|
+
32
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "reviewer",
|
|
237
|
+
"type": "pubkey"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "rating",
|
|
241
|
+
"type": "u8"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "review_text",
|
|
245
|
+
"type": "string"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "metadata",
|
|
249
|
+
"type": "string"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"name": "created_at",
|
|
253
|
+
"type": "i64"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "updated_at",
|
|
257
|
+
"type": "i64"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "is_active",
|
|
261
|
+
"type": "bool"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"name": "bump",
|
|
265
|
+
"type": "u8"
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"name": "reviews_v3::ReviewCounter",
|
|
272
|
+
"type": {
|
|
273
|
+
"kind": "struct",
|
|
274
|
+
"fields": [
|
|
275
|
+
{
|
|
276
|
+
"name": "agent_id",
|
|
277
|
+
"type": "string"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"name": "agent_id_hash",
|
|
281
|
+
"type": {
|
|
282
|
+
"array": [
|
|
283
|
+
"u8",
|
|
284
|
+
32
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "count",
|
|
290
|
+
"type": "u64"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "bump",
|
|
294
|
+
"type": "u8"
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "",
|
|
3
|
+
"metadata": {
|
|
4
|
+
"name": "validation_v3",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"spec": "0.1.0",
|
|
7
|
+
"description": "SATP Validation V3 — verification level computation via CPI to Identity V3"
|
|
8
|
+
},
|
|
9
|
+
"instructions": [
|
|
10
|
+
{
|
|
11
|
+
"name": "recompute_level",
|
|
12
|
+
"docs": [
|
|
13
|
+
"Verification levels (0-5):",
|
|
14
|
+
"0 = Unverified, 1 = Basic (1+), 2 = Standard (3+),",
|
|
15
|
+
"3 = Enhanced (5+, 2+ types), 4 = Premium (10+, 3+ types),",
|
|
16
|
+
"5 = Maximum (20+, 5+ types)"
|
|
17
|
+
],
|
|
18
|
+
"discriminator": [
|
|
19
|
+
188,
|
|
20
|
+
71,
|
|
21
|
+
22,
|
|
22
|
+
212,
|
|
23
|
+
156,
|
|
24
|
+
164,
|
|
25
|
+
238,
|
|
26
|
+
88
|
|
27
|
+
],
|
|
28
|
+
"accounts": [
|
|
29
|
+
{
|
|
30
|
+
"name": "genesis",
|
|
31
|
+
"writable": true
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "validation_authority"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "identity_program"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "caller",
|
|
41
|
+
"signer": true
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"args": []
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"types": [
|
|
48
|
+
{
|
|
49
|
+
"name": "validation_v3::identity_v3::accounts::GenesisRecord",
|
|
50
|
+
"type": {
|
|
51
|
+
"kind": "struct",
|
|
52
|
+
"fields": [
|
|
53
|
+
{
|
|
54
|
+
"name": "agent_id_hash",
|
|
55
|
+
"type": {
|
|
56
|
+
"array": [
|
|
57
|
+
"u8",
|
|
58
|
+
32
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "agent_name",
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "description",
|
|
68
|
+
"type": "string"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "category",
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "capabilities",
|
|
76
|
+
"type": {
|
|
77
|
+
"vec": "string"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "metadata_uri",
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "face_image",
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "face_mint",
|
|
90
|
+
"type": "pubkey"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "face_burn_tx",
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "genesis_record",
|
|
98
|
+
"type": "i64"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "is_active",
|
|
102
|
+
"type": "bool"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "authority",
|
|
106
|
+
"type": "pubkey"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "pending_authority",
|
|
110
|
+
"type": {
|
|
111
|
+
"option": "pubkey"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "reputation_score",
|
|
116
|
+
"type": "u64"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "verification_level",
|
|
120
|
+
"type": "u8"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "reputation_updated_at",
|
|
124
|
+
"type": "i64"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "verification_updated_at",
|
|
128
|
+
"type": "i64"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "created_at",
|
|
132
|
+
"type": "i64"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "updated_at",
|
|
136
|
+
"type": "i64"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "bump",
|
|
140
|
+
"type": "u8"
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainai/satp-client",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "SATP client SDK
|
|
3
|
+
"version": "2.0.8",
|
|
4
|
+
"description": "SATP client SDK for reviewed Solana Agent Trust Protocol integrations.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -13,22 +13,30 @@
|
|
|
13
13
|
"types": "./src/index.d.ts",
|
|
14
14
|
"default": "./src/wallet-control-challenge.js"
|
|
15
15
|
},
|
|
16
|
+
"./runtime-authorization-evidence": {
|
|
17
|
+
"types": "./src/index.d.ts",
|
|
18
|
+
"default": "./src/runtime-authorization-evidence.js"
|
|
19
|
+
},
|
|
16
20
|
"./x402-discovery": {
|
|
17
21
|
"types": "./src/index.d.ts",
|
|
18
22
|
"default": "./src/x402-discovery.js"
|
|
19
23
|
},
|
|
20
24
|
"./src/*": "./src/*",
|
|
25
|
+
"./idls/*": "./idls/*",
|
|
21
26
|
"./package.json": "./package.json"
|
|
22
27
|
},
|
|
23
28
|
"files": [
|
|
24
29
|
"src/",
|
|
25
|
-
"
|
|
26
|
-
"README.md"
|
|
30
|
+
"idls/",
|
|
31
|
+
"README.md",
|
|
32
|
+
"LICENSE"
|
|
27
33
|
],
|
|
28
34
|
"scripts": {
|
|
35
|
+
"prepack": "npm ci --workspaces=false --ignore-scripts --no-audit --no-fund --silent && node scripts/materialize-v3-idls.js",
|
|
29
36
|
"check:package-health": "node ../../scripts/check-satp-client-package-health.js",
|
|
30
37
|
"test": "node test.js",
|
|
31
38
|
"test:runtime-policy": "node --test test-runtime-policy-adapter.js",
|
|
39
|
+
"test:runtime-authorization-evidence": "node --test test-runtime-authorization-evidence.js",
|
|
32
40
|
"runtime-policy:example": "node examples/runtime-policy-adapter.js",
|
|
33
41
|
"test:wallet-control": "node test-wallet-control-challenge.js",
|
|
34
42
|
"test:x402-discovery": "node test-x402-discovery.js",
|