@weftlabs/sdk 0.27.1 → 0.28.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/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 +135 -102
- package/dist/index.d.ts +135 -102
- package/dist/index.js +31 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -3
- 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/SearchEndpointCall.md +1 -1
- package/docs/SearchEndpointCallInputSchema.md +31 -0
- package/package.json +8 -8
|
@@ -8,7 +8,7 @@ The machine-readable call contract for this endpoint: the verb, the provider-dec
|
|
|
8
8
|
Name | Type
|
|
9
9
|
------------ | -------------
|
|
10
10
|
`method` | string
|
|
11
|
-
`inputSchema` |
|
|
11
|
+
`inputSchema` | [SearchEndpointCallInputSchema](SearchEndpointCallInputSchema.md)
|
|
12
12
|
`exampleRequest` | object
|
|
13
13
|
`exampleResponse` | any
|
|
14
14
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
# SearchEndpointCallInputSchema
|
|
3
|
+
|
|
4
|
+
The request JSON Schema, including boolean true/false schemas. Reviewed versioned contracts preserve the provider schema and apply separately authored client scope constraints in this projection. Null when no body schema is declared; query/path/header/cookie bindings remain in the full contract. Retrieve contract_url before constructing requests for versioned contracts.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { SearchEndpointCallInputSchema } from '@weftlabs/sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
} satisfies SearchEndpointCallInputSchema
|
|
19
|
+
|
|
20
|
+
console.log(example)
|
|
21
|
+
|
|
22
|
+
// Convert the instance to a JSON string
|
|
23
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
24
|
+
console.log(exampleJSON)
|
|
25
|
+
|
|
26
|
+
// Parse the JSON string back to an object
|
|
27
|
+
const exampleParsed = JSON.parse(exampleJSON) as SearchEndpointCallInputSchema
|
|
28
|
+
console.log(exampleParsed)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[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.
|
|
3
|
+
"version": "0.28.0",
|
|
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",
|
|
@@ -66,16 +66,16 @@
|
|
|
66
66
|
"@x402/core": "^2.24.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@types/node": "^26.
|
|
70
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
71
|
-
"@typescript-eslint/parser": "^8.
|
|
69
|
+
"@types/node": "^26.6.2",
|
|
70
|
+
"@typescript-eslint/eslint-plugin": "^8.70.1",
|
|
71
|
+
"@typescript-eslint/parser": "^8.70.1",
|
|
72
72
|
"@x402/core": "2.24.0",
|
|
73
|
-
"eslint": "^10.
|
|
73
|
+
"eslint": "^10.11.0",
|
|
74
74
|
"express": "^5.2.1",
|
|
75
|
-
"fast-check": "^4.
|
|
76
|
-
"hono": "^4.13.
|
|
75
|
+
"fast-check": "^4.10.2",
|
|
76
|
+
"hono": "^4.13.9",
|
|
77
77
|
"prettier": "3.9.6",
|
|
78
|
-
"tsup": "^8.
|
|
78
|
+
"tsup": "^8.5.1",
|
|
79
79
|
"typescript": "^6.0.3",
|
|
80
80
|
"vitest": "^4.1.11"
|
|
81
81
|
},
|