@inferencesh/sdk 0.36.0 → 0.36.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/CHANGELOG.md +5 -0
- package/dist/proxy/endpoints.json +75 -0
- package/dist/proxy/index.d.ts +4 -0
- package/dist/proxy/index.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.36.1] - 2026-10-28
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- `ProxyEndpoint.also` and `ProxyManifestEndpoint.also`: scopes a proxied call asks for in part of what it does (filing a chat in a project takes `projects:read`). A key without one is refused that part only. `src/proxy/endpoints.json` is regenerated from the API.
|
|
14
|
+
|
|
10
15
|
## [0.36.0] - 2026-10-28
|
|
11
16
|
|
|
12
17
|
### Added
|
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
"apps:execute",
|
|
11
11
|
"apps:read",
|
|
12
12
|
"conversations:read"
|
|
13
|
+
],
|
|
14
|
+
"also": [
|
|
15
|
+
"billing:read",
|
|
16
|
+
"conversations:write",
|
|
17
|
+
"credentials:read",
|
|
18
|
+
"secrets:reveal"
|
|
13
19
|
]
|
|
14
20
|
},
|
|
15
21
|
{
|
|
@@ -52,6 +58,9 @@
|
|
|
52
58
|
"purpose": "cancel a task",
|
|
53
59
|
"scopes": [
|
|
54
60
|
"apps:execute"
|
|
61
|
+
],
|
|
62
|
+
"also": [
|
|
63
|
+
"engines:write"
|
|
55
64
|
]
|
|
56
65
|
},
|
|
57
66
|
{
|
|
@@ -61,6 +70,22 @@
|
|
|
61
70
|
"scopes": [
|
|
62
71
|
"agents:execute",
|
|
63
72
|
"conversations:read"
|
|
73
|
+
],
|
|
74
|
+
"also": [
|
|
75
|
+
"agents:read",
|
|
76
|
+
"agents:write",
|
|
77
|
+
"apps:execute",
|
|
78
|
+
"apps:read",
|
|
79
|
+
"billing:read",
|
|
80
|
+
"conversations:read",
|
|
81
|
+
"conversations:write",
|
|
82
|
+
"credentials:read",
|
|
83
|
+
"files:read",
|
|
84
|
+
"knowledge:read",
|
|
85
|
+
"knowledge:write",
|
|
86
|
+
"projects:read",
|
|
87
|
+
"remotes:read",
|
|
88
|
+
"secrets:reveal"
|
|
64
89
|
]
|
|
65
90
|
},
|
|
66
91
|
{
|
|
@@ -69,6 +94,12 @@
|
|
|
69
94
|
"purpose": "start a chat with an agent",
|
|
70
95
|
"scopes": [
|
|
71
96
|
"conversations:write"
|
|
97
|
+
],
|
|
98
|
+
"also": [
|
|
99
|
+
"agents:read",
|
|
100
|
+
"apps:read",
|
|
101
|
+
"conversations:read",
|
|
102
|
+
"projects:read"
|
|
72
103
|
]
|
|
73
104
|
},
|
|
74
105
|
{
|
|
@@ -77,6 +108,22 @@
|
|
|
77
108
|
"purpose": "send a message in a chat",
|
|
78
109
|
"scopes": [
|
|
79
110
|
"agents:execute"
|
|
111
|
+
],
|
|
112
|
+
"also": [
|
|
113
|
+
"agents:read",
|
|
114
|
+
"agents:write",
|
|
115
|
+
"apps:execute",
|
|
116
|
+
"apps:read",
|
|
117
|
+
"billing:read",
|
|
118
|
+
"conversations:read",
|
|
119
|
+
"conversations:write",
|
|
120
|
+
"credentials:read",
|
|
121
|
+
"files:read",
|
|
122
|
+
"knowledge:read",
|
|
123
|
+
"knowledge:write",
|
|
124
|
+
"projects:read",
|
|
125
|
+
"remotes:read",
|
|
126
|
+
"secrets:reveal"
|
|
80
127
|
]
|
|
81
128
|
},
|
|
82
129
|
{
|
|
@@ -85,6 +132,11 @@
|
|
|
85
132
|
"purpose": "hand a chat to another agent",
|
|
86
133
|
"scopes": [
|
|
87
134
|
"conversations:write"
|
|
135
|
+
],
|
|
136
|
+
"also": [
|
|
137
|
+
"agents:read",
|
|
138
|
+
"apps:read",
|
|
139
|
+
"conversations:read"
|
|
88
140
|
]
|
|
89
141
|
},
|
|
90
142
|
{
|
|
@@ -93,6 +145,9 @@
|
|
|
93
145
|
"purpose": "read an agent's info",
|
|
94
146
|
"scopes": [
|
|
95
147
|
"agents:read"
|
|
148
|
+
],
|
|
149
|
+
"also": [
|
|
150
|
+
"apps:read"
|
|
96
151
|
]
|
|
97
152
|
},
|
|
98
153
|
{
|
|
@@ -133,6 +188,20 @@
|
|
|
133
188
|
"purpose": "stop a chat",
|
|
134
189
|
"scopes": [
|
|
135
190
|
"conversations:write"
|
|
191
|
+
],
|
|
192
|
+
"also": [
|
|
193
|
+
"agents:execute",
|
|
194
|
+
"agents:read",
|
|
195
|
+
"apps:execute",
|
|
196
|
+
"apps:read",
|
|
197
|
+
"billing:read",
|
|
198
|
+
"conversations:read",
|
|
199
|
+
"credentials:read",
|
|
200
|
+
"engines:write",
|
|
201
|
+
"knowledge:read",
|
|
202
|
+
"remotes:read",
|
|
203
|
+
"remotes:write",
|
|
204
|
+
"secrets:reveal"
|
|
136
205
|
]
|
|
137
206
|
},
|
|
138
207
|
{
|
|
@@ -141,6 +210,9 @@
|
|
|
141
210
|
"purpose": "cancel a message",
|
|
142
211
|
"scopes": [
|
|
143
212
|
"conversations:write"
|
|
213
|
+
],
|
|
214
|
+
"also": [
|
|
215
|
+
"conversations:read"
|
|
144
216
|
]
|
|
145
217
|
},
|
|
146
218
|
{
|
|
@@ -149,6 +221,9 @@
|
|
|
149
221
|
"purpose": "answer a client tool call",
|
|
150
222
|
"scopes": [
|
|
151
223
|
"conversations:write"
|
|
224
|
+
],
|
|
225
|
+
"also": [
|
|
226
|
+
"conversations:read"
|
|
152
227
|
]
|
|
153
228
|
}
|
|
154
229
|
]
|
package/dist/proxy/index.d.ts
CHANGED
|
@@ -160,6 +160,8 @@ export interface ProxyManifestEndpoint {
|
|
|
160
160
|
purpose: string;
|
|
161
161
|
/** Scopes the call takes: what the site's API key must hold (the manifest's preset grants them all). */
|
|
162
162
|
scopes: string[];
|
|
163
|
+
/** Scopes the call asks for in part of what it does (filing a chat in a project takes projects:read): a key without one is refused that part only. */
|
|
164
|
+
also?: string[];
|
|
163
165
|
}
|
|
164
166
|
export interface ProxyEndpoint {
|
|
165
167
|
method: "GET" | "POST";
|
|
@@ -171,6 +173,8 @@ export interface ProxyEndpoint {
|
|
|
171
173
|
purpose: string;
|
|
172
174
|
/** Scopes the call takes, from the manifest. */
|
|
173
175
|
scopes: readonly string[];
|
|
176
|
+
/** Scopes it asks for in part of what it does, from the manifest. */
|
|
177
|
+
also: readonly string[];
|
|
174
178
|
/** Set when the request names an app or agent: checked against allowedEndpoints. */
|
|
175
179
|
ref?: RefSource;
|
|
176
180
|
/** Set when only these body fields may be sent. */
|
package/dist/proxy/index.js
CHANGED