chore: sync native provider core stack
This commit is contained in:
commit
5e12dbdbfb
446 changed files with 22760 additions and 7855 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://json.schemastore.org/package.json",
|
||||
"name": "@opencode-ai/sdk",
|
||||
"version": "1.17.9",
|
||||
"version": "1.17.11",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -128,6 +128,7 @@ import type {
|
|||
PermissionRespondResponses,
|
||||
PermissionRuleset,
|
||||
PermissionV2Reply,
|
||||
PermissionV2Source,
|
||||
ProjectCurrentErrors,
|
||||
ProjectCurrentResponses,
|
||||
ProjectDirectoriesErrors,
|
||||
|
|
@ -341,6 +342,10 @@ import type {
|
|||
V2SessionListResponses,
|
||||
V2SessionMessagesErrors,
|
||||
V2SessionMessagesResponses,
|
||||
V2SessionPermissionCreateErrors,
|
||||
V2SessionPermissionCreateResponses,
|
||||
V2SessionPermissionGetErrors,
|
||||
V2SessionPermissionGetResponses,
|
||||
V2SessionPermissionListErrors,
|
||||
V2SessionPermissionListResponses,
|
||||
V2SessionPermissionReplyErrors,
|
||||
|
|
@ -353,6 +358,12 @@ import type {
|
|||
V2SessionQuestionRejectResponses,
|
||||
V2SessionQuestionReplyErrors,
|
||||
V2SessionQuestionReplyResponses,
|
||||
V2SessionRevertClearErrors,
|
||||
V2SessionRevertClearResponses,
|
||||
V2SessionRevertCommitErrors,
|
||||
V2SessionRevertCommitResponses,
|
||||
V2SessionRevertStageErrors,
|
||||
V2SessionRevertStageResponses,
|
||||
V2SessionSwitchAgentErrors,
|
||||
V2SessionSwitchAgentResponses,
|
||||
V2SessionSwitchModelErrors,
|
||||
|
|
@ -5068,6 +5079,91 @@ export class Agent extends HeyApiClient {
|
|||
}
|
||||
}
|
||||
|
||||
export class Revert extends HeyApiClient {
|
||||
/**
|
||||
* Stage session revert
|
||||
*
|
||||
* Stage or move a reversible session boundary and optionally apply its file changes.
|
||||
*/
|
||||
public stage<ThrowOnError extends boolean = false>(
|
||||
parameters: {
|
||||
sessionID: string
|
||||
messageID?: string
|
||||
files?: boolean
|
||||
},
|
||||
options?: Options<never, ThrowOnError>,
|
||||
) {
|
||||
const params = buildClientParams(
|
||||
[parameters],
|
||||
[
|
||||
{
|
||||
args: [
|
||||
{ in: "path", key: "sessionID" },
|
||||
{ in: "body", key: "messageID" },
|
||||
{ in: "body", key: "files" },
|
||||
],
|
||||
},
|
||||
],
|
||||
)
|
||||
return (options?.client ?? this.client).post<
|
||||
V2SessionRevertStageResponses,
|
||||
V2SessionRevertStageErrors,
|
||||
ThrowOnError
|
||||
>({
|
||||
url: "/api/session/{sessionID}/revert/stage",
|
||||
...options,
|
||||
...params,
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
...options?.headers,
|
||||
...params.headers,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear staged revert
|
||||
*/
|
||||
public clear<ThrowOnError extends boolean = false>(
|
||||
parameters: {
|
||||
sessionID: string
|
||||
},
|
||||
options?: Options<never, ThrowOnError>,
|
||||
) {
|
||||
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }])
|
||||
return (options?.client ?? this.client).post<
|
||||
V2SessionRevertClearResponses,
|
||||
V2SessionRevertClearErrors,
|
||||
ThrowOnError
|
||||
>({
|
||||
url: "/api/session/{sessionID}/revert/clear",
|
||||
...options,
|
||||
...params,
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Commit staged revert
|
||||
*/
|
||||
public commit<ThrowOnError extends boolean = false>(
|
||||
parameters: {
|
||||
sessionID: string
|
||||
},
|
||||
options?: Options<never, ThrowOnError>,
|
||||
) {
|
||||
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }])
|
||||
return (options?.client ?? this.client).post<
|
||||
V2SessionRevertCommitResponses,
|
||||
V2SessionRevertCommitErrors,
|
||||
ThrowOnError
|
||||
>({
|
||||
url: "/api/session/{sessionID}/revert/commit",
|
||||
...options,
|
||||
...params,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export class Permission2 extends HeyApiClient {
|
||||
/**
|
||||
* List session permission requests
|
||||
|
|
@ -5092,6 +5188,93 @@ export class Permission2 extends HeyApiClient {
|
|||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Create permission request
|
||||
*
|
||||
* Evaluate and, when approval is required, create a permission request for a session.
|
||||
*/
|
||||
public create<ThrowOnError extends boolean = false>(
|
||||
parameters: {
|
||||
sessionID: string
|
||||
id?: string
|
||||
action?: string
|
||||
resources?: Array<string>
|
||||
save?: Array<string>
|
||||
metadata?: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
source?: PermissionV2Source
|
||||
agent?: string
|
||||
},
|
||||
options?: Options<never, ThrowOnError>,
|
||||
) {
|
||||
const params = buildClientParams(
|
||||
[parameters],
|
||||
[
|
||||
{
|
||||
args: [
|
||||
{ in: "path", key: "sessionID" },
|
||||
{ in: "body", key: "id" },
|
||||
{ in: "body", key: "action" },
|
||||
{ in: "body", key: "resources" },
|
||||
{ in: "body", key: "save" },
|
||||
{ in: "body", key: "metadata" },
|
||||
{ in: "body", key: "source" },
|
||||
{ in: "body", key: "agent" },
|
||||
],
|
||||
},
|
||||
],
|
||||
)
|
||||
return (options?.client ?? this.client).post<
|
||||
V2SessionPermissionCreateResponses,
|
||||
V2SessionPermissionCreateErrors,
|
||||
ThrowOnError
|
||||
>({
|
||||
url: "/api/session/{sessionID}/permission",
|
||||
...options,
|
||||
...params,
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
...options?.headers,
|
||||
...params.headers,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Get permission request
|
||||
*
|
||||
* Retrieve a pending permission request owned by a session.
|
||||
*/
|
||||
public get<ThrowOnError extends boolean = false>(
|
||||
parameters: {
|
||||
sessionID: string
|
||||
requestID: string
|
||||
},
|
||||
options?: Options<never, ThrowOnError>,
|
||||
) {
|
||||
const params = buildClientParams(
|
||||
[parameters],
|
||||
[
|
||||
{
|
||||
args: [
|
||||
{ in: "path", key: "sessionID" },
|
||||
{ in: "path", key: "requestID" },
|
||||
],
|
||||
},
|
||||
],
|
||||
)
|
||||
return (options?.client ?? this.client).get<
|
||||
V2SessionPermissionGetResponses,
|
||||
V2SessionPermissionGetErrors,
|
||||
ThrowOnError
|
||||
>({
|
||||
url: "/api/session/{sessionID}/permission/{requestID}",
|
||||
...options,
|
||||
...params,
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Reply to pending permission request
|
||||
*
|
||||
|
|
@ -5555,6 +5738,11 @@ export class Session3 extends HeyApiClient {
|
|||
})
|
||||
}
|
||||
|
||||
private _revert?: Revert
|
||||
get revert(): Revert {
|
||||
return (this._revert ??= new Revert({ client: this.client }))
|
||||
}
|
||||
|
||||
private _permission?: Permission2
|
||||
get permission(): Permission2 {
|
||||
return (this._permission ??= new Permission2({ client: this.client }))
|
||||
|
|
|
|||
|
|
@ -45,6 +45,9 @@ export type Event =
|
|||
| EventSessionNextCompactionStarted
|
||||
| EventSessionNextCompactionDelta
|
||||
| EventSessionNextCompactionEnded
|
||||
| EventSessionNextRevertStaged
|
||||
| EventSessionNextRevertCleared
|
||||
| EventSessionNextRevertCommitted
|
||||
| EventMessagePartDelta
|
||||
| EventSessionDiff
|
||||
| EventSessionError
|
||||
|
|
@ -947,6 +950,7 @@ export type GlobalEvent = {
|
|||
}
|
||||
}
|
||||
snapshot?: string
|
||||
files?: Array<string>
|
||||
}
|
||||
}
|
||||
| {
|
||||
|
|
@ -1188,6 +1192,38 @@ export type GlobalEvent = {
|
|||
recent: string
|
||||
}
|
||||
}
|
||||
| {
|
||||
id: string
|
||||
type: "session.next.revert.staged"
|
||||
properties: {
|
||||
timestamp: number
|
||||
sessionID: string
|
||||
revert: {
|
||||
messageID: string
|
||||
partID?: string
|
||||
snapshot?: string
|
||||
diff?: string
|
||||
files?: Array<FileDiff>
|
||||
}
|
||||
}
|
||||
}
|
||||
| {
|
||||
id: string
|
||||
type: "session.next.revert.cleared"
|
||||
properties: {
|
||||
timestamp: number
|
||||
sessionID: string
|
||||
}
|
||||
}
|
||||
| {
|
||||
id: string
|
||||
type: "session.next.revert.committed"
|
||||
properties: {
|
||||
timestamp: number
|
||||
sessionID: string
|
||||
messageID: string
|
||||
}
|
||||
}
|
||||
| {
|
||||
id: string
|
||||
type: "message.part.delta"
|
||||
|
|
@ -1644,6 +1680,9 @@ export type GlobalEvent = {
|
|||
| SyncEventSessionNextRetried
|
||||
| SyncEventSessionNextCompactionStarted
|
||||
| SyncEventSessionNextCompactionEnded
|
||||
| SyncEventSessionNextRevertStaged
|
||||
| SyncEventSessionNextRevertCleared
|
||||
| SyncEventSessionNextRevertCommitted
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -2729,6 +2768,13 @@ export type ServiceUnavailableError = {
|
|||
service?: string
|
||||
}
|
||||
|
||||
export type MessageNotFoundError = {
|
||||
_tag: "MessageNotFoundError"
|
||||
sessionID: string
|
||||
messageID: string
|
||||
message: string
|
||||
}
|
||||
|
||||
export type UnknownError1 = {
|
||||
_tag: "UnknownError"
|
||||
message: string
|
||||
|
|
@ -2790,6 +2836,9 @@ export type V2Event =
|
|||
| V2EventSessionNextCompactionStarted
|
||||
| V2EventSessionNextCompactionDelta
|
||||
| V2EventSessionNextCompactionEnded
|
||||
| V2EventSessionNextRevertStaged
|
||||
| V2EventSessionNextRevertCleared
|
||||
| V2EventSessionNextRevertCommitted
|
||||
| V2EventMessagePartDelta
|
||||
| V2EventSessionDiff
|
||||
| V2EventSessionError
|
||||
|
|
@ -2981,6 +3030,14 @@ export type SessionNextRetryError = {
|
|||
}
|
||||
}
|
||||
|
||||
export type FileDiff = {
|
||||
path: string
|
||||
status: "added" | "modified" | "deleted"
|
||||
additions: number
|
||||
deletions: number
|
||||
patch: string
|
||||
}
|
||||
|
||||
export type PermissionV2Source = {
|
||||
type: "tool"
|
||||
messageID: string
|
||||
|
|
@ -3346,6 +3403,7 @@ export type SyncEventSessionNextStepEnded = {
|
|||
}
|
||||
}
|
||||
snapshot?: string
|
||||
files?: Array<string>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3644,6 +3702,59 @@ export type SyncEventSessionNextCompactionEnded = {
|
|||
}
|
||||
}
|
||||
|
||||
export type SyncEventSessionNextRevertStaged = {
|
||||
type: "sync"
|
||||
id: string
|
||||
syncEvent: {
|
||||
type: "session.next.revert.staged.1"
|
||||
id: string
|
||||
seq: number
|
||||
aggregateID: string
|
||||
data: {
|
||||
timestamp: number
|
||||
sessionID: string
|
||||
revert: {
|
||||
messageID: string
|
||||
partID?: string
|
||||
snapshot?: string
|
||||
diff?: string
|
||||
files?: Array<FileDiff>
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export type SyncEventSessionNextRevertCleared = {
|
||||
type: "sync"
|
||||
id: string
|
||||
syncEvent: {
|
||||
type: "session.next.revert.cleared.1"
|
||||
id: string
|
||||
seq: number
|
||||
aggregateID: string
|
||||
data: {
|
||||
timestamp: number
|
||||
sessionID: string
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export type SyncEventSessionNextRevertCommitted = {
|
||||
type: "sync"
|
||||
id: string
|
||||
syncEvent: {
|
||||
type: "session.next.revert.committed.1"
|
||||
id: string
|
||||
seq: number
|
||||
aggregateID: string
|
||||
data: {
|
||||
timestamp: number
|
||||
sessionID: string
|
||||
messageID: string
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export type ConfigV2ReferenceGit = {
|
||||
repository: string
|
||||
branch?: string
|
||||
|
|
@ -3741,6 +3852,13 @@ export type SessionV2Info = {
|
|||
title: string
|
||||
location: LocationRef
|
||||
subpath?: string
|
||||
revert?: {
|
||||
messageID: string
|
||||
partID?: string
|
||||
snapshot?: string
|
||||
diff?: string
|
||||
files?: Array<FileDiff>
|
||||
}
|
||||
}
|
||||
|
||||
export type SessionInputAdmitted = {
|
||||
|
|
@ -3945,6 +4063,7 @@ export type SessionMessageAssistant = {
|
|||
snapshot?: {
|
||||
start?: string
|
||||
end?: string
|
||||
files?: Array<string>
|
||||
}
|
||||
finish?: string
|
||||
cost?: number
|
||||
|
|
@ -4614,6 +4733,7 @@ export type V2EventSessionNextStepEnded = {
|
|||
}
|
||||
}
|
||||
snapshot?: string
|
||||
files?: Array<string>
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -5036,6 +5156,68 @@ export type V2EventSessionNextCompactionEnded = {
|
|||
}
|
||||
}
|
||||
|
||||
export type V2EventSessionNextRevertStaged = {
|
||||
id: string
|
||||
metadata?: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
durable?: {
|
||||
aggregateID: string
|
||||
seq: number
|
||||
version: number
|
||||
}
|
||||
location?: LocationRef
|
||||
type: "session.next.revert.staged"
|
||||
data: {
|
||||
timestamp: number
|
||||
sessionID: string
|
||||
revert: {
|
||||
messageID: string
|
||||
partID?: string
|
||||
snapshot?: string
|
||||
diff?: string
|
||||
files?: Array<FileDiff>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export type V2EventSessionNextRevertCleared = {
|
||||
id: string
|
||||
metadata?: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
durable?: {
|
||||
aggregateID: string
|
||||
seq: number
|
||||
version: number
|
||||
}
|
||||
location?: LocationRef
|
||||
type: "session.next.revert.cleared"
|
||||
data: {
|
||||
timestamp: number
|
||||
sessionID: string
|
||||
}
|
||||
}
|
||||
|
||||
export type V2EventSessionNextRevertCommitted = {
|
||||
id: string
|
||||
metadata?: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
durable?: {
|
||||
aggregateID: string
|
||||
seq: number
|
||||
version: number
|
||||
}
|
||||
location?: LocationRef
|
||||
type: "session.next.revert.committed"
|
||||
data: {
|
||||
timestamp: number
|
||||
sessionID: string
|
||||
messageID: string
|
||||
}
|
||||
}
|
||||
|
||||
export type V2EventMessagePartDelta = {
|
||||
id: string
|
||||
metadata?: {
|
||||
|
|
@ -6192,6 +6374,7 @@ export type EventSessionNextStepEnded = {
|
|||
}
|
||||
}
|
||||
snapshot?: string
|
||||
files?: Array<string>
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -6452,6 +6635,41 @@ export type EventSessionNextCompactionEnded = {
|
|||
}
|
||||
}
|
||||
|
||||
export type EventSessionNextRevertStaged = {
|
||||
id: string
|
||||
type: "session.next.revert.staged"
|
||||
properties: {
|
||||
timestamp: number
|
||||
sessionID: string
|
||||
revert: {
|
||||
messageID: string
|
||||
partID?: string
|
||||
snapshot?: string
|
||||
diff?: string
|
||||
files?: Array<FileDiff>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export type EventSessionNextRevertCleared = {
|
||||
id: string
|
||||
type: "session.next.revert.cleared"
|
||||
properties: {
|
||||
timestamp: number
|
||||
sessionID: string
|
||||
}
|
||||
}
|
||||
|
||||
export type EventSessionNextRevertCommitted = {
|
||||
id: string
|
||||
type: "session.next.revert.committed"
|
||||
properties: {
|
||||
timestamp: number
|
||||
sessionID: string
|
||||
messageID: string
|
||||
}
|
||||
}
|
||||
|
||||
export type EventMessagePartDelta = {
|
||||
id: string
|
||||
type: "message.part.delta"
|
||||
|
|
@ -11477,6 +11695,130 @@ export type V2SessionWaitResponses = {
|
|||
|
||||
export type V2SessionWaitResponse = V2SessionWaitResponses[keyof V2SessionWaitResponses]
|
||||
|
||||
export type V2SessionRevertStageData = {
|
||||
body: {
|
||||
messageID: string
|
||||
files?: boolean
|
||||
}
|
||||
path: {
|
||||
sessionID: string
|
||||
}
|
||||
query?: never
|
||||
url: "/api/session/{sessionID}/revert/stage"
|
||||
}
|
||||
|
||||
export type V2SessionRevertStageErrors = {
|
||||
/**
|
||||
* InvalidRequestError
|
||||
*/
|
||||
400: InvalidRequestError
|
||||
/**
|
||||
* UnauthorizedError
|
||||
*/
|
||||
401: UnauthorizedError
|
||||
/**
|
||||
* MessageNotFoundError | SessionNotFoundError
|
||||
*/
|
||||
404: MessageNotFoundError | SessionNotFoundError
|
||||
/**
|
||||
* UnknownError
|
||||
*/
|
||||
500: UnknownError1
|
||||
}
|
||||
|
||||
export type V2SessionRevertStageError = V2SessionRevertStageErrors[keyof V2SessionRevertStageErrors]
|
||||
|
||||
export type V2SessionRevertStageResponses = {
|
||||
/**
|
||||
* Success
|
||||
*/
|
||||
200: {
|
||||
data: {
|
||||
messageID: string
|
||||
partID?: string
|
||||
snapshot?: string
|
||||
diff?: string
|
||||
files?: Array<FileDiff>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export type V2SessionRevertStageResponse = V2SessionRevertStageResponses[keyof V2SessionRevertStageResponses]
|
||||
|
||||
export type V2SessionRevertClearData = {
|
||||
body?: never
|
||||
path: {
|
||||
sessionID: string
|
||||
}
|
||||
query?: never
|
||||
url: "/api/session/{sessionID}/revert/clear"
|
||||
}
|
||||
|
||||
export type V2SessionRevertClearErrors = {
|
||||
/**
|
||||
* InvalidRequestError
|
||||
*/
|
||||
400: InvalidRequestError
|
||||
/**
|
||||
* UnauthorizedError
|
||||
*/
|
||||
401: UnauthorizedError
|
||||
/**
|
||||
* SessionNotFoundError
|
||||
*/
|
||||
404: SessionNotFoundError
|
||||
/**
|
||||
* UnknownError
|
||||
*/
|
||||
500: UnknownError1
|
||||
}
|
||||
|
||||
export type V2SessionRevertClearError = V2SessionRevertClearErrors[keyof V2SessionRevertClearErrors]
|
||||
|
||||
export type V2SessionRevertClearResponses = {
|
||||
/**
|
||||
* <No Content>
|
||||
*/
|
||||
204: void
|
||||
}
|
||||
|
||||
export type V2SessionRevertClearResponse = V2SessionRevertClearResponses[keyof V2SessionRevertClearResponses]
|
||||
|
||||
export type V2SessionRevertCommitData = {
|
||||
body?: never
|
||||
path: {
|
||||
sessionID: string
|
||||
}
|
||||
query?: never
|
||||
url: "/api/session/{sessionID}/revert/commit"
|
||||
}
|
||||
|
||||
export type V2SessionRevertCommitErrors = {
|
||||
/**
|
||||
* InvalidRequestError
|
||||
*/
|
||||
400: InvalidRequestError
|
||||
/**
|
||||
* UnauthorizedError
|
||||
*/
|
||||
401: UnauthorizedError
|
||||
/**
|
||||
* SessionNotFoundError
|
||||
*/
|
||||
404: SessionNotFoundError
|
||||
}
|
||||
|
||||
export type V2SessionRevertCommitError = V2SessionRevertCommitErrors[keyof V2SessionRevertCommitErrors]
|
||||
|
||||
export type V2SessionRevertCommitResponses = {
|
||||
/**
|
||||
* <No Content>
|
||||
*/
|
||||
204: void
|
||||
}
|
||||
|
||||
export type V2SessionRevertCommitResponse = V2SessionRevertCommitResponses[keyof V2SessionRevertCommitResponses]
|
||||
|
||||
export type V2SessionContextData = {
|
||||
body?: never
|
||||
path: {
|
||||
|
|
@ -12212,6 +12554,95 @@ export type V2SessionPermissionListResponses = {
|
|||
|
||||
export type V2SessionPermissionListResponse = V2SessionPermissionListResponses[keyof V2SessionPermissionListResponses]
|
||||
|
||||
export type V2SessionPermissionCreateData = {
|
||||
body: {
|
||||
id?: string
|
||||
action: string
|
||||
resources: Array<string>
|
||||
save?: Array<string>
|
||||
metadata?: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
source?: PermissionV2Source
|
||||
agent?: string
|
||||
}
|
||||
path: {
|
||||
sessionID: string
|
||||
}
|
||||
query?: never
|
||||
url: "/api/session/{sessionID}/permission"
|
||||
}
|
||||
|
||||
export type V2SessionPermissionCreateErrors = {
|
||||
/**
|
||||
* InvalidRequestError
|
||||
*/
|
||||
400: InvalidRequestError
|
||||
/**
|
||||
* UnauthorizedError
|
||||
*/
|
||||
401: UnauthorizedError
|
||||
/**
|
||||
* SessionNotFoundError
|
||||
*/
|
||||
404: SessionNotFoundError
|
||||
}
|
||||
|
||||
export type V2SessionPermissionCreateError = V2SessionPermissionCreateErrors[keyof V2SessionPermissionCreateErrors]
|
||||
|
||||
export type V2SessionPermissionCreateResponses = {
|
||||
/**
|
||||
* Success
|
||||
*/
|
||||
200: {
|
||||
data: {
|
||||
id: string
|
||||
effect: PermissionV2Effect
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export type V2SessionPermissionCreateResponse =
|
||||
V2SessionPermissionCreateResponses[keyof V2SessionPermissionCreateResponses]
|
||||
|
||||
export type V2SessionPermissionGetData = {
|
||||
body?: never
|
||||
path: {
|
||||
sessionID: string
|
||||
requestID: string
|
||||
}
|
||||
query?: never
|
||||
url: "/api/session/{sessionID}/permission/{requestID}"
|
||||
}
|
||||
|
||||
export type V2SessionPermissionGetErrors = {
|
||||
/**
|
||||
* InvalidRequestError
|
||||
*/
|
||||
400: InvalidRequestError
|
||||
/**
|
||||
* UnauthorizedError
|
||||
*/
|
||||
401: UnauthorizedError
|
||||
/**
|
||||
* SessionNotFoundError | PermissionNotFoundError
|
||||
*/
|
||||
404: PermissionNotFoundError | SessionNotFoundError
|
||||
}
|
||||
|
||||
export type V2SessionPermissionGetError = V2SessionPermissionGetErrors[keyof V2SessionPermissionGetErrors]
|
||||
|
||||
export type V2SessionPermissionGetResponses = {
|
||||
/**
|
||||
* Success
|
||||
*/
|
||||
200: {
|
||||
data: PermissionV2Request
|
||||
}
|
||||
}
|
||||
|
||||
export type V2SessionPermissionGetResponse = V2SessionPermissionGetResponses[keyof V2SessionPermissionGetResponses]
|
||||
|
||||
export type V2SessionPermissionReplyData = {
|
||||
body: {
|
||||
reply: PermissionV2Reply
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue