Skip to content

Commit 35b44df

Browse files
chore: generate
1 parent 10441ef commit 35b44df

2 files changed

Lines changed: 121 additions & 121 deletions

File tree

packages/sdk/js/src/v2/gen/types.gen.ts

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -94,35 +94,6 @@ export type EventMessagePartDelta = {
9494
}
9595
}
9696

97-
export type PermissionRequest = {
98-
id: string
99-
sessionID: string
100-
permission: string
101-
patterns: Array<string>
102-
metadata: {
103-
[key: string]: unknown
104-
}
105-
always: Array<string>
106-
tool?: {
107-
messageID: string
108-
callID: string
109-
}
110-
}
111-
112-
export type EventPermissionAsked = {
113-
type: "permission.asked"
114-
properties: PermissionRequest
115-
}
116-
117-
export type EventPermissionReplied = {
118-
type: "permission.replied"
119-
properties: {
120-
sessionID: string
121-
requestID: string
122-
reply: "once" | "always" | "reject"
123-
}
124-
}
125-
12697
export type SessionStatus =
12798
| {
12899
type: "idle"
@@ -152,6 +123,35 @@ export type EventSessionIdle = {
152123
}
153124
}
154125

126+
export type PermissionRequest = {
127+
id: string
128+
sessionID: string
129+
permission: string
130+
patterns: Array<string>
131+
metadata: {
132+
[key: string]: unknown
133+
}
134+
always: Array<string>
135+
tool?: {
136+
messageID: string
137+
callID: string
138+
}
139+
}
140+
141+
export type EventPermissionAsked = {
142+
type: "permission.asked"
143+
properties: PermissionRequest
144+
}
145+
146+
export type EventPermissionReplied = {
147+
type: "permission.replied"
148+
properties: {
149+
sessionID: string
150+
requestID: string
151+
reply: "once" | "always" | "reject"
152+
}
153+
}
154+
155155
export type QuestionOption = {
156156
/**
157157
* Display text (1-5 words, concise)
@@ -972,10 +972,10 @@ export type Event =
972972
| EventLspClientDiagnostics
973973
| EventLspUpdated
974974
| EventMessagePartDelta
975-
| EventPermissionAsked
976-
| EventPermissionReplied
977975
| EventSessionStatus
978976
| EventSessionIdle
977+
| EventPermissionAsked
978+
| EventPermissionReplied
979979
| EventQuestionAsked
980980
| EventQuestionReplied
981981
| EventQuestionRejected

packages/sdk/openapi.json

Lines changed: 90 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -7324,6 +7324,92 @@
73247324
},
73257325
"required": ["type", "properties"]
73267326
},
7327+
"SessionStatus": {
7328+
"anyOf": [
7329+
{
7330+
"type": "object",
7331+
"properties": {
7332+
"type": {
7333+
"type": "string",
7334+
"const": "idle"
7335+
}
7336+
},
7337+
"required": ["type"]
7338+
},
7339+
{
7340+
"type": "object",
7341+
"properties": {
7342+
"type": {
7343+
"type": "string",
7344+
"const": "retry"
7345+
},
7346+
"attempt": {
7347+
"type": "number"
7348+
},
7349+
"message": {
7350+
"type": "string"
7351+
},
7352+
"next": {
7353+
"type": "number"
7354+
}
7355+
},
7356+
"required": ["type", "attempt", "message", "next"]
7357+
},
7358+
{
7359+
"type": "object",
7360+
"properties": {
7361+
"type": {
7362+
"type": "string",
7363+
"const": "busy"
7364+
}
7365+
},
7366+
"required": ["type"]
7367+
}
7368+
]
7369+
},
7370+
"Event.session.status": {
7371+
"type": "object",
7372+
"properties": {
7373+
"type": {
7374+
"type": "string",
7375+
"const": "session.status"
7376+
},
7377+
"properties": {
7378+
"type": "object",
7379+
"properties": {
7380+
"sessionID": {
7381+
"type": "string",
7382+
"pattern": "^ses.*"
7383+
},
7384+
"status": {
7385+
"$ref": "#/components/schemas/SessionStatus"
7386+
}
7387+
},
7388+
"required": ["sessionID", "status"]
7389+
}
7390+
},
7391+
"required": ["type", "properties"]
7392+
},
7393+
"Event.session.idle": {
7394+
"type": "object",
7395+
"properties": {
7396+
"type": {
7397+
"type": "string",
7398+
"const": "session.idle"
7399+
},
7400+
"properties": {
7401+
"type": "object",
7402+
"properties": {
7403+
"sessionID": {
7404+
"type": "string",
7405+
"pattern": "^ses.*"
7406+
}
7407+
},
7408+
"required": ["sessionID"]
7409+
}
7410+
},
7411+
"required": ["type", "properties"]
7412+
},
73277413
"PermissionRequest": {
73287414
"type": "object",
73297415
"properties": {
@@ -7414,92 +7500,6 @@
74147500
},
74157501
"required": ["type", "properties"]
74167502
},
7417-
"SessionStatus": {
7418-
"anyOf": [
7419-
{
7420-
"type": "object",
7421-
"properties": {
7422-
"type": {
7423-
"type": "string",
7424-
"const": "idle"
7425-
}
7426-
},
7427-
"required": ["type"]
7428-
},
7429-
{
7430-
"type": "object",
7431-
"properties": {
7432-
"type": {
7433-
"type": "string",
7434-
"const": "retry"
7435-
},
7436-
"attempt": {
7437-
"type": "number"
7438-
},
7439-
"message": {
7440-
"type": "string"
7441-
},
7442-
"next": {
7443-
"type": "number"
7444-
}
7445-
},
7446-
"required": ["type", "attempt", "message", "next"]
7447-
},
7448-
{
7449-
"type": "object",
7450-
"properties": {
7451-
"type": {
7452-
"type": "string",
7453-
"const": "busy"
7454-
}
7455-
},
7456-
"required": ["type"]
7457-
}
7458-
]
7459-
},
7460-
"Event.session.status": {
7461-
"type": "object",
7462-
"properties": {
7463-
"type": {
7464-
"type": "string",
7465-
"const": "session.status"
7466-
},
7467-
"properties": {
7468-
"type": "object",
7469-
"properties": {
7470-
"sessionID": {
7471-
"type": "string",
7472-
"pattern": "^ses.*"
7473-
},
7474-
"status": {
7475-
"$ref": "#/components/schemas/SessionStatus"
7476-
}
7477-
},
7478-
"required": ["sessionID", "status"]
7479-
}
7480-
},
7481-
"required": ["type", "properties"]
7482-
},
7483-
"Event.session.idle": {
7484-
"type": "object",
7485-
"properties": {
7486-
"type": {
7487-
"type": "string",
7488-
"const": "session.idle"
7489-
},
7490-
"properties": {
7491-
"type": "object",
7492-
"properties": {
7493-
"sessionID": {
7494-
"type": "string",
7495-
"pattern": "^ses.*"
7496-
}
7497-
},
7498-
"required": ["sessionID"]
7499-
}
7500-
},
7501-
"required": ["type", "properties"]
7502-
},
75037503
"QuestionOption": {
75047504
"type": "object",
75057505
"properties": {
@@ -9811,16 +9811,16 @@
98119811
"$ref": "#/components/schemas/Event.message.part.delta"
98129812
},
98139813
{
9814-
"$ref": "#/components/schemas/Event.permission.asked"
9814+
"$ref": "#/components/schemas/Event.session.status"
98159815
},
98169816
{
9817-
"$ref": "#/components/schemas/Event.permission.replied"
9817+
"$ref": "#/components/schemas/Event.session.idle"
98189818
},
98199819
{
9820-
"$ref": "#/components/schemas/Event.session.status"
9820+
"$ref": "#/components/schemas/Event.permission.asked"
98219821
},
98229822
{
9823-
"$ref": "#/components/schemas/Event.session.idle"
9823+
"$ref": "#/components/schemas/Event.permission.replied"
98249824
},
98259825
{
98269826
"$ref": "#/components/schemas/Event.question.asked"

0 commit comments

Comments
 (0)