@weftlabs/sdk 0.26.7 → 0.26.9
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/README.md +3 -1
- package/dist/facilitator/middleware/index.js +1 -1
- package/dist/facilitator/middleware/index.js.map +1 -1
- package/dist/facilitator/middleware/index.mjs +1 -1
- package/dist/facilitator/middleware/index.mjs.map +1 -1
- package/dist/index.d.mts +162 -95
- package/dist/index.d.ts +162 -95
- package/dist/index.js +47 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +47 -0
- package/dist/index.mjs.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +1 -1
- package/dist/server.mjs.map +1 -1
- package/docs/SearchEndpointHit.md +4 -0
- package/docs/SearchHelperDocs.md +39 -0
- package/package.json +3 -2
|
@@ -16,6 +16,8 @@ Name | Type
|
|
|
16
16
|
`accessMethods` | [Array<SearchAccessMethod>](SearchAccessMethod.md)
|
|
17
17
|
`service` | [SearchCuratedService](SearchCuratedService.md)
|
|
18
18
|
`operation` | [SearchCuratedOperation](SearchCuratedOperation.md)
|
|
19
|
+
`docs` | [SearchHelperDocs](SearchHelperDocs.md)
|
|
20
|
+
`contractUrl` | string
|
|
19
21
|
`outputSchema` | object
|
|
20
22
|
`output` | object
|
|
21
23
|
`execution` | [SearchCuratedExecution](SearchCuratedExecution.md)
|
|
@@ -46,6 +48,8 @@ const example = {
|
|
|
46
48
|
"accessMethods": null,
|
|
47
49
|
"service": null,
|
|
48
50
|
"operation": null,
|
|
51
|
+
"docs": null,
|
|
52
|
+
"contractUrl": null,
|
|
49
53
|
"outputSchema": null,
|
|
50
54
|
"output": null,
|
|
51
55
|
"execution": null,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
# SearchHelperDocs
|
|
3
|
+
|
|
4
|
+
Free helper links for the upstream provider. GET these URLs. Do not send them through `weft_fetch`.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`website` | string
|
|
11
|
+
`homepage` | string
|
|
12
|
+
`api` | string
|
|
13
|
+
`llmsTxt` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { SearchHelperDocs } from '@weftlabs/sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"website": null,
|
|
23
|
+
"homepage": null,
|
|
24
|
+
"api": null,
|
|
25
|
+
"llmsTxt": null,
|
|
26
|
+
} satisfies SearchHelperDocs
|
|
27
|
+
|
|
28
|
+
console.log(example)
|
|
29
|
+
|
|
30
|
+
// Convert the instance to a JSON string
|
|
31
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
32
|
+
console.log(exampleJSON)
|
|
33
|
+
|
|
34
|
+
// Parse the JSON string back to an object
|
|
35
|
+
const exampleParsed = JSON.parse(exampleJSON) as SearchHelperDocs
|
|
36
|
+
console.log(exampleParsed)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weftlabs/sdk",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.9",
|
|
4
4
|
"description": "Unified Weft SDK for the Weft API and x402 Facilitator",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
],
|
|
58
58
|
"author": "Weft Labs",
|
|
59
59
|
"license": "Apache-2.0",
|
|
60
|
+
"homepage": "https://weftlabs.com",
|
|
60
61
|
"repository": {
|
|
61
62
|
"type": "git",
|
|
62
63
|
"url": "https://github.com/weftlabs/weft-sdk"
|
|
@@ -76,7 +77,7 @@
|
|
|
76
77
|
"prettier": "3.9.6",
|
|
77
78
|
"tsup": "^8.4.0",
|
|
78
79
|
"typescript": "^6.0.3",
|
|
79
|
-
"vitest": "^4.1.
|
|
80
|
+
"vitest": "^4.1.11"
|
|
80
81
|
},
|
|
81
82
|
"files": [
|
|
82
83
|
"dist",
|