@loopbacktools/protocol 0.0.0-stage → 0.4.1
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 +21 -0
- package/README.md +14 -2
- package/dist/openapi/openapi.1.json +1903 -0
- package/dist/src/briefing.d.ts +80 -0
- package/dist/src/briefing.js +219 -0
- package/dist/src/generated/document.gen.d.ts +3256 -0
- package/dist/src/generated/document.gen.js +25 -0
- package/dist/src/generated/requests.gen.d.ts +480 -0
- package/dist/src/generated/requests.gen.js +1 -0
- package/dist/src/generated/schemas.gen.d.ts +5 -0
- package/dist/src/generated/schemas.gen.js +6 -0
- package/dist/src/generated/schemas.r1.gen.d.ts +5433 -0
- package/dist/src/generated/schemas.r1.gen.js +58 -0
- package/dist/src/generated/vocabularies.gen.d.ts +11 -0
- package/dist/src/generated/vocabularies.gen.js +13 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +4 -0
- package/dist/src/schema.d.ts +9 -0
- package/dist/src/schema.js +8 -0
- package/dist/src/unknown.d.ts +94 -0
- package/dist/src/unknown.js +59 -0
- package/dist/src/versions.d.ts +11 -0
- package/dist/src/versions.js +11 -0
- package/openapi/openapi.1.json +1903 -0
- package/package.json +61 -3
- package/spec/main.tsp +660 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bison Labs Limited
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @loopbacktools/protocol
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The [Loopback](https://github.com/LoopBackTools/loopback) API contract. One TypeSpec definition
|
|
4
|
+
(`spec/main.tsp`) describes the REST operations an inbox uses, the frames the event socket sends,
|
|
5
|
+
and the inputs and results of the MCP tools. This package carries what is generated from it:
|
|
6
|
+
|
|
7
|
+
- `@loopbacktools/protocol`: framework-free TypeScript types for every shape, such as `Ask`, `Reply`
|
|
8
|
+
and `ServerEvent`.
|
|
9
|
+
- `@loopbacktools/protocol/openapi.json`: the OpenAPI 3.1 document, for clients in any language.
|
|
10
|
+
- `@loopbacktools/protocol/document`: the same document as a module, which the server serves.
|
|
11
|
+
|
|
12
|
+
To build a frontend, use [`@loopbacktools/sdk`](https://www.npmjs.com/package/@loopbacktools/sdk), which
|
|
13
|
+
is typed with these.
|
|
14
|
+
|
|
15
|
+
MIT licensed.
|