codex-python 0.1.1__py3-none-any.whl → 0.1.2__py3-none-any.whl

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.
@@ -0,0 +1,1595 @@
1
+ # GENERATED CODE! DO NOT MODIFY BY HAND!
2
+ from __future__ import annotations
3
+
4
+ from typing import Any, Literal
5
+
6
+ from pydantic import BaseModel
7
+ from pydantic.config import ConfigDict
8
+
9
+
10
+ class AddConversationListenerParams(BaseModel):
11
+ model_config = ConfigDict(extra="ignore")
12
+ conversationId: ConversationId
13
+
14
+
15
+ class AddConversationSubscriptionResponse(BaseModel):
16
+ model_config = ConfigDict(extra="ignore")
17
+ subscriptionId: str
18
+
19
+
20
+ class AgentMessageDeltaEvent(BaseModel):
21
+ model_config = ConfigDict(extra="ignore")
22
+ delta: str
23
+
24
+
25
+ class AgentMessageEvent(BaseModel):
26
+ model_config = ConfigDict(extra="ignore")
27
+ message: str
28
+
29
+
30
+ class AgentReasoningDeltaEvent(BaseModel):
31
+ model_config = ConfigDict(extra="ignore")
32
+ delta: str
33
+
34
+
35
+ class AgentReasoningEvent(BaseModel):
36
+ model_config = ConfigDict(extra="ignore")
37
+ text: str
38
+
39
+
40
+ class AgentReasoningRawContentDeltaEvent(BaseModel):
41
+ model_config = ConfigDict(extra="ignore")
42
+ delta: str
43
+
44
+
45
+ class AgentReasoningRawContentEvent(BaseModel):
46
+ model_config = ConfigDict(extra="ignore")
47
+ text: str
48
+
49
+
50
+ class Annotations(BaseModel):
51
+ model_config = ConfigDict(extra="ignore")
52
+ pass
53
+
54
+
55
+ class ApplyPatchApprovalParams(BaseModel):
56
+ model_config = ConfigDict(extra="ignore")
57
+ conversation_id: ConversationId
58
+ call_id: str
59
+ file_changes: dict[str, FileChange]
60
+ reason: str | None = None
61
+ grant_root: str | None = None
62
+
63
+
64
+ class ApplyPatchApprovalRequestEvent(BaseModel):
65
+ model_config = ConfigDict(extra="ignore")
66
+ call_id: str
67
+ changes: dict[str, FileChange]
68
+ reason: str | None = None
69
+ grant_root: str | None = None
70
+
71
+
72
+ class ApplyPatchApprovalResponse(BaseModel):
73
+ model_config = ConfigDict(extra="ignore")
74
+ decision: ReviewDecision
75
+
76
+
77
+ class ArchiveConversationParams(BaseModel):
78
+ model_config = ConfigDict(extra="ignore")
79
+ conversationId: ConversationId
80
+ rolloutPath: str
81
+
82
+
83
+ class AudioContent(BaseModel):
84
+ model_config = ConfigDict(extra="ignore")
85
+ data: str
86
+ mimeType: str
87
+ type: str
88
+
89
+
90
+ class AuthStatusChangeNotification(BaseModel):
91
+ model_config = ConfigDict(extra="ignore")
92
+ authMethod: AuthMode | None = None
93
+
94
+
95
+ class BackgroundEventEvent(BaseModel):
96
+ model_config = ConfigDict(extra="ignore")
97
+ message: str
98
+
99
+
100
+ class BlobResourceContents(BaseModel):
101
+ model_config = ConfigDict(extra="ignore")
102
+ blob: str
103
+ uri: str
104
+
105
+
106
+ class CallToolResult(BaseModel):
107
+ model_config = ConfigDict(extra="ignore")
108
+ content: list[ContentBlock]
109
+
110
+
111
+ class CancelLoginChatGptParams(BaseModel):
112
+ model_config = ConfigDict(extra="ignore")
113
+ loginId: str
114
+
115
+
116
+ class ConversationHistoryResponseEvent(BaseModel):
117
+ model_config = ConfigDict(extra="ignore")
118
+ conversation_id: ConversationId
119
+ entries: list[ResponseItem]
120
+
121
+
122
+ class ConversationSummary(BaseModel):
123
+ model_config = ConfigDict(extra="ignore")
124
+ conversationId: ConversationId
125
+ path: str
126
+ preview: str
127
+ timestamp: str | None = None
128
+
129
+
130
+ class CustomPrompt(BaseModel):
131
+ model_config = ConfigDict(extra="ignore")
132
+ name: str
133
+ path: str
134
+ content: str
135
+
136
+
137
+ class EmbeddedResource(BaseModel):
138
+ model_config = ConfigDict(extra="ignore")
139
+ resource: EmbeddedResourceResource
140
+ type: str
141
+
142
+
143
+ class ErrorEvent(BaseModel):
144
+ model_config = ConfigDict(extra="ignore")
145
+ message: str
146
+
147
+
148
+ class ExecApprovalRequestEvent(BaseModel):
149
+ model_config = ConfigDict(extra="ignore")
150
+ call_id: str
151
+ command: list[str]
152
+ cwd: str
153
+ reason: str | None = None
154
+
155
+
156
+ class ExecCommandApprovalParams(BaseModel):
157
+ model_config = ConfigDict(extra="ignore")
158
+ conversation_id: ConversationId
159
+ call_id: str
160
+ command: list[str]
161
+ cwd: str
162
+ reason: str | None = None
163
+
164
+
165
+ class ExecCommandApprovalResponse(BaseModel):
166
+ model_config = ConfigDict(extra="ignore")
167
+ decision: ReviewDecision
168
+
169
+
170
+ class ExecCommandBeginEvent(BaseModel):
171
+ model_config = ConfigDict(extra="ignore")
172
+ call_id: str
173
+ command: list[str]
174
+ cwd: str
175
+ parsed_cmd: list[ParsedCommand]
176
+
177
+
178
+ class ExecCommandEndEvent(BaseModel):
179
+ model_config = ConfigDict(extra="ignore")
180
+ call_id: str
181
+ stdout: str
182
+ stderr: str
183
+ aggregated_output: str
184
+ exit_code: float
185
+ duration: str
186
+ formatted_output: str
187
+
188
+
189
+ class ExecCommandOutputDeltaEvent(BaseModel):
190
+ model_config = ConfigDict(extra="ignore")
191
+ call_id: str
192
+ stream: ExecOutputStream
193
+ chunk: str
194
+
195
+
196
+ class ExecOneOffCommandParams(BaseModel):
197
+ model_config = ConfigDict(extra="ignore")
198
+ command: list[str]
199
+ timeoutMs: int | None = None
200
+ cwd: str | None = None
201
+ sandboxPolicy: SandboxPolicy | None = None
202
+
203
+
204
+ class FunctionCallOutputPayload(BaseModel):
205
+ model_config = ConfigDict(extra="ignore")
206
+ content: str
207
+ success: bool | None = None
208
+
209
+
210
+ class GetAuthStatusParams(BaseModel):
211
+ model_config = ConfigDict(extra="ignore")
212
+ includeToken: bool | None = None
213
+ refreshToken: bool | None = None
214
+
215
+
216
+ class GetAuthStatusResponse(BaseModel):
217
+ model_config = ConfigDict(extra="ignore")
218
+ authMethod: AuthMode | None = None
219
+ preferredAuthMethod: AuthMode
220
+ authToken: str | None = None
221
+
222
+
223
+ class GetHistoryEntryResponseEvent(BaseModel):
224
+ model_config = ConfigDict(extra="ignore")
225
+ offset: float
226
+ log_id: int
227
+ entry: HistoryEntry | None = None
228
+
229
+
230
+ class GetUserAgentResponse(BaseModel):
231
+ model_config = ConfigDict(extra="ignore")
232
+ userAgent: str
233
+
234
+
235
+ class GetUserSavedConfigResponse(BaseModel):
236
+ model_config = ConfigDict(extra="ignore")
237
+ config: UserSavedConfig
238
+
239
+
240
+ class GitDiffToRemoteParams(BaseModel):
241
+ model_config = ConfigDict(extra="ignore")
242
+ cwd: str
243
+
244
+
245
+ class GitDiffToRemoteResponse(BaseModel):
246
+ model_config = ConfigDict(extra="ignore")
247
+ sha: GitSha
248
+ diff: str
249
+
250
+
251
+ class HistoryEntry(BaseModel):
252
+ model_config = ConfigDict(extra="ignore")
253
+ conversation_id: str
254
+ ts: int
255
+ text: str
256
+
257
+
258
+ class ImageContent(BaseModel):
259
+ model_config = ConfigDict(extra="ignore")
260
+ data: str
261
+ mimeType: str
262
+ type: str
263
+
264
+
265
+ class InitializeResult(BaseModel):
266
+ model_config = ConfigDict(extra="ignore")
267
+ capabilities: ServerCapabilities
268
+ protocolVersion: str
269
+ serverInfo: McpServerInfo
270
+
271
+
272
+ class InterruptConversationParams(BaseModel):
273
+ model_config = ConfigDict(extra="ignore")
274
+ conversationId: ConversationId
275
+
276
+
277
+ class InterruptConversationResponse(BaseModel):
278
+ model_config = ConfigDict(extra="ignore")
279
+ abortReason: TurnAbortReason
280
+
281
+
282
+ class ListConversationsParams(BaseModel):
283
+ model_config = ConfigDict(extra="ignore")
284
+ pageSize: float | None = None
285
+ cursor: str | None = None
286
+
287
+
288
+ class ListConversationsResponse(BaseModel):
289
+ model_config = ConfigDict(extra="ignore")
290
+ items: list[ConversationSummary]
291
+ nextCursor: str | None = None
292
+
293
+
294
+ class ListCustomPromptsResponseEvent(BaseModel):
295
+ model_config = ConfigDict(extra="ignore")
296
+ custom_prompts: list[CustomPrompt]
297
+
298
+
299
+ class LocalShellAction(BaseModel):
300
+ model_config = ConfigDict(extra="ignore")
301
+ pass
302
+
303
+
304
+ class LocalShellExecAction(BaseModel):
305
+ model_config = ConfigDict(extra="ignore")
306
+ command: list[str]
307
+ timeout_ms: int | None = None
308
+ working_directory: str | None = None
309
+ env: dict[str, str] | None = None
310
+ user: str | None = None
311
+
312
+
313
+ class LoginChatGptCompleteNotification(BaseModel):
314
+ model_config = ConfigDict(extra="ignore")
315
+ loginId: str
316
+ success: bool
317
+ error: str | None = None
318
+
319
+
320
+ class LoginChatGptResponse(BaseModel):
321
+ model_config = ConfigDict(extra="ignore")
322
+ loginId: str
323
+ authUrl: str
324
+
325
+
326
+ class McpInvocation(BaseModel):
327
+ model_config = ConfigDict(extra="ignore")
328
+ server: str
329
+ tool: str
330
+ arguments: JsonValue | None = None
331
+
332
+
333
+ class McpListToolsResponseEvent(BaseModel):
334
+ model_config = ConfigDict(extra="ignore")
335
+ tools: dict[str, Tool]
336
+
337
+
338
+ class McpServerInfo(BaseModel):
339
+ model_config = ConfigDict(extra="ignore")
340
+ name: str
341
+ version: str
342
+ user_agent: str
343
+
344
+
345
+ class McpToolCallBeginEvent(BaseModel):
346
+ model_config = ConfigDict(extra="ignore")
347
+ call_id: str
348
+ invocation: McpInvocation
349
+
350
+
351
+ class McpToolCallEndEvent(BaseModel):
352
+ model_config = ConfigDict(extra="ignore")
353
+ call_id: str
354
+ invocation: McpInvocation
355
+ duration: str
356
+ result: dict[str, Any]
357
+
358
+
359
+ class NewConversationParams(BaseModel):
360
+ model_config = ConfigDict(extra="ignore")
361
+ model: str | None = None
362
+ profile: str | None = None
363
+ cwd: str | None = None
364
+ approvalPolicy: AskForApproval | None = None
365
+ sandbox: SandboxMode | None = None
366
+ config: dict[str, JsonValue] | None = None
367
+ baseInstructions: str | None = None
368
+ includePlanTool: bool | None = None
369
+ includeApplyPatchTool: bool | None = None
370
+
371
+
372
+ class NewConversationResponse(BaseModel):
373
+ model_config = ConfigDict(extra="ignore")
374
+ conversationId: ConversationId
375
+ model: str
376
+ rolloutPath: str
377
+
378
+
379
+ class PatchApplyBeginEvent(BaseModel):
380
+ model_config = ConfigDict(extra="ignore")
381
+ call_id: str
382
+ auto_approved: bool
383
+ changes: dict[str, FileChange]
384
+
385
+
386
+ class PatchApplyEndEvent(BaseModel):
387
+ model_config = ConfigDict(extra="ignore")
388
+ call_id: str
389
+ stdout: str
390
+ stderr: str
391
+ success: bool
392
+
393
+
394
+ class PlanItemArg(BaseModel):
395
+ model_config = ConfigDict(extra="ignore")
396
+ step: str
397
+ status: StepStatus
398
+
399
+
400
+ class Profile(BaseModel):
401
+ model_config = ConfigDict(extra="ignore")
402
+ model: str | None = None
403
+ modelProvider: str | None = None
404
+ approvalPolicy: AskForApproval | None = None
405
+ modelReasoningEffort: ReasoningEffort | None = None
406
+ modelReasoningSummary: ReasoningSummary | None = None
407
+ modelVerbosity: Verbosity | None = None
408
+ chatgptBaseUrl: str | None = None
409
+
410
+
411
+ class ReasoningItemReasoningSummary(BaseModel):
412
+ model_config = ConfigDict(extra="ignore")
413
+ type: Literal["summary_text"]
414
+ text: str
415
+
416
+
417
+ class RemoveConversationListenerParams(BaseModel):
418
+ model_config = ConfigDict(extra="ignore")
419
+ subscriptionId: str
420
+
421
+
422
+ class ResourceLink(BaseModel):
423
+ model_config = ConfigDict(extra="ignore")
424
+ name: str
425
+ type: str
426
+ uri: str
427
+
428
+
429
+ class ResumeConversationParams(BaseModel):
430
+ model_config = ConfigDict(extra="ignore")
431
+ path: str
432
+ overrides: NewConversationParams | None = None
433
+
434
+
435
+ class ResumeConversationResponse(BaseModel):
436
+ model_config = ConfigDict(extra="ignore")
437
+ conversationId: ConversationId
438
+ model: str
439
+ initialMessages: list[EventMsg] | None = None
440
+
441
+
442
+ class SandboxSettings(BaseModel):
443
+ model_config = ConfigDict(extra="ignore")
444
+ writableRoots: list[str]
445
+ networkAccess: bool | None = None
446
+ excludeTmpdirEnvVar: bool | None = None
447
+ excludeSlashTmp: bool | None = None
448
+
449
+
450
+ class SendUserMessageParams(BaseModel):
451
+ model_config = ConfigDict(extra="ignore")
452
+ conversationId: ConversationId
453
+ items: list[InputItem]
454
+
455
+
456
+ class SendUserTurnParams(BaseModel):
457
+ model_config = ConfigDict(extra="ignore")
458
+ conversationId: ConversationId
459
+ items: list[InputItem]
460
+ cwd: str
461
+ approvalPolicy: AskForApproval
462
+ sandboxPolicy: SandboxPolicy
463
+ model: str
464
+ effort: ReasoningEffort
465
+ summary: ReasoningSummary
466
+
467
+
468
+ class ServerCapabilities(BaseModel):
469
+ model_config = ConfigDict(extra="ignore")
470
+ pass
471
+
472
+
473
+ class ServerCapabilitiesPrompts(BaseModel):
474
+ model_config = ConfigDict(extra="ignore")
475
+ pass
476
+
477
+
478
+ class ServerCapabilitiesResources(BaseModel):
479
+ model_config = ConfigDict(extra="ignore")
480
+ pass
481
+
482
+
483
+ class ServerCapabilitiesTools(BaseModel):
484
+ model_config = ConfigDict(extra="ignore")
485
+ pass
486
+
487
+
488
+ class SessionConfiguredEvent(BaseModel):
489
+ model_config = ConfigDict(extra="ignore")
490
+ session_id: ConversationId
491
+ model: str
492
+ history_log_id: int
493
+ history_entry_count: float
494
+ initial_messages: list[EventMsg] | None = None
495
+ rollout_path: str
496
+
497
+
498
+ class StreamErrorEvent(BaseModel):
499
+ model_config = ConfigDict(extra="ignore")
500
+ message: str
501
+
502
+
503
+ class TaskCompleteEvent(BaseModel):
504
+ model_config = ConfigDict(extra="ignore")
505
+ last_agent_message: str | None = None
506
+
507
+
508
+ class TaskStartedEvent(BaseModel):
509
+ model_config = ConfigDict(extra="ignore")
510
+ model_context_window: int | None = None
511
+
512
+
513
+ class TextContent(BaseModel):
514
+ model_config = ConfigDict(extra="ignore")
515
+ text: str
516
+ type: str
517
+
518
+
519
+ class TextResourceContents(BaseModel):
520
+ model_config = ConfigDict(extra="ignore")
521
+ text: str
522
+ uri: str
523
+
524
+
525
+ class TokenCountEvent(BaseModel):
526
+ model_config = ConfigDict(extra="ignore")
527
+ info: TokenUsageInfo | None = None
528
+
529
+
530
+ class TokenUsage(BaseModel):
531
+ model_config = ConfigDict(extra="ignore")
532
+ input_tokens: int
533
+ cached_input_tokens: int
534
+ output_tokens: int
535
+ reasoning_output_tokens: int
536
+ total_tokens: int
537
+
538
+
539
+ class TokenUsageInfo(BaseModel):
540
+ model_config = ConfigDict(extra="ignore")
541
+ total_token_usage: TokenUsage
542
+ last_token_usage: TokenUsage
543
+ model_context_window: int | None = None
544
+
545
+
546
+ class Tool(BaseModel):
547
+ model_config = ConfigDict(extra="ignore")
548
+ inputSchema: ToolInputSchema
549
+ name: str
550
+
551
+
552
+ class ToolAnnotations(BaseModel):
553
+ model_config = ConfigDict(extra="ignore")
554
+ pass
555
+
556
+
557
+ class ToolInputSchema(BaseModel):
558
+ model_config = ConfigDict(extra="ignore")
559
+ type: str
560
+
561
+
562
+ class ToolOutputSchema(BaseModel):
563
+ model_config = ConfigDict(extra="ignore")
564
+ type: str
565
+
566
+
567
+ class Tools(BaseModel):
568
+ model_config = ConfigDict(extra="ignore")
569
+ webSearch: bool | None = None
570
+ viewImage: bool | None = None
571
+
572
+
573
+ class TurnAbortedEvent(BaseModel):
574
+ model_config = ConfigDict(extra="ignore")
575
+ reason: TurnAbortReason
576
+
577
+
578
+ class TurnDiffEvent(BaseModel):
579
+ model_config = ConfigDict(extra="ignore")
580
+ unified_diff: str
581
+
582
+
583
+ class UpdatePlanArgs(BaseModel):
584
+ model_config = ConfigDict(extra="ignore")
585
+ explanation: str | None = None
586
+ plan: list[PlanItemArg]
587
+
588
+
589
+ class UserMessageEvent(BaseModel):
590
+ model_config = ConfigDict(extra="ignore")
591
+ message: str
592
+ kind: InputMessageKind | None = None
593
+
594
+
595
+ class UserSavedConfig(BaseModel):
596
+ model_config = ConfigDict(extra="ignore")
597
+ approvalPolicy: AskForApproval | None = None
598
+ sandboxMode: SandboxMode | None = None
599
+ sandboxSettings: SandboxSettings | None = None
600
+ model: str | None = None
601
+ modelReasoningEffort: ReasoningEffort | None = None
602
+ modelReasoningSummary: ReasoningSummary | None = None
603
+ modelVerbosity: Verbosity | None = None
604
+ tools: Tools | None = None
605
+ profile: str | None = None
606
+ profiles: dict[str, Profile]
607
+
608
+
609
+ class WebSearchBeginEvent(BaseModel):
610
+ model_config = ConfigDict(extra="ignore")
611
+ call_id: str
612
+
613
+
614
+ class WebSearchEndEvent(BaseModel):
615
+ model_config = ConfigDict(extra="ignore")
616
+ call_id: str
617
+ query: str
618
+
619
+
620
+ class AskForApproval_Variant1(BaseModel):
621
+ model_config = ConfigDict(extra="ignore")
622
+ pass
623
+
624
+
625
+ class AskForApproval_Variant2(BaseModel):
626
+ model_config = ConfigDict(extra="ignore")
627
+ pass
628
+
629
+
630
+ class AskForApproval_Variant3(BaseModel):
631
+ model_config = ConfigDict(extra="ignore")
632
+ pass
633
+
634
+
635
+ class AskForApproval_Variant4(BaseModel):
636
+ model_config = ConfigDict(extra="ignore")
637
+ pass
638
+
639
+
640
+ class AuthMode_Variant1(BaseModel):
641
+ model_config = ConfigDict(extra="ignore")
642
+ pass
643
+
644
+
645
+ class AuthMode_Variant2(BaseModel):
646
+ model_config = ConfigDict(extra="ignore")
647
+ pass
648
+
649
+
650
+ class ClientRequest_NewConversation(BaseModel):
651
+ model_config = ConfigDict(extra="ignore")
652
+ method: Literal["newConversation"]
653
+ id: RequestId
654
+ params: NewConversationParams
655
+
656
+
657
+ class ClientRequest_ListConversations(BaseModel):
658
+ model_config = ConfigDict(extra="ignore")
659
+ method: Literal["listConversations"]
660
+ id: RequestId
661
+ params: ListConversationsParams
662
+
663
+
664
+ class ClientRequest_ResumeConversation(BaseModel):
665
+ model_config = ConfigDict(extra="ignore")
666
+ method: Literal["resumeConversation"]
667
+ id: RequestId
668
+ params: ResumeConversationParams
669
+
670
+
671
+ class ClientRequest_ArchiveConversation(BaseModel):
672
+ model_config = ConfigDict(extra="ignore")
673
+ method: Literal["archiveConversation"]
674
+ id: RequestId
675
+ params: ArchiveConversationParams
676
+
677
+
678
+ class ClientRequest_SendUserMessage(BaseModel):
679
+ model_config = ConfigDict(extra="ignore")
680
+ method: Literal["sendUserMessage"]
681
+ id: RequestId
682
+ params: SendUserMessageParams
683
+
684
+
685
+ class ClientRequest_SendUserTurn(BaseModel):
686
+ model_config = ConfigDict(extra="ignore")
687
+ method: Literal["sendUserTurn"]
688
+ id: RequestId
689
+ params: SendUserTurnParams
690
+
691
+
692
+ class ClientRequest_InterruptConversation(BaseModel):
693
+ model_config = ConfigDict(extra="ignore")
694
+ method: Literal["interruptConversation"]
695
+ id: RequestId
696
+ params: InterruptConversationParams
697
+
698
+
699
+ class ClientRequest_AddConversationListener(BaseModel):
700
+ model_config = ConfigDict(extra="ignore")
701
+ method: Literal["addConversationListener"]
702
+ id: RequestId
703
+ params: AddConversationListenerParams
704
+
705
+
706
+ class ClientRequest_RemoveConversationListener(BaseModel):
707
+ model_config = ConfigDict(extra="ignore")
708
+ method: Literal["removeConversationListener"]
709
+ id: RequestId
710
+ params: RemoveConversationListenerParams
711
+
712
+
713
+ class ClientRequest_GitDiffToRemote(BaseModel):
714
+ model_config = ConfigDict(extra="ignore")
715
+ method: Literal["gitDiffToRemote"]
716
+ id: RequestId
717
+ params: GitDiffToRemoteParams
718
+
719
+
720
+ class ClientRequest_LoginChatGpt(BaseModel):
721
+ model_config = ConfigDict(extra="ignore")
722
+ method: Literal["loginChatGpt"]
723
+ id: RequestId
724
+
725
+
726
+ class ClientRequest_CancelLoginChatGpt(BaseModel):
727
+ model_config = ConfigDict(extra="ignore")
728
+ method: Literal["cancelLoginChatGpt"]
729
+ id: RequestId
730
+ params: CancelLoginChatGptParams
731
+
732
+
733
+ class ClientRequest_LogoutChatGpt(BaseModel):
734
+ model_config = ConfigDict(extra="ignore")
735
+ method: Literal["logoutChatGpt"]
736
+ id: RequestId
737
+
738
+
739
+ class ClientRequest_GetAuthStatus(BaseModel):
740
+ model_config = ConfigDict(extra="ignore")
741
+ method: Literal["getAuthStatus"]
742
+ id: RequestId
743
+ params: GetAuthStatusParams
744
+
745
+
746
+ class ClientRequest_GetUserSavedConfig(BaseModel):
747
+ model_config = ConfigDict(extra="ignore")
748
+ method: Literal["getUserSavedConfig"]
749
+ id: RequestId
750
+
751
+
752
+ class ClientRequest_GetUserAgent(BaseModel):
753
+ model_config = ConfigDict(extra="ignore")
754
+ method: Literal["getUserAgent"]
755
+ id: RequestId
756
+
757
+
758
+ class ClientRequest_ExecOneOffCommand(BaseModel):
759
+ model_config = ConfigDict(extra="ignore")
760
+ method: Literal["execOneOffCommand"]
761
+ id: RequestId
762
+ params: ExecOneOffCommandParams
763
+
764
+
765
+ class ContentBlock_Variant1(BaseModel):
766
+ model_config = ConfigDict(extra="ignore")
767
+ text: str
768
+ type: str
769
+
770
+
771
+ class ContentBlock_Variant2(BaseModel):
772
+ model_config = ConfigDict(extra="ignore")
773
+ data: str
774
+ mimeType: str
775
+ type: str
776
+
777
+
778
+ class ContentBlock_Variant3(BaseModel):
779
+ model_config = ConfigDict(extra="ignore")
780
+ data: str
781
+ mimeType: str
782
+ type: str
783
+
784
+
785
+ class ContentBlock_Variant4(BaseModel):
786
+ model_config = ConfigDict(extra="ignore")
787
+ name: str
788
+ type: str
789
+ uri: str
790
+
791
+
792
+ class ContentBlock_Variant5(BaseModel):
793
+ model_config = ConfigDict(extra="ignore")
794
+ resource: EmbeddedResourceResource
795
+ type: str
796
+
797
+
798
+ class ContentItem_InputText(BaseModel):
799
+ model_config = ConfigDict(extra="ignore")
800
+ type: Literal["input_text"]
801
+ text: str
802
+
803
+
804
+ class ContentItem_InputImage(BaseModel):
805
+ model_config = ConfigDict(extra="ignore")
806
+ type: Literal["input_image"]
807
+ image_url: str
808
+
809
+
810
+ class ContentItem_OutputText(BaseModel):
811
+ model_config = ConfigDict(extra="ignore")
812
+ type: Literal["output_text"]
813
+ text: str
814
+
815
+
816
+ class EmbeddedResourceResource_Variant1(BaseModel):
817
+ model_config = ConfigDict(extra="ignore")
818
+ text: str
819
+ uri: str
820
+
821
+
822
+ class EmbeddedResourceResource_Variant2(BaseModel):
823
+ model_config = ConfigDict(extra="ignore")
824
+ blob: str
825
+ uri: str
826
+
827
+
828
+ class EventMsg_Error(BaseModel):
829
+ model_config = ConfigDict(extra="ignore")
830
+ type: Literal["error"]
831
+ message: str
832
+
833
+
834
+ class EventMsg_TaskStarted(BaseModel):
835
+ model_config = ConfigDict(extra="ignore")
836
+ type: Literal["task_started"]
837
+ model_context_window: int | None = None
838
+
839
+
840
+ class EventMsg_TaskComplete(BaseModel):
841
+ model_config = ConfigDict(extra="ignore")
842
+ type: Literal["task_complete"]
843
+ last_agent_message: str | None = None
844
+
845
+
846
+ class EventMsg_TokenCount(BaseModel):
847
+ model_config = ConfigDict(extra="ignore")
848
+ type: Literal["token_count"]
849
+ info: TokenUsageInfo | None = None
850
+
851
+
852
+ class EventMsg_AgentMessage(BaseModel):
853
+ model_config = ConfigDict(extra="ignore")
854
+ type: Literal["agent_message"]
855
+ message: str
856
+
857
+
858
+ class EventMsg_UserMessage(BaseModel):
859
+ model_config = ConfigDict(extra="ignore")
860
+ type: Literal["user_message"]
861
+ message: str
862
+ kind: InputMessageKind | None = None
863
+
864
+
865
+ class EventMsg_AgentMessageDelta(BaseModel):
866
+ model_config = ConfigDict(extra="ignore")
867
+ type: Literal["agent_message_delta"]
868
+ delta: str
869
+
870
+
871
+ class EventMsg_AgentReasoning(BaseModel):
872
+ model_config = ConfigDict(extra="ignore")
873
+ type: Literal["agent_reasoning"]
874
+ text: str
875
+
876
+
877
+ class EventMsg_AgentReasoningDelta(BaseModel):
878
+ model_config = ConfigDict(extra="ignore")
879
+ type: Literal["agent_reasoning_delta"]
880
+ delta: str
881
+
882
+
883
+ class EventMsg_AgentReasoningRawContent(BaseModel):
884
+ model_config = ConfigDict(extra="ignore")
885
+ type: Literal["agent_reasoning_raw_content"]
886
+ text: str
887
+
888
+
889
+ class EventMsg_AgentReasoningRawContentDelta(BaseModel):
890
+ model_config = ConfigDict(extra="ignore")
891
+ type: Literal["agent_reasoning_raw_content_delta"]
892
+ delta: str
893
+
894
+
895
+ class EventMsg_AgentReasoningSectionBreak(BaseModel):
896
+ model_config = ConfigDict(extra="ignore")
897
+ type: Literal["agent_reasoning_section_break"]
898
+
899
+
900
+ class EventMsg_SessionConfigured(BaseModel):
901
+ model_config = ConfigDict(extra="ignore")
902
+ type: Literal["session_configured"]
903
+ session_id: ConversationId
904
+ model: str
905
+ history_log_id: int
906
+ history_entry_count: float
907
+ initial_messages: list[EventMsg] | None = None
908
+ rollout_path: str
909
+
910
+
911
+ class EventMsg_McpToolCallBegin(BaseModel):
912
+ model_config = ConfigDict(extra="ignore")
913
+ type: Literal["mcp_tool_call_begin"]
914
+ call_id: str
915
+ invocation: McpInvocation
916
+
917
+
918
+ class EventMsg_McpToolCallEnd(BaseModel):
919
+ model_config = ConfigDict(extra="ignore")
920
+ type: Literal["mcp_tool_call_end"]
921
+ call_id: str
922
+ invocation: McpInvocation
923
+ duration: str
924
+ result: dict[str, Any]
925
+
926
+
927
+ class EventMsg_WebSearchBegin(BaseModel):
928
+ model_config = ConfigDict(extra="ignore")
929
+ type: Literal["web_search_begin"]
930
+ call_id: str
931
+
932
+
933
+ class EventMsg_WebSearchEnd(BaseModel):
934
+ model_config = ConfigDict(extra="ignore")
935
+ type: Literal["web_search_end"]
936
+ call_id: str
937
+ query: str
938
+
939
+
940
+ class EventMsg_ExecCommandBegin(BaseModel):
941
+ model_config = ConfigDict(extra="ignore")
942
+ type: Literal["exec_command_begin"]
943
+ call_id: str
944
+ command: list[str]
945
+ cwd: str
946
+ parsed_cmd: list[ParsedCommand]
947
+
948
+
949
+ class EventMsg_ExecCommandOutputDelta(BaseModel):
950
+ model_config = ConfigDict(extra="ignore")
951
+ type: Literal["exec_command_output_delta"]
952
+ call_id: str
953
+ stream: ExecOutputStream
954
+ chunk: str
955
+
956
+
957
+ class EventMsg_ExecCommandEnd(BaseModel):
958
+ model_config = ConfigDict(extra="ignore")
959
+ type: Literal["exec_command_end"]
960
+ call_id: str
961
+ stdout: str
962
+ stderr: str
963
+ aggregated_output: str
964
+ exit_code: float
965
+ duration: str
966
+ formatted_output: str
967
+
968
+
969
+ class EventMsg_ExecApprovalRequest(BaseModel):
970
+ model_config = ConfigDict(extra="ignore")
971
+ type: Literal["exec_approval_request"]
972
+ call_id: str
973
+ command: list[str]
974
+ cwd: str
975
+ reason: str | None = None
976
+
977
+
978
+ class EventMsg_ApplyPatchApprovalRequest(BaseModel):
979
+ model_config = ConfigDict(extra="ignore")
980
+ type: Literal["apply_patch_approval_request"]
981
+ call_id: str
982
+ changes: dict[str, FileChange]
983
+ reason: str | None = None
984
+ grant_root: str | None = None
985
+
986
+
987
+ class EventMsg_BackgroundEvent(BaseModel):
988
+ model_config = ConfigDict(extra="ignore")
989
+ type: Literal["background_event"]
990
+ message: str
991
+
992
+
993
+ class EventMsg_StreamError(BaseModel):
994
+ model_config = ConfigDict(extra="ignore")
995
+ type: Literal["stream_error"]
996
+ message: str
997
+
998
+
999
+ class EventMsg_PatchApplyBegin(BaseModel):
1000
+ model_config = ConfigDict(extra="ignore")
1001
+ type: Literal["patch_apply_begin"]
1002
+ call_id: str
1003
+ auto_approved: bool
1004
+ changes: dict[str, FileChange]
1005
+
1006
+
1007
+ class EventMsg_PatchApplyEnd(BaseModel):
1008
+ model_config = ConfigDict(extra="ignore")
1009
+ type: Literal["patch_apply_end"]
1010
+ call_id: str
1011
+ stdout: str
1012
+ stderr: str
1013
+ success: bool
1014
+
1015
+
1016
+ class EventMsg_TurnDiff(BaseModel):
1017
+ model_config = ConfigDict(extra="ignore")
1018
+ type: Literal["turn_diff"]
1019
+ unified_diff: str
1020
+
1021
+
1022
+ class EventMsg_GetHistoryEntryResponse(BaseModel):
1023
+ model_config = ConfigDict(extra="ignore")
1024
+ type: Literal["get_history_entry_response"]
1025
+ offset: float
1026
+ log_id: int
1027
+ entry: HistoryEntry | None = None
1028
+
1029
+
1030
+ class EventMsg_McpListToolsResponse(BaseModel):
1031
+ model_config = ConfigDict(extra="ignore")
1032
+ type: Literal["mcp_list_tools_response"]
1033
+ tools: dict[str, Tool]
1034
+
1035
+
1036
+ class EventMsg_ListCustomPromptsResponse(BaseModel):
1037
+ model_config = ConfigDict(extra="ignore")
1038
+ type: Literal["list_custom_prompts_response"]
1039
+ custom_prompts: list[CustomPrompt]
1040
+
1041
+
1042
+ class EventMsg_PlanUpdate(BaseModel):
1043
+ model_config = ConfigDict(extra="ignore")
1044
+ type: Literal["plan_update"]
1045
+ explanation: str | None = None
1046
+ plan: list[PlanItemArg]
1047
+
1048
+
1049
+ class EventMsg_TurnAborted(BaseModel):
1050
+ model_config = ConfigDict(extra="ignore")
1051
+ type: Literal["turn_aborted"]
1052
+ reason: TurnAbortReason
1053
+
1054
+
1055
+ class EventMsg_ShutdownComplete(BaseModel):
1056
+ model_config = ConfigDict(extra="ignore")
1057
+ type: Literal["shutdown_complete"]
1058
+
1059
+
1060
+ class EventMsg_ConversationHistory(BaseModel):
1061
+ model_config = ConfigDict(extra="ignore")
1062
+ type: Literal["conversation_history"]
1063
+ conversation_id: ConversationId
1064
+ entries: list[ResponseItem]
1065
+
1066
+
1067
+ class ExecOutputStream_Variant1(BaseModel):
1068
+ model_config = ConfigDict(extra="ignore")
1069
+ pass
1070
+
1071
+
1072
+ class ExecOutputStream_Variant2(BaseModel):
1073
+ model_config = ConfigDict(extra="ignore")
1074
+ pass
1075
+
1076
+
1077
+ class FileChange_Variant1(BaseModel):
1078
+ model_config = ConfigDict(extra="ignore")
1079
+ add: dict[str, Any]
1080
+
1081
+
1082
+ class FileChange_Variant2(BaseModel):
1083
+ model_config = ConfigDict(extra="ignore")
1084
+ delete: dict[str, Any]
1085
+
1086
+
1087
+ class FileChange_Variant3(BaseModel):
1088
+ model_config = ConfigDict(extra="ignore")
1089
+ update: dict[str, Any]
1090
+
1091
+
1092
+ class InputItem_Text(BaseModel):
1093
+ model_config = ConfigDict(extra="ignore")
1094
+ type: Literal["text"]
1095
+ data: dict[str, Any]
1096
+
1097
+
1098
+ class InputItem_Image(BaseModel):
1099
+ model_config = ConfigDict(extra="ignore")
1100
+ type: Literal["image"]
1101
+ data: dict[str, Any]
1102
+
1103
+
1104
+ class InputItem_LocalImage(BaseModel):
1105
+ model_config = ConfigDict(extra="ignore")
1106
+ type: Literal["localImage"]
1107
+ data: dict[str, Any]
1108
+
1109
+
1110
+ class InputMessageKind_Variant1(BaseModel):
1111
+ model_config = ConfigDict(extra="ignore")
1112
+ pass
1113
+
1114
+
1115
+ class InputMessageKind_Variant2(BaseModel):
1116
+ model_config = ConfigDict(extra="ignore")
1117
+ pass
1118
+
1119
+
1120
+ class InputMessageKind_Variant3(BaseModel):
1121
+ model_config = ConfigDict(extra="ignore")
1122
+ pass
1123
+
1124
+
1125
+ class LocalShellStatus_Variant1(BaseModel):
1126
+ model_config = ConfigDict(extra="ignore")
1127
+ pass
1128
+
1129
+
1130
+ class LocalShellStatus_Variant2(BaseModel):
1131
+ model_config = ConfigDict(extra="ignore")
1132
+ pass
1133
+
1134
+
1135
+ class LocalShellStatus_Variant3(BaseModel):
1136
+ model_config = ConfigDict(extra="ignore")
1137
+ pass
1138
+
1139
+
1140
+ class ParsedCommand_Read(BaseModel):
1141
+ model_config = ConfigDict(extra="ignore")
1142
+ type: Literal["read"]
1143
+ cmd: str
1144
+ name: str
1145
+
1146
+
1147
+ class ParsedCommand_ListFiles(BaseModel):
1148
+ model_config = ConfigDict(extra="ignore")
1149
+ type: Literal["list_files"]
1150
+ cmd: str
1151
+ path: str | None = None
1152
+
1153
+
1154
+ class ParsedCommand_Search(BaseModel):
1155
+ model_config = ConfigDict(extra="ignore")
1156
+ type: Literal["search"]
1157
+ cmd: str
1158
+ query: str | None = None
1159
+ path: str | None = None
1160
+
1161
+
1162
+ class ParsedCommand_Unknown(BaseModel):
1163
+ model_config = ConfigDict(extra="ignore")
1164
+ type: Literal["unknown"]
1165
+ cmd: str
1166
+
1167
+
1168
+ class ReasoningEffort_Variant1(BaseModel):
1169
+ model_config = ConfigDict(extra="ignore")
1170
+ pass
1171
+
1172
+
1173
+ class ReasoningEffort_Variant2(BaseModel):
1174
+ model_config = ConfigDict(extra="ignore")
1175
+ pass
1176
+
1177
+
1178
+ class ReasoningEffort_Variant3(BaseModel):
1179
+ model_config = ConfigDict(extra="ignore")
1180
+ pass
1181
+
1182
+
1183
+ class ReasoningEffort_Variant4(BaseModel):
1184
+ model_config = ConfigDict(extra="ignore")
1185
+ pass
1186
+
1187
+
1188
+ class ReasoningItemContent_ReasoningText(BaseModel):
1189
+ model_config = ConfigDict(extra="ignore")
1190
+ type: Literal["reasoning_text"]
1191
+ text: str
1192
+
1193
+
1194
+ class ReasoningItemContent_Text(BaseModel):
1195
+ model_config = ConfigDict(extra="ignore")
1196
+ type: Literal["text"]
1197
+ text: str
1198
+
1199
+
1200
+ class ReasoningSummary_Variant1(BaseModel):
1201
+ model_config = ConfigDict(extra="ignore")
1202
+ pass
1203
+
1204
+
1205
+ class ReasoningSummary_Variant2(BaseModel):
1206
+ model_config = ConfigDict(extra="ignore")
1207
+ pass
1208
+
1209
+
1210
+ class ReasoningSummary_Variant3(BaseModel):
1211
+ model_config = ConfigDict(extra="ignore")
1212
+ pass
1213
+
1214
+
1215
+ class ReasoningSummary_Variant4(BaseModel):
1216
+ model_config = ConfigDict(extra="ignore")
1217
+ pass
1218
+
1219
+
1220
+ class RequestId_Variant1(BaseModel):
1221
+ model_config = ConfigDict(extra="ignore")
1222
+ pass
1223
+
1224
+
1225
+ class RequestId_Variant2(BaseModel):
1226
+ model_config = ConfigDict(extra="ignore")
1227
+ pass
1228
+
1229
+
1230
+ class ResponseItem_Message(BaseModel):
1231
+ model_config = ConfigDict(extra="ignore")
1232
+ type: Literal["message"]
1233
+ id: str | None = None
1234
+ role: str
1235
+ content: list[ContentItem]
1236
+
1237
+
1238
+ class ResponseItem_Reasoning(BaseModel):
1239
+ model_config = ConfigDict(extra="ignore")
1240
+ type: Literal["reasoning"]
1241
+ summary: list[ReasoningItemReasoningSummary]
1242
+ encrypted_content: str | None = None
1243
+
1244
+
1245
+ class ResponseItem_LocalShellCall(BaseModel):
1246
+ model_config = ConfigDict(extra="ignore")
1247
+ type: Literal["local_shell_call"]
1248
+ id: str | None = None
1249
+ call_id: str | None = None
1250
+ status: LocalShellStatus
1251
+ action: LocalShellAction
1252
+
1253
+
1254
+ class ResponseItem_FunctionCall(BaseModel):
1255
+ model_config = ConfigDict(extra="ignore")
1256
+ type: Literal["function_call"]
1257
+ id: str | None = None
1258
+ name: str
1259
+ arguments: str
1260
+ call_id: str
1261
+
1262
+
1263
+ class ResponseItem_FunctionCallOutput(BaseModel):
1264
+ model_config = ConfigDict(extra="ignore")
1265
+ type: Literal["function_call_output"]
1266
+ call_id: str
1267
+ output: FunctionCallOutputPayload
1268
+
1269
+
1270
+ class ResponseItem_CustomToolCall(BaseModel):
1271
+ model_config = ConfigDict(extra="ignore")
1272
+ type: Literal["custom_tool_call"]
1273
+ id: str | None = None
1274
+ call_id: str
1275
+ name: str
1276
+ input: str
1277
+
1278
+
1279
+ class ResponseItem_CustomToolCallOutput(BaseModel):
1280
+ model_config = ConfigDict(extra="ignore")
1281
+ type: Literal["custom_tool_call_output"]
1282
+ call_id: str
1283
+ output: str
1284
+
1285
+
1286
+ class ResponseItem_WebSearchCall(BaseModel):
1287
+ model_config = ConfigDict(extra="ignore")
1288
+ type: Literal["web_search_call"]
1289
+ id: str | None = None
1290
+ action: WebSearchAction
1291
+
1292
+
1293
+ class ResponseItem_Other(BaseModel):
1294
+ model_config = ConfigDict(extra="ignore")
1295
+ type: Literal["other"]
1296
+
1297
+
1298
+ class ReviewDecision_Variant1(BaseModel):
1299
+ model_config = ConfigDict(extra="ignore")
1300
+ pass
1301
+
1302
+
1303
+ class ReviewDecision_Variant2(BaseModel):
1304
+ model_config = ConfigDict(extra="ignore")
1305
+ pass
1306
+
1307
+
1308
+ class ReviewDecision_Variant3(BaseModel):
1309
+ model_config = ConfigDict(extra="ignore")
1310
+ pass
1311
+
1312
+
1313
+ class ReviewDecision_Variant4(BaseModel):
1314
+ model_config = ConfigDict(extra="ignore")
1315
+ pass
1316
+
1317
+
1318
+ class Role_Variant1(BaseModel):
1319
+ model_config = ConfigDict(extra="ignore")
1320
+ pass
1321
+
1322
+
1323
+ class Role_Variant2(BaseModel):
1324
+ model_config = ConfigDict(extra="ignore")
1325
+ pass
1326
+
1327
+
1328
+ class SandboxMode_Variant1(BaseModel):
1329
+ model_config = ConfigDict(extra="ignore")
1330
+ pass
1331
+
1332
+
1333
+ class SandboxMode_Variant2(BaseModel):
1334
+ model_config = ConfigDict(extra="ignore")
1335
+ pass
1336
+
1337
+
1338
+ class SandboxMode_Variant3(BaseModel):
1339
+ model_config = ConfigDict(extra="ignore")
1340
+ pass
1341
+
1342
+
1343
+ class SandboxPolicy_Variant1(BaseModel):
1344
+ model_config = ConfigDict(extra="ignore")
1345
+ mode: Literal["danger-full-access"]
1346
+
1347
+
1348
+ class SandboxPolicy_Variant2(BaseModel):
1349
+ model_config = ConfigDict(extra="ignore")
1350
+ mode: Literal["read-only"]
1351
+
1352
+
1353
+ class SandboxPolicy_Variant3(BaseModel):
1354
+ model_config = ConfigDict(extra="ignore")
1355
+ mode: Literal["workspace-write"]
1356
+ network_access: bool
1357
+ exclude_tmpdir_env_var: bool
1358
+ exclude_slash_tmp: bool
1359
+
1360
+
1361
+ class ServerNotification_AuthStatusChange(BaseModel):
1362
+ model_config = ConfigDict(extra="ignore")
1363
+ method: Literal["authStatusChange"]
1364
+ params: AuthStatusChangeNotification
1365
+
1366
+
1367
+ class ServerNotification_LoginChatGptComplete(BaseModel):
1368
+ model_config = ConfigDict(extra="ignore")
1369
+ method: Literal["loginChatGptComplete"]
1370
+ params: LoginChatGptCompleteNotification
1371
+
1372
+
1373
+ class ServerRequest_ApplyPatchApproval(BaseModel):
1374
+ model_config = ConfigDict(extra="ignore")
1375
+ method: Literal["applyPatchApproval"]
1376
+ id: RequestId
1377
+ params: ApplyPatchApprovalParams
1378
+
1379
+
1380
+ class ServerRequest_ExecCommandApproval(BaseModel):
1381
+ model_config = ConfigDict(extra="ignore")
1382
+ method: Literal["execCommandApproval"]
1383
+ id: RequestId
1384
+ params: ExecCommandApprovalParams
1385
+
1386
+
1387
+ class StepStatus_Variant1(BaseModel):
1388
+ model_config = ConfigDict(extra="ignore")
1389
+ pass
1390
+
1391
+
1392
+ class StepStatus_Variant2(BaseModel):
1393
+ model_config = ConfigDict(extra="ignore")
1394
+ pass
1395
+
1396
+
1397
+ class StepStatus_Variant3(BaseModel):
1398
+ model_config = ConfigDict(extra="ignore")
1399
+ pass
1400
+
1401
+
1402
+ class TurnAbortReason_Variant1(BaseModel):
1403
+ model_config = ConfigDict(extra="ignore")
1404
+ pass
1405
+
1406
+
1407
+ class TurnAbortReason_Variant2(BaseModel):
1408
+ model_config = ConfigDict(extra="ignore")
1409
+ pass
1410
+
1411
+
1412
+ class Verbosity_Variant1(BaseModel):
1413
+ model_config = ConfigDict(extra="ignore")
1414
+ pass
1415
+
1416
+
1417
+ class Verbosity_Variant2(BaseModel):
1418
+ model_config = ConfigDict(extra="ignore")
1419
+ pass
1420
+
1421
+
1422
+ class Verbosity_Variant3(BaseModel):
1423
+ model_config = ConfigDict(extra="ignore")
1424
+ pass
1425
+
1426
+
1427
+ class WebSearchAction_Search(BaseModel):
1428
+ model_config = ConfigDict(extra="ignore")
1429
+ type: Literal["search"]
1430
+ query: str
1431
+
1432
+
1433
+ class WebSearchAction_Other(BaseModel):
1434
+ model_config = ConfigDict(extra="ignore")
1435
+ type: Literal["other"]
1436
+
1437
+
1438
+ class AgentReasoningSectionBreakEvent(BaseModel):
1439
+ model_config = ConfigDict(extra="ignore")
1440
+ pass
1441
+
1442
+
1443
+ class ArchiveConversationResponse(BaseModel):
1444
+ model_config = ConfigDict(extra="ignore")
1445
+ pass
1446
+
1447
+
1448
+ class CancelLoginChatGptResponse(BaseModel):
1449
+ model_config = ConfigDict(extra="ignore")
1450
+ pass
1451
+
1452
+
1453
+ class LogoutChatGptResponse(BaseModel):
1454
+ model_config = ConfigDict(extra="ignore")
1455
+ pass
1456
+
1457
+
1458
+ class RemoveConversationSubscriptionResponse(BaseModel):
1459
+ model_config = ConfigDict(extra="ignore")
1460
+ pass
1461
+
1462
+
1463
+ class SendUserMessageResponse(BaseModel):
1464
+ model_config = ConfigDict(extra="ignore")
1465
+ pass
1466
+
1467
+
1468
+ class SendUserTurnResponse(BaseModel):
1469
+ model_config = ConfigDict(extra="ignore")
1470
+ pass
1471
+
1472
+
1473
+ AskForApproval = (
1474
+ AskForApproval_Variant1
1475
+ | AskForApproval_Variant2
1476
+ | AskForApproval_Variant3
1477
+ | AskForApproval_Variant4
1478
+ )
1479
+ AuthMode = AuthMode_Variant1 | AuthMode_Variant2
1480
+ ClientRequest = (
1481
+ ClientRequest_NewConversation
1482
+ | ClientRequest_ListConversations
1483
+ | ClientRequest_ResumeConversation
1484
+ | ClientRequest_ArchiveConversation
1485
+ | ClientRequest_SendUserMessage
1486
+ | ClientRequest_SendUserTurn
1487
+ | ClientRequest_InterruptConversation
1488
+ | ClientRequest_AddConversationListener
1489
+ | ClientRequest_RemoveConversationListener
1490
+ | ClientRequest_GitDiffToRemote
1491
+ | ClientRequest_LoginChatGpt
1492
+ | ClientRequest_CancelLoginChatGpt
1493
+ | ClientRequest_LogoutChatGpt
1494
+ | ClientRequest_GetAuthStatus
1495
+ | ClientRequest_GetUserSavedConfig
1496
+ | ClientRequest_GetUserAgent
1497
+ | ClientRequest_ExecOneOffCommand
1498
+ )
1499
+ ContentBlock = (
1500
+ ContentBlock_Variant1
1501
+ | ContentBlock_Variant2
1502
+ | ContentBlock_Variant3
1503
+ | ContentBlock_Variant4
1504
+ | ContentBlock_Variant5
1505
+ )
1506
+ ContentItem = ContentItem_InputText | ContentItem_InputImage | ContentItem_OutputText
1507
+ EmbeddedResourceResource = EmbeddedResourceResource_Variant1 | EmbeddedResourceResource_Variant2
1508
+ EventMsg = (
1509
+ EventMsg_Error
1510
+ | EventMsg_TaskStarted
1511
+ | EventMsg_TaskComplete
1512
+ | EventMsg_TokenCount
1513
+ | EventMsg_AgentMessage
1514
+ | EventMsg_UserMessage
1515
+ | EventMsg_AgentMessageDelta
1516
+ | EventMsg_AgentReasoning
1517
+ | EventMsg_AgentReasoningDelta
1518
+ | EventMsg_AgentReasoningRawContent
1519
+ | EventMsg_AgentReasoningRawContentDelta
1520
+ | EventMsg_AgentReasoningSectionBreak
1521
+ | EventMsg_SessionConfigured
1522
+ | EventMsg_McpToolCallBegin
1523
+ | EventMsg_McpToolCallEnd
1524
+ | EventMsg_WebSearchBegin
1525
+ | EventMsg_WebSearchEnd
1526
+ | EventMsg_ExecCommandBegin
1527
+ | EventMsg_ExecCommandOutputDelta
1528
+ | EventMsg_ExecCommandEnd
1529
+ | EventMsg_ExecApprovalRequest
1530
+ | EventMsg_ApplyPatchApprovalRequest
1531
+ | EventMsg_BackgroundEvent
1532
+ | EventMsg_StreamError
1533
+ | EventMsg_PatchApplyBegin
1534
+ | EventMsg_PatchApplyEnd
1535
+ | EventMsg_TurnDiff
1536
+ | EventMsg_GetHistoryEntryResponse
1537
+ | EventMsg_McpListToolsResponse
1538
+ | EventMsg_ListCustomPromptsResponse
1539
+ | EventMsg_PlanUpdate
1540
+ | EventMsg_TurnAborted
1541
+ | EventMsg_ShutdownComplete
1542
+ | EventMsg_ConversationHistory
1543
+ )
1544
+ ExecOutputStream = ExecOutputStream_Variant1 | ExecOutputStream_Variant2
1545
+ FileChange = FileChange_Variant1 | FileChange_Variant2 | FileChange_Variant3
1546
+ InputItem = InputItem_Text | InputItem_Image | InputItem_LocalImage
1547
+ InputMessageKind = InputMessageKind_Variant1 | InputMessageKind_Variant2 | InputMessageKind_Variant3
1548
+ LocalShellStatus = LocalShellStatus_Variant1 | LocalShellStatus_Variant2 | LocalShellStatus_Variant3
1549
+ ParsedCommand = (
1550
+ ParsedCommand_Read | ParsedCommand_ListFiles | ParsedCommand_Search | ParsedCommand_Unknown
1551
+ )
1552
+ ReasoningEffort = (
1553
+ ReasoningEffort_Variant1
1554
+ | ReasoningEffort_Variant2
1555
+ | ReasoningEffort_Variant3
1556
+ | ReasoningEffort_Variant4
1557
+ )
1558
+ ReasoningItemContent = ReasoningItemContent_ReasoningText | ReasoningItemContent_Text
1559
+ ReasoningSummary = (
1560
+ ReasoningSummary_Variant1
1561
+ | ReasoningSummary_Variant2
1562
+ | ReasoningSummary_Variant3
1563
+ | ReasoningSummary_Variant4
1564
+ )
1565
+ RequestId = RequestId_Variant1 | RequestId_Variant2
1566
+ ResponseItem = (
1567
+ ResponseItem_Message
1568
+ | ResponseItem_Reasoning
1569
+ | ResponseItem_LocalShellCall
1570
+ | ResponseItem_FunctionCall
1571
+ | ResponseItem_FunctionCallOutput
1572
+ | ResponseItem_CustomToolCall
1573
+ | ResponseItem_CustomToolCallOutput
1574
+ | ResponseItem_WebSearchCall
1575
+ | ResponseItem_Other
1576
+ )
1577
+ ReviewDecision = (
1578
+ ReviewDecision_Variant1
1579
+ | ReviewDecision_Variant2
1580
+ | ReviewDecision_Variant3
1581
+ | ReviewDecision_Variant4
1582
+ )
1583
+ Role = Role_Variant1 | Role_Variant2
1584
+ SandboxMode = SandboxMode_Variant1 | SandboxMode_Variant2 | SandboxMode_Variant3
1585
+ SandboxPolicy = SandboxPolicy_Variant1 | SandboxPolicy_Variant2 | SandboxPolicy_Variant3
1586
+ ServerNotification = ServerNotification_AuthStatusChange | ServerNotification_LoginChatGptComplete
1587
+ ServerRequest = ServerRequest_ApplyPatchApproval | ServerRequest_ExecCommandApproval
1588
+ StepStatus = StepStatus_Variant1 | StepStatus_Variant2 | StepStatus_Variant3
1589
+ TurnAbortReason = TurnAbortReason_Variant1 | TurnAbortReason_Variant2
1590
+ Verbosity = Verbosity_Variant1 | Verbosity_Variant2 | Verbosity_Variant3
1591
+ WebSearchAction = WebSearchAction_Search | WebSearchAction_Other
1592
+
1593
+ ConversationId = str
1594
+ GitSha = str
1595
+ JsonValue = Any