Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/client/src/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ export const endpointNames = {
"question.request.list": "listRequests",
} as const

export const omitEndpoints = new Set(["fs.read", "pty.connect", "pty.connectToken"])
export const omitEndpoints = new Set(["fs.read", "pty.connect", "pty.connectToken", "session.attachment"])
2 changes: 1 addition & 1 deletion packages/client/src/generated/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export function make(options: ClientOptions) {
path: `/api/session/${encodeURIComponent(input.sessionID)}/prompt`,
body: { id: input["id"], prompt: input["prompt"], delivery: input["delivery"], resume: input["resume"] },
successStatus: 200,
declaredStatuses: [409, 404, 400, 401],
declaredStatuses: [404, 409, 500, 400, 401],
empty: false,
},
requestOptions,
Expand Down
25 changes: 17 additions & 8 deletions packages/client/src/generated/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ export type SessionNotFoundError = {
export const isSessionNotFoundError = (value: unknown): value is SessionNotFoundError =>
typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "SessionNotFoundError"

export type AttachmentNotFoundError = {
readonly _tag: "AttachmentNotFoundError"
readonly sessionID: string
readonly attachmentID?: string | undefined
readonly message: string
}
export const isAttachmentNotFoundError = (value: unknown): value is AttachmentNotFoundError =>
typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "AttachmentNotFoundError"

export type ConflictError = {
readonly _tag: "ConflictError"
readonly message: string
Expand All @@ -41,6 +50,14 @@ export type ConflictError = {
export const isConflictError = (value: unknown): value is ConflictError =>
typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "ConflictError"

export type UnknownError = {
readonly _tag: "UnknownError"
readonly message: string
readonly ref?: string | undefined
}
export const isUnknownError = (value: unknown): value is UnknownError =>
typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "UnknownError"

export type ServiceUnavailableError = {
readonly _tag: "ServiceUnavailableError"
readonly message: string
Expand All @@ -58,14 +75,6 @@ export type MessageNotFoundError = {
export const isMessageNotFoundError = (value: unknown): value is MessageNotFoundError =>
typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "MessageNotFoundError"

export type UnknownError = {
readonly _tag: "UnknownError"
readonly message: string
readonly ref?: string | undefined
}
export const isUnknownError = (value: unknown): value is UnknownError =>
typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "UnknownError"

export type ProviderNotFoundError = {
readonly _tag: "ProviderNotFoundError"
readonly providerID: string
Expand Down
Loading
Loading