@stitchmux/client 0.0.0-stage → 0.96.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 +45 -2
- package/dist/chunk-wddwdvbj.js +714 -0
- package/dist/index.js +4070 -0
- package/dist/monitoring.js +279 -0
- package/native-stream.json +8 -0
- package/package.json +36 -4
- package/types/src/agent/claude/native/commandSchema.d.ts +14 -0
- package/types/src/agent/custom/config.d.ts +159 -0
- package/types/src/agent/custom/endpoint.d.ts +26 -0
- package/types/src/agent/transcript/messageSchema.d.ts +153 -0
- package/types/src/attachments/reference.d.ts +56 -0
- package/types/src/attachments/schema.d.ts +512 -0
- package/types/src/chat/communicationAuthorizationSchema.d.ts +77 -0
- package/types/src/chat/communicationReceiptSchema.d.ts +82 -0
- package/types/src/chat/feedSchema.d.ts +641 -0
- package/types/src/chat/holdKind.d.ts +26 -0
- package/types/src/chat/identity.d.ts +55 -0
- package/types/src/chat/identitySchema.d.ts +121 -0
- package/types/src/chat/letterRequestSchema.d.ts +35 -0
- package/types/src/chat/messageOperationSchema.d.ts +277 -0
- package/types/src/chat/messageSchema.d.ts +284 -0
- package/types/src/chat/originSchema.d.ts +67 -0
- package/types/src/chat/sentLetterSchema.d.ts +79 -0
- package/types/src/client.d.ts +16 -0
- package/types/src/config/claudeProfileSchema.d.ts +22 -0
- package/types/src/config/launchSchema.d.ts +136 -0
- package/types/src/config/location.d.ts +6 -0
- package/types/src/config/machineSchema.d.ts +320 -0
- package/types/src/config/modelSelectionFlags.d.ts +4 -0
- package/types/src/config/paths.d.ts +87 -0
- package/types/src/config/remoteTransport.d.ts +12 -0
- package/types/src/content/schema.d.ts +312 -0
- package/types/src/content/toolSchema.d.ts +36 -0
- package/types/src/context/corpusSearchSchema.d.ts +578 -0
- package/types/src/context/exactMessageSchema.d.ts +54 -0
- package/types/src/context/messageSenderSchema.d.ts +14 -0
- package/types/src/context/schema.d.ts +176 -0
- package/types/src/context/searchFrames.d.ts +225 -0
- package/types/src/context/searchRequestSchema.d.ts +47 -0
- package/types/src/context/transcriptJsonSchema.d.ts +210 -0
- package/types/src/control/schema/context.d.ts +188 -0
- package/types/src/control/schema/contract.d.ts +7142 -0
- package/types/src/control/schema/core.d.ts +722 -0
- package/types/src/control/schema/directory.d.ts +34 -0
- package/types/src/control/schema/eventsContract.d.ts +1423 -0
- package/types/src/control/schema/externalList.d.ts +96 -0
- package/types/src/control/schema/message.d.ts +280 -0
- package/types/src/control/schema/model.d.ts +128 -0
- package/types/src/control/schema/native.d.ts +664 -0
- package/types/src/control/schema/nativeStreamContract.d.ts +155 -0
- package/types/src/control/schema/performance.d.ts +85 -0
- package/types/src/control/schema/public.d.ts +48 -0
- package/types/src/control/schema/reading.d.ts +24 -0
- package/types/src/control/schema/refusals.d.ts +433 -0
- package/types/src/control/schema/runtimeOps.d.ts +724 -0
- package/types/src/control/schema/searchContract.d.ts +258 -0
- package/types/src/control/schema/selection.d.ts +124 -0
- package/types/src/control/schema/session.d.ts +272 -0
- package/types/src/control/schema/terminalPrompt.d.ts +102 -0
- package/types/src/control/transport/boundary.d.ts +7137 -0
- package/types/src/control/transport/client.d.ts +10838 -0
- package/types/src/control/transport/connection.d.ts +13 -0
- package/types/src/control/transport/socketPath.d.ts +3 -0
- package/types/src/control-client.d.ts +9 -0
- package/types/src/delegation/applicationSchema.d.ts +132 -0
- package/types/src/delegation/schema.d.ts +267 -0
- package/types/src/events/schema.d.ts +155 -0
- package/types/src/external/contentSchema.d.ts +145 -0
- package/types/src/external/messageSchema.d.ts +131 -0
- package/types/src/external/residentFrames.d.ts +130 -0
- package/types/src/external/residentSchema.d.ts +144 -0
- package/types/src/external/sessionSchema.d.ts +427 -0
- package/types/src/external/turnSchema.d.ts +55 -0
- package/types/src/fleet/fleetSchema.d.ts +937 -0
- package/types/src/inventory/listSchema.d.ts +442 -0
- package/types/src/monitoring/nativeFile.d.ts +7 -0
- package/types/src/monitoring/nativeRead.d.ts +14 -0
- package/types/src/monitoring/performanceSchema.d.ts +28 -0
- package/types/src/monitoring/schema.d.ts +410 -0
- package/types/src/monitoring/validate.d.ts +5 -0
- package/types/src/monitoring-reader.d.ts +4 -0
- package/types/src/policy/reference.d.ts +93 -0
- package/types/src/policy/runtimeProfile.d.ts +24 -0
- package/types/src/policy/schema.d.ts +177 -0
- package/types/src/runtime/capabilities.d.ts +124 -0
- package/types/src/runtime/modes.d.ts +47 -0
- package/types/src/runtime/permissionScope.d.ts +22 -0
- package/types/src/runtime/planLimitsSchema.d.ts +55 -0
- package/types/src/runtime/projectionSchema.d.ts +539 -0
- package/types/src/runtime/rewindSchema.d.ts +16 -0
- package/types/src/runtime/selectionSchema.d.ts +158 -0
- package/types/src/runtime/workloadContract.d.ts +55 -0
- package/types/src/session/boundary.d.ts +43 -0
- package/types/src/session/identitySchema.d.ts +353 -0
- package/types/src/session/schema.d.ts +341 -0
- package/types/src/session/sleep/schema.d.ts +283 -0
- package/types/src/steering/schema.d.ts +197 -0
- package/types/src/types.d.ts +48 -0
- package/types/src/usage/schema.d.ts +978 -0
- package/types/src/util/home.d.ts +9 -0
- package/types/src/util/preview.d.ts +13 -0
- package/types/src/util/version.d.ts +3 -0
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every refusal stitchmux answers with: one code, its HTTP status, whether repeating the call can
|
|
3
|
+
* succeed, and a default sentence a consumer can show. A throw site names the code through
|
|
4
|
+
* `refusals.errors.<CODE>()` and may say more in its own `message`; a consumer reads the same table
|
|
5
|
+
* from `stitchmux/control-client` instead of keeping a dictionary of our codes.
|
|
6
|
+
*
|
|
7
|
+
* One code has one status. Where a word meant two things — `UNAVAILABLE` for a runtime that is down
|
|
8
|
+
* (503) and for a request whose precondition does not hold (409) — the second became its own code.
|
|
9
|
+
*/
|
|
10
|
+
export declare const refusals: import("stitchkit").DefinedErrors<{
|
|
11
|
+
readonly APPLICATION_POLICY_UNAVAILABLE: {
|
|
12
|
+
readonly status: 409;
|
|
13
|
+
readonly retryable: false;
|
|
14
|
+
readonly message: "The application authority this session runs under is unavailable";
|
|
15
|
+
};
|
|
16
|
+
readonly ARCHIVED: {
|
|
17
|
+
readonly status: 409;
|
|
18
|
+
readonly retryable: false;
|
|
19
|
+
readonly message: "The session is archived";
|
|
20
|
+
};
|
|
21
|
+
readonly ATTACHMENT_UNAVAILABLE: {
|
|
22
|
+
readonly status: 409;
|
|
23
|
+
readonly retryable: false;
|
|
24
|
+
readonly message: "The attachment is unavailable";
|
|
25
|
+
};
|
|
26
|
+
readonly BUSY: {
|
|
27
|
+
readonly status: 429;
|
|
28
|
+
readonly retryable: true;
|
|
29
|
+
readonly message: "The daemon is at capacity; try again shortly";
|
|
30
|
+
};
|
|
31
|
+
readonly CANCELLED: {
|
|
32
|
+
readonly status: 499;
|
|
33
|
+
readonly retryable: true;
|
|
34
|
+
readonly message: "The operation was cancelled";
|
|
35
|
+
};
|
|
36
|
+
readonly CAPACITY: {
|
|
37
|
+
readonly status: 429;
|
|
38
|
+
readonly retryable: true;
|
|
39
|
+
readonly message: "Capacity is exhausted; try again shortly";
|
|
40
|
+
};
|
|
41
|
+
readonly CHAT_DISABLED: {
|
|
42
|
+
readonly status: 409;
|
|
43
|
+
readonly retryable: false;
|
|
44
|
+
readonly message: "Chat is disabled for this session";
|
|
45
|
+
};
|
|
46
|
+
readonly COLLABORATION_MODE_UNAVAILABLE: {
|
|
47
|
+
readonly status: 409;
|
|
48
|
+
readonly retryable: false;
|
|
49
|
+
readonly message: "The requested collaboration mode is unavailable";
|
|
50
|
+
};
|
|
51
|
+
readonly COMMUNICATION_AUTHORIZATION_REQUIRED: {
|
|
52
|
+
readonly status: 403;
|
|
53
|
+
readonly retryable: false;
|
|
54
|
+
readonly message: "This message needs a communication authorization";
|
|
55
|
+
};
|
|
56
|
+
readonly COMMUNICATION_AUTHORIZATION_UNVERIFIED: {
|
|
57
|
+
readonly status: 403;
|
|
58
|
+
readonly retryable: false;
|
|
59
|
+
readonly message: "The communication authorization could not be verified";
|
|
60
|
+
};
|
|
61
|
+
readonly CONFIG_CHANGED: {
|
|
62
|
+
readonly status: 503;
|
|
63
|
+
readonly retryable: true;
|
|
64
|
+
readonly message: "The machine configuration changed; retry the read";
|
|
65
|
+
};
|
|
66
|
+
readonly CONTEXT_BUSY: {
|
|
67
|
+
readonly status: 409;
|
|
68
|
+
readonly retryable: true;
|
|
69
|
+
readonly message: "Another context operation is running";
|
|
70
|
+
};
|
|
71
|
+
readonly CONTEXT_CAPACITY: {
|
|
72
|
+
readonly status: 409;
|
|
73
|
+
readonly retryable: false;
|
|
74
|
+
readonly message: "The context operation journal is full";
|
|
75
|
+
};
|
|
76
|
+
readonly CONTEXT_CONFLICT: {
|
|
77
|
+
readonly status: 409;
|
|
78
|
+
readonly retryable: false;
|
|
79
|
+
readonly message: "The context operation conflicts with another";
|
|
80
|
+
};
|
|
81
|
+
readonly CONTEXT_RPC_PENDING: {
|
|
82
|
+
readonly status: 409;
|
|
83
|
+
readonly retryable: true;
|
|
84
|
+
readonly message: "A context request to the provider is still pending";
|
|
85
|
+
};
|
|
86
|
+
readonly CONTEXT_UNAVAILABLE: {
|
|
87
|
+
readonly status: 503;
|
|
88
|
+
readonly retryable: true;
|
|
89
|
+
readonly message: "Context operations are unavailable";
|
|
90
|
+
};
|
|
91
|
+
readonly CORRUPT_STATE: {
|
|
92
|
+
readonly status: 503;
|
|
93
|
+
readonly retryable: true;
|
|
94
|
+
readonly message: "Stored state is unreadable";
|
|
95
|
+
};
|
|
96
|
+
readonly CREATE_CAPACITY: {
|
|
97
|
+
readonly status: 409;
|
|
98
|
+
readonly retryable: false;
|
|
99
|
+
readonly message: "No more sessions can be created now";
|
|
100
|
+
};
|
|
101
|
+
readonly CREATE_FAILED: {
|
|
102
|
+
readonly status: 409;
|
|
103
|
+
readonly retryable: false;
|
|
104
|
+
readonly message: "The session could not be created";
|
|
105
|
+
};
|
|
106
|
+
readonly CREATE_PENDING: {
|
|
107
|
+
readonly status: 503;
|
|
108
|
+
readonly retryable: true;
|
|
109
|
+
readonly message: "The session is still being created";
|
|
110
|
+
};
|
|
111
|
+
readonly CURSOR_MISMATCH: {
|
|
112
|
+
readonly status: 409;
|
|
113
|
+
readonly retryable: false;
|
|
114
|
+
readonly message: "The cursor belongs to another read";
|
|
115
|
+
};
|
|
116
|
+
readonly DELEGATION_REFUSED: {
|
|
117
|
+
readonly status: 409;
|
|
118
|
+
readonly retryable: false;
|
|
119
|
+
readonly message: "The delegation does not allow this";
|
|
120
|
+
};
|
|
121
|
+
readonly DIRECTORY_TOO_LARGE: {
|
|
122
|
+
readonly status: 413;
|
|
123
|
+
readonly retryable: false;
|
|
124
|
+
readonly message: "The directory has too many entries to list";
|
|
125
|
+
};
|
|
126
|
+
readonly FORBIDDEN: {
|
|
127
|
+
readonly status: 403;
|
|
128
|
+
readonly retryable: false;
|
|
129
|
+
readonly message: "This caller may not do that";
|
|
130
|
+
};
|
|
131
|
+
readonly FORK_BUSY: {
|
|
132
|
+
readonly status: 409;
|
|
133
|
+
readonly retryable: true;
|
|
134
|
+
readonly message: "A fork of this session is in progress";
|
|
135
|
+
};
|
|
136
|
+
readonly FORK_PENDING: {
|
|
137
|
+
readonly status: 503;
|
|
138
|
+
readonly retryable: true;
|
|
139
|
+
readonly message: "The fork has not settled yet";
|
|
140
|
+
};
|
|
141
|
+
readonly FORK_UNAVAILABLE: {
|
|
142
|
+
readonly status: 409;
|
|
143
|
+
readonly retryable: false;
|
|
144
|
+
readonly message: "This session cannot be forked";
|
|
145
|
+
};
|
|
146
|
+
readonly FORK_UNCERTAIN: {
|
|
147
|
+
readonly status: 409;
|
|
148
|
+
readonly retryable: false;
|
|
149
|
+
readonly message: "Whether the fork happened is unknown";
|
|
150
|
+
};
|
|
151
|
+
readonly HISTORY_CURSOR: {
|
|
152
|
+
readonly status: 409;
|
|
153
|
+
readonly retryable: false;
|
|
154
|
+
readonly message: "The history cursor is no longer valid";
|
|
155
|
+
};
|
|
156
|
+
readonly HISTORY_UNAVAILABLE: {
|
|
157
|
+
readonly status: 503;
|
|
158
|
+
readonly retryable: true;
|
|
159
|
+
readonly message: "The conversation history is unavailable";
|
|
160
|
+
};
|
|
161
|
+
readonly IDEMPOTENCY_CONFLICT: {
|
|
162
|
+
readonly status: 409;
|
|
163
|
+
readonly retryable: false;
|
|
164
|
+
readonly message: "The same operation ID was used with a different request";
|
|
165
|
+
};
|
|
166
|
+
readonly IDENTITY_MISMATCH: {
|
|
167
|
+
readonly status: 409;
|
|
168
|
+
readonly retryable: false;
|
|
169
|
+
readonly message: "The exact session identity does not match";
|
|
170
|
+
};
|
|
171
|
+
readonly INVALID_CURSOR: {
|
|
172
|
+
readonly status: 400;
|
|
173
|
+
readonly retryable: false;
|
|
174
|
+
readonly message: "The cursor is invalid";
|
|
175
|
+
};
|
|
176
|
+
readonly INVALID_INPUT: {
|
|
177
|
+
readonly status: 400;
|
|
178
|
+
readonly retryable: false;
|
|
179
|
+
readonly message: "The input is invalid";
|
|
180
|
+
};
|
|
181
|
+
readonly INVALID_OPTION: {
|
|
182
|
+
readonly status: 400;
|
|
183
|
+
readonly retryable: false;
|
|
184
|
+
readonly message: "The option is invalid";
|
|
185
|
+
};
|
|
186
|
+
readonly INVALID_RECIPE_CREATE: {
|
|
187
|
+
readonly status: 409;
|
|
188
|
+
readonly retryable: false;
|
|
189
|
+
readonly message: "The launch recipe cannot create this session";
|
|
190
|
+
};
|
|
191
|
+
readonly INVALID_TARGET: {
|
|
192
|
+
readonly status: 400;
|
|
193
|
+
readonly retryable: false;
|
|
194
|
+
readonly message: "The target is invalid";
|
|
195
|
+
};
|
|
196
|
+
readonly INVALID_WORKSPACE: {
|
|
197
|
+
readonly status: 400;
|
|
198
|
+
readonly retryable: false;
|
|
199
|
+
readonly message: "The workspace is invalid";
|
|
200
|
+
};
|
|
201
|
+
readonly JOURNAL_CAPACITY: {
|
|
202
|
+
readonly status: 409;
|
|
203
|
+
readonly retryable: false;
|
|
204
|
+
readonly message: "The selection journal is full";
|
|
205
|
+
};
|
|
206
|
+
readonly LAGGED: {
|
|
207
|
+
readonly status: 409;
|
|
208
|
+
readonly retryable: false;
|
|
209
|
+
readonly message: "The reader fell behind the feed; resume from its last cursor";
|
|
210
|
+
};
|
|
211
|
+
readonly LAUNCH_RECIPE_UNAVAILABLE: {
|
|
212
|
+
readonly status: 409;
|
|
213
|
+
readonly retryable: false;
|
|
214
|
+
readonly message: "The launch recipe is unavailable";
|
|
215
|
+
};
|
|
216
|
+
readonly LETTER_REFUSED: {
|
|
217
|
+
readonly status: 409;
|
|
218
|
+
readonly retryable: false;
|
|
219
|
+
readonly message: "The letter was refused";
|
|
220
|
+
};
|
|
221
|
+
readonly MESSAGE_EVIDENCE_UNAVAILABLE: {
|
|
222
|
+
readonly status: 503;
|
|
223
|
+
readonly retryable: true;
|
|
224
|
+
readonly message: "The message evidence is unavailable";
|
|
225
|
+
};
|
|
226
|
+
readonly MENU_OPEN: {
|
|
227
|
+
readonly status: 409;
|
|
228
|
+
readonly retryable: false;
|
|
229
|
+
readonly message: "The session is at a selection menu";
|
|
230
|
+
};
|
|
231
|
+
readonly MIN_AWAKE_PER_PROFILE: {
|
|
232
|
+
readonly status: 409;
|
|
233
|
+
readonly retryable: false;
|
|
234
|
+
readonly message: "The profile must keep its minimum number of awake sessions";
|
|
235
|
+
};
|
|
236
|
+
readonly MODEL_UNAVAILABLE: {
|
|
237
|
+
readonly status: 409;
|
|
238
|
+
readonly retryable: false;
|
|
239
|
+
readonly message: "The model is not in this host’s catalog";
|
|
240
|
+
};
|
|
241
|
+
readonly NO_INFERENCE_CREATE_REQUIREMENTS: {
|
|
242
|
+
readonly status: 409;
|
|
243
|
+
readonly retryable: false;
|
|
244
|
+
readonly message: "A create without inference needs an explicit model and runtime";
|
|
245
|
+
};
|
|
246
|
+
readonly NO_INFERENCE_CREATE_UNSUPPORTED: {
|
|
247
|
+
readonly status: 409;
|
|
248
|
+
readonly retryable: false;
|
|
249
|
+
readonly message: "This runtime cannot guarantee a create without inference";
|
|
250
|
+
};
|
|
251
|
+
readonly NOT_A_DIRECTORY: {
|
|
252
|
+
readonly status: 400;
|
|
253
|
+
readonly retryable: false;
|
|
254
|
+
readonly message: "The path is not a directory";
|
|
255
|
+
};
|
|
256
|
+
readonly NOT_FOUND: {
|
|
257
|
+
readonly status: 404;
|
|
258
|
+
readonly retryable: false;
|
|
259
|
+
readonly message: "No such session or item";
|
|
260
|
+
};
|
|
261
|
+
readonly NOT_IDLE: {
|
|
262
|
+
readonly status: 409;
|
|
263
|
+
readonly retryable: false;
|
|
264
|
+
readonly message: "The session is busy";
|
|
265
|
+
};
|
|
266
|
+
readonly NOT_RUNNING: {
|
|
267
|
+
readonly status: 409;
|
|
268
|
+
readonly retryable: false;
|
|
269
|
+
readonly message: "The session is not running";
|
|
270
|
+
};
|
|
271
|
+
readonly NOT_SLEEPING: {
|
|
272
|
+
readonly status: 409;
|
|
273
|
+
readonly retryable: false;
|
|
274
|
+
readonly message: "The session is not sleeping";
|
|
275
|
+
};
|
|
276
|
+
readonly ORIGIN_REFUSED: {
|
|
277
|
+
readonly status: 403;
|
|
278
|
+
readonly retryable: false;
|
|
279
|
+
readonly message: "The request origin is not allowed here";
|
|
280
|
+
};
|
|
281
|
+
readonly PERMISSION_DENIED: {
|
|
282
|
+
readonly status: 403;
|
|
283
|
+
readonly retryable: false;
|
|
284
|
+
readonly message: "Permission denied";
|
|
285
|
+
};
|
|
286
|
+
readonly PERMISSION_MODE_UNAVAILABLE: {
|
|
287
|
+
readonly status: 409;
|
|
288
|
+
readonly retryable: false;
|
|
289
|
+
readonly message: "The permission mode is unavailable";
|
|
290
|
+
};
|
|
291
|
+
readonly PINNED_SESSION: {
|
|
292
|
+
readonly status: 409;
|
|
293
|
+
readonly retryable: false;
|
|
294
|
+
readonly message: "The session is pinned awake";
|
|
295
|
+
};
|
|
296
|
+
readonly PRECONDITION_FAILED: {
|
|
297
|
+
readonly status: 409;
|
|
298
|
+
readonly retryable: false;
|
|
299
|
+
readonly message: "The request cannot run in the session’s or host’s current state";
|
|
300
|
+
};
|
|
301
|
+
readonly PROFILE_UNAVAILABLE: {
|
|
302
|
+
readonly status: 409;
|
|
303
|
+
readonly retryable: false;
|
|
304
|
+
readonly message: "The account profile is unavailable";
|
|
305
|
+
};
|
|
306
|
+
readonly PROMPT_UNCONFIRMED: {
|
|
307
|
+
readonly status: 409;
|
|
308
|
+
readonly retryable: false;
|
|
309
|
+
readonly message: "The prompt was not confirmed by the session";
|
|
310
|
+
};
|
|
311
|
+
readonly REGISTRATION_UNAVAILABLE: {
|
|
312
|
+
readonly status: 409;
|
|
313
|
+
readonly retryable: false;
|
|
314
|
+
readonly message: "The session has no registration generation";
|
|
315
|
+
};
|
|
316
|
+
readonly RESOURCE_EXHAUSTED: {
|
|
317
|
+
readonly status: 429;
|
|
318
|
+
readonly retryable: true;
|
|
319
|
+
readonly message: "A bounded resource is exhausted; try again";
|
|
320
|
+
};
|
|
321
|
+
readonly REVISION_CONFLICT: {
|
|
322
|
+
readonly status: 409;
|
|
323
|
+
readonly retryable: false;
|
|
324
|
+
readonly message: "The state changed since it was read";
|
|
325
|
+
};
|
|
326
|
+
readonly ROLLBACK_UNSUPPORTED: {
|
|
327
|
+
readonly status: 409;
|
|
328
|
+
readonly retryable: false;
|
|
329
|
+
readonly message: "This session cannot roll back";
|
|
330
|
+
};
|
|
331
|
+
readonly SELECTION_UNAVAILABLE: {
|
|
332
|
+
readonly status: 409;
|
|
333
|
+
readonly retryable: false;
|
|
334
|
+
readonly message: "The model selection is unavailable";
|
|
335
|
+
};
|
|
336
|
+
readonly SESSION_BLOCKED: {
|
|
337
|
+
readonly status: 409;
|
|
338
|
+
readonly retryable: false;
|
|
339
|
+
readonly message: "The session is blocked until it is repaired";
|
|
340
|
+
};
|
|
341
|
+
readonly SESSION_SLEEPING: {
|
|
342
|
+
readonly status: 409;
|
|
343
|
+
readonly retryable: false;
|
|
344
|
+
readonly message: "The session is sleeping; wake it first";
|
|
345
|
+
};
|
|
346
|
+
readonly SLEEP_PENDING: {
|
|
347
|
+
readonly status: 409;
|
|
348
|
+
readonly retryable: true;
|
|
349
|
+
readonly message: "A sleep operation is pending";
|
|
350
|
+
};
|
|
351
|
+
readonly SLEEP_SUPERSEDED: {
|
|
352
|
+
readonly status: 409;
|
|
353
|
+
readonly retryable: false;
|
|
354
|
+
readonly message: "The sleep was followed by another lifecycle operation";
|
|
355
|
+
};
|
|
356
|
+
readonly STALE_CURSOR: {
|
|
357
|
+
readonly status: 409;
|
|
358
|
+
readonly retryable: false;
|
|
359
|
+
readonly message: "The cursor needs a fresh baseline";
|
|
360
|
+
};
|
|
361
|
+
readonly STEERING_UNAVAILABLE: {
|
|
362
|
+
readonly status: 503;
|
|
363
|
+
readonly retryable: true;
|
|
364
|
+
readonly message: "Steering the running turn is unavailable";
|
|
365
|
+
};
|
|
366
|
+
readonly STALE_PROMPT: {
|
|
367
|
+
readonly status: 409;
|
|
368
|
+
readonly retryable: false;
|
|
369
|
+
readonly message: "The prompt is no longer the current one";
|
|
370
|
+
};
|
|
371
|
+
readonly STALE_REQUEST: {
|
|
372
|
+
readonly status: 409;
|
|
373
|
+
readonly retryable: false;
|
|
374
|
+
readonly message: "The request refers to a state that has moved on";
|
|
375
|
+
};
|
|
376
|
+
readonly SYMLINK_REFUSED: {
|
|
377
|
+
readonly status: 409;
|
|
378
|
+
readonly retryable: false;
|
|
379
|
+
readonly message: "Symbolic links are refused here";
|
|
380
|
+
};
|
|
381
|
+
readonly TIMEOUT: {
|
|
382
|
+
readonly status: 504;
|
|
383
|
+
readonly retryable: true;
|
|
384
|
+
readonly message: "The operation did not finish in time";
|
|
385
|
+
};
|
|
386
|
+
readonly TOO_LARGE: {
|
|
387
|
+
readonly status: 413;
|
|
388
|
+
readonly retryable: false;
|
|
389
|
+
readonly message: "The content exceeds its byte budget";
|
|
390
|
+
};
|
|
391
|
+
readonly TURN_MISMATCH: {
|
|
392
|
+
readonly status: 409;
|
|
393
|
+
readonly retryable: false;
|
|
394
|
+
readonly message: "The turn is not the current one";
|
|
395
|
+
};
|
|
396
|
+
readonly UNAUTHORIZED: {
|
|
397
|
+
readonly status: 401;
|
|
398
|
+
readonly retryable: false;
|
|
399
|
+
readonly message: "The caller is not authenticated";
|
|
400
|
+
};
|
|
401
|
+
readonly UNAVAILABLE: {
|
|
402
|
+
readonly status: 503;
|
|
403
|
+
readonly retryable: true;
|
|
404
|
+
readonly message: "The runtime or service is unavailable";
|
|
405
|
+
};
|
|
406
|
+
readonly UNSUPPORTED: {
|
|
407
|
+
readonly status: 409;
|
|
408
|
+
readonly retryable: false;
|
|
409
|
+
readonly message: "This session or runtime does not support that";
|
|
410
|
+
};
|
|
411
|
+
readonly VALIDATION_ERROR: {
|
|
412
|
+
readonly status: 400;
|
|
413
|
+
readonly retryable: false;
|
|
414
|
+
readonly message: "The request failed validation";
|
|
415
|
+
};
|
|
416
|
+
readonly WAKE_CAPACITY: {
|
|
417
|
+
readonly status: 409;
|
|
418
|
+
readonly retryable: false;
|
|
419
|
+
readonly message: "The wake journal is full";
|
|
420
|
+
};
|
|
421
|
+
readonly WAKE_FAILED: {
|
|
422
|
+
readonly status: 409;
|
|
423
|
+
readonly retryable: false;
|
|
424
|
+
readonly message: "The session could not be woken";
|
|
425
|
+
};
|
|
426
|
+
readonly WAKE_PENDING: {
|
|
427
|
+
readonly status: 409;
|
|
428
|
+
readonly retryable: true;
|
|
429
|
+
readonly message: "A wake is pending";
|
|
430
|
+
};
|
|
431
|
+
}, undefined>;
|
|
432
|
+
/** A code from the refusal table. */
|
|
433
|
+
export type RefusalCode = keyof typeof refusals.codes;
|