diff --git a/generated/anthropic.zig b/generated/anthropic.zig index 804ff86..2fcf8e6 100644 --- a/generated/anthropic.zig +++ b/generated/anthropic.zig @@ -1,7 +1,8 @@ // -// this code was generated by openapi2zig 0.4.0 (653555e) on 2026-07-19 21:50:31 UTC +// this code was generated by openapi2zig 0.4.0 (ecbd8f7) on 2026-07-19 22:45:59 UTC // changes to this file may cause incorrect behavior and will be lost if the code is regenerated // + const std = @import("std"); /////////////////////////////////////////// @@ -36,13 +37,13 @@ pub const BetaManagedAgentsGetMemoryStoreResponse = union(enum) { pub const BetaManagedAgentsAgentReference = struct { id: []const u8, - @"type": []const u8, + type: []const u8, version: i64, }; pub const BetaManagedAgentsModelOverloadedError = struct { retry_status: std.json.Value, - @"type": []const u8, + type: []const u8, message: []const u8, }; @@ -50,7 +51,7 @@ pub const BetaManagedAgentsSpanOutcomeEvaluationStartEvent = struct { processed_at: std.json.Value, iteration: i64, id: []const u8, - @"type": []const u8, + type: []const u8, outcome_id: []const u8, }; @@ -60,13 +61,13 @@ pub const BetaResponsePageLocationCitation = struct { start_page_number: i64, document_index: i64, cited_text: []const u8, - @"type": []const u8, + type: []const u8, document_title: ?[]const u8, }; pub const BetaManagedAgentsErrorResponse = struct { @"error": BetaManagedAgentsError, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsMCPToolsetDefaultConfig = struct { @@ -80,7 +81,7 @@ pub const ResponsePageLocationCitation = struct { start_page_number: i64, document_index: i64, cited_text: []const u8, - @"type": []const u8, + type: []const u8, document_title: ?[]const u8, }; @@ -92,7 +93,7 @@ pub const ThinkingTypes = struct { pub const BetaUserLocation = struct { city: ?[]const u8 = null, country: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, region: ?[]const u8 = null, timezone: ?[]const u8 = null, }; @@ -100,7 +101,7 @@ pub const BetaUserLocation = struct { pub const BetaWebhookSessionStatusRescheduledEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -108,13 +109,13 @@ pub const AnthropicBeta = []const u8; pub const BetaFileImageSource = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const ResponseBashCodeExecutionResultBlock = struct { content: []const ResponseBashCodeExecutionOutputBlock, return_code: i64, - @"type": []const u8, + type: []const u8, stderr: []const u8, stdout: []const u8, }; @@ -156,11 +157,11 @@ pub const BetaManagedAgentsAgentTool = union(enum) { }; pub const BetaManagedAgentsUnrestrictedCredentialNetworkingParams = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsTextRubricParams = struct { - @"type": []const u8, + type: []const u8, content: []const u8, }; @@ -176,7 +177,7 @@ pub const BetaManagedAgentsUpdateVaultRequestBody = struct { pub const URLPDFSource = struct { url: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSearchResultCitations = struct { @@ -186,7 +187,7 @@ pub const BetaManagedAgentsSearchResultCitations = struct { pub const BetaManagedAgentsUserToolConfirmationResult = []const u8; pub const BetaManagedAgentsAlwaysAllowPolicy = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsInputEvent = union(enum) { @@ -248,18 +249,18 @@ pub const BetaManagedAgentsInputEvent = union(enum) { pub const BetaWebhookSessionRunningEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; pub const BetaManagedAgentsBase64ImageSource = struct { media_type: []const u8, data: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsOrganizationDisabledDeploymentPausedReasonError = struct { - @"type": []const u8, + type: []const u8, }; pub const MessageBatchIndividualRequestParams = struct { @@ -269,7 +270,7 @@ pub const MessageBatchIndividualRequestParams = struct { pub const RequestToolReferenceBlock = struct { tool_name: []const u8, - @"type": []const u8, + type: []const u8, cache_control: ?std.json.Value = null, }; @@ -421,12 +422,12 @@ pub const BetaRequestWebSearchResultBlock = struct { page_age: ?[]const u8 = null, encrypted_content: []const u8, url: []const u8, - @"type": []const u8, + type: []const u8, title: []const u8, }; pub const BetaManagedAgentsDeploymentUserMessageEvent = struct { - @"type": []const u8, + type: []const u8, content: []const BetaManagedAgentsUserContentBlock, }; @@ -434,7 +435,7 @@ pub const BetaManagedAgentsAgentThreadMessageSentEvent = struct { processed_at: std.json.Value, to_session_thread_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, to_agent_name: ?[]const u8 = null, content: []const BetaManagedAgentsUserContentBlock, }; @@ -473,7 +474,7 @@ pub const BetaResponseCodeExecutionToolResultBlockContent = union(enum) { pub const BetaResponseCodeExecutionToolResultBlock = struct { tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: BetaResponseCodeExecutionToolResultBlockContent, }; @@ -494,7 +495,7 @@ pub const BetaUsage = struct { pub const BetaWebhookSessionCreatedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -503,7 +504,7 @@ pub const ResponseToolUseBlock = struct { id: []const u8, input: std.json.Value, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsDeploymentStatus = []const u8; @@ -511,7 +512,7 @@ pub const BetaManagedAgentsDeploymentStatus = []const u8; pub const BetaWebhookVaultArchivedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -522,13 +523,13 @@ pub const MemoryTool_20250818 = struct { allowed_callers: ?[]const AllowedCaller = null, cache_control: ?std.json.Value = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const RequestCodeExecutionResultBlock = struct { content: []const RequestCodeExecutionOutputBlock, return_code: i64, - @"type": []const u8, + type: []const u8, stderr: []const u8, stdout: []const u8, }; @@ -628,24 +629,24 @@ pub const BetaManagedAgentsMcpOauthCreateParams = struct { access_token: []const u8, expires_at: ?[]const u8 = null, refresh: ?BetaManagedAgentsMcpOauthCreateParamsRefresh = null, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsCustomTool = struct { description: []const u8, input_schema: BetaManagedAgentsCustomToolInputSchema, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaEnrollmentUrl = struct { url: []const u8, expires_at: std.json.Value, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsVaultArchivedDeploymentPausedReasonError = struct { - @"type": []const u8, + type: []const u8, }; pub const ResponseCodeExecutionToolResultBlockContent = union(enum) { @@ -682,7 +683,7 @@ pub const ResponseCodeExecutionToolResultBlockContent = union(enum) { pub const ResponseCodeExecutionToolResultBlock = struct { tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: ResponseCodeExecutionToolResultBlockContent, }; @@ -699,12 +700,12 @@ pub const WebFetchTool_20260318 = struct { blocked_domains: ?[]const []const u8 = null, citations: ?RequestCitationsConfig = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaFileScope = struct { id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsScheduleParams = union(enum) { @@ -771,23 +772,23 @@ pub const BetaManagedAgentsCredentialAuth = union(enum) { pub const BetaDeleteSkillResponse = struct { id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const ToolChoiceNone = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaOverloadedError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const ToolSearchToolResultErrorCode = []const u8; pub const InputJsonContentBlockDelta = struct { partial_json: []const u8, - @"type": []const u8, + type: []const u8, }; pub const CreateMessageParamsWithoutStreamToolsItem = union(enum) { @@ -958,7 +959,7 @@ pub const BetaManagedAgentsCredentialRefreshStatus = []const u8; pub const RequestToolSearchToolResultError = struct { error_code: []const u8, error_message: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsListSessionThreads = struct { @@ -969,13 +970,13 @@ pub const BetaManagedAgentsListSessionThreads = struct { pub const Base64ImageSource = struct { data: []const u8, media_type: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSessionThreadStatusRunningEvent = struct { processed_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, agent_name: []const u8, session_thread_id: []const u8, }; @@ -983,7 +984,7 @@ pub const BetaManagedAgentsSessionThreadStatusRunningEvent = struct { pub const BetaManagedAgentsDeploymentUserDefineOutcomeEvent = struct { description: []const u8, rubric: std.json.Value, - @"type": []const u8, + type: []const u8, max_iterations: ?i64 = null, }; @@ -1002,24 +1003,24 @@ pub const BetaCreateSkillResponse = struct { display_title: ?[]const u8, id: []const u8, latest_version: ?[]const u8, - @"type": []const u8, + type: []const u8, updated_at: []const u8, }; pub const BetaManagedAgentsVaultNotFoundRunError = struct { - @"type": []const u8, + type: []const u8, message: []const u8, }; pub const BetaDreamMemoryStoreOutput = struct { - @"type": []const u8, + type: []const u8, memory_store_id: []const u8, }; pub const BetaWebhookSessionThreadIdledEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, session_thread_id: []const u8, }; @@ -1062,7 +1063,7 @@ pub const BetaManagedAgentsActor = union(enum) { pub const BetaManagedAgentsFileRubricParams = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaSpeed = []const u8; @@ -1100,7 +1101,7 @@ pub const RequestWebSearchToolResultBlock = struct { cache_control: ?std.json.Value = null, tool_use_id: []const u8, caller: ?std.json.Value = null, - @"type": []const u8, + type: []const u8, content: RequestWebSearchToolResultBlockContent, }; @@ -1128,26 +1129,26 @@ pub const MessageBatch = struct { archived_at: ?[]const u8, ended_at: ?[]const u8, id: []const u8, - @"type": []const u8, + type: []const u8, results_url: ?[]const u8, processing_status: []const u8, }; pub const BetaManagedAgentsAgentArchivedDeploymentPausedReasonError = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaRequestToolSearchToolResultError = struct { error_code: []const u8, error_message: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, }; pub const BetaCodeExecutionTool_20250825 = struct { cache_control: ?std.json.Value = null, strict: ?bool = null, defer_loading: ?bool = null, - @"type": []const u8, + type: []const u8, allowed_callers: ?[]const BetaAllowedCaller = null, name: []const u8, }; @@ -1155,21 +1156,21 @@ pub const BetaCodeExecutionTool_20250825 = struct { pub const BetaManagedAgentsURLMCPServerParams = struct { url: []const u8, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaInputTokensTrigger = struct { value: i64, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsRetryStatusRetrying = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaResponseToolSearchToolSearchResultBlock = struct { tool_references: []const BetaResponseToolReferenceBlock, - @"type": []const u8, + type: []const u8, }; pub const BetaWebSearchTool_20260209 = struct { @@ -1182,7 +1183,7 @@ pub const BetaWebSearchTool_20260209 = struct { user_location: ?BetaUserLocation = null, allowed_domains: ?[]const []const u8 = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const CacheCreation = struct { @@ -1192,7 +1193,7 @@ pub const CacheCreation = struct { pub const JsonOutputFormat = struct { schema: std.json.Value, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsRefreshHttpResponse = struct { @@ -1207,7 +1208,7 @@ pub const RequestPageLocationCitation = struct { document_index: i64, start_page_number: i64, cited_text: []const u8, - @"type": []const u8, + type: []const u8, document_title: ?[]const u8, }; @@ -1292,7 +1293,7 @@ pub const BetaMessageDeltaEvent = struct { delta: BetaMessageDelta, context_management: ?BetaResponseContextManagement, usage: BetaMessageDeltaUsage, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSkill = union(enum) { @@ -1327,13 +1328,13 @@ pub const BetaManagedAgentsSkill = union(enum) { }; pub const BetaManagedAgentsManualDeploymentPausedReason = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaRequestBashCodeExecutionResultBlock = struct { content: []const BetaRequestBashCodeExecutionOutputBlock, return_code: i64, - @"type": []const u8, + type: []const u8, stderr: []const u8, stdout: []const u8, }; @@ -1341,7 +1342,7 @@ pub const BetaRequestBashCodeExecutionResultBlock = struct { pub const BetaManagedAgentsEventDeltaEvent = struct { event_id: []const u8, delta: std.json.Value, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSendSessionEvents = struct { @@ -1350,24 +1351,24 @@ pub const BetaManagedAgentsSendSessionEvents = struct { pub const ThinkingConfigAdaptive = struct { display: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, }; pub const BetaWebhookDeploymentRunStartedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; pub const BetaFileDocumentSource = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsCustomSkill = struct { version: []const u8, - @"type": []const u8, + type: []const u8, skill_id: []const u8, }; @@ -1380,7 +1381,7 @@ pub const BetaManagedAgentsSessionUpdatedEventAgent = struct { system: []const u8, model: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, name: []const u8, mcp_servers: []const BetaManagedAgentsMCPServer, }; @@ -1389,13 +1390,13 @@ pub const BetaManagedAgentsSessionUpdatedEvent = struct { processed_at: std.json.Value, metadata: ?std.json.Value = null, id: []const u8, - @"type": []const u8, + type: []const u8, title: ?[]const u8 = null, agent: ?BetaManagedAgentsSessionUpdatedEventAgent = null, }; pub const BetaManagedAgentsSessionEndTurn = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaResponseContentBlockLocationCitation = struct { @@ -1404,7 +1405,7 @@ pub const BetaResponseContentBlockLocationCitation = struct { document_index: i64, start_block_index: i64, cited_text: []const u8, - @"type": []const u8, + type: []const u8, document_title: ?[]const u8, }; @@ -1413,7 +1414,7 @@ pub const BetaToolSearchToolResultErrorCode = []const u8; pub const BetaResponseToolSearchToolResultError = struct { error_code: []const u8, error_message: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsRefreshObjectHttpResponse = struct { @@ -1463,7 +1464,7 @@ pub const BetaResponseBashCodeExecutionToolResultBlockContent = union(enum) { pub const BetaResponseBashCodeExecutionToolResultBlock = struct { tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: BetaResponseBashCodeExecutionToolResultBlockContent, }; @@ -1475,7 +1476,7 @@ pub const BetaManagedAgentsSessionThreadAgent = struct { system: []const u8, model: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, name: []const u8, mcp_servers: []const BetaManagedAgentsMCPServer, }; @@ -1487,11 +1488,11 @@ pub const BetaTextEditor_20250124 = struct { allowed_callers: ?[]const BetaAllowedCaller = null, cache_control: ?std.json.Value = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaUnrestrictedNetwork = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaContainer = struct { @@ -1505,7 +1506,7 @@ pub const BetaManagedAgentsAgentToolResultEvent = struct { processed_at: std.json.Value, is_error: ?bool = null, id: []const u8, - @"type": []const u8, + type: []const u8, content: ?[]const BetaManagedAgentsToolResultContentBlock = null, }; @@ -1550,7 +1551,7 @@ pub const BetaRequestTextEditorCodeExecutionViewResultBlock = struct { file_type: []const u8, num_lines: ?i64 = null, start_line: ?i64 = null, - @"type": []const u8, + type: []const u8, content: []const u8, }; @@ -1589,7 +1590,7 @@ pub const BetaManagedAgentsListSessionThreadEvents = struct { pub const BetaDeleteSkillVersionResponse = struct { id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaMessage = struct { @@ -1602,7 +1603,7 @@ pub const BetaMessage = struct { usage: BetaUsage, model: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, stop_sequence: ?[]const u8, content: []const BetaContentBlock, }; @@ -1611,7 +1612,7 @@ pub const BetaToolSearchToolBM25_20251119 = struct { cache_control: ?std.json.Value = null, strict: ?bool = null, defer_loading: ?bool = null, - @"type": []const u8, + type: []const u8, allowed_callers: ?[]const BetaAllowedCaller = null, name: []const u8, }; @@ -1632,7 +1633,7 @@ pub const MessageBatchIndividualResponse = struct { pub const ErroredResult = struct { @"error": ErrorResponse, - @"type": []const u8, + type: []const u8, }; pub const WebFetchTool_20260209 = struct { @@ -1646,7 +1647,7 @@ pub const WebFetchTool_20260209 = struct { citations: ?RequestCitationsConfig = null, allowed_domains: ?[]const []const u8 = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const CreateMessageBatchParams = struct { @@ -1658,17 +1659,17 @@ pub const BetaSelfHostedWorkHeartbeatResponse = struct { last_heartbeat: []const u8, ttl_seconds: i64, state: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsMemoryPrefix = struct { path: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaRequestBashCodeExecutionToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaDiagnosticsParam = struct { @@ -1712,32 +1713,32 @@ pub const EffortCapability = struct { pub const BetaManagedAgentsTokenEndpointAuthBasicParam = struct { client_secret: []const u8, - @"type": []const u8, + type: []const u8, }; pub const SucceededResult = struct { message: Message, - @"type": []const u8, + type: []const u8, }; pub const BetaRequestSearchResultBlock = struct { source: []const u8, cache_control: ?std.json.Value = null, citations: ?BetaRequestCitationsConfig = null, - @"type": []const u8, + type: []const u8, title: []const u8, content: []const BetaRequestTextBlock, }; pub const BetaResponseContainerUploadBlock = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSessionThreadStatus = []const u8; pub const BetaManagedAgentsAlwaysAskPolicy = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaTunnel = struct { @@ -1745,14 +1746,14 @@ pub const BetaTunnel = struct { display_name: []const u8, archived_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, domain: []const u8, }; pub const ToolChoiceTool = struct { disable_parallel_tool_use: ?bool = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaMCPToolDefaultConfig = struct { @@ -1762,7 +1763,7 @@ pub const BetaMCPToolDefaultConfig = struct { pub const BetaTunnelToken = struct { id: []const u8, - @"type": []const u8, + type: []const u8, tunnel_token: []const u8, }; @@ -1770,7 +1771,7 @@ pub const BetaWebhookVaultCredentialDeletedEventData = struct { organization_id: []const u8, vault_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -1804,7 +1805,7 @@ pub const BetaRequestToolSearchToolResultBlockContent = union(enum) { pub const BetaRequestToolSearchToolResultBlock = struct { cache_control: ?std.json.Value = null, tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: BetaRequestToolSearchToolResultBlockContent, }; @@ -1821,16 +1822,16 @@ pub const BetaWebFetchTool_20260318 = struct { blocked_domains: ?[]const []const u8 = null, citations: ?BetaRequestCitationsConfig = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaThinkingTurns = struct { value: i64, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsVaultNotFoundDeploymentPausedReasonError = struct { - @"type": []const u8, + type: []const u8, }; pub const ResponseSearchResultLocationCitation = struct { @@ -1840,14 +1841,14 @@ pub const ResponseSearchResultLocationCitation = struct { start_block_index: i64, cited_text: []const u8, title: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaRequestMCPToolUseBlock = struct { cache_control: ?std.json.Value = null, server_name: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, input: std.json.Value, name: []const u8, }; @@ -1855,7 +1856,7 @@ pub const BetaRequestMCPToolUseBlock = struct { pub const BetaWebhookAgentDeletedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -2004,12 +2005,12 @@ pub const BetaManagedAgentsTriggerContext = union(enum) { pub const BetaRequestBashCodeExecutionOutputBlock = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsFileResourceConfig = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, mount_path: ?[]const u8 = null, }; @@ -2045,12 +2046,12 @@ pub const BetaManagedAgentsMCPServer = union(enum) { }; pub const BetaManagedAgentsUnknownDeploymentPausedReasonError = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaResponseAdvisorToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const CompletionRequest = struct { @@ -2068,7 +2069,7 @@ pub const CompletionRequest = struct { pub const MessageDeltaEvent = struct { delta: MessageDelta, usage: MessageDeltaUsage, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsEnvironmentVariableUpdateParamsInjectionLocation = struct { @@ -2078,7 +2079,7 @@ pub const BetaManagedAgentsEnvironmentVariableUpdateParamsInjectionLocation = st pub const BetaManagedAgentsEnvironmentVariableUpdateParams = struct { injection_location: ?BetaManagedAgentsEnvironmentVariableUpdateParamsInjectionLocation = null, - @"type": []const u8, + type: []const u8, networking: ?std.json.Value = null, secret_value: ?[]const u8 = null, }; @@ -2086,14 +2087,14 @@ pub const BetaManagedAgentsEnvironmentVariableUpdateParams = struct { pub const BetaWebhookAgentArchivedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; pub const BetaWebhookAgentCreatedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -2102,26 +2103,26 @@ pub const BetaAllowedCaller = []const u8; pub const BetaRequestCodeExecutionResultBlock = struct { content: []const BetaRequestCodeExecutionOutputBlock, return_code: i64, - @"type": []const u8, + type: []const u8, stderr: []const u8, stdout: []const u8, }; pub const BetaManagedAgentsMultiagentCoordinatorParams = struct { agents: []const BetaManagedAgentsMultiagentRosterEntryParams, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSessionStatusTerminatedEvent = struct { processed_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaAdvisorToolResultErrorCode = []const u8; pub const BetaManagedAgentsFileNotFoundDeploymentPausedReasonError = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaResponseAdvisorToolResultBlockContent = union(enum) { @@ -2158,7 +2159,7 @@ pub const BetaResponseAdvisorToolResultBlockContent = union(enum) { pub const BetaResponseAdvisorToolResultBlock = struct { tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: BetaResponseAdvisorToolResultBlockContent, }; @@ -2358,7 +2359,7 @@ pub const BetaCountMessageTokensParams = struct { pub const RequestTextBlock = struct { text: []const u8, citations: ?[]const std.json.Value = null, - @"type": []const u8, + type: []const u8, cache_control: ?std.json.Value = null, }; @@ -2411,13 +2412,13 @@ pub const RequestTextEditorCodeExecutionToolResultBlockContent = union(enum) { pub const RequestTextEditorCodeExecutionToolResultBlock = struct { cache_control: ?std.json.Value = null, tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: RequestTextEditorCodeExecutionToolResultBlockContent, }; pub const RequestImageBlock = struct { source: std.json.Value, - @"type": []const u8, + type: []const u8, cache_control: ?std.json.Value = null, }; @@ -2428,17 +2429,17 @@ pub const BetaBashTool_20250124 = struct { allowed_callers: ?[]const BetaAllowedCaller = null, cache_control: ?std.json.Value = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaCacheMissMessagesChanged = struct { cache_missed_input_tokens: i64, - @"type": []const u8, + type: []const u8, }; pub const BetaInputTokensClearAtLeast = struct { value: i64, - @"type": []const u8, + type: []const u8, }; pub const BetaCapabilitySupport = struct { @@ -2447,7 +2448,7 @@ pub const BetaCapabilitySupport = struct { pub const BetaToolChoiceAny = struct { disable_parallel_tool_use: ?bool = null, - @"type": []const u8, + type: []const u8, }; pub const BetaWebFetchTool_20260209 = struct { @@ -2461,12 +2462,12 @@ pub const BetaWebFetchTool_20260209 = struct { citations: ?BetaRequestCitationsConfig = null, allowed_domains: ?[]const []const u8 = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaRequestAdvisorRedactedResultBlock = struct { encrypted_content: []const u8, - @"type": []const u8, + type: []const u8, stop_reason: ?[]const u8 = null, }; @@ -2487,7 +2488,7 @@ pub const ThinkingCapability = struct { pub const BetaRequestTextEditorCodeExecutionToolResultError = struct { error_code: []const u8, error_message: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, }; pub const WebFetchTool_20260309 = struct { @@ -2501,33 +2502,33 @@ pub const WebFetchTool_20260309 = struct { citations: ?RequestCitationsConfig = null, allowed_domains: ?[]const []const u8 = null, name: []const u8, - @"type": []const u8, + type: []const u8, use_cache: ?bool = null, }; pub const CacheControlEphemeral = struct { ttl: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsUserMessageEventParams = struct { - @"type": []const u8, + type: []const u8, content: []const BetaManagedAgentsUserContentBlock, }; pub const BillingError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaErroredResult = struct { @"error": BetaErrorResponse, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsBillingError = struct { retry_status: std.json.Value, - @"type": []const u8, + type: []const u8, message: []const u8, }; @@ -2539,7 +2540,7 @@ pub const BetaThinkingCapability = struct { pub const ResponseWebFetchResultBlock = struct { retrieved_at: ?[]const u8, url: []const u8, - @"type": []const u8, + type: []const u8, content: ResponseDocumentBlock, }; @@ -2551,13 +2552,13 @@ pub const BetaOutputConfig = struct { pub const BetaContentBlockStopEvent = struct { index: i64, - @"type": []const u8, + type: []const u8, }; pub const BetaTokenTaskBudget = struct { remaining: ?i64 = null, total: i64, - @"type": []const u8, + type: []const u8, }; pub const EffortLevel = []const u8; @@ -2570,12 +2571,12 @@ pub const BetaManagedAgentsMcptoolsetParamsDefaultConfig = struct { pub const BetaManagedAgentsMCPToolsetParams = struct { default_config: ?BetaManagedAgentsMcptoolsetParamsDefaultConfig = null, mcp_server_name: []const u8, - @"type": []const u8, + type: []const u8, configs: ?[]const BetaManagedAgentsMCPToolConfigParams = null, }; pub const BetaManagedAgentsTokenEndpointAuthPostResponse = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsPrecondition = union(enum) { @@ -2608,7 +2609,7 @@ pub const CodeExecutionTool_20250522 = struct { cache_control: ?std.json.Value = null, strict: ?bool = null, defer_loading: ?bool = null, - @"type": []const u8, + type: []const u8, allowed_callers: ?[]const AllowedCaller = null, name: []const u8, }; @@ -2620,12 +2621,12 @@ pub const RequestSearchResultLocationCitation = struct { start_block_index: i64, cited_text: []const u8, title: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsDeletedCredential = struct { id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsGetSessionResource = union(enum) { @@ -2665,24 +2666,24 @@ pub const BetaManagedAgentsGetSessionResource = union(enum) { }; pub const ServerToolCaller = struct { - @"type": []const u8, + type: []const u8, tool_id: []const u8, }; pub const BetaManagedAgentsDeleteSessionResource = struct { id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const RequestThinkingBlock = struct { thinking: []const u8, signature: []const u8, - @"type": []const u8, + type: []const u8, }; pub const ResponseToolReferenceBlock = struct { tool_name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaDream = struct { @@ -2698,16 +2699,16 @@ pub const BetaDream = struct { session_id: []const u8, archived_at: []const u8, ended_at: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaSkillParams = struct { version: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, skill_id: []const u8, }; @@ -2724,29 +2725,29 @@ pub const BetaMessageDeltaUsage = struct { pub const InputSchema = struct { properties: ?std.json.Value = null, required: ?[]const []const u8 = null, - @"type": []const u8, + type: []const u8, }; pub const BetaResponseClearToolUses20250919Edit = struct { cleared_input_tokens: i64, - @"type": []const u8, + type: []const u8, cleared_tool_uses: i64, }; pub const BetaManagedAgentsEventDeltaEventContentDeltaContent = struct { text: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsEventDeltaEvent_ContentDelta = struct { - @"type": []const u8, + type: []const u8, index: ?i64 = null, content: BetaManagedAgentsEventDeltaEventContentDeltaContent, }; pub const BetaURLImageSource = struct { url: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaWebFetchToolResultErrorCode = []const u8; @@ -2757,20 +2758,20 @@ pub const BetaRequestFallbackHopInfo = struct { pub const BetaRequestMidConvSystemBlock = struct { cache_control: ?std.json.Value = null, - @"type": []const u8, + type: []const u8, content: []const std.json.Value, }; pub const BetaManagedAgentsMemoryStoreResourceConfig = struct { instructions: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, memory_store_id: []const u8, access: ?std.json.Value = null, }; pub const BetaManagedAgentsModelRequestFailedError = struct { retry_status: std.json.Value, - @"type": []const u8, + type: []const u8, message: []const u8, }; @@ -2812,7 +2813,7 @@ pub const BetaManagedAgentsCredentialUpdateAuth = union(enum) { pub const BetaManagedAgentsAgentParams = struct { id: []const u8, - @"type": []const u8, + type: []const u8, version: ?i64 = null, }; @@ -2828,14 +2829,14 @@ pub const BetaManagedAgentsListSessionResources = struct { pub const BetaInputJsonContentBlockDelta = struct { partial_json: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaResponseWebSearchResultBlock = struct { page_age: ?[]const u8, encrypted_content: []const u8, url: []const u8, - @"type": []const u8, + type: []const u8, title: []const u8, }; @@ -2853,7 +2854,7 @@ pub const BetaManagedAgentsSessionThreadAgent = struct { system: []const u8, model: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, name: []const u8, mcp_servers: []const BetaManagedAgentsMCPServer, }; @@ -2880,18 +2881,18 @@ pub const BetaManagedAgentsSessionThread = struct { agent: BetaManagedAgentsSessionThreadAgent, usage: BetaManagedAgentsSessionThreadUsage, id: []const u8, - @"type": []const u8, + type: []const u8, updated_at: std.json.Value, }; pub const BetaResponseToolReferenceBlock = struct { tool_name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsTokenEndpointAuthPostParam = struct { client_secret: []const u8, - @"type": []const u8, + type: []const u8, }; pub const ResponseToolSearchToolResultBlockContent = union(enum) { @@ -2923,7 +2924,7 @@ pub const ResponseToolSearchToolResultBlockContent = union(enum) { pub const ResponseToolSearchToolResultBlock = struct { tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: ResponseToolSearchToolResultBlockContent, }; @@ -2937,19 +2938,19 @@ pub const BetaManagedAgentsAgentMcpToolResultEvent = struct { processed_at: std.json.Value, is_error: ?bool = null, id: []const u8, - @"type": []const u8, + type: []const u8, content: ?[]const BetaManagedAgentsToolResultContentBlock = null, }; pub const BetaManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaRequestTextEditorCodeExecutionStrReplaceResultBlock = struct { old_lines: ?i64 = null, new_lines: ?i64 = null, old_start: ?i64 = null, - @"type": []const u8, + type: []const u8, lines: ?[]const []const u8 = null, new_start: ?i64 = null, }; @@ -2960,20 +2961,20 @@ pub const BetaRefusalStopDetails = struct { fallback_credit_token: ?[]const u8, fallback_has_prefill_claim: ?bool, recommended_model: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const RequestBashCodeExecutionResultBlock = struct { content: []const RequestBashCodeExecutionOutputBlock, return_code: i64, - @"type": []const u8, + type: []const u8, stderr: []const u8, stdout: []const u8, }; pub const BetaCloudConfigParams = struct { packages: ?BetaPackagesParams = null, - @"type": []const u8, + type: []const u8, networking: ?std.json.Value = null, }; @@ -2993,7 +2994,7 @@ pub const BetaFallbackMessageIterationUsage = struct { model: []const u8, output_tokens: i64, cache_creation_input_tokens: i64, - @"type": []const u8, + type: []const u8, cache_creation: ?BetaCacheCreation, }; @@ -3008,7 +3009,7 @@ pub const BetaResponseServerToolUseBlock = struct { id: []const u8, input: std.json.Value, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BashCodeExecutionToolResultErrorCode = []const u8; @@ -3020,12 +3021,12 @@ pub const BetaBody_create_skill_v1_skills_post = struct { pub const InvalidRequestError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const ResponseCodeExecutionToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaEffortLevel = []const u8; @@ -3060,7 +3061,7 @@ pub const BetaResponseWebFetchToolResultBlockContent = union(enum) { pub const BetaResponseWebFetchToolResultBlock = struct { tool_use_id: []const u8, caller: ?std.json.Value = null, - @"type": []const u8, + type: []const u8, content: BetaResponseWebFetchToolResultBlockContent, }; @@ -3096,7 +3097,7 @@ pub const BetaResponseWebSearchToolResultBlockContent = union(enum) { pub const BetaResponseWebSearchToolResultBlock = struct { tool_use_id: []const u8, caller: ?std.json.Value = null, - @"type": []const u8, + type: []const u8, content: BetaResponseWebSearchToolResultBlockContent, }; @@ -3106,7 +3107,7 @@ pub const BetaAdvisorMessageIterationUsage = struct { model: []const u8, output_tokens: i64, cache_creation_input_tokens: i64, - @"type": []const u8, + type: []const u8, cache_creation: ?BetaCacheCreation, }; @@ -3116,18 +3117,18 @@ pub const OutputConfig = struct { }; pub const BetaManagedAgentsMemoryPreconditionFailedError = struct { - @"type": []const u8, + type: []const u8, message: ?[]const u8 = null, }; pub const ResponseTextBlock = struct { text: []const u8, citations: ?[]const std.json.Value, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError = struct { - @"type": []const u8, + type: []const u8, }; pub const CountMessageTokensParamsToolsItem = union(enum) { @@ -3287,13 +3288,13 @@ pub const CountMessageTokensParams = struct { pub const BetaThinkingDisplayMode = []const u8; pub const BetaManagedAgentsSkillNotFoundRunError = struct { - @"type": []const u8, + type: []const u8, message: []const u8, }; pub const BetaManagedAgentsTokenEndpointAuthPostUpdateParam = struct { client_secret: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, }; pub const BetaServerToolUsage = struct { @@ -3313,7 +3314,7 @@ pub const BetaLimitedNetwork = struct { allowed_hosts: []const []const u8, allow_mcp_servers: bool, allow_package_managers: bool, - @"type": []const u8, + type: []const u8, }; pub const CreateMessageParamsToolsItem = union(enum) { @@ -3493,7 +3494,7 @@ pub const BetaManagedAgentsListMemoryStoresResponse = struct { }; pub const BetaManagedAgentsMultiagentSelfParams = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaRequestTextEditorCodeExecutionToolResultBlockContent = union(enum) { @@ -3536,7 +3537,7 @@ pub const BetaRequestTextEditorCodeExecutionToolResultBlockContent = union(enum) pub const BetaRequestTextEditorCodeExecutionToolResultBlock = struct { cache_control: ?std.json.Value = null, tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: BetaRequestTextEditorCodeExecutionToolResultBlockContent, }; @@ -3599,7 +3600,7 @@ pub const BetaManagedAgentsEventParams = union(enum) { pub const BetaManagedAgentsStaticBearerCreateParams = struct { mcp_server_url: []const u8, token: []const u8, - @"type": []const u8, + type: []const u8, }; pub const Tool = struct { @@ -3611,14 +3612,14 @@ pub const Tool = struct { description: ?[]const u8 = null, input_schema: InputSchema, name: []const u8, - @"type": ?[]const u8 = null, + type: ?[]const u8 = null, eager_input_streaming: ?bool = null, }; pub const BetaContentBlockDeltaEvent = struct { delta: std.json.Value, index: i64, - @"type": []const u8, + type: []const u8, }; pub const BetaModelInfo = struct { @@ -3629,7 +3630,7 @@ pub const BetaModelInfo = struct { display_name: []const u8, allowed_fallback_models: ?[]const []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BashTool_20250124 = struct { @@ -3639,13 +3640,13 @@ pub const BashTool_20250124 = struct { allowed_callers: ?[]const AllowedCaller = null, cache_control: ?std.json.Value = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const ThinkingDisplayMode = []const u8; pub const BetaExpiredResult = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaListUserProfilesResponse = struct { @@ -3688,7 +3689,7 @@ pub const BetaManagedAgentsMemoryListItem = union(enum) { pub const BetaRequestToolSearchToolSearchResultBlock = struct { tool_references: []const BetaRequestToolReferenceBlock, - @"type": []const u8, + type: []const u8, }; pub const WebFetchTool_20250910 = struct { @@ -3702,13 +3703,13 @@ pub const WebFetchTool_20250910 = struct { citations: ?RequestCitationsConfig = null, allowed_domains: ?[]const []const u8 = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaResponseFallbackBlock = struct { from: BetaResponseFallbackHopInfo, to: BetaResponseFallbackHopInfo, - @"type": []const u8, + type: []const u8, trigger: BetaFallbackRefusalTrigger, }; @@ -3745,32 +3746,32 @@ pub const BetaManagedAgentsCreateMemoryParams = struct { pub const BetaManagedAgentsDeletedMemory = struct { id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsMultiagentCoordinator = struct { agents: []const BetaManagedAgentsAgentReference, - @"type": []const u8, + type: []const u8, }; pub const BetaWebhookSessionRequiresActionEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; pub const BetaWebhookSessionThreadCreatedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, session_thread_id: []const u8, }; pub const BetaTextContentBlockDelta = struct { text: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaMemoryTool_20250818_ViewCommand = struct { @@ -3785,19 +3786,19 @@ pub const BetaDreamModelConfig = struct { }; pub const BetaManagedAgentsMemoryStoreArchivedRunError = struct { - @"type": []const u8, + type: []const u8, message: []const u8, }; pub const BetaDreamError = struct { - @"type": []const u8, + type: []const u8, message: []const u8, }; pub const BetaBase64PDFSource = struct { data: []const u8, media_type: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaToolChoice = union(enum) { @@ -3886,14 +3887,14 @@ pub const BetaManagedAgentsAgentWithOverridesParams = struct { system: ?[]const u8 = null, model: ?[]const u8 = null, id: []const u8, - @"type": []const u8, + type: []const u8, mcp_servers: ?[]const BetaManagedAgentsMCPServerParams = null, }; pub const BetaRequestCompactionBlock = struct { cache_control: ?std.json.Value = null, encrypted_content: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, content: ?[]const u8 = null, }; @@ -3936,13 +3937,13 @@ pub const BetaManagedAgentsSessionStatusIdleEventStopReason = union(enum) { pub const BetaManagedAgentsSessionStatusIdleEvent = struct { processed_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, stop_reason: BetaManagedAgentsSessionStatusIdleEventStopReason, }; pub const ResponseBashCodeExecutionToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaResponseWebSearchResultLocationCitation = struct { @@ -3950,7 +3951,7 @@ pub const BetaResponseWebSearchResultLocationCitation = struct { encrypted_index: []const u8, cited_text: []const u8, title: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const Metadata = struct { @@ -3958,12 +3959,12 @@ pub const Metadata = struct { }; pub const BetaSelfHostedConfigParams = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaPermissionError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSpeed = []const u8; @@ -3975,14 +3976,14 @@ pub const BetaContextManagementResponse = struct { pub const BetaManagedAgentsSessionThreadStatusRescheduledEvent = struct { processed_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, agent_name: []const u8, session_thread_id: []const u8, }; pub const BetaManagedAgentsEventStartEvent_AgentMessagePreview = struct { id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSpanModelUsage = struct { @@ -3997,7 +3998,7 @@ pub const BetaToolSearchToolRegex_20251119 = struct { cache_control: ?std.json.Value = null, strict: ?bool = null, defer_loading: ?bool = null, - @"type": []const u8, + type: []const u8, allowed_callers: ?[]const BetaAllowedCaller = null, name: []const u8, }; @@ -4005,7 +4006,7 @@ pub const BetaToolSearchToolRegex_20251119 = struct { pub const BetaManagedAgentsUserInterruptEvent = struct { processed_at: ?std.json.Value = null, id: []const u8, - @"type": []const u8, + type: []const u8, session_thread_id: ?[]const u8 = null, }; @@ -4044,7 +4045,7 @@ pub const BetaRequestToolResultBlock = struct { cache_control: ?std.json.Value = null, tool_use_id: []const u8, is_error: ?bool = null, - @"type": []const u8, + type: []const u8, content: ?BetaRequestToolResultBlockContent = null, }; @@ -4054,13 +4055,13 @@ pub const BetaManagedAgentsVault = struct { archived_at: std.json.Value, metadata: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, updated_at: []const u8, }; pub const BetaCacheMissSystemChanged = struct { cache_missed_input_tokens: i64, - @"type": []const u8, + type: []const u8, }; pub const BetaInputContentBlock = union(enum) { @@ -4191,7 +4192,7 @@ pub const BetaInputContentBlock = union(enum) { }; pub const BetaManagedAgentsDeploymentSystemMessageEvent = struct { - @"type": []const u8, + type: []const u8, content: []const BetaManagedAgentsSystemContentBlock, }; @@ -4205,7 +4206,7 @@ pub const BetaManagedAgentsGitHubRepositoryResource = struct { checkout: ?BetaManagedAgentsRepositoryCheckout = null, url: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, mount_path: []const u8, updated_at: []const u8, }; @@ -4215,31 +4216,31 @@ pub const BetaManagedAgentsMemoryVersionOperation = []const u8; pub const BetaWebhookSessionThreadTerminatedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, session_thread_id: []const u8, }; pub const ThinkingContentBlockDelta = struct { thinking: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaRequestTextBlock = struct { text: []const u8, citations: ?[]const std.json.Value = null, - @"type": []const u8, + type: []const u8, cache_control: ?std.json.Value = null, }; pub const BetaManagedAgentsTextBlock = struct { text: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSessionMultiagentCoordinator = struct { agents: []const BetaManagedAgentsSessionThreadAgent, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsRubric = union(enum) { @@ -4274,7 +4275,7 @@ pub const BetaManagedAgentsRubric = union(enum) { }; pub const BetaManagedAgentsAgentArchivedRunError = struct { - @"type": []const u8, + type: []const u8, message: []const u8, }; @@ -4291,7 +4292,7 @@ pub const BetaBashTool_20241022 = struct { allowed_callers: ?[]const BetaAllowedCaller = null, cache_control: ?std.json.Value = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaDiagnostics = struct { @@ -4312,14 +4313,14 @@ pub const BetaManagedAgentsAgent = struct { archived_at: std.json.Value, metadata: std.json.Value, name: []const u8, - @"type": []const u8, + type: []const u8, mcp_servers: []const BetaManagedAgentsMCPServer, }; pub const BetaManagedAgentsAgentThinkingEvent = struct { processed_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaClearThinking20251015KeepVariant0 = std.json.Value; @@ -4354,7 +4355,7 @@ pub const BetaClearThinking20251015Keep = union(enum) { }; pub const BetaClearThinking20251015 = struct { - @"type": []const u8, + type: []const u8, keep: ?BetaClearThinking20251015Keep = null, }; @@ -4365,7 +4366,7 @@ pub const BetaPackages = struct { cargo: []const []const u8, pip: []const []const u8, gem: []const []const u8, - @"type": ?[]const u8 = null, + type: ?[]const u8 = null, }; pub const BetaWebSearchTool_20250305 = struct { @@ -4378,28 +4379,28 @@ pub const BetaWebSearchTool_20250305 = struct { user_location: ?BetaUserLocation = null, allowed_domains: ?[]const []const u8 = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const ExpiredResult = struct { - @"type": []const u8, + type: []const u8, }; pub const ResponseTextEditorCodeExecutionToolResultError = struct { error_code: []const u8, error_message: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const ThinkingConfigEnabled = struct { display: ?[]const u8 = null, budget_tokens: i64, - @"type": []const u8, + type: []const u8, }; pub const BetaResponseTextEditorCodeExecutionCreateResultBlock = struct { is_file_update: bool, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsRetryStatus = union(enum) { @@ -4446,7 +4447,7 @@ pub const BetaManagedAgentsListAgentVersions = struct { pub const BetaWebhookSessionDeletedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -4522,7 +4523,7 @@ pub const ResponseCharLocationCitation = struct { document_index: i64, end_char_index: i64, cited_text: []const u8, - @"type": []const u8, + type: []const u8, start_char_index: i64, }; @@ -4530,19 +4531,19 @@ pub const ResponseWebSearchResultBlock = struct { page_age: ?[]const u8, encrypted_content: []const u8, url: []const u8, - @"type": []const u8, + type: []const u8, title: []const u8, }; pub const BetaContentBlockStartEvent = struct { content_block: std.json.Value, index: i64, - @"type": []const u8, + type: []const u8, }; pub const BetaAPIError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaContextManagementCapability = struct { @@ -4558,7 +4559,7 @@ pub const BetaCreateTunnelCertificateRequestBody = struct { pub const BetaManagedAgentsFileDocumentSource = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaCodeExecutionToolResultErrorCode = []const u8; @@ -4570,7 +4571,7 @@ pub const BetaTunnelCertificate = struct { fingerprint: []const u8, archived_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaRequestSearchResultLocationCitation = struct { @@ -4580,12 +4581,12 @@ pub const BetaRequestSearchResultLocationCitation = struct { start_block_index: i64, cited_text: []const u8, title: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsLimitedCredentialNetworkingParams = struct { allowed_hosts: []const []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsCreateAgentParams = struct { @@ -4602,13 +4603,13 @@ pub const BetaManagedAgentsCreateAgentParams = struct { pub const BetaManagedAgentsImageBlock = struct { source: std.json.Value, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsGitHubRepositoryResourceConfig = struct { url: []const u8, checkout: ?std.json.Value = null, - @"type": []const u8, + type: []const u8, mount_path: ?[]const u8 = null, }; @@ -4616,7 +4617,7 @@ pub const BetaManagedAgentsAgentCustomToolUseEvent = struct { input: std.json.Value, processed_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, name: []const u8, session_thread_id: ?[]const u8 = null, }; @@ -4668,18 +4669,18 @@ pub const BetaRequestCodeExecutionToolResultBlockContent = union(enum) { pub const BetaRequestCodeExecutionToolResultBlock = struct { cache_control: ?std.json.Value = null, tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: BetaRequestCodeExecutionToolResultBlockContent, }; pub const BetaManagedAgentsSessionResourceNotFoundRunError = struct { - @"type": []const u8, + type: []const u8, message: []const u8, }; pub const BetaResponseAdvisorResultBlock = struct { text: []const u8, - @"type": []const u8, + type: []const u8, stop_reason: ?[]const u8, }; @@ -4693,11 +4694,11 @@ pub const WebSearchTool_20250305 = struct { user_location: ?UserLocation = null, allowed_domains: ?[]const []const u8 = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSessionRateLimitedRunError = struct { - @"type": []const u8, + type: []const u8, message: []const u8, }; @@ -4707,7 +4708,7 @@ pub const BetaManagedAgentsFileResource = struct { created_at: []const u8, file_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, mount_path: []const u8, updated_at: []const u8, }; @@ -4715,7 +4716,7 @@ pub const BetaManagedAgentsFileResource = struct { pub const BetaManagedAgentsSystemMessageEvent = struct { processed_at: ?std.json.Value = null, id: []const u8, - @"type": []const u8, + type: []const u8, content: []const BetaManagedAgentsSystemContentBlock, }; @@ -4726,13 +4727,13 @@ pub const BetaMemoryTool_20250818 = struct { allowed_callers: ?[]const BetaAllowedCaller = null, cache_control: ?std.json.Value = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaResponseTextEditorCodeExecutionToolResultError = struct { error_code: []const u8, error_message: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaJsonValue = std.json.Value; @@ -4740,13 +4741,13 @@ pub const BetaJsonValue = std.json.Value; pub const BetaManagedAgentsPlainTextDocumentSource = struct { media_type: []const u8, data: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaResponseCodeExecutionResultBlock = struct { content: []const BetaResponseCodeExecutionOutputBlock, return_code: i64, - @"type": []const u8, + type: []const u8, stderr: []const u8, stdout: []const u8, }; @@ -4765,13 +4766,13 @@ pub const BetaManagedAgentsSessionThreadUsage = struct { pub const RequestMidConvSystemBlock = struct { cache_control: ?std.json.Value = null, - @"type": []const u8, + type: []const u8, content: []const std.json.Value, }; pub const BetaSkill = struct { version: []const u8, - @"type": []const u8, + type: []const u8, skill_id: []const u8, }; @@ -4781,7 +4782,7 @@ pub const BetaMetadata = struct { pub const BetaResponseCodeExecutionToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const WebSearchTool_20260209 = struct { @@ -4794,14 +4795,14 @@ pub const WebSearchTool_20260209 = struct { user_location: ?UserLocation = null, allowed_domains: ?[]const []const u8 = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaCodeExecutionTool_20260120 = struct { cache_control: ?std.json.Value = null, strict: ?bool = null, defer_loading: ?bool = null, - @"type": []const u8, + type: []const u8, allowed_callers: ?[]const BetaAllowedCaller = null, name: []const u8, }; @@ -4835,7 +4836,7 @@ pub const BetaResponseToolSearchToolResultBlockContent = union(enum) { pub const BetaResponseToolSearchToolResultBlock = struct { tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: BetaResponseToolSearchToolResultBlockContent, }; @@ -4904,7 +4905,7 @@ pub const BetaDreamInput = union(enum) { pub const Base64PDFSource = struct { data: []const u8, media_type: []const u8, - @"type": []const u8, + type: []const u8, }; pub const TextEditor_20250124 = struct { @@ -4914,7 +4915,7 @@ pub const TextEditor_20250124 = struct { allowed_callers: ?[]const AllowedCaller = null, cache_control: ?std.json.Value = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSessionResource = union(enum) { @@ -4956,12 +4957,12 @@ pub const BetaManagedAgentsSessionResource = union(enum) { pub const BetaManagedAgentsCustomToolInputSchema = struct { properties: ?std.json.Value = null, required: ?[]const []const u8 = null, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsEventStartEvent_AgentThinkingPreview = struct { id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsUserContentBlock = union(enum) { @@ -5006,29 +5007,29 @@ pub const BetaMessageIterationUsage = struct { model: []const u8, output_tokens: i64, cache_creation_input_tokens: i64, - @"type": []const u8, + type: []const u8, cache_creation: ?BetaCacheCreation, }; pub const BetaResponseClearThinking20251015Edit = struct { cleared_input_tokens: i64, cleared_thinking_turns: i64, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsMCPServerURLDefinition = struct { url: []const u8, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsURLDocumentSource = struct { url: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsTokenEndpointAuthBasicResponse = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaRequestCounts = struct { @@ -5042,7 +5043,7 @@ pub const BetaRequestCounts = struct { pub const BetaTextEditorCodeExecutionToolResultErrorCode = []const u8; pub const BetaManagedAgentsManualTriggerContext = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaMCPToolConfig = struct { @@ -5052,23 +5053,23 @@ pub const BetaMCPToolConfig = struct { pub const BetaManagedAgentsStaticBearerAuthResponse = struct { mcp_server_url: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsAnthropicSkillParams = struct { version: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, skill_id: []const u8, }; pub const BetaManagedAgentsSessionCreationRejectedRunError = struct { - @"type": []const u8, + type: []const u8, message: []const u8, }; pub const BetaToolUsesTrigger = struct { value: i64, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsInjectionLocationParams = struct { @@ -5081,11 +5082,11 @@ pub const ResponseServerToolUseBlock = struct { id: []const u8, input: std.json.Value, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsWorkspaceArchivedRunError = struct { - @"type": []const u8, + type: []const u8, message: []const u8, }; @@ -5105,14 +5106,14 @@ pub const BetaManagedAgentsSpanOutcomeEvaluationEndEvent = struct { usage: BetaManagedAgentsSpanOutcomeEvaluationEndEventUsage, explanation: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, outcome_id: []const u8, }; pub const BetaWebhookSessionPendingEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -5120,7 +5121,7 @@ pub const BetaWebhookVaultCredentialRefreshFailedEventData = struct { organization_id: []const u8, vault_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -5131,7 +5132,7 @@ pub const BetaPackagesParams = struct { cargo: ?[]const []const u8 = null, pip: ?[]const []const u8 = null, gem: ?[]const []const u8 = null, - @"type": ?[]const u8 = null, + type: ?[]const u8 = null, }; pub const StopReason = []const u8; @@ -5177,20 +5178,20 @@ pub const ResponseTextEditorCodeExecutionToolResultBlockContent = union(enum) { pub const ResponseTextEditorCodeExecutionToolResultBlock = struct { tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: ResponseTextEditorCodeExecutionToolResultBlockContent, }; pub const BetaManagedAgentsMcpConnectionFailedError = struct { retry_status: std.json.Value, - @"type": []const u8, + type: []const u8, message: []const u8, mcp_server_name: []const u8, }; pub const RequestBashCodeExecutionOutputBlock = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaRequestContentBlockLocationCitation = struct { @@ -5198,17 +5199,17 @@ pub const BetaRequestContentBlockLocationCitation = struct { start_block_index: i64, document_index: i64, cited_text: []const u8, - @"type": []const u8, + type: []const u8, document_title: ?[]const u8, }; pub const BetaAllThinkingTurns = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaJsonOutputFormat = struct { schema: std.json.Value, - @"type": []const u8, + type: []const u8, }; pub const WebSearchTool_20260318 = struct { @@ -5222,13 +5223,13 @@ pub const WebSearchTool_20260318 = struct { user_location: ?UserLocation = null, allowed_domains: ?[]const []const u8 = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsUserMessageEvent = struct { processed_at: ?std.json.Value = null, id: []const u8, - @"type": []const u8, + type: []const u8, content: []const BetaManagedAgentsUserContentBlock, }; @@ -5238,54 +5239,54 @@ pub const Betaapi__schemas__skills__Skill = struct { display_title: ?[]const u8, id: []const u8, latest_version: ?[]const u8, - @"type": []const u8, + type: []const u8, updated_at: []const u8, }; pub const PlainTextSource = struct { data: []const u8, media_type: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaRequestToolReferenceBlock = struct { tool_name: []const u8, - @"type": []const u8, + type: []const u8, cache_control: ?std.json.Value = null, }; pub const RequestCodeExecutionOutputBlock = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const NotFoundError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaWebhookSessionOutcomeEvaluationEndedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; pub const BetaThinkingConfigAdaptive = struct { display: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, }; pub const BetaWebhookAgentUpdatedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; pub const BetaManagedAgentsErrorDeploymentPausedReason = struct { @"error": std.json.Value, - @"type": []const u8, + type: []const u8, }; pub const BetaThinkingTypes = struct { @@ -5301,7 +5302,7 @@ pub const BetaGetSkillVersionResponse = struct { description: []const u8, id: []const u8, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaContentBlock = union(enum) { @@ -5415,19 +5416,19 @@ pub const BetaClearToolUses20250919 = struct { trigger: ?std.json.Value = null, exclude_tools: ?[]const []const u8 = null, clear_at_least: ?BetaInputTokensClearAtLeast = null, - @"type": []const u8, + type: []const u8, clear_tool_inputs: std.json.Value = null, keep: ?std.json.Value = null, }; pub const BetaDreamSessionsInput = struct { session_ids: []const []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsDeploymentRunAgent = struct { id: []const u8, - @"type": []const u8, + type: []const u8, version: i64, }; @@ -5439,7 +5440,7 @@ pub const BetaManagedAgentsDeploymentRun = struct { trigger_context: std.json.Value, agent: BetaManagedAgentsDeploymentRunAgent, id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaOutputTokensDetails = struct { @@ -5449,7 +5450,7 @@ pub const BetaOutputTokensDetails = struct { pub const BetaResponseWebFetchResultBlock = struct { retrieved_at: ?[]const u8, url: []const u8, - @"type": []const u8, + type: []const u8, content: BetaResponseDocumentBlock, }; @@ -5461,7 +5462,7 @@ pub const BetaMessageBatch = struct { archived_at: ?[]const u8, ended_at: ?[]const u8, id: []const u8, - @"type": []const u8, + type: []const u8, results_url: ?[]const u8, processing_status: []const u8, }; @@ -5469,18 +5470,18 @@ pub const BetaMessageBatch = struct { pub const RefusalStopDetails = struct { category: ?[]const u8, explanation: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsMemoryPathConflictError = struct { conflicting_path: ?[]const u8 = null, conflicting_memory_id: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, message: ?[]const u8 = null, }; pub const BetaCacheMissUnavailable = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsDeploymentInitialEvent = union(enum) { @@ -5527,7 +5528,7 @@ pub const TextEditor_20250728 = struct { cache_control: ?std.json.Value = null, max_characters: ?i64 = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaEnvironmentListResponse = struct { @@ -5542,19 +5543,19 @@ pub const BetaManagedAgentsOutcomeEvaluationResource = struct { description: []const u8, outcome_id: []const u8, explanation: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaWebhookDeploymentUnpausedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; pub const ResponseTextEditorCodeExecutionCreateResultBlock = struct { is_file_update: bool, - @"type": []const u8, + type: []const u8, }; pub const ErrorType = []const u8; @@ -5562,31 +5563,31 @@ pub const ErrorType = []const u8; pub const BetaManagedAgentsAgentMessageEvent = struct { processed_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, content: []const BetaManagedAgentsTextBlock, }; pub const WebFetchToolResultErrorCode = []const u8; pub const MessageStopEvent = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaWebhookDeploymentPausedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; pub const OverloadedError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsFileResourceParams = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, mount_path: ?[]const u8 = null, }; @@ -5653,7 +5654,7 @@ pub const BetaManagedAgentsEnvironmentVariableAuthResponseInjectionLocation = st pub const BetaManagedAgentsEnvironmentVariableAuthResponse = struct { injection_location: BetaManagedAgentsEnvironmentVariableAuthResponseInjectionLocation, - @"type": []const u8, + type: []const u8, secret_name: []const u8, networking: std.json.Value, }; @@ -5664,7 +5665,7 @@ pub const BetaManagedAgentsListAgents = struct { }; pub const ServerToolCaller_20260120 = struct { - @"type": []const u8, + type: []const u8, tool_id: []const u8, }; @@ -5679,12 +5680,12 @@ pub const BetaResponseMCPToolUseBlock = struct { id: []const u8, input: std.json.Value, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaToolChoiceAuto = struct { disable_parallel_tool_use: ?bool = null, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsCreateMemoryStoreRequest = struct { @@ -5696,7 +5697,7 @@ pub const BetaManagedAgentsCreateMemoryStoreRequest = struct { pub const BetaWebhookDeploymentDeletedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -5707,14 +5708,14 @@ pub const BetaListDreamsResponse = struct { pub const BetaManagedAgentsUserCustomToolResultEventParams = struct { is_error: ?bool = null, - @"type": []const u8, + type: []const u8, custom_tool_use_id: []const u8, content: ?[]const BetaManagedAgentsToolResultContentBlock = null, }; pub const BetaManagedAgentsBranchCheckout = struct { name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsMcpOauthAuthResponseRefreshTokenEndpointAuth = union(enum) { @@ -5765,18 +5766,18 @@ pub const BetaManagedAgentsMcpOauthAuthResponse = struct { mcp_server_url: []const u8, expires_at: ?[]const u8 = null, refresh: ?BetaManagedAgentsMcpOauthAuthResponseRefresh = null, - @"type": []const u8, + type: []const u8, }; pub const BetaBase64ImageSource = struct { data: []const u8, media_type: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaDeleteMessageBatchResponse = struct { id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsAgentToolUseEvent = struct { @@ -5784,7 +5785,7 @@ pub const BetaManagedAgentsAgentToolUseEvent = struct { session_thread_id: ?[]const u8 = null, evaluated_permission: ?std.json.Value = null, id: []const u8, - @"type": []const u8, + type: []const u8, name: []const u8, input: std.json.Value, }; @@ -5794,7 +5795,7 @@ pub const BetaManagedAgentsUserCustomToolResultEvent = struct { session_thread_id: ?[]const u8 = null, is_error: ?bool = null, id: []const u8, - @"type": []const u8, + type: []const u8, custom_tool_use_id: []const u8, content: ?[]const BetaManagedAgentsToolResultContentBlock = null, }; @@ -5810,7 +5811,7 @@ pub const BetaPublicEnvironmentCreateRequest = struct { pub const BetaRequestThinkingBlock = struct { thinking: []const u8, signature: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsAgentToolset20260401_EditInput = struct { @@ -5822,7 +5823,7 @@ pub const BetaManagedAgentsAgentToolset20260401_EditInput = struct { pub const BetaEnvironmentDeleteResponse = struct { id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaResponseTextEditorCodeExecutionToolResultBlockContent = union(enum) { @@ -5864,18 +5865,18 @@ pub const BetaResponseTextEditorCodeExecutionToolResultBlockContent = union(enum pub const BetaResponseTextEditorCodeExecutionToolResultBlock = struct { tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: BetaResponseTextEditorCodeExecutionToolResultBlockContent, }; pub const RequestToolSearchToolSearchResultBlock = struct { tool_references: []const RequestToolReferenceBlock, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsDeletedVault = struct { id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsTriggerType = []const u8; @@ -5888,13 +5889,13 @@ pub const BetaMessageBatchIndividualRequestParams = struct { pub const BetaWebhookSessionIdledEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; pub const BetaManagedAgentsCommitCheckout = struct { sha: []const u8, - @"type": []const u8, + type: []const u8, }; pub const ResponseCitationsConfig = struct { @@ -5904,7 +5905,7 @@ pub const ResponseCitationsConfig = struct { pub const BetaManagedAgentsUserToolResultEventParams = struct { tool_use_id: []const u8, is_error: ?bool = null, - @"type": []const u8, + type: []const u8, content: ?[]const BetaManagedAgentsToolResultContentBlock = null, }; @@ -5913,7 +5914,7 @@ pub const BetaManagedAgentsModel = std.json.Value; pub const BetaWebhookDeploymentCreatedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -5967,19 +5968,19 @@ pub const BetaListResponse_ModelInfo_ = struct { pub const BetaResponseCompactionBlock = struct { encrypted_content: ?[]const u8, - @"type": []const u8, + type: []const u8, content: ?[]const u8, }; pub const ResponseThinkingBlock = struct { thinking: []const u8, signature: []const u8, - @"type": []const u8, + type: []const u8, }; pub const ToolChoiceAny = struct { disable_parallel_tool_use: ?bool = null, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSessionErrorEventError = union(enum) { @@ -6047,12 +6048,12 @@ pub const BetaManagedAgentsSessionErrorEvent = struct { @"error": BetaManagedAgentsSessionErrorEventError, processed_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const APIError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const MessageStreamEvent = union(enum) { @@ -6104,7 +6105,7 @@ pub const MessageStreamEvent = union(enum) { pub const BetaManagedAgentsMemoryStoreResourceParam = struct { instructions: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, memory_store_id: []const u8, access: ?std.json.Value = null, }; @@ -6113,12 +6114,12 @@ pub const BetaWebhookVaultCredentialArchivedEventData = struct { organization_id: []const u8, vault_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; pub const BetaManagedAgentsOrganizationDisabledRunError = struct { - @"type": []const u8, + type: []const u8, message: []const u8, }; @@ -6164,13 +6165,13 @@ pub const ResponseWebFetchToolResultBlockContent = union(enum) { pub const ResponseWebFetchToolResultBlock = struct { tool_use_id: []const u8, caller: std.json.Value, - @"type": []const u8, + type: []const u8, content: ResponseWebFetchToolResultBlockContent, }; pub const BetaManagedAgentsMcpAuthenticationFailedError = struct { retry_status: std.json.Value, - @"type": []const u8, + type: []const u8, message: []const u8, mcp_server_name: []const u8, }; @@ -6258,7 +6259,7 @@ pub const BetaManagedAgentsCredentialHostUnreachableError = struct { credential_id: []const u8, vault_id: []const u8, retry_status: std.json.Value, - @"type": []const u8, + type: []const u8, message: []const u8, }; @@ -6267,7 +6268,7 @@ pub const BetaRequestWebSearchResultLocationCitation = struct { encrypted_index: []const u8, cited_text: []const u8, title: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsEventDeltaEvent_Delta = union(enum) { @@ -6301,18 +6302,18 @@ pub const RequestCharLocationCitation = struct { start_char_index: i64, document_index: i64, cited_text: []const u8, - @"type": []const u8, + type: []const u8, document_title: ?[]const u8, }; pub const BetaManagedAgentsDeletedSession = struct { id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsURLImageSource = struct { url: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaRequestCharLocationCitation = struct { @@ -6320,7 +6321,7 @@ pub const BetaRequestCharLocationCitation = struct { start_char_index: i64, document_index: i64, cited_text: []const u8, - @"type": []const u8, + type: []const u8, document_title: ?[]const u8, }; @@ -6329,19 +6330,19 @@ pub const RequestWebSearchResultLocationCitation = struct { encrypted_index: []const u8, cited_text: []const u8, title: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const ResponseContainerUploadBlock = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaStopReason = []const u8; pub const RateLimitError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsAgentThreadMessageReceivedEvent = struct { @@ -6349,22 +6350,22 @@ pub const BetaManagedAgentsAgentThreadMessageReceivedEvent = struct { processed_at: std.json.Value, id: []const u8, from_session_thread_id: []const u8, - @"type": []const u8, + type: []const u8, from_agent_name: ?[]const u8 = null, }; pub const BetaManagedAgentsMcpEgressBlockedDeploymentPausedReasonError = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaRequestImageBlock = struct { source: std.json.Value, - @"type": []const u8, + type: []const u8, cache_control: ?std.json.Value = null, }; pub const DirectCaller = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaMemoryTool_20250818_CreateCommand = struct { @@ -6377,14 +6378,14 @@ pub const BetaResponseTextEditorCodeExecutionStrReplaceResultBlock = struct { old_lines: ?i64, new_lines: ?i64, old_start: ?i64, - @"type": []const u8, + type: []const u8, lines: ?[]const []const u8, new_start: ?i64, }; pub const RequestWebFetchToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSearchResultBlockCitations = struct { @@ -6394,14 +6395,14 @@ pub const BetaManagedAgentsSearchResultBlockCitations = struct { pub const BetaManagedAgentsSearchResultBlock = struct { source: []const u8, citations: BetaManagedAgentsSearchResultBlockCitations, - @"type": []const u8, + type: []const u8, title: []const u8, content: []const BetaManagedAgentsSearchResultContent, }; pub const BetaRequestTextEditorCodeExecutionCreateResultBlock = struct { is_file_update: bool, - @"type": []const u8, + type: []const u8, }; pub const BetaResponseContextManagement = struct { @@ -6410,11 +6411,11 @@ pub const BetaResponseContextManagement = struct { pub const BetaInvalidRequestError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const ThinkingConfigDisabled = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaComputerUseTool_20241022 = struct { @@ -6427,21 +6428,21 @@ pub const BetaComputerUseTool_20241022 = struct { display_number: ?i64 = null, strict: ?bool = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const DeleteMessageBatchResponse = struct { id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaSignatureContentBlockDelta = struct { signature: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaSelfHostedConfig = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaWebFetchTool_20250910 = struct { @@ -6455,7 +6456,7 @@ pub const BetaWebFetchTool_20250910 = struct { citations: ?BetaRequestCitationsConfig = null, allowed_domains: ?[]const []const u8 = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaResponseToolUseBlock = struct { @@ -6463,7 +6464,7 @@ pub const BetaResponseToolUseBlock = struct { id: []const u8, input: std.json.Value, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsMemoryStoreResource = struct { @@ -6472,7 +6473,7 @@ pub const BetaManagedAgentsMemoryStoreResource = struct { access: ?std.json.Value = null, description: ?[]const u8 = null, name: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, mount_path: ?[]const u8 = null, }; @@ -6482,13 +6483,13 @@ pub const BetaSelfHostedWorkStopRequest = struct { pub const BetaRequestWebFetchToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaWebhookVaultDeletedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -6533,14 +6534,14 @@ pub const BetaManagedAgentsEnvironmentVariableCreateParamsInjectionLocation = st pub const BetaManagedAgentsEnvironmentVariableCreateParams = struct { secret_value: []const u8, injection_location: ?BetaManagedAgentsEnvironmentVariableCreateParamsInjectionLocation = null, - @"type": []const u8, + type: []const u8, networking: std.json.Value, secret_name: []const u8, }; pub const BetaResponseWebFetchToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsModelConfig = struct { @@ -6550,7 +6551,7 @@ pub const BetaManagedAgentsModelConfig = struct { pub const BetaRequestCodeExecutionOutputBlock = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const ContentBlockSourceContentVariant0 = []const u8; @@ -6585,7 +6586,7 @@ pub const ContentBlockSourceContent = union(enum) { }; pub const ContentBlockSource = struct { - @"type": []const u8, + type: []const u8, content: ContentBlockSourceContent, }; @@ -6593,7 +6594,7 @@ pub const ToolSearchToolRegex_20251119 = struct { cache_control: ?std.json.Value = null, strict: ?bool = null, defer_loading: ?bool = null, - @"type": []const u8, + type: []const u8, allowed_callers: ?[]const AllowedCaller = null, name: []const u8, }; @@ -6632,14 +6633,14 @@ pub const BetaManagedAgentsMultiagentRosterEntryParams = union(enum) { pub const BetaManagedAgentsGitHubRepositoryResourceParams = struct { url: []const u8, checkout: ?std.json.Value = null, - @"type": []const u8, + type: []const u8, mount_path: ?[]const u8 = null, authorization_token: []const u8, }; pub const BetaRequestContainerUploadBlock = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, cache_control: ?std.json.Value = null, }; @@ -6696,27 +6697,27 @@ pub const BetaMemoryTool_20250818_Command = union(enum) { pub const BetaManagedAgentsSearchResultContent = struct { text: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSessionThreadStatusTerminatedEvent = struct { processed_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, agent_name: []const u8, session_thread_id: []const u8, }; pub const BetaSessionWorkData = struct { id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaLimitedNetworkParams = struct { allowed_hosts: ?[]const []const u8 = null, allow_mcp_servers: ?bool = null, allow_package_managers: ?bool = null, - @"type": []const u8, + type: []const u8, }; pub const BetaRequestPageLocationCitation = struct { @@ -6724,7 +6725,7 @@ pub const BetaRequestPageLocationCitation = struct { document_index: i64, start_page_number: i64, cited_text: []const u8, - @"type": []const u8, + type: []const u8, document_title: ?[]const u8, }; @@ -6732,7 +6733,7 @@ pub const BetaCodeExecutionTool_20260521 = struct { cache_control: ?std.json.Value = null, strict: ?bool = null, defer_loading: ?bool = null, - @"type": []const u8, + type: []const u8, allowed_callers: ?[]const BetaAllowedCaller = null, name: []const u8, }; @@ -6744,18 +6745,18 @@ pub const BetaTextEditor_20241022 = struct { allowed_callers: ?[]const BetaAllowedCaller = null, cache_control: ?std.json.Value = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const ErrorResponse = struct { @"error": std.json.Value, request_id: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsAnthropicSkill = struct { version: []const u8, - @"type": []const u8, + type: []const u8, skill_id: []const u8, }; @@ -6793,14 +6794,14 @@ pub const BetaManagedAgentsPermissionPolicy = union(enum) { pub const BetaManagedAgentsMCPToolset = struct { default_config: BetaManagedAgentsMCPToolsetDefaultConfig, mcp_server_name: []const u8, - @"type": []const u8, + type: []const u8, configs: []const BetaManagedAgentsMCPToolConfig, }; pub const BetaManagedAgentsSessionDeletedEvent = struct { processed_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsUpdateDeploymentParams = struct { @@ -6842,7 +6843,7 @@ pub const BetaManagedAgentsUpdateMemoryStoreResponse = union(enum) { }; pub const BetaServerToolCaller_20260120 = struct { - @"type": []const u8, + type: []const u8, tool_id: []const u8, }; @@ -6859,28 +6860,28 @@ pub const RequestToolUseBlock = struct { cache_control: ?std.json.Value = null, caller: ?std.json.Value = null, id: []const u8, - @"type": []const u8, + type: []const u8, input: std.json.Value, name: []const u8, }; pub const BetaManagedAgentsUserActor = struct { user_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const RequestWebSearchResultBlock = struct { page_age: ?[]const u8 = null, encrypted_content: []const u8, url: []const u8, - @"type": []const u8, + type: []const u8, title: []const u8, }; pub const ContentBlockDeltaEvent = struct { delta: std.json.Value, index: i64, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSessionStats = struct { @@ -6915,7 +6916,7 @@ pub const BetaManagedAgentsSession = struct { agent: BetaManagedAgentsSessionAgent, metadata: std.json.Value, vault_ids: []const []const u8, - @"type": []const u8, + type: []const u8, title: []const u8, }; @@ -6950,12 +6951,12 @@ pub const BetaRequestWebFetchToolResultBlock = struct { cache_control: ?std.json.Value = null, tool_use_id: []const u8, caller: ?std.json.Value = null, - @"type": []const u8, + type: []const u8, content: BetaRequestWebFetchToolResultBlockContent, }; pub const CanceledResult = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaUserProfile = struct { @@ -6965,7 +6966,7 @@ pub const BetaUserProfile = struct { trust_grants: std.json.Value, metadata: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, name: ?[]const u8 = null, updated_at: std.json.Value, }; @@ -6997,7 +6998,7 @@ pub const BetaManagedAgentsMultiagent = union(enum) { }; pub const BetaCacheMissPreviousMessageNotFound = struct { - @"type": []const u8, + type: []const u8, }; pub const TextEditor_20250429 = struct { @@ -7007,14 +7008,14 @@ pub const TextEditor_20250429 = struct { allowed_callers: ?[]const AllowedCaller = null, cache_control: ?std.json.Value = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const ToolSearchToolBM25_20251119 = struct { cache_control: ?std.json.Value = null, strict: ?bool = null, defer_loading: ?bool = null, - @"type": []const u8, + type: []const u8, allowed_callers: ?[]const AllowedCaller = null, name: []const u8, }; @@ -7033,7 +7034,7 @@ pub const BetaTool = struct { description: ?[]const u8 = null, input_schema: BetaInputSchema, name: []const u8, - @"type": ?[]const u8 = null, + type: ?[]const u8 = null, eager_input_streaming: ?bool = null, }; @@ -7045,7 +7046,7 @@ pub const BetaManagedAgentsAgentToolset20260401_GlobInput = struct { pub const BetaManagedAgentsBase64DocumentSource = struct { media_type: []const u8, data: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaResponseMcptoolResultBlockContentVariant0 = []const u8; @@ -7082,24 +7083,24 @@ pub const BetaResponseMcptoolResultBlockContent = union(enum) { pub const BetaResponseMCPToolResultBlock = struct { tool_use_id: []const u8, is_error: bool, - @"type": []const u8, + type: []const u8, content: BetaResponseMcptoolResultBlockContent, }; pub const BetaManagedAgentsDeletedMemoryStore = struct { id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSessionActor = struct { - @"type": []const u8, + type: []const u8, session_id: []const u8, }; pub const BetaResponseBashCodeExecutionResultBlock = struct { content: []const BetaResponseBashCodeExecutionOutputBlock, return_code: i64, - @"type": []const u8, + type: []const u8, stderr: []const u8, stdout: []const u8, }; @@ -7153,13 +7154,13 @@ pub const BetaListSkillVersionsResponse = struct { pub const BetaResponseWebSearchToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaWebhookDeploymentUpdatedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -7203,7 +7204,7 @@ pub const BetaRequestMCPServerURLDefinition = struct { url: []const u8, tool_configuration: ?BetaRequestMCPServerToolConfiguration = null, name: []const u8, - @"type": []const u8, + type: []const u8, authorization_token: ?[]const u8 = null, }; @@ -7407,13 +7408,13 @@ pub const BetaManagedAgentsMCPToolConfig = struct { pub const BetaWebhookSessionStatusRunStartedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; pub const ResponseWebSearchToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const Usage = struct { @@ -7431,7 +7432,7 @@ pub const Usage = struct { pub const BetaManagedAgentsSpanModelRequestStartEvent = struct { processed_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsCreateCredentialRequestBody = struct { @@ -7477,13 +7478,13 @@ pub const BetaManagedAgentsSessionResourceConfig = union(enum) { }; pub const BetaMessageStopEvent = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsDocumentBlock = struct { source: std.json.Value, context: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, title: ?[]const u8 = null, }; @@ -7492,16 +7493,16 @@ pub const CompletionResponse = struct { id: []const u8, model: []const u8, stop_reason: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const ResponseWebFetchToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsEnvironmentNotFoundRunError = struct { - @"type": []const u8, + type: []const u8, message: []const u8, }; @@ -7512,14 +7513,14 @@ pub const BetaResponseSearchResultLocationCitation = struct { start_block_index: i64, cited_text: []const u8, title: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaResponseEncryptedCodeExecutionResultBlock = struct { encrypted_stdout: []const u8, return_code: i64, stderr: []const u8, - @"type": []const u8, + type: []const u8, content: []const BetaResponseCodeExecutionOutputBlock, }; @@ -7533,7 +7534,7 @@ pub const BetaAdvisorTool_20260301 = struct { cache_control: ?std.json.Value = null, model: []const u8, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const RequestTextEditorCodeExecutionViewResultBlock = struct { @@ -7541,7 +7542,7 @@ pub const RequestTextEditorCodeExecutionViewResultBlock = struct { file_type: []const u8, num_lines: ?i64 = null, start_line: ?i64 = null, - @"type": []const u8, + type: []const u8, content: []const u8, }; @@ -7549,21 +7550,21 @@ pub const BetaRequestDocumentBlock = struct { source: std.json.Value, context: ?[]const u8 = null, citations: ?BetaRequestCitationsConfig = null, - @"type": []const u8, + type: []const u8, title: ?[]const u8 = null, cache_control: ?std.json.Value = null, }; pub const BetaURLPDFSource = struct { url: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaRequestServerToolUseBlock = struct { cache_control: ?std.json.Value = null, caller: ?std.json.Value = null, id: []const u8, - @"type": []const u8, + type: []const u8, input: std.json.Value, name: []const u8, }; @@ -7571,7 +7572,7 @@ pub const BetaRequestServerToolUseBlock = struct { pub const BetaManagedAgentsUserToolConfirmationEventParams = struct { tool_use_id: []const u8, result: std.json.Value, - @"type": []const u8, + type: []const u8, deny_message: ?[]const u8 = null, }; @@ -7584,25 +7585,25 @@ pub const BetaManagedAgentsAgentEvaluatedPermission = []const u8; pub const ToolChoiceAuto = struct { disable_parallel_tool_use: ?bool = null, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsFileNotFoundRunError = struct { - @"type": []const u8, + type: []const u8, message: []const u8, }; pub const BetaRequestFallbackBlock = struct { from: BetaRequestFallbackHopInfo, to: BetaRequestFallbackHopInfo, - @"type": []const u8, + type: []const u8, trigger: ?std.json.Value = null, }; pub const BetaInputSchema = struct { properties: ?std.json.Value = null, required: ?[]const []const u8 = null, - @"type": []const u8, + type: []const u8, }; pub const BetaWebSearchToolResultErrorCode = []const u8; @@ -7616,14 +7617,14 @@ pub const BetaMCPToolset = struct { cache_control: ?std.json.Value = null, default_config: ?BetaMCPToolDefaultConfig = null, mcp_server_name: []const u8, - @"type": []const u8, + type: []const u8, configs: ?std.json.Value = null, }; pub const RequestTextEditorCodeExecutionToolResultError = struct { error_code: []const u8, error_message: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsListDeploymentsData = struct { @@ -7641,13 +7642,13 @@ pub const BetaFileListResponse = struct { pub const BetaWebhookSessionArchivedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; pub const BetaBillingError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const RequestToolSearchToolResultBlockContent = union(enum) { @@ -7680,7 +7681,7 @@ pub const RequestToolSearchToolResultBlockContent = union(enum) { pub const RequestToolSearchToolResultBlock = struct { cache_control: ?std.json.Value = null, tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: RequestToolSearchToolResultBlockContent, }; @@ -7750,7 +7751,7 @@ pub const BetaRequestEncryptedCodeExecutionResultBlock = struct { encrypted_stdout: []const u8, return_code: i64, stderr: []const u8, - @"type": []const u8, + type: []const u8, content: []const BetaRequestCodeExecutionOutputBlock, }; @@ -7789,7 +7790,7 @@ pub const BetaRequestMCPToolResultBlock = struct { cache_control: ?std.json.Value = null, tool_use_id: []const u8, is_error: ?bool = null, - @"type": []const u8, + type: []const u8, content: ?BetaRequestMcptoolResultBlockContent = null, }; @@ -7797,7 +7798,7 @@ pub const RequestDocumentBlock = struct { source: std.json.Value, context: ?[]const u8 = null, citations: ?RequestCitationsConfig = null, - @"type": []const u8, + type: []const u8, title: ?[]const u8 = null, cache_control: ?std.json.Value = null, }; @@ -7805,13 +7806,13 @@ pub const RequestDocumentBlock = struct { pub const BetaWebhookVaultCreatedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; pub const BetaCloudConfig = struct { packages: BetaPackages, - @"type": []const u8, + type: []const u8, networking: std.json.Value, }; @@ -7850,7 +7851,7 @@ pub const BetaRequestAdvisorToolResultBlockContent = union(enum) { pub const BetaRequestAdvisorToolResultBlock = struct { cache_control: ?std.json.Value = null, tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: BetaRequestAdvisorToolResultBlockContent, }; @@ -7866,19 +7867,19 @@ pub const Container = struct { pub const BetaManagedAgentsFileImageSource = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaCompactionContentBlockDelta = struct { encrypted_content: ?[]const u8, - @"type": []const u8, + type: []const u8, content: ?[]const u8, }; pub const BetaManagedAgentsSessionStatusRescheduledEvent = struct { processed_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaModelCapabilities = struct { @@ -7895,7 +7896,7 @@ pub const BetaModelCapabilities = struct { pub const BetaManagedAgentsScheduleTriggerContext = struct { scheduled_at: std.json.Value, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsAgentToolset20260401_BashInput = struct { @@ -7906,7 +7907,7 @@ pub const BetaManagedAgentsAgentToolset20260401_BashInput = struct { pub const BetaRateLimitError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsMcpOauthUpdateParamsRefreshTokenEndpointAuth = union(enum) { @@ -7950,7 +7951,7 @@ pub const BetaManagedAgentsMcpOauthUpdateParams = struct { access_token: ?[]const u8 = null, expires_at: ?[]const u8 = null, refresh: ?BetaManagedAgentsMcpOauthUpdateParamsRefresh = null, - @"type": []const u8, + type: []const u8, }; pub const ModelInfo = struct { @@ -7960,42 +7961,42 @@ pub const ModelInfo = struct { max_input_tokens: ?i64, display_name: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSessionStatusRunningEvent = struct { processed_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const RequestWebFetchResultBlock = struct { retrieved_at: ?[]const u8 = null, url: []const u8, - @"type": []const u8, + type: []const u8, content: RequestDocumentBlock, }; pub const ResponseRedactedThinkingBlock = struct { data: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsLimitedCredentialNetworkingResponse = struct { allowed_hosts: []const []const u8, - @"type": []const u8, + type: []const u8, }; pub const RequestContainerUploadBlock = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, cache_control: ?std.json.Value = null, }; pub const ResponseCodeExecutionResultBlock = struct { content: []const ResponseCodeExecutionOutputBlock, return_code: i64, - @"type": []const u8, + type: []const u8, stderr: []const u8, stdout: []const u8, }; @@ -8032,7 +8033,7 @@ pub const BetaManagedAgentsDeploymentPausedReason = union(enum) { }; pub const BetaManagedAgentsTextRubric = struct { - @"type": []const u8, + type: []const u8, content: []const u8, }; @@ -8040,14 +8041,14 @@ pub const BetaSelfHostedWorkQueueStats = struct { oldest_queued_at: ?[]const u8, depth: i64, workers_polling: ?i64, - @"type": []const u8, + type: []const u8, pending: i64, }; pub const BetaResponseThinkingBlock = struct { thinking: []const u8, signature: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsCreateSessionAgentUnionParamsVariant0 = []const u8; @@ -8083,7 +8084,7 @@ pub const BetaManagedAgentsCreateSessionAgentUnionParams = union(enum) { pub const BetaManagedAgentsContentSha256Precondition = struct { content_sha256: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, }; pub const BetaTimestamp = []const u8; @@ -8140,7 +8141,7 @@ pub const BetaManagedAgentsMcpOauthRefreshParams = struct { pub const BetaCompact20260112 = struct { pause_after_compaction: ?bool = null, instructions: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, trigger: ?BetaInputTokensTrigger = null, }; @@ -8153,7 +8154,7 @@ pub const BetaManagedAgentsMemory = struct { content_sha256: []const u8, path: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, updated_at: std.json.Value, }; @@ -8161,7 +8162,7 @@ pub const ResponseEncryptedCodeExecutionResultBlock = struct { encrypted_stdout: []const u8, return_code: i64, stderr: []const u8, - @"type": []const u8, + type: []const u8, content: []const ResponseCodeExecutionOutputBlock, }; @@ -8194,7 +8195,7 @@ pub const ResponseBashCodeExecutionToolResultBlockContent = union(enum) { pub const ResponseBashCodeExecutionToolResultBlock = struct { tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: ResponseBashCodeExecutionToolResultBlockContent, }; @@ -8207,7 +8208,7 @@ pub const BetaManagedAgentsSessionAgent = struct { system: []const u8, model: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, name: []const u8, mcp_servers: []const BetaManagedAgentsMCPServer, }; @@ -8221,31 +8222,31 @@ pub const MessageDelta = struct { pub const SignatureContentBlockDelta = struct { signature: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaRequestWebSearchToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const RequestServerToolUseBlock = struct { cache_control: ?std.json.Value = null, caller: ?std.json.Value = null, id: []const u8, - @"type": []const u8, + type: []const u8, input: std.json.Value, name: []const u8, }; pub const BetaFallbackRefusalTrigger = struct { category: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const RequestRedactedThinkingBlock = struct { data: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsAgentToolset20260401ParamsDefaultConfig = struct { @@ -8255,7 +8256,7 @@ pub const BetaManagedAgentsAgentToolset20260401ParamsDefaultConfig = struct { pub const BetaManagedAgentsAgentToolset20260401Params = struct { default_config: ?BetaManagedAgentsAgentToolset20260401ParamsDefaultConfig = null, - @"type": []const u8, + type: []const u8, configs: ?[]const BetaManagedAgentsAgentToolConfigParams = null, }; @@ -8270,7 +8271,7 @@ pub const BetaComputerUseTool_20251124 = struct { enable_zoom: ?bool = null, strict: ?bool = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsUpdateAgentParams = struct { @@ -8362,7 +8363,7 @@ pub const BetaDreamModelParams = union(enum) { }; pub const BetaCanceledResult = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSessionThreadStatusIdleEventStopReason = union(enum) { @@ -8405,7 +8406,7 @@ pub const BetaManagedAgentsSessionThreadStatusIdleEvent = struct { session_thread_id: []const u8, processed_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, stop_reason: BetaManagedAgentsSessionThreadStatusIdleEventStopReason, agent_name: []const u8, }; @@ -8417,7 +8418,7 @@ pub const CountMessageTokensResponse = struct { pub const BetaWebhookDeploymentArchivedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -8431,7 +8432,7 @@ pub const BetaComputerUseTool_20250124 = struct { display_number: ?i64 = null, strict: ?bool = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaCountMessageTokensResponse = struct { @@ -8534,14 +8535,14 @@ pub const RequestEncryptedCodeExecutionResultBlock = struct { encrypted_stdout: []const u8, return_code: i64, stderr: []const u8, - @"type": []const u8, + type: []const u8, content: []const RequestCodeExecutionOutputBlock, }; pub const ContentBlockStartEvent = struct { content_block: std.json.Value, index: i64, - @"type": []const u8, + type: []const u8, }; pub const BetaInputMessageContentVariant0 = []const u8; @@ -8582,12 +8583,12 @@ pub const BetaInputMessage = struct { pub const BetaCacheMissToolsChanged = struct { cache_missed_input_tokens: i64, - @"type": []const u8, + type: []const u8, }; pub const BetaCacheControlEphemeral = struct { ttl: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsInjectionLocationResponse = struct { @@ -8596,11 +8597,11 @@ pub const BetaManagedAgentsInjectionLocationResponse = struct { }; pub const BetaManagedAgentsTokenEndpointAuthNoneParam = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsTokenEndpointAuthNoneResponse = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaResponseFallbackHopInfo = struct { @@ -8615,17 +8616,17 @@ pub const BetaSkillVersion = struct { description: []const u8, id: []const u8, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const RequestBashCodeExecutionToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaRequestAdvisorResultBlock = struct { text: []const u8, - @"type": []const u8, + type: []const u8, stop_reason: ?[]const u8 = null, }; @@ -8635,7 +8636,7 @@ pub const BetaGetSkillResponse = struct { display_title: ?[]const u8, id: []const u8, latest_version: ?[]const u8, - @"type": []const u8, + type: []const u8, updated_at: []const u8, }; @@ -8667,7 +8668,7 @@ pub const BetaManagedAgentsSystemContentBlock = union(enum) { pub const BetaManagedAgentsEventStartEvent = struct { event: std.json.Value, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsEventStartEvent_Event = union(enum) { @@ -8703,20 +8704,20 @@ pub const BetaManagedAgentsEventStartEvent_Event = union(enum) { pub const BetaResponseBashCodeExecutionToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSessionThreadCreatedEvent = struct { processed_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, agent_name: []const u8, session_thread_id: []const u8, }; pub const BetaFileDeleteResponse = struct { id: []const u8, - @"type": ?[]const u8 = null, + type: ?[]const u8 = null, }; pub const RequestBashCodeExecutionToolResultBlockContent = union(enum) { @@ -8749,7 +8750,7 @@ pub const RequestBashCodeExecutionToolResultBlockContent = union(enum) { pub const RequestBashCodeExecutionToolResultBlock = struct { cache_control: ?std.json.Value = null, tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: RequestBashCodeExecutionToolResultBlockContent, }; @@ -8954,12 +8955,12 @@ pub const BetaManagedAgentsSpanOutcomeEvaluationOngoingEvent = struct { processed_at: std.json.Value, iteration: i64, id: []const u8, - @"type": []const u8, + type: []const u8, outcome_id: []const u8, }; pub const BetaManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError = struct { - @"type": []const u8, + type: []const u8, }; pub const ModelCapabilities = struct { @@ -8982,14 +8983,14 @@ pub const BetaCreateSkillVersionResponse = struct { description: []const u8, id: []const u8, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const RequestSearchResultBlock = struct { source: []const u8, cache_control: ?std.json.Value = null, citations: ?RequestCitationsConfig = null, - @"type": []const u8, + type: []const u8, title: []const u8, content: []const RequestTextBlock, }; @@ -9002,7 +9003,7 @@ pub const BetaFileMetadataSchema = struct { filename: []const u8, size_bytes: i64, id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaIterationsUsage = ?[]const std.json.Value; @@ -9017,25 +9018,25 @@ pub const BetaSelfHostedWork = struct { data: BetaSessionWorkData, metadata: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, acknowledged_at: ?[]const u8, stop_requested_at: ?[]const u8, }; pub const AuthenticationError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaDreamMemoryStoreInput = struct { - @"type": []const u8, + type: []const u8, memory_store_id: []const u8, }; pub const BetaToolChoiceTool = struct { disable_parallel_tool_use: ?bool = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const RequestWebFetchToolResultBlockContent = union(enum) { @@ -9069,7 +9070,7 @@ pub const RequestWebFetchToolResultBlock = struct { cache_control: ?std.json.Value = null, tool_use_id: []const u8, caller: ?std.json.Value = null, - @"type": []const u8, + type: []const u8, content: RequestWebFetchToolResultBlockContent, }; @@ -9113,18 +9114,18 @@ pub const BetaManagedAgentsRubricParams = union(enum) { pub const PermissionError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsUnknownError = struct { retry_status: std.json.Value, - @"type": []const u8, + type: []const u8, message: []const u8, }; pub const ResponseBashCodeExecutionOutputBlock = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsListOrder = []const u8; @@ -9140,18 +9141,18 @@ pub const BetaUpdateUserProfileRequestBody = struct { pub const BetaResponseRedactedThinkingBlock = struct { data: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaThinkingConfigEnabled = struct { display: ?[]const u8 = null, budget_tokens: i64, - @"type": []const u8, + type: []const u8, }; pub const BetaCitationsDelta = struct { citation: std.json.Value, - @"type": []const u8, + type: []const u8, }; pub const BetaRequestCitationsConfig = struct { @@ -9160,19 +9161,19 @@ pub const BetaRequestCitationsConfig = struct { pub const BetaResponseAdvisorRedactedResultBlock = struct { encrypted_content: []const u8, - @"type": []const u8, + type: []const u8, stop_reason: ?[]const u8, }; pub const BetaResponseCodeExecutionOutputBlock = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaWebhookDeploymentRunFailedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -9184,7 +9185,7 @@ pub const BetaTextEditor_20250728 = struct { cache_control: ?std.json.Value = null, max_characters: ?i64 = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsEventDeltaType = []const u8; @@ -9196,14 +9197,14 @@ pub const BetaManagedAgentsModelConfigParams = struct { pub const RequestTextEditorCodeExecutionCreateResultBlock = struct { is_file_update: bool, - @"type": []const u8, + type: []const u8, }; pub const BetaCodeExecutionTool_20250522 = struct { cache_control: ?std.json.Value = null, strict: ?bool = null, defer_loading: ?bool = null, - @"type": []const u8, + type: []const u8, allowed_callers: ?[]const BetaAllowedCaller = null, name: []const u8, }; @@ -9214,7 +9215,7 @@ pub const BetaManagedAgentsCronSchedule = struct { timezone: []const u8, last_run_at: ?std.json.Value = null, upcoming_runs_at: ?[]const BetaTimestamp = null, - @"type": []const u8, + type: []const u8, expression: []const u8, }; @@ -9223,20 +9224,20 @@ pub const BetaCompactionIterationUsage = struct { input_tokens: i64, output_tokens: i64, cache_creation_input_tokens: i64, - @"type": []const u8, + type: []const u8, cache_creation: ?BetaCacheCreation, }; pub const BetaResponseTextBlock = struct { text: []const u8, citations: ?[]const std.json.Value, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsUserDefineOutcomeEventParams = struct { description: []const u8, rubric: std.json.Value, - @"type": []const u8, + type: []const u8, max_iterations: ?i64 = null, }; @@ -9244,20 +9245,20 @@ pub const ResponseTextEditorCodeExecutionStrReplaceResultBlock = struct { old_lines: ?i64, new_lines: ?i64, old_start: ?i64, - @"type": []const u8, + type: []const u8, lines: ?[]const []const u8, new_start: ?i64, }; pub const BetaManagedAgentsEnvironmentArchivedRunError = struct { - @"type": []const u8, + type: []const u8, message: []const u8, }; pub const ResponseToolSearchToolResultError = struct { error_code: []const u8, error_message: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const WebSearchToolResultErrorCode = []const u8; @@ -9268,19 +9269,19 @@ pub const ResponseContentBlockLocationCitation = struct { document_index: i64, start_block_index: i64, cited_text: []const u8, - @"type": []const u8, + type: []const u8, document_title: ?[]const u8, }; pub const BetaManagedAgentsVaultArchivedRunError = struct { - @"type": []const u8, + type: []const u8, message: []const u8, }; pub const BetaResponseDocumentBlock = struct { source: std.json.Value, citations: ?BetaResponseCitationsConfig, - @"type": []const u8, + type: []const u8, title: ?[]const u8, }; @@ -9319,17 +9320,17 @@ pub const BetaThinkingConfigParam = union(enum) { }; pub const BetaManagedAgentsUserInterruptEventParams = struct { - @"type": []const u8, + type: []const u8, session_thread_id: ?[]const u8 = null, }; pub const BetaCacheMissModelChanged = struct { cache_missed_input_tokens: i64, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsRetryStatusExhausted = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsToolResultContentBlock = union(enum) { @@ -9385,7 +9386,7 @@ pub const BetaManagedAgentsMemoryVersion = struct { operation: std.json.Value, path: ?[]const u8 = null, redacted_by: ?std.json.Value = null, - @"type": []const u8, + type: []const u8, created_by: ?std.json.Value = null, }; @@ -9424,12 +9425,12 @@ pub const RequestToolResultBlock = struct { cache_control: ?std.json.Value = null, tool_use_id: []const u8, is_error: ?bool = null, - @"type": []const u8, + type: []const u8, content: ?RequestToolResultBlockContent = null, }; pub const BetaManagedAgentsWorkspaceArchivedDeploymentPausedReasonError = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsStreamSessionEvents = union(enum) { @@ -9661,12 +9662,12 @@ pub const BetaManagedAgentsAddSessionResourceParams = union(enum) { pub const ResponseToolSearchToolSearchResultBlock = struct { tool_references: []const ResponseToolReferenceBlock, - @"type": []const u8, + type: []const u8, }; pub const BetaThinkingContentBlockDelta = struct { thinking: []const u8, - @"type": []const u8, + type: []const u8, estimated_tokens: ?i64, }; @@ -9715,11 +9716,11 @@ pub const ListResponse_MessageBatch_ = struct { pub const MessageStartEvent = struct { message: Message, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSystemMessageEventParams = struct { - @"type": []const u8, + type: []const u8, content: []const BetaManagedAgentsSystemContentBlock, }; @@ -9728,7 +9729,7 @@ pub const ResponseTextEditorCodeExecutionViewResultBlock = struct { file_type: []const u8, num_lines: ?i64, start_line: ?i64, - @"type": []const u8, + type: []const u8, content: []const u8, }; @@ -9776,12 +9777,12 @@ pub const BetaDreamUsage = struct { }; pub const BetaManagedAgentsSkillNotFoundDeploymentPausedReasonError = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsDeploymentAgent = struct { id: []const u8, - @"type": []const u8, + type: []const u8, version: i64, }; @@ -9801,7 +9802,7 @@ pub const BetaManagedAgentsDeployment = struct { metadata: std.json.Value, name: []const u8, vault_ids: []const []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsListSessionEvents = struct { @@ -9816,11 +9817,11 @@ pub const BetaManagedAgentsMCPToolsetDefaultConfigParams = struct { pub const BetaResponseBashCodeExecutionOutputBlock = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsConflictError = struct { - @"type": []const u8, + type: []const u8, message: ?[]const u8 = null, }; @@ -9829,7 +9830,7 @@ pub const BetaUserProfileRelationship = []const u8; pub const BetaManagedAgentsAgentThreadContextCompactedEvent = struct { processed_at: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsCredentialValidationMcpProbeHttpResponse = struct { @@ -9862,13 +9863,13 @@ pub const BetaManagedAgentsCredentialValidation = struct { credential_id: []const u8, status: std.json.Value, refresh: BetaManagedAgentsCredentialValidationRefresh, - @"type": []const u8, + type: []const u8, validated_at: std.json.Value, has_refresh_token: bool, }; pub const BetaManagedAgentsEnvironmentArchivedDeploymentPausedReasonError = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsRunError = union(enum) { @@ -9973,41 +9974,41 @@ pub const BetaManagedAgentsRunError = union(enum) { }; pub const BetaManagedAgentsUnrestrictedCredentialNetworkingResponse = struct { - @"type": []const u8, + type: []const u8, }; pub const URLImageSource = struct { url: []const u8, - @"type": []const u8, + type: []const u8, }; pub const UserLocation = struct { city: ?[]const u8 = null, country: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, region: ?[]const u8 = null, timezone: ?[]const u8 = null, }; pub const BetaRequestCodeExecutionToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaToolUsesKeep = struct { value: i64, - @"type": []const u8, + type: []const u8, }; pub const BetaSucceededResult = struct { message: BetaMessage, - @"type": []const u8, + type: []const u8, }; pub const BetaPlainTextSource = struct { data: []const u8, media_type: []const u8, - @"type": []const u8, + type: []const u8, }; pub const ThinkingConfigParam = union(enum) { @@ -10049,7 +10050,7 @@ pub const BetaManagedAgentsUserToolConfirmationEvent = struct { session_thread_id: ?[]const u8 = null, tool_use_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const ListResponse_ModelInfo_ = struct { @@ -10065,13 +10066,13 @@ pub const OutputTokensDetails = struct { pub const BetaManagedAgentsSessionRequiresAction = struct { event_ids: []const []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaWebhookSessionStatusTerminatedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -10090,13 +10091,13 @@ pub const BetaRequestToolUseBlock = struct { cache_control: ?std.json.Value = null, caller: ?std.json.Value = null, id: []const u8, - @"type": []const u8, + type: []const u8, input: std.json.Value, name: []const u8, }; pub const BetaManagedAgentsSelfHostedResourcesUnsupportedRunError = struct { - @"type": []const u8, + type: []const u8, message: []const u8, }; @@ -10104,7 +10105,7 @@ pub const CodeExecutionTool_20250825 = struct { cache_control: ?std.json.Value = null, strict: ?bool = null, defer_loading: ?bool = null, - @"type": []const u8, + type: []const u8, allowed_callers: ?[]const AllowedCaller = null, name: []const u8, }; @@ -10137,7 +10138,7 @@ pub const BetaManagedAgentsSessionMultiagent = union(enum) { pub const BetaRequestRedactedThinkingBlock = struct { data: []const u8, - @"type": []const u8, + type: []const u8, }; pub const RequestContentBlockLocationCitation = struct { @@ -10145,7 +10146,7 @@ pub const RequestContentBlockLocationCitation = struct { start_block_index: i64, document_index: i64, cited_text: []const u8, - @"type": []const u8, + type: []const u8, document_title: ?[]const u8, }; @@ -10357,12 +10358,12 @@ pub const BetaManagedAgentsStreamSessionThreadEvents = union(enum) { pub const BetaManagedAgentsApiActor = struct { api_key_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const RequestWebSearchToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsMemoryStore = struct { @@ -10371,19 +10372,19 @@ pub const BetaManagedAgentsMemoryStore = struct { archived_at: ?std.json.Value = null, metadata: ?std.json.Value = null, id: []const u8, - @"type": []const u8, + type: []const u8, name: []const u8, updated_at: std.json.Value, }; pub const BetaThinkingConfigDisabled = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaRequestWebFetchResultBlock = struct { retrieved_at: ?[]const u8 = null, url: []const u8, - @"type": []const u8, + type: []const u8, content: BetaRequestDocumentBlock, }; @@ -10393,19 +10394,19 @@ pub const BetaResponseCitationsConfig = struct { pub const BetaGatewayTimeoutError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaErrorResponse = struct { @"error": std.json.Value, request_id: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaWebhookSessionStatusIdledEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -10444,7 +10445,7 @@ pub const RequestCodeExecutionToolResultBlockContent = union(enum) { pub const RequestCodeExecutionToolResultBlock = struct { cache_control: ?std.json.Value = null, tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: RequestCodeExecutionToolResultBlockContent, }; @@ -10456,13 +10457,13 @@ pub const BetaManagedAgentsMCPToolConfigParams = struct { pub const BetaNotFoundError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaWebhookDeploymentRunSucceededEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -10473,21 +10474,21 @@ pub const BetaTextEditor_20250429 = struct { allowed_callers: ?[]const BetaAllowedCaller = null, cache_control: ?std.json.Value = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const CodeExecutionTool_20260120 = struct { cache_control: ?std.json.Value = null, strict: ?bool = null, defer_loading: ?bool = null, - @"type": []const u8, + type: []const u8, allowed_callers: ?[]const AllowedCaller = null, name: []const u8, }; pub const BetaAuthenticationError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsCredential = struct { @@ -10498,13 +10499,13 @@ pub const BetaManagedAgentsCredential = struct { archived_at: std.json.Value, metadata: std.json.Value, id: []const u8, - @"type": []const u8, + type: []const u8, updated_at: []const u8, }; pub const BetaManagedAgentsCustomSkillParams = struct { version: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, skill_id: []const u8, }; @@ -10515,7 +10516,7 @@ pub const BetaSelfHostedWorkListResponse = struct { pub const ContentBlockStopEvent = struct { index: i64, - @"type": []const u8, + type: []const u8, }; pub const ResponseWebSearchResultLocationCitation = struct { @@ -10523,12 +10524,12 @@ pub const ResponseWebSearchResultLocationCitation = struct { encrypted_index: []const u8, cited_text: []const u8, title: ?[]const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsFileRubric = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsListCredentialsResponse = struct { @@ -10538,7 +10539,7 @@ pub const BetaManagedAgentsListCredentialsResponse = struct { pub const CitationsDelta = struct { citation: std.json.Value, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsAgentToolsetDefaultConfigParams = struct { @@ -10550,7 +10551,7 @@ pub const BetaWebhookVaultCredentialCreatedEventData = struct { organization_id: []const u8, vault_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -10558,7 +10559,7 @@ pub const CodeExecutionTool_20260521 = struct { cache_control: ?std.json.Value = null, strict: ?bool = null, defer_loading: ?bool = null, - @"type": []const u8, + type: []const u8, allowed_callers: ?[]const AllowedCaller = null, name: []const u8, }; @@ -10568,7 +10569,7 @@ pub const BetaManagedAgentsUserDefineOutcomeEvent = struct { description: []const u8, outcome_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, max_iterations: i64, rubric: std.json.Value, }; @@ -10589,7 +10590,7 @@ pub const BetaFallbackConfigV2 = struct { }; pub const BetaManagedAgentsRetryStatusTerminal = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsAgentMcpToolUseEvent = struct { @@ -10600,12 +10601,12 @@ pub const BetaManagedAgentsAgentMcpToolUseEvent = struct { mcp_server_name: []const u8, id: []const u8, input: std.json.Value, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsModelRateLimitedError = struct { retry_status: std.json.Value, - @"type": []const u8, + type: []const u8, message: []const u8, }; @@ -10620,7 +10621,7 @@ pub const BetaWebFetchTool_20260309 = struct { citations: ?BetaRequestCitationsConfig = null, allowed_domains: ?[]const []const u8 = null, name: []const u8, - @"type": []const u8, + type: []const u8, use_cache: ?bool = null, }; @@ -10636,7 +10637,7 @@ pub const BetaManagedAgentsSpanModelRequestEndEvent = struct { processed_at: std.json.Value, is_error: bool, id: []const u8, - @"type": []const u8, + type: []const u8, model_usage: BetaManagedAgentsSpanModelRequestEndEventModelUsage, model_request_start_id: []const u8, }; @@ -10674,12 +10675,12 @@ pub const BetaRequestWebSearchToolResultBlock = struct { cache_control: ?std.json.Value = null, tool_use_id: []const u8, caller: ?std.json.Value = null, - @"type": []const u8, + type: []const u8, content: BetaRequestWebSearchToolResultBlockContent, }; pub const BetaToolChoiceNone = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsAgentToolConfigParams = struct { @@ -10690,7 +10691,7 @@ pub const BetaManagedAgentsAgentToolConfigParams = struct { pub const BetaManagedAgentsAgentToolset20260401 = struct { default_config: BetaManagedAgentsAgentToolsetDefaultConfig, - @"type": []const u8, + type: []const u8, configs: []const BetaManagedAgentsAgentToolConfig, }; @@ -10723,14 +10724,14 @@ pub const BetaManagedAgentsArchiveMemoryStoreResponse = union(enum) { pub const BetaManagedAgentsCustomToolParamsInputSchema = struct { properties: ?std.json.Value = null, required: ?[]const []const u8 = null, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsCustomToolParams = struct { description: []const u8, input_schema: BetaManagedAgentsCustomToolParamsInputSchema, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const Message = struct { @@ -10741,7 +10742,7 @@ pub const Message = struct { usage: Usage, model: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, stop_sequence: ?[]const u8, content: []const ContentBlock, }; @@ -10750,7 +10751,7 @@ pub const RefusalCategory = []const u8; pub const BetaManagedAgentsTokenEndpointAuthBasicUpdateParam = struct { client_secret: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, }; pub const BetaResponseTextEditorCodeExecutionViewResultBlock = struct { @@ -10758,7 +10759,7 @@ pub const BetaResponseTextEditorCodeExecutionViewResultBlock = struct { file_type: []const u8, num_lines: ?i64, start_line: ?i64, - @"type": []const u8, + type: []const u8, content: []const u8, }; @@ -10769,11 +10770,11 @@ pub const BetaMemoryTool_20250818_DeleteCommand = struct { pub const RequestCodeExecutionToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaServerToolCaller = struct { - @"type": []const u8, + type: []const u8, tool_id: []const u8, }; @@ -10781,11 +10782,11 @@ pub const BetaWebhookEvent = struct { created_at: []const u8, data: BetaWebhookEventData, id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaDirectCaller = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsSendSessionEventsParams = struct { @@ -10803,17 +10804,17 @@ pub const BetaWebSearchTool_20260318 = struct { user_location: ?BetaUserLocation = null, allowed_domains: ?[]const []const u8 = null, name: []const u8, - @"type": []const u8, + type: []const u8, }; pub const TextContentBlockDelta = struct { text: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaRequestAdvisorToolResultError = struct { error_code: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaCreateMessageParamsSystemVariant0 = []const u8; @@ -11023,7 +11024,7 @@ pub const BetaCreateMessageParams = struct { }; pub const BetaManagedAgentsUnknownRunError = struct { - @"type": []const u8, + type: []const u8, message: []const u8, }; @@ -11067,7 +11068,7 @@ pub const BetaManagedAgentsAgentUnionParams = union(enum) { pub const BetaWebhookSessionUpdatedEventData = struct { organization_id: []const u8, id: []const u8, - @"type": []const u8, + type: []const u8, workspace_id: []const u8, }; @@ -11103,22 +11104,22 @@ pub const ResponseWebSearchToolResultBlockContent = union(enum) { pub const ResponseWebSearchToolResultBlock = struct { tool_use_id: []const u8, caller: std.json.Value, - @"type": []const u8, + type: []const u8, content: ResponseWebSearchToolResultBlockContent, }; pub const BetaManagedAgentsStaticBearerUpdateParams = struct { token: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, }; pub const BetaMessageStartEvent = struct { message: BetaMessage, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsCronScheduleParams = struct { - @"type": []const u8, + type: []const u8, expression: []const u8, timezone: []const u8, }; @@ -11131,7 +11132,7 @@ pub const BetaMessageBatchIndividualResponse = struct { pub const BetaEnvironment = struct { created_at: []const u8, scope: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, archived_at: ?[]const u8, description: []const u8, metadata: std.json.Value, @@ -11147,7 +11148,7 @@ pub const BetaResponseCharLocationCitation = struct { document_index: i64, end_char_index: i64, cited_text: []const u8, - @"type": []const u8, + type: []const u8, start_char_index: i64, }; @@ -11155,7 +11156,7 @@ pub const BetaManagedAgentsSessionStatus = []const u8; pub const GatewayTimeoutError = struct { message: []const u8, - @"type": []const u8, + type: []const u8, }; pub const BetaManagedAgentsAgentToolsetDefaultConfig = struct { @@ -11164,7 +11165,7 @@ pub const BetaManagedAgentsAgentToolsetDefaultConfig = struct { }; pub const BetaManagedAgentsSessionRetriesExhausted = struct { - @"type": []const u8, + type: []const u8, }; pub const BetaRotateTunnelTokenRequestBody = struct { @@ -11172,7 +11173,7 @@ pub const BetaRotateTunnelTokenRequestBody = struct { }; pub const BetaManagedAgentsMcpEgressBlockedRunError = struct { - @"type": []const u8, + type: []const u8, message: []const u8, }; @@ -11225,7 +11226,7 @@ pub const BetaMessageStreamEvent = union(enum) { pub const ResponseCodeExecutionOutputBlock = struct { file_id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const JsonValue = std.json.Value; @@ -11262,7 +11263,7 @@ pub const BetaRequestBashCodeExecutionToolResultBlockContent = union(enum) { pub const BetaRequestBashCodeExecutionToolResultBlock = struct { cache_control: ?std.json.Value = null, tool_use_id: []const u8, - @"type": []const u8, + type: []const u8, content: BetaRequestBashCodeExecutionToolResultBlockContent, }; @@ -11298,7 +11299,7 @@ pub const BetaContentBlockSourceContent = union(enum) { }; pub const BetaContentBlockSource = struct { - @"type": []const u8, + type: []const u8, content: BetaContentBlockSourceContent, }; @@ -11313,7 +11314,7 @@ pub const BetaManagedAgentsUserToolResultEvent = struct { tool_use_id: []const u8, is_error: ?bool = null, id: []const u8, - @"type": []const u8, + type: []const u8, content: ?[]const BetaManagedAgentsToolResultContentBlock = null, }; @@ -11321,7 +11322,7 @@ pub const RequestTextEditorCodeExecutionStrReplaceResultBlock = struct { old_lines: ?i64 = null, new_lines: ?i64 = null, old_start: ?i64 = null, - @"type": []const u8, + type: []const u8, lines: ?[]const []const u8 = null, new_start: ?i64 = null, }; @@ -11331,7 +11332,7 @@ pub const BetaUserProfileListOrder = []const u8; pub const ResponseDocumentBlock = struct { source: std.json.Value, citations: ?ResponseCitationsConfig, - @"type": []const u8, + type: []const u8, title: ?[]const u8, }; @@ -11401,7 +11402,7 @@ pub const Client = struct { io: std.Io, http: std.http.Client, api_key: []const u8, - base_url: []const u8 = "", + base_url: []const u8 = "http://localhost:1234", organization: ?[]const u8 = null, project: ?[]const u8 = null, default_headers: []const std.http.Header = &.{}, diff --git a/generated/generated_v2.zig b/generated/generated_v2.zig index 09ce6a9..83ad7a4 100644 --- a/generated/generated_v2.zig +++ b/generated/generated_v2.zig @@ -1,7 +1,8 @@ // -// this code was generated by openapi2zig 0.4.0 (653555e) on 2026-07-19 21:44:54 UTC +// this code was generated by openapi2zig 0.4.0 (ecbd8f7) on 2026-07-19 22:45:59 UTC // changes to this file may cause incorrect behavior and will be lost if the code is regenerated // + const std = @import("std"); /////////////////////////////////////////// @@ -48,7 +49,7 @@ pub const Order = struct { }; pub const ApiResponse = struct { - @"type": ?[]const u8 = null, + type: ?[]const u8 = null, message: ?[]const u8 = null, code: ?i64 = null, }; diff --git a/generated/generated_v2_yaml.zig b/generated/generated_v2_yaml.zig index c0b0cbe..f20b38b 100644 --- a/generated/generated_v2_yaml.zig +++ b/generated/generated_v2_yaml.zig @@ -1,7 +1,8 @@ // -// this code was generated by openapi2zig 0.4.0 (653555e) on 2026-07-19 21:44:55 UTC +// this code was generated by openapi2zig 0.4.0 (ecbd8f7) on 2026-07-19 22:46:01 UTC // changes to this file may cause incorrect behavior and will be lost if the code is regenerated // + const std = @import("std"); /////////////////////////////////////////// @@ -23,7 +24,7 @@ pub const Pet = struct { }; pub const ApiResponse = struct { - @"type": ?[]const u8 = null, + type: ?[]const u8 = null, message: ?[]const u8 = null, code: ?i64 = null, }; diff --git a/generated/generated_v3.zig b/generated/generated_v3.zig index dac6665..29fc5c9 100644 --- a/generated/generated_v3.zig +++ b/generated/generated_v3.zig @@ -1,7 +1,8 @@ // -// this code was generated by openapi2zig 0.4.0 (653555e) on 2026-07-19 21:44:55 UTC +// this code was generated by openapi2zig 0.4.0 (ecbd8f7) on 2026-07-19 22:45:58 UTC // changes to this file may cause incorrect behavior and will be lost if the code is regenerated // + const std = @import("std"); /////////////////////////////////////////// @@ -61,7 +62,7 @@ pub const User = struct { }; pub const ApiResponse = struct { - @"type": ?[]const u8 = null, + type: ?[]const u8 = null, message: ?[]const u8 = null, code: ?i64 = null, }; diff --git a/generated/generated_v31.zig b/generated/generated_v31.zig index 36509f6..dca8c32 100644 --- a/generated/generated_v31.zig +++ b/generated/generated_v31.zig @@ -1,7 +1,8 @@ // -// this code was generated by openapi2zig 0.4.0 (653555e) on 2026-07-19 21:44:55 UTC +// this code was generated by openapi2zig 0.4.0 (ecbd8f7) on 2026-07-19 22:45:59 UTC // changes to this file may cause incorrect behavior and will be lost if the code is regenerated // + const std = @import("std"); /////////////////////////////////////////// diff --git a/generated/generated_v31_yaml.zig b/generated/generated_v31_yaml.zig index 796f82b..dca8c32 100644 --- a/generated/generated_v31_yaml.zig +++ b/generated/generated_v31_yaml.zig @@ -1,7 +1,8 @@ // -// this code was generated by openapi2zig 0.4.0 (653555e) on 2026-07-19 21:44:54 UTC +// this code was generated by openapi2zig 0.4.0 (ecbd8f7) on 2026-07-19 22:45:59 UTC // changes to this file may cause incorrect behavior and will be lost if the code is regenerated // + const std = @import("std"); /////////////////////////////////////////// diff --git a/generated/generated_v32.zig b/generated/generated_v32.zig index 6fbb59a..e2ab8cc 100644 --- a/generated/generated_v32.zig +++ b/generated/generated_v32.zig @@ -1,7 +1,8 @@ // -// this code was generated by openapi2zig 0.4.0 (653555e) on 2026-07-19 21:44:54 UTC +// this code was generated by openapi2zig 0.4.0 (ecbd8f7) on 2026-07-19 22:45:59 UTC // changes to this file may cause incorrect behavior and will be lost if the code is regenerated // + const std = @import("std"); /////////////////////////////////////////// @@ -48,7 +49,7 @@ pub const Order = struct { }; pub const ApiResponse = struct { - @"type": ?[]const u8 = null, + type: ?[]const u8 = null, message: ?[]const u8 = null, code: ?i64 = null, }; diff --git a/generated/generated_v3_yaml.zig b/generated/generated_v3_yaml.zig index 82280fe..acb6236 100644 --- a/generated/generated_v3_yaml.zig +++ b/generated/generated_v3_yaml.zig @@ -1,7 +1,8 @@ // -// this code was generated by openapi2zig 0.4.0 (653555e) on 2026-07-19 21:44:54 UTC +// this code was generated by openapi2zig 0.4.0 (ecbd8f7) on 2026-07-19 22:46:00 UTC // changes to this file may cause incorrect behavior and will be lost if the code is regenerated // + const std = @import("std"); /////////////////////////////////////////// @@ -61,7 +62,7 @@ pub const User = struct { }; pub const ApiResponse = struct { - @"type": ?[]const u8 = null, + type: ?[]const u8 = null, message: ?[]const u8 = null, code: ?i64 = null, }; diff --git a/generated/lmstudio.zig b/generated/lmstudio.zig index 5fece87..1d2f0e6 100644 --- a/generated/lmstudio.zig +++ b/generated/lmstudio.zig @@ -1,7 +1,8 @@ // -// this code was generated by openapi2zig 0.4.0 (653555e) on 2026-07-19 21:44:55 UTC +// this code was generated by openapi2zig 0.4.0 (ecbd8f7) on 2026-07-19 22:45:59 UTC // changes to this file may cause incorrect behavior and will be lost if the code is regenerated // + const std = @import("std"); /////////////////////////////////////////// @@ -21,7 +22,7 @@ pub const UnloadModelRequest = struct { }; pub const ReasoningOutput = struct { - @"type": []const u8, + type: []const u8, content: []const u8, }; @@ -84,7 +85,7 @@ pub const LoadedInstance = struct { }; pub const TextInput = struct { - @"type": []const u8, + type: []const u8, content: []const u8, }; @@ -129,7 +130,7 @@ pub const ModelInfo = struct { loaded_instances: []const LoadedInstance, quantization: ?ModelInfoQuantization = null, description: ?[]const u8 = null, - @"type": []const u8, + type: []const u8, }; pub const EmbeddingLoadConfig = struct { @@ -150,7 +151,7 @@ pub const DownloadStatusResponse = struct { pub const PluginIntegration = struct { allowed_tools: ?[]const []const u8 = null, id: []const u8, - @"type": []const u8, + type: []const u8, }; pub const ChatStats = struct { @@ -258,7 +259,7 @@ pub const ChatRequest = struct { }; pub const MessageOutput = struct { - @"type": []const u8, + type: []const u8, content: []const u8, }; @@ -273,7 +274,7 @@ pub const LoadedInstanceConfig = struct { pub const ImageInput = struct { data_url: []const u8, - @"type": []const u8, + type: []const u8, }; pub const UnloadModelResponse = struct { @@ -283,14 +284,14 @@ pub const UnloadModelResponse = struct { pub const InvalidToolCallOutputMetadata = struct { arguments: ?std.json.Value = null, tool_name: []const u8, - @"type": []const u8, + type: []const u8, provider_info: ?ProviderInfo = null, }; pub const InvalidToolCallOutput = struct { metadata: InvalidToolCallOutputMetadata, reason: []const u8, - @"type": []const u8, + type: []const u8, }; pub const LoadModelResponseLoadConfig = union(enum) { @@ -325,11 +326,11 @@ pub const LoadModelResponse = struct { status: []const u8, instance_id: []const u8, load_config: ?LoadModelResponseLoadConfig = null, - @"type": []const u8, + type: []const u8, }; pub const ProviderInfo = struct { - @"type": []const u8, + type: []const u8, plugin_id: ?[]const u8 = null, server_label: ?[]const u8 = null, }; @@ -368,7 +369,7 @@ pub const ChatInputItem = union(enum) { pub const EphemeralMcpIntegration = struct { server_url: []const u8, allowed_tools: ?[]const []const u8 = null, - @"type": []const u8, + type: []const u8, headers: ?std.json.Value = null, server_label: []const u8, }; @@ -377,7 +378,7 @@ pub const ToolCallOutput = struct { arguments: std.json.Value, tool: []const u8, output: []const u8, - @"type": []const u8, + type: []const u8, provider_info: ProviderInfo, }; diff --git a/src/generators/generated_header.zig b/src/generators/generated_header.zig index 185c31f..5564a79 100644 --- a/src/generators/generated_header.zig +++ b/src/generators/generated_header.zig @@ -8,6 +8,7 @@ pub fn render(allocator: std.mem.Allocator, version: []const u8, timestamp: []co \\// changes to this file may cause incorrect behavior and will be lost if the code is regenerated \\// \\ + \\ , .{ version, timestamp }); } diff --git a/src/generators/unified/ident_utils.zig b/src/generators/unified/ident_utils.zig index 56d645c..9546bab 100644 --- a/src/generators/unified/ident_utils.zig +++ b/src/generators/unified/ident_utils.zig @@ -10,14 +10,14 @@ pub fn isIdentContinue(c: u8) bool { pub fn isReservedIdent(name: []const u8) bool { const reserved = [_][]const u8{ - "addrspace", "align", "allowzero", "and", "anyerror", "anyframe", "anyopaque", "anytype", - "asm", "async", "await", "bool", "break", "callconv", "catch", "comptime", - "const", "continue", "defer", "else", "enum", "errdefer", "error", "export", - "extern", "false", "fn", "for", "if", "inline", "isize", "linksection", - "noalias", "noreturn", "nosuspend", "null", "opaque", "or", "orelse", "packed", - "pub", "resume", "return", "struct", "suspend", "switch", "test", "threadlocal", - "true", "try", "type", "undefined", "union", "unreachable", "usize", "usingnamespace", - "var", "void", "volatile", "while", + "addrspace", "align", "allowzero", "and", "anyerror", "anyframe", "anyopaque", "anytype", + "asm", "async", "await", "bool", "break", "callconv", "catch", "comptime", + "const", "continue", "defer", "else", "enum", "errdefer", "error", "export", + "extern", "false", "fn", "for", "if", "inline", "isize", "linksection", + "noalias", "noreturn", "nosuspend", "null", "opaque", "or", "orelse", "packed", + "pub", "resume", "return", "struct", "suspend", "switch", "test", "threadlocal", + "true", "try", "undefined", "union", "unreachable", "usize", "usingnamespace", "var", + "void", "volatile", "while", }; for (reserved) |word| { if (std.mem.eql(u8, name, word)) return true; diff --git a/src/tests/generated_header_tests.zig b/src/tests/generated_header_tests.zig index f7075df..5f363ba 100644 --- a/src/tests/generated_header_tests.zig +++ b/src/tests/generated_header_tests.zig @@ -17,6 +17,7 @@ test "render emits expected header" { \\// changes to this file may cause incorrect behavior and will be lost if the code is regenerated \\// \\ + \\ , header); }