@opencode/protocol 2.2.0 → 2.2.2
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/client.d.ts +3 -0
- package/dist/client.js +4 -0
- package/dist/errors.d.ts +6 -0
- package/dist/errors.js +5 -0
- package/dist/groups/experimental.d.ts +467 -1
- package/dist/groups/experimental.js +2 -1
- package/dist/groups/model.d.ts +6 -26
- package/dist/groups/persistent-pty.js +11 -10
- package/dist/groups/schedule.d.ts +559 -0
- package/dist/groups/schedule.js +51 -0
- package/dist/groups/session.d.ts +51 -0
- package/dist/groups/session.js +1 -1
- package/package.json +3 -3
package/dist/client.d.ts
CHANGED
|
@@ -59,6 +59,9 @@ export declare const groupNames: {
|
|
|
59
59
|
readonly "server.vcs": "vcs";
|
|
60
60
|
readonly "server.config": "config";
|
|
61
61
|
};
|
|
62
|
+
export declare const clientNamespace: (endpoint: {
|
|
63
|
+
readonly path: string;
|
|
64
|
+
}) => "experimental" | undefined;
|
|
62
65
|
export declare const promiseOmitEndpoints: Set<string>;
|
|
63
66
|
export declare const effectOmitEndpoints: Set<string>;
|
|
64
67
|
export {};
|
package/dist/client.js
CHANGED
|
@@ -46,6 +46,10 @@ export const groupNames = {
|
|
|
46
46
|
"server.vcs": "vcs",
|
|
47
47
|
"server.config": "config",
|
|
48
48
|
};
|
|
49
|
+
// Experimental routes carry no compatibility promise, so the generated clients nest them under
|
|
50
|
+
// `client.experimental` instead of beside stable methods. The URL decides rather than the OpenAPI
|
|
51
|
+
// id, because the URL is what callers depend on and an id can miss its `experimental.` prefix.
|
|
52
|
+
export const clientNamespace = (endpoint) => endpoint.path === "/api/experimental" || endpoint.path.startsWith("/api/experimental/") ? "experimental" : undefined;
|
|
49
53
|
export const promiseOmitEndpoints = new Set([
|
|
50
54
|
"pty.connect",
|
|
51
55
|
"persistentPty.connect",
|
package/dist/errors.d.ts
CHANGED
|
@@ -222,4 +222,10 @@ declare const ProviderRequestError_base: Schema.Class<ProviderRequestError, Sche
|
|
|
222
222
|
/** The provider rejected or failed the request after the server sent it. */
|
|
223
223
|
export declare class ProviderRequestError extends ProviderRequestError_base {
|
|
224
224
|
}
|
|
225
|
+
declare const ScheduleNotFoundError_base: Schema.Class<ScheduleNotFoundError, Schema.TaggedStruct<"ScheduleNotFoundError", {
|
|
226
|
+
readonly scheduleID: Schema.String;
|
|
227
|
+
readonly message: Schema.String;
|
|
228
|
+
}>, import("effect/Cause").YieldableError>;
|
|
229
|
+
export declare class ScheduleNotFoundError extends ScheduleNotFoundError_base {
|
|
230
|
+
}
|
|
225
231
|
export {};
|
package/dist/errors.js
CHANGED
|
@@ -185,3 +185,8 @@ export class ProviderRequestError extends Schema.TaggedError()("ProviderRequestE
|
|
|
185
185
|
retryAfterMs: Schema.optional(Schema.Int),
|
|
186
186
|
}, { httpApiStatus: 502 }) {
|
|
187
187
|
}
|
|
188
|
+
export class ScheduleNotFoundError extends Schema.TaggedError()("ScheduleNotFoundError", {
|
|
189
|
+
scheduleID: Schema.String,
|
|
190
|
+
message: Schema.String,
|
|
191
|
+
}, { httpApiStatus: 404 }) {
|
|
192
|
+
}
|