github.com/anthropics/anthropic-sdk-go@v1.70.1/shared/constant/constants.go (about)

     1  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
     2  
     3  package constant
     4  
     5  import (
     6  	shimjson "github.com/anthropics/anthropic-sdk-go/internal/encoding/json"
     7  )
     8  
     9  // ModelNonStreamingTokens defines the maximum tokens for models that should limit
    10  // non-streaming requests.
    11  var ModelNonStreamingTokens = map[string]int{
    12  	"claude-opus-4-20250514":                  8192,
    13  	"claude-4-opus-20250514":                  8192,
    14  	"claude-opus-4-0":                         8192,
    15  	"anthropic.claude-opus-4-20250514-v1:0":   8192,
    16  	"claude-opus-4@20250514":                  8192,
    17  	"anthropic.claude-opus-4-1-20250805-v1:0": 8192,
    18  	"claude-opus-4-1@20250805":                8192,
    19  }
    20  
    21  type Constant[T any] interface {
    22  	Default() T
    23  }
    24  
    25  // ValueOf gives the default value of a constant from its type. It's helpful when
    26  // constructing constants as variants in a one-of. Note that empty structs are
    27  // marshalled by default. Usage: constant.ValueOf[constant.Foo]()
    28  func ValueOf[T Constant[T]]() T {
    29  	var t T
    30  	return t.Default()
    31  }
    32  
    33  type Adaptive string                                // Always "adaptive"
    34  type Advisor string                                 // Always "advisor"
    35  type Advisor20260301 string                         // Always "advisor_20260301"
    36  type AdvisorMessage string                          // Always "advisor_message"
    37  type AdvisorRedactedResult string                   // Always "advisor_redacted_result"
    38  type AdvisorResult string                           // Always "advisor_result"
    39  type AdvisorToolResult string                       // Always "advisor_tool_result"
    40  type AdvisorToolResultError string                  // Always "advisor_tool_result_error"
    41  type AgentArchived string                           // Always "agent.archived"
    42  type AgentCreated string                            // Always "agent.created"
    43  type AgentDeleted string                            // Always "agent.deleted"
    44  type AgentUpdated string                            // Always "agent.updated"
    45  type All string                                     // Always "all"
    46  type Any string                                     // Always "any"
    47  type APIError string                                // Always "api_error"
    48  type APIKey string                                  // Always "api_key"
    49  type ApplicationPDF string                          // Always "application/pdf"
    50  type Approximate string                             // Always "approximate"
    51  type Assistant string                               // Always "assistant"
    52  type Attached string                                // Always "attached"
    53  type AuthenticationError string                     // Always "authentication_error"
    54  type Auto string                                    // Always "auto"
    55  type AWS string                                     // Always "aws"
    56  type Azure string                                   // Always "azure"
    57  type Base64 string                                  // Always "base64"
    58  type Bash string                                    // Always "bash"
    59  type Bash20241022 string                            // Always "bash_20241022"
    60  type Bash20250124 string                            // Always "bash_20250124"
    61  type BashCodeExecutionOutput string                 // Always "bash_code_execution_output"
    62  type BashCodeExecutionResult string                 // Always "bash_code_execution_result"
    63  type BashCodeExecutionToolResult string             // Always "bash_code_execution_tool_result"
    64  type BashCodeExecutionToolResultError string        // Always "bash_code_execution_tool_result_error"
    65  type BillingError string                            // Always "billing_error"
    66  type BrowserState string                            // Always "browser_state"
    67  type BrowserToolset20260801 string                  // Always "browser_toolset_20260801"
    68  type Canceled string                                // Always "canceled"
    69  type CharLocation string                            // Always "char_location"
    70  type CitationsDelta string                          // Always "citations_delta"
    71  type ClearThinking20251015 string                   // Always "clear_thinking_20251015"
    72  type ClearToolUses20250919 string                   // Always "clear_tool_uses_20250919"
    73  type Cloud string                                   // Always "cloud"
    74  type CodeExecution string                           // Always "code_execution"
    75  type CodeExecution20250522 string                   // Always "code_execution_20250522"
    76  type CodeExecution20250825 string                   // Always "code_execution_20250825"
    77  type CodeExecution20260120 string                   // Always "code_execution_20260120"
    78  type CodeExecution20260521 string                   // Always "code_execution_20260521"
    79  type CodeExecutionOutput string                     // Always "code_execution_output"
    80  type CodeExecutionResult string                     // Always "code_execution_result"
    81  type CodeExecutionToolResult string                 // Always "code_execution_tool_result"
    82  type CodeExecutionToolResultError string            // Always "code_execution_tool_result_error"
    83  type Compact20260112 string                         // Always "compact_20260112"
    84  type Compaction string                              // Always "compaction"
    85  type CompactionDelta string                         // Always "compaction_delta"
    86  type Completion string                              // Always "completion"
    87  type ComplianceSettings string                      // Always "compliance_settings"
    88  type Computer string                                // Always "computer"
    89  type Computer20241022 string                        // Always "computer_20241022"
    90  type Computer20250124 string                        // Always "computer_20250124"
    91  type Computer20251124 string                        // Always "computer_20251124"
    92  type ComputerToolset20260801 string                 // Always "computer_toolset_20260801"
    93  type ConflictError string                           // Always "conflict_error"
    94  type ContainerUpload string                         // Always "container_upload"
    95  type Content string                                 // Always "content"
    96  type ContentBlockDelta string                       // Always "content_block_delta"
    97  type ContentBlockLocation string                    // Always "content_block_location"
    98  type ContentBlockStart string                       // Always "content_block_start"
    99  type ContentBlockStop string                        // Always "content_block_stop"
   100  type Create string                                  // Always "create"
   101  type Default string                                 // Always "default"
   102  type Delete string                                  // Always "delete"
   103  type DeploymentRunFailed string                     // Always "deployment_run.failed"
   104  type DeploymentRunStarted string                    // Always "deployment_run.started"
   105  type DeploymentRunSucceeded string                  // Always "deployment_run.succeeded"
   106  type DeploymentArchived string                      // Always "deployment.archived"
   107  type DeploymentCreated string                       // Always "deployment.created"
   108  type DeploymentDeleted string                       // Always "deployment.deleted"
   109  type DeploymentPaused string                        // Always "deployment.paused"
   110  type DeploymentUnpaused string                      // Always "deployment.unpaused"
   111  type DeploymentUpdated string                       // Always "deployment.updated"
   112  type Direct string                                  // Always "direct"
   113  type Disabled string                                // Always "disabled"
   114  type Discovery string                               // Always "discovery"
   115  type Document string                                // Always "document"
   116  type DownloadCompleted string                       // Always "download_completed"
   117  type DownloadFailed string                          // Always "download_failed"
   118  type DownloadStarted string                         // Always "download_started"
   119  type Edit string                                    // Always "edit"
   120  type Enabled string                                 // Always "enabled"
   121  type EncryptedCodeExecutionResult string            // Always "encrypted_code_execution_result"
   122  type Environment string                             // Always "environment"
   123  type EnvironmentArchived string                     // Always "environment.archived"
   124  type EnvironmentCreated string                      // Always "environment.created"
   125  type EnvironmentDeleted string                      // Always "environment.deleted"
   126  type EnvironmentUpdated string                      // Always "environment.updated"
   127  type Ephemeral string                               // Always "ephemeral"
   128  type Error string                                   // Always "error"
   129  type Errored string                                 // Always "errored"
   130  type Event string                                   // Always "event"
   131  type Expired string                                 // Always "expired"
   132  type ExplicitURL string                             // Always "explicit_url"
   133  type ExternalKey string                             // Always "external_key"
   134  type ExternalKeyDeleted string                      // Always "external_key_deleted"
   135  type ExternalKeyValidation string                   // Always "external_key_validation"
   136  type Fallback string                                // Always "fallback"
   137  type FallbackMessage string                         // Always "fallback_message"
   138  type FederationIssuer string                        // Always "federation_issuer"
   139  type FederationRule string                          // Always "federation_rule"
   140  type FederationRuleWorkspace string                 // Always "federation_rule_workspace"
   141  type FederationRuleWorkspaceDeleted string          // Always "federation_rule_workspace_deleted"
   142  type File string                                    // Always "file"
   143  type GCP string                                     // Always "gcp"
   144  type Glob string                                    // Always "glob"
   145  type Grep string                                    // Always "grep"
   146  type Image string                                   // Always "image"
   147  type Inline string                                  // Always "inline"
   148  type InputJSONDelta string                          // Always "input_json_delta"
   149  type InputTokens string                             // Always "input_tokens"
   150  type Insert string                                  // Always "insert"
   151  type InvalidRequestError string                     // Always "invalid_request_error"
   152  type Invite string                                  // Always "invite"
   153  type InviteDeleted string                           // Always "invite_deleted"
   154  type JSONSchema string                              // Always "json_schema"
   155  type Limited string                                 // Always "limited"
   156  type MCPToolReference string                        // Always "mcp_tool_reference"
   157  type MCPToolResult string                           // Always "mcp_tool_result"
   158  type MCPToolUse string                              // Always "mcp_tool_use"
   159  type MCPToolset string                              // Always "mcp_toolset"
   160  type MCPToolsetReference string                     // Always "mcp_toolset_reference"
   161  type Memory string                                  // Always "memory"
   162  type Memory20250818 string                          // Always "memory_20250818"
   163  type MemoryStoreArchived string                     // Always "memory_store.archived"
   164  type MemoryStoreCreated string                      // Always "memory_store.created"
   165  type MemoryStoreDeleted string                      // Always "memory_store.deleted"
   166  type Message string                                 // Always "message"
   167  type MessageBatch string                            // Always "message_batch"
   168  type MessageBatchDeleted string                     // Always "message_batch_deleted"
   169  type MessageDelta string                            // Always "message_delta"
   170  type MessageStart string                            // Always "message_start"
   171  type MessageStop string                             // Always "message_stop"
   172  type MessagesChanged string                         // Always "messages_changed"
   173  type Model string                                   // Always "model"
   174  type ModelChanged string                            // Always "model_changed"
   175  type None string                                    // Always "none"
   176  type NotApplied string                              // Always "not_applied"
   177  type NotFoundError string                           // Always "not_found_error"
   178  type Object string                                  // Always "object"
   179  type Organization string                            // Always "organization"
   180  type OverloadedError string                         // Always "overloaded_error"
   181  type PageLocation string                            // Always "page_location"
   182  type PermissionError string                         // Always "permission_error"
   183  type PreviousMessageNotFound string                 // Always "previous_message_not_found"
   184  type RateLimit string                               // Always "rate_limit"
   185  type RateLimitError string                          // Always "rate_limit_error"
   186  type Read string                                    // Always "read"
   187  type RedactedThinking string                        // Always "redacted_thinking"
   188  type Redeemed string                                // Always "redeemed"
   189  type Refusal string                                 // Always "refusal"
   190  type Rename string                                  // Always "rename"
   191  type SearchResult string                            // Always "search_result"
   192  type SearchResultLocation string                    // Always "search_result_location"
   193  type SelfHosted string                              // Always "self_hosted"
   194  type ServerToolUse string                           // Always "server_tool_use"
   195  type ServiceAccount string                          // Always "service_account"
   196  type ServiceAccountActor string                     // Always "service_account_actor"
   197  type ServiceAccountWorkspaceMember string           // Always "service_account_workspace_member"
   198  type ServiceAccountWorkspaceMemberDeleted string    // Always "service_account_workspace_member_deleted"
   199  type Session string                                 // Always "session"
   200  type SessionArchived string                         // Always "session.archived"
   201  type SessionBudgetReached string                    // Always "session.budget_reached"
   202  type SessionCreated string                          // Always "session.created"
   203  type SessionDeleted string                          // Always "session.deleted"
   204  type SessionIdled string                            // Always "session.idled"
   205  type SessionOutcomeEvaluationEnded string           // Always "session.outcome_evaluation_ended"
   206  type SessionPending string                          // Always "session.pending"
   207  type SessionRequiresAction string                   // Always "session.requires_action"
   208  type SessionRunning string                          // Always "session.running"
   209  type SessionStatusIdled string                      // Always "session.status_idled"
   210  type SessionStatusRescheduled string                // Always "session.status_rescheduled"
   211  type SessionStatusRunStarted string                 // Always "session.status_run_started"
   212  type SessionStatusTerminated string                 // Always "session.status_terminated"
   213  type SessionThreadCreated string                    // Always "session.thread_created"
   214  type SessionThreadIdled string                      // Always "session.thread_idled"
   215  type SessionThreadTerminated string                 // Always "session.thread_terminated"
   216  type SessionUpdated string                          // Always "session.updated"
   217  type SignatureDelta string                          // Always "signature_delta"
   218  type Skill string                                   // Always "skill"
   219  type SkillDeleted string                            // Always "skill_deleted"
   220  type SkillVersion string                            // Always "skill_version"
   221  type SkillVersionDeleted string                     // Always "skill_version_deleted"
   222  type StrReplace string                              // Always "str_replace"
   223  type StrReplaceBasedEditTool string                 // Always "str_replace_based_edit_tool"
   224  type StrReplaceEditor string                        // Always "str_replace_editor"
   225  type Succeeded string                               // Always "succeeded"
   226  type SystemChanged string                           // Always "system_changed"
   227  type TabOpened string                               // Always "tab_opened"
   228  type Text string                                    // Always "text"
   229  type TextDelta string                               // Always "text_delta"
   230  type TextEditor20241022 string                      // Always "text_editor_20241022"
   231  type TextEditor20250124 string                      // Always "text_editor_20250124"
   232  type TextEditor20250429 string                      // Always "text_editor_20250429"
   233  type TextEditor20250728 string                      // Always "text_editor_20250728"
   234  type TextEditorCodeExecutionCreateResult string     // Always "text_editor_code_execution_create_result"
   235  type TextEditorCodeExecutionStrReplaceResult string // Always "text_editor_code_execution_str_replace_result"
   236  type TextEditorCodeExecutionToolResult string       // Always "text_editor_code_execution_tool_result"
   237  type TextEditorCodeExecutionToolResultError string  // Always "text_editor_code_execution_tool_result_error"
   238  type TextEditorCodeExecutionViewResult string       // Always "text_editor_code_execution_view_result"
   239  type TextPlain string                               // Always "text/plain"
   240  type Thinking string                                // Always "thinking"
   241  type ThinkingDelta string                           // Always "thinking_delta"
   242  type ThinkingDropped string                         // Always "thinking_dropped"
   243  type ThinkingTurns string                           // Always "thinking_turns"
   244  type TimeoutError string                            // Always "timeout_error"
   245  type Tokens string                                  // Always "tokens"
   246  type Tool string                                    // Always "tool"
   247  type ToolAddition string                            // Always "tool_addition"
   248  type ToolReference string                           // Always "tool_reference"
   249  type ToolRemoval string                             // Always "tool_removal"
   250  type ToolResult string                              // Always "tool_result"
   251  type ToolSearchToolBm25 string                      // Always "tool_search_tool_bm25"
   252  type ToolSearchToolRegex string                     // Always "tool_search_tool_regex"
   253  type ToolSearchToolResult string                    // Always "tool_search_tool_result"
   254  type ToolSearchToolResultError string               // Always "tool_search_tool_result_error"
   255  type ToolSearchToolSearchResult string              // Always "tool_search_tool_search_result"
   256  type ToolUse string                                 // Always "tool_use"
   257  type ToolUses string                                // Always "tool_uses"
   258  type ToolsChanged string                            // Always "tools_changed"
   259  type Tunnel string                                  // Always "tunnel"
   260  type TunnelCertificate string                       // Always "tunnel_certificate"
   261  type TunnelToken string                             // Always "tunnel_token"
   262  type Unattached string                              // Always "unattached"
   263  type Unavailable string                             // Always "unavailable"
   264  type Unrestricted string                            // Always "unrestricted"
   265  type URL string                                     // Always "url"
   266  type User string                                    // Always "user"
   267  type UserActor string                               // Always "user_actor"
   268  type UserDeleted string                             // Always "user_deleted"
   269  type VaultCredentialArchived string                 // Always "vault_credential.archived"
   270  type VaultCredentialCreated string                  // Always "vault_credential.created"
   271  type VaultCredentialDeleted string                  // Always "vault_credential.deleted"
   272  type VaultCredentialRefreshFailed string            // Always "vault_credential.refresh_failed"
   273  type VaultArchived string                           // Always "vault.archived"
   274  type VaultCreated string                            // Always "vault.created"
   275  type VaultDeleted string                            // Always "vault.deleted"
   276  type View string                                    // Always "view"
   277  type WebFetch string                                // Always "web_fetch"
   278  type WebFetch20250910 string                        // Always "web_fetch_20250910"
   279  type WebFetch20260209 string                        // Always "web_fetch_20260209"
   280  type WebFetch20260309 string                        // Always "web_fetch_20260309"
   281  type WebFetch20260318 string                        // Always "web_fetch_20260318"
   282  type WebFetchResult string                          // Always "web_fetch_result"
   283  type WebFetchToolResult string                      // Always "web_fetch_tool_result"
   284  type WebFetchToolResultError string                 // Always "web_fetch_tool_result_error"
   285  type WebSearch string                               // Always "web_search"
   286  type WebSearch20250305 string                       // Always "web_search_20250305"
   287  type WebSearch20260209 string                       // Always "web_search_20260209"
   288  type WebSearch20260318 string                       // Always "web_search_20260318"
   289  type WebSearchResult string                         // Always "web_search_result"
   290  type WebSearchResultLocation string                 // Always "web_search_result_location"
   291  type WebSearchToolResult string                     // Always "web_search_tool_result"
   292  type WebSearchToolResultError string                // Always "web_search_tool_result_error"
   293  type Work string                                    // Always "work"
   294  type WorkHeartbeat string                           // Always "work_heartbeat"
   295  type WorkQueueStats string                          // Always "work_queue_stats"
   296  type Workspace string                               // Always "workspace"
   297  type WorkspaceMember string                         // Always "workspace_member"
   298  type WorkspaceMemberDeleted string                  // Always "workspace_member_deleted"
   299  type WorkspaceRateLimit string                      // Always "workspace_rate_limit"
   300  type Write string                                   // Always "write"
   301  
   302  func (c Adaptive) Default() Adaptive                             { return "adaptive" }
   303  func (c Advisor) Default() Advisor                               { return "advisor" }
   304  func (c Advisor20260301) Default() Advisor20260301               { return "advisor_20260301" }
   305  func (c AdvisorMessage) Default() AdvisorMessage                 { return "advisor_message" }
   306  func (c AdvisorRedactedResult) Default() AdvisorRedactedResult   { return "advisor_redacted_result" }
   307  func (c AdvisorResult) Default() AdvisorResult                   { return "advisor_result" }
   308  func (c AdvisorToolResult) Default() AdvisorToolResult           { return "advisor_tool_result" }
   309  func (c AdvisorToolResultError) Default() AdvisorToolResultError { return "advisor_tool_result_error" }
   310  func (c AgentArchived) Default() AgentArchived                   { return "agent.archived" }
   311  func (c AgentCreated) Default() AgentCreated                     { return "agent.created" }
   312  func (c AgentDeleted) Default() AgentDeleted                     { return "agent.deleted" }
   313  func (c AgentUpdated) Default() AgentUpdated                     { return "agent.updated" }
   314  func (c All) Default() All                                       { return "all" }
   315  func (c Any) Default() Any                                       { return "any" }
   316  func (c APIError) Default() APIError                             { return "api_error" }
   317  func (c APIKey) Default() APIKey                                 { return "api_key" }
   318  func (c ApplicationPDF) Default() ApplicationPDF                 { return "application/pdf" }
   319  func (c Approximate) Default() Approximate                       { return "approximate" }
   320  func (c Assistant) Default() Assistant                           { return "assistant" }
   321  func (c Attached) Default() Attached                             { return "attached" }
   322  func (c AuthenticationError) Default() AuthenticationError       { return "authentication_error" }
   323  func (c Auto) Default() Auto                                     { return "auto" }
   324  func (c AWS) Default() AWS                                       { return "aws" }
   325  func (c Azure) Default() Azure                                   { return "azure" }
   326  func (c Base64) Default() Base64                                 { return "base64" }
   327  func (c Bash) Default() Bash                                     { return "bash" }
   328  func (c Bash20241022) Default() Bash20241022                     { return "bash_20241022" }
   329  func (c Bash20250124) Default() Bash20250124                     { return "bash_20250124" }
   330  func (c BashCodeExecutionOutput) Default() BashCodeExecutionOutput {
   331  	return "bash_code_execution_output"
   332  }
   333  func (c BashCodeExecutionResult) Default() BashCodeExecutionResult {
   334  	return "bash_code_execution_result"
   335  }
   336  func (c BashCodeExecutionToolResult) Default() BashCodeExecutionToolResult {
   337  	return "bash_code_execution_tool_result"
   338  }
   339  func (c BashCodeExecutionToolResultError) Default() BashCodeExecutionToolResultError {
   340  	return "bash_code_execution_tool_result_error"
   341  }
   342  func (c BillingError) Default() BillingError                     { return "billing_error" }
   343  func (c BrowserState) Default() BrowserState                     { return "browser_state" }
   344  func (c BrowserToolset20260801) Default() BrowserToolset20260801 { return "browser_toolset_20260801" }
   345  func (c Canceled) Default() Canceled                             { return "canceled" }
   346  func (c CharLocation) Default() CharLocation                     { return "char_location" }
   347  func (c CitationsDelta) Default() CitationsDelta                 { return "citations_delta" }
   348  func (c ClearThinking20251015) Default() ClearThinking20251015   { return "clear_thinking_20251015" }
   349  func (c ClearToolUses20250919) Default() ClearToolUses20250919   { return "clear_tool_uses_20250919" }
   350  func (c Cloud) Default() Cloud                                   { return "cloud" }
   351  func (c CodeExecution) Default() CodeExecution                   { return "code_execution" }
   352  func (c CodeExecution20250522) Default() CodeExecution20250522   { return "code_execution_20250522" }
   353  func (c CodeExecution20250825) Default() CodeExecution20250825   { return "code_execution_20250825" }
   354  func (c CodeExecution20260120) Default() CodeExecution20260120   { return "code_execution_20260120" }
   355  func (c CodeExecution20260521) Default() CodeExecution20260521   { return "code_execution_20260521" }
   356  func (c CodeExecutionOutput) Default() CodeExecutionOutput       { return "code_execution_output" }
   357  func (c CodeExecutionResult) Default() CodeExecutionResult       { return "code_execution_result" }
   358  func (c CodeExecutionToolResult) Default() CodeExecutionToolResult {
   359  	return "code_execution_tool_result"
   360  }
   361  func (c CodeExecutionToolResultError) Default() CodeExecutionToolResultError {
   362  	return "code_execution_tool_result_error"
   363  }
   364  func (c Compact20260112) Default() Compact20260112       { return "compact_20260112" }
   365  func (c Compaction) Default() Compaction                 { return "compaction" }
   366  func (c CompactionDelta) Default() CompactionDelta       { return "compaction_delta" }
   367  func (c Completion) Default() Completion                 { return "completion" }
   368  func (c ComplianceSettings) Default() ComplianceSettings { return "compliance_settings" }
   369  func (c Computer) Default() Computer                     { return "computer" }
   370  func (c Computer20241022) Default() Computer20241022     { return "computer_20241022" }
   371  func (c Computer20250124) Default() Computer20250124     { return "computer_20250124" }
   372  func (c Computer20251124) Default() Computer20251124     { return "computer_20251124" }
   373  func (c ComputerToolset20260801) Default() ComputerToolset20260801 {
   374  	return "computer_toolset_20260801"
   375  }
   376  func (c ConflictError) Default() ConflictError                   { return "conflict_error" }
   377  func (c ContainerUpload) Default() ContainerUpload               { return "container_upload" }
   378  func (c Content) Default() Content                               { return "content" }
   379  func (c ContentBlockDelta) Default() ContentBlockDelta           { return "content_block_delta" }
   380  func (c ContentBlockLocation) Default() ContentBlockLocation     { return "content_block_location" }
   381  func (c ContentBlockStart) Default() ContentBlockStart           { return "content_block_start" }
   382  func (c ContentBlockStop) Default() ContentBlockStop             { return "content_block_stop" }
   383  func (c Create) Default() Create                                 { return "create" }
   384  func (c Default) Default() Default                               { return "default" }
   385  func (c Delete) Default() Delete                                 { return "delete" }
   386  func (c DeploymentRunFailed) Default() DeploymentRunFailed       { return "deployment_run.failed" }
   387  func (c DeploymentRunStarted) Default() DeploymentRunStarted     { return "deployment_run.started" }
   388  func (c DeploymentRunSucceeded) Default() DeploymentRunSucceeded { return "deployment_run.succeeded" }
   389  func (c DeploymentArchived) Default() DeploymentArchived         { return "deployment.archived" }
   390  func (c DeploymentCreated) Default() DeploymentCreated           { return "deployment.created" }
   391  func (c DeploymentDeleted) Default() DeploymentDeleted           { return "deployment.deleted" }
   392  func (c DeploymentPaused) Default() DeploymentPaused             { return "deployment.paused" }
   393  func (c DeploymentUnpaused) Default() DeploymentUnpaused         { return "deployment.unpaused" }
   394  func (c DeploymentUpdated) Default() DeploymentUpdated           { return "deployment.updated" }
   395  func (c Direct) Default() Direct                                 { return "direct" }
   396  func (c Disabled) Default() Disabled                             { return "disabled" }
   397  func (c Discovery) Default() Discovery                           { return "discovery" }
   398  func (c Document) Default() Document                             { return "document" }
   399  func (c DownloadCompleted) Default() DownloadCompleted           { return "download_completed" }
   400  func (c DownloadFailed) Default() DownloadFailed                 { return "download_failed" }
   401  func (c DownloadStarted) Default() DownloadStarted               { return "download_started" }
   402  func (c Edit) Default() Edit                                     { return "edit" }
   403  func (c Enabled) Default() Enabled                               { return "enabled" }
   404  func (c EncryptedCodeExecutionResult) Default() EncryptedCodeExecutionResult {
   405  	return "encrypted_code_execution_result"
   406  }
   407  func (c Environment) Default() Environment                     { return "environment" }
   408  func (c EnvironmentArchived) Default() EnvironmentArchived     { return "environment.archived" }
   409  func (c EnvironmentCreated) Default() EnvironmentCreated       { return "environment.created" }
   410  func (c EnvironmentDeleted) Default() EnvironmentDeleted       { return "environment.deleted" }
   411  func (c EnvironmentUpdated) Default() EnvironmentUpdated       { return "environment.updated" }
   412  func (c Ephemeral) Default() Ephemeral                         { return "ephemeral" }
   413  func (c Error) Default() Error                                 { return "error" }
   414  func (c Errored) Default() Errored                             { return "errored" }
   415  func (c Event) Default() Event                                 { return "event" }
   416  func (c Expired) Default() Expired                             { return "expired" }
   417  func (c ExplicitURL) Default() ExplicitURL                     { return "explicit_url" }
   418  func (c ExternalKey) Default() ExternalKey                     { return "external_key" }
   419  func (c ExternalKeyDeleted) Default() ExternalKeyDeleted       { return "external_key_deleted" }
   420  func (c ExternalKeyValidation) Default() ExternalKeyValidation { return "external_key_validation" }
   421  func (c Fallback) Default() Fallback                           { return "fallback" }
   422  func (c FallbackMessage) Default() FallbackMessage             { return "fallback_message" }
   423  func (c FederationIssuer) Default() FederationIssuer           { return "federation_issuer" }
   424  func (c FederationRule) Default() FederationRule               { return "federation_rule" }
   425  func (c FederationRuleWorkspace) Default() FederationRuleWorkspace {
   426  	return "federation_rule_workspace"
   427  }
   428  func (c FederationRuleWorkspaceDeleted) Default() FederationRuleWorkspaceDeleted {
   429  	return "federation_rule_workspace_deleted"
   430  }
   431  func (c File) Default() File                               { return "file" }
   432  func (c GCP) Default() GCP                                 { return "gcp" }
   433  func (c Glob) Default() Glob                               { return "glob" }
   434  func (c Grep) Default() Grep                               { return "grep" }
   435  func (c Image) Default() Image                             { return "image" }
   436  func (c Inline) Default() Inline                           { return "inline" }
   437  func (c InputJSONDelta) Default() InputJSONDelta           { return "input_json_delta" }
   438  func (c InputTokens) Default() InputTokens                 { return "input_tokens" }
   439  func (c Insert) Default() Insert                           { return "insert" }
   440  func (c InvalidRequestError) Default() InvalidRequestError { return "invalid_request_error" }
   441  func (c Invite) Default() Invite                           { return "invite" }
   442  func (c InviteDeleted) Default() InviteDeleted             { return "invite_deleted" }
   443  func (c JSONSchema) Default() JSONSchema                   { return "json_schema" }
   444  func (c Limited) Default() Limited                         { return "limited" }
   445  func (c MCPToolReference) Default() MCPToolReference       { return "mcp_tool_reference" }
   446  func (c MCPToolResult) Default() MCPToolResult             { return "mcp_tool_result" }
   447  func (c MCPToolUse) Default() MCPToolUse                   { return "mcp_tool_use" }
   448  func (c MCPToolset) Default() MCPToolset                   { return "mcp_toolset" }
   449  func (c MCPToolsetReference) Default() MCPToolsetReference { return "mcp_toolset_reference" }
   450  func (c Memory) Default() Memory                           { return "memory" }
   451  func (c Memory20250818) Default() Memory20250818           { return "memory_20250818" }
   452  func (c MemoryStoreArchived) Default() MemoryStoreArchived { return "memory_store.archived" }
   453  func (c MemoryStoreCreated) Default() MemoryStoreCreated   { return "memory_store.created" }
   454  func (c MemoryStoreDeleted) Default() MemoryStoreDeleted   { return "memory_store.deleted" }
   455  func (c Message) Default() Message                         { return "message" }
   456  func (c MessageBatch) Default() MessageBatch               { return "message_batch" }
   457  func (c MessageBatchDeleted) Default() MessageBatchDeleted { return "message_batch_deleted" }
   458  func (c MessageDelta) Default() MessageDelta               { return "message_delta" }
   459  func (c MessageStart) Default() MessageStart               { return "message_start" }
   460  func (c MessageStop) Default() MessageStop                 { return "message_stop" }
   461  func (c MessagesChanged) Default() MessagesChanged         { return "messages_changed" }
   462  func (c Model) Default() Model                             { return "model" }
   463  func (c ModelChanged) Default() ModelChanged               { return "model_changed" }
   464  func (c None) Default() None                               { return "none" }
   465  func (c NotApplied) Default() NotApplied                   { return "not_applied" }
   466  func (c NotFoundError) Default() NotFoundError             { return "not_found_error" }
   467  func (c Object) Default() Object                           { return "object" }
   468  func (c Organization) Default() Organization               { return "organization" }
   469  func (c OverloadedError) Default() OverloadedError         { return "overloaded_error" }
   470  func (c PageLocation) Default() PageLocation               { return "page_location" }
   471  func (c PermissionError) Default() PermissionError         { return "permission_error" }
   472  func (c PreviousMessageNotFound) Default() PreviousMessageNotFound {
   473  	return "previous_message_not_found"
   474  }
   475  func (c RateLimit) Default() RateLimit                       { return "rate_limit" }
   476  func (c RateLimitError) Default() RateLimitError             { return "rate_limit_error" }
   477  func (c Read) Default() Read                                 { return "read" }
   478  func (c RedactedThinking) Default() RedactedThinking         { return "redacted_thinking" }
   479  func (c Redeemed) Default() Redeemed                         { return "redeemed" }
   480  func (c Refusal) Default() Refusal                           { return "refusal" }
   481  func (c Rename) Default() Rename                             { return "rename" }
   482  func (c SearchResult) Default() SearchResult                 { return "search_result" }
   483  func (c SearchResultLocation) Default() SearchResultLocation { return "search_result_location" }
   484  func (c SelfHosted) Default() SelfHosted                     { return "self_hosted" }
   485  func (c ServerToolUse) Default() ServerToolUse               { return "server_tool_use" }
   486  func (c ServiceAccount) Default() ServiceAccount             { return "service_account" }
   487  func (c ServiceAccountActor) Default() ServiceAccountActor   { return "service_account_actor" }
   488  func (c ServiceAccountWorkspaceMember) Default() ServiceAccountWorkspaceMember {
   489  	return "service_account_workspace_member"
   490  }
   491  func (c ServiceAccountWorkspaceMemberDeleted) Default() ServiceAccountWorkspaceMemberDeleted {
   492  	return "service_account_workspace_member_deleted"
   493  }
   494  func (c Session) Default() Session                           { return "session" }
   495  func (c SessionArchived) Default() SessionArchived           { return "session.archived" }
   496  func (c SessionBudgetReached) Default() SessionBudgetReached { return "session.budget_reached" }
   497  func (c SessionCreated) Default() SessionCreated             { return "session.created" }
   498  func (c SessionDeleted) Default() SessionDeleted             { return "session.deleted" }
   499  func (c SessionIdled) Default() SessionIdled                 { return "session.idled" }
   500  func (c SessionOutcomeEvaluationEnded) Default() SessionOutcomeEvaluationEnded {
   501  	return "session.outcome_evaluation_ended"
   502  }
   503  func (c SessionPending) Default() SessionPending               { return "session.pending" }
   504  func (c SessionRequiresAction) Default() SessionRequiresAction { return "session.requires_action" }
   505  func (c SessionRunning) Default() SessionRunning               { return "session.running" }
   506  func (c SessionStatusIdled) Default() SessionStatusIdled       { return "session.status_idled" }
   507  func (c SessionStatusRescheduled) Default() SessionStatusRescheduled {
   508  	return "session.status_rescheduled"
   509  }
   510  func (c SessionStatusRunStarted) Default() SessionStatusRunStarted {
   511  	return "session.status_run_started"
   512  }
   513  func (c SessionStatusTerminated) Default() SessionStatusTerminated {
   514  	return "session.status_terminated"
   515  }
   516  func (c SessionThreadCreated) Default() SessionThreadCreated { return "session.thread_created" }
   517  func (c SessionThreadIdled) Default() SessionThreadIdled     { return "session.thread_idled" }
   518  func (c SessionThreadTerminated) Default() SessionThreadTerminated {
   519  	return "session.thread_terminated"
   520  }
   521  func (c SessionUpdated) Default() SessionUpdated           { return "session.updated" }
   522  func (c SignatureDelta) Default() SignatureDelta           { return "signature_delta" }
   523  func (c Skill) Default() Skill                             { return "skill" }
   524  func (c SkillDeleted) Default() SkillDeleted               { return "skill_deleted" }
   525  func (c SkillVersion) Default() SkillVersion               { return "skill_version" }
   526  func (c SkillVersionDeleted) Default() SkillVersionDeleted { return "skill_version_deleted" }
   527  func (c StrReplace) Default() StrReplace                   { return "str_replace" }
   528  func (c StrReplaceBasedEditTool) Default() StrReplaceBasedEditTool {
   529  	return "str_replace_based_edit_tool"
   530  }
   531  func (c StrReplaceEditor) Default() StrReplaceEditor     { return "str_replace_editor" }
   532  func (c Succeeded) Default() Succeeded                   { return "succeeded" }
   533  func (c SystemChanged) Default() SystemChanged           { return "system_changed" }
   534  func (c TabOpened) Default() TabOpened                   { return "tab_opened" }
   535  func (c Text) Default() Text                             { return "text" }
   536  func (c TextDelta) Default() TextDelta                   { return "text_delta" }
   537  func (c TextEditor20241022) Default() TextEditor20241022 { return "text_editor_20241022" }
   538  func (c TextEditor20250124) Default() TextEditor20250124 { return "text_editor_20250124" }
   539  func (c TextEditor20250429) Default() TextEditor20250429 { return "text_editor_20250429" }
   540  func (c TextEditor20250728) Default() TextEditor20250728 { return "text_editor_20250728" }
   541  func (c TextEditorCodeExecutionCreateResult) Default() TextEditorCodeExecutionCreateResult {
   542  	return "text_editor_code_execution_create_result"
   543  }
   544  func (c TextEditorCodeExecutionStrReplaceResult) Default() TextEditorCodeExecutionStrReplaceResult {
   545  	return "text_editor_code_execution_str_replace_result"
   546  }
   547  func (c TextEditorCodeExecutionToolResult) Default() TextEditorCodeExecutionToolResult {
   548  	return "text_editor_code_execution_tool_result"
   549  }
   550  func (c TextEditorCodeExecutionToolResultError) Default() TextEditorCodeExecutionToolResultError {
   551  	return "text_editor_code_execution_tool_result_error"
   552  }
   553  func (c TextEditorCodeExecutionViewResult) Default() TextEditorCodeExecutionViewResult {
   554  	return "text_editor_code_execution_view_result"
   555  }
   556  func (c TextPlain) Default() TextPlain                       { return "text/plain" }
   557  func (c Thinking) Default() Thinking                         { return "thinking" }
   558  func (c ThinkingDelta) Default() ThinkingDelta               { return "thinking_delta" }
   559  func (c ThinkingDropped) Default() ThinkingDropped           { return "thinking_dropped" }
   560  func (c ThinkingTurns) Default() ThinkingTurns               { return "thinking_turns" }
   561  func (c TimeoutError) Default() TimeoutError                 { return "timeout_error" }
   562  func (c Tokens) Default() Tokens                             { return "tokens" }
   563  func (c Tool) Default() Tool                                 { return "tool" }
   564  func (c ToolAddition) Default() ToolAddition                 { return "tool_addition" }
   565  func (c ToolReference) Default() ToolReference               { return "tool_reference" }
   566  func (c ToolRemoval) Default() ToolRemoval                   { return "tool_removal" }
   567  func (c ToolResult) Default() ToolResult                     { return "tool_result" }
   568  func (c ToolSearchToolBm25) Default() ToolSearchToolBm25     { return "tool_search_tool_bm25" }
   569  func (c ToolSearchToolRegex) Default() ToolSearchToolRegex   { return "tool_search_tool_regex" }
   570  func (c ToolSearchToolResult) Default() ToolSearchToolResult { return "tool_search_tool_result" }
   571  func (c ToolSearchToolResultError) Default() ToolSearchToolResultError {
   572  	return "tool_search_tool_result_error"
   573  }
   574  func (c ToolSearchToolSearchResult) Default() ToolSearchToolSearchResult {
   575  	return "tool_search_tool_search_result"
   576  }
   577  func (c ToolUse) Default() ToolUse                     { return "tool_use" }
   578  func (c ToolUses) Default() ToolUses                   { return "tool_uses" }
   579  func (c ToolsChanged) Default() ToolsChanged           { return "tools_changed" }
   580  func (c Tunnel) Default() Tunnel                       { return "tunnel" }
   581  func (c TunnelCertificate) Default() TunnelCertificate { return "tunnel_certificate" }
   582  func (c TunnelToken) Default() TunnelToken             { return "tunnel_token" }
   583  func (c Unattached) Default() Unattached               { return "unattached" }
   584  func (c Unavailable) Default() Unavailable             { return "unavailable" }
   585  func (c Unrestricted) Default() Unrestricted           { return "unrestricted" }
   586  func (c URL) Default() URL                             { return "url" }
   587  func (c User) Default() User                           { return "user" }
   588  func (c UserActor) Default() UserActor                 { return "user_actor" }
   589  func (c UserDeleted) Default() UserDeleted             { return "user_deleted" }
   590  func (c VaultCredentialArchived) Default() VaultCredentialArchived {
   591  	return "vault_credential.archived"
   592  }
   593  func (c VaultCredentialCreated) Default() VaultCredentialCreated { return "vault_credential.created" }
   594  func (c VaultCredentialDeleted) Default() VaultCredentialDeleted { return "vault_credential.deleted" }
   595  func (c VaultCredentialRefreshFailed) Default() VaultCredentialRefreshFailed {
   596  	return "vault_credential.refresh_failed"
   597  }
   598  func (c VaultArchived) Default() VaultArchived           { return "vault.archived" }
   599  func (c VaultCreated) Default() VaultCreated             { return "vault.created" }
   600  func (c VaultDeleted) Default() VaultDeleted             { return "vault.deleted" }
   601  func (c View) Default() View                             { return "view" }
   602  func (c WebFetch) Default() WebFetch                     { return "web_fetch" }
   603  func (c WebFetch20250910) Default() WebFetch20250910     { return "web_fetch_20250910" }
   604  func (c WebFetch20260209) Default() WebFetch20260209     { return "web_fetch_20260209" }
   605  func (c WebFetch20260309) Default() WebFetch20260309     { return "web_fetch_20260309" }
   606  func (c WebFetch20260318) Default() WebFetch20260318     { return "web_fetch_20260318" }
   607  func (c WebFetchResult) Default() WebFetchResult         { return "web_fetch_result" }
   608  func (c WebFetchToolResult) Default() WebFetchToolResult { return "web_fetch_tool_result" }
   609  func (c WebFetchToolResultError) Default() WebFetchToolResultError {
   610  	return "web_fetch_tool_result_error"
   611  }
   612  func (c WebSearch) Default() WebSearch                 { return "web_search" }
   613  func (c WebSearch20250305) Default() WebSearch20250305 { return "web_search_20250305" }
   614  func (c WebSearch20260209) Default() WebSearch20260209 { return "web_search_20260209" }
   615  func (c WebSearch20260318) Default() WebSearch20260318 { return "web_search_20260318" }
   616  func (c WebSearchResult) Default() WebSearchResult     { return "web_search_result" }
   617  func (c WebSearchResultLocation) Default() WebSearchResultLocation {
   618  	return "web_search_result_location"
   619  }
   620  func (c WebSearchToolResult) Default() WebSearchToolResult { return "web_search_tool_result" }
   621  func (c WebSearchToolResultError) Default() WebSearchToolResultError {
   622  	return "web_search_tool_result_error"
   623  }
   624  func (c Work) Default() Work                                     { return "work" }
   625  func (c WorkHeartbeat) Default() WorkHeartbeat                   { return "work_heartbeat" }
   626  func (c WorkQueueStats) Default() WorkQueueStats                 { return "work_queue_stats" }
   627  func (c Workspace) Default() Workspace                           { return "workspace" }
   628  func (c WorkspaceMember) Default() WorkspaceMember               { return "workspace_member" }
   629  func (c WorkspaceMemberDeleted) Default() WorkspaceMemberDeleted { return "workspace_member_deleted" }
   630  func (c WorkspaceRateLimit) Default() WorkspaceRateLimit         { return "workspace_rate_limit" }
   631  func (c Write) Default() Write                                   { return "write" }
   632  
   633  func (c Adaptive) MarshalJSON() ([]byte, error)                             { return marshalString(c) }
   634  func (c Advisor) MarshalJSON() ([]byte, error)                              { return marshalString(c) }
   635  func (c Advisor20260301) MarshalJSON() ([]byte, error)                      { return marshalString(c) }
   636  func (c AdvisorMessage) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   637  func (c AdvisorRedactedResult) MarshalJSON() ([]byte, error)                { return marshalString(c) }
   638  func (c AdvisorResult) MarshalJSON() ([]byte, error)                        { return marshalString(c) }
   639  func (c AdvisorToolResult) MarshalJSON() ([]byte, error)                    { return marshalString(c) }
   640  func (c AdvisorToolResultError) MarshalJSON() ([]byte, error)               { return marshalString(c) }
   641  func (c AgentArchived) MarshalJSON() ([]byte, error)                        { return marshalString(c) }
   642  func (c AgentCreated) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   643  func (c AgentDeleted) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   644  func (c AgentUpdated) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   645  func (c All) MarshalJSON() ([]byte, error)                                  { return marshalString(c) }
   646  func (c Any) MarshalJSON() ([]byte, error)                                  { return marshalString(c) }
   647  func (c APIError) MarshalJSON() ([]byte, error)                             { return marshalString(c) }
   648  func (c APIKey) MarshalJSON() ([]byte, error)                               { return marshalString(c) }
   649  func (c ApplicationPDF) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   650  func (c Approximate) MarshalJSON() ([]byte, error)                          { return marshalString(c) }
   651  func (c Assistant) MarshalJSON() ([]byte, error)                            { return marshalString(c) }
   652  func (c Attached) MarshalJSON() ([]byte, error)                             { return marshalString(c) }
   653  func (c AuthenticationError) MarshalJSON() ([]byte, error)                  { return marshalString(c) }
   654  func (c Auto) MarshalJSON() ([]byte, error)                                 { return marshalString(c) }
   655  func (c AWS) MarshalJSON() ([]byte, error)                                  { return marshalString(c) }
   656  func (c Azure) MarshalJSON() ([]byte, error)                                { return marshalString(c) }
   657  func (c Base64) MarshalJSON() ([]byte, error)                               { return marshalString(c) }
   658  func (c Bash) MarshalJSON() ([]byte, error)                                 { return marshalString(c) }
   659  func (c Bash20241022) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   660  func (c Bash20250124) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   661  func (c BashCodeExecutionOutput) MarshalJSON() ([]byte, error)              { return marshalString(c) }
   662  func (c BashCodeExecutionResult) MarshalJSON() ([]byte, error)              { return marshalString(c) }
   663  func (c BashCodeExecutionToolResult) MarshalJSON() ([]byte, error)          { return marshalString(c) }
   664  func (c BashCodeExecutionToolResultError) MarshalJSON() ([]byte, error)     { return marshalString(c) }
   665  func (c BillingError) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   666  func (c BrowserState) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   667  func (c BrowserToolset20260801) MarshalJSON() ([]byte, error)               { return marshalString(c) }
   668  func (c Canceled) MarshalJSON() ([]byte, error)                             { return marshalString(c) }
   669  func (c CharLocation) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   670  func (c CitationsDelta) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   671  func (c ClearThinking20251015) MarshalJSON() ([]byte, error)                { return marshalString(c) }
   672  func (c ClearToolUses20250919) MarshalJSON() ([]byte, error)                { return marshalString(c) }
   673  func (c Cloud) MarshalJSON() ([]byte, error)                                { return marshalString(c) }
   674  func (c CodeExecution) MarshalJSON() ([]byte, error)                        { return marshalString(c) }
   675  func (c CodeExecution20250522) MarshalJSON() ([]byte, error)                { return marshalString(c) }
   676  func (c CodeExecution20250825) MarshalJSON() ([]byte, error)                { return marshalString(c) }
   677  func (c CodeExecution20260120) MarshalJSON() ([]byte, error)                { return marshalString(c) }
   678  func (c CodeExecution20260521) MarshalJSON() ([]byte, error)                { return marshalString(c) }
   679  func (c CodeExecutionOutput) MarshalJSON() ([]byte, error)                  { return marshalString(c) }
   680  func (c CodeExecutionResult) MarshalJSON() ([]byte, error)                  { return marshalString(c) }
   681  func (c CodeExecutionToolResult) MarshalJSON() ([]byte, error)              { return marshalString(c) }
   682  func (c CodeExecutionToolResultError) MarshalJSON() ([]byte, error)         { return marshalString(c) }
   683  func (c Compact20260112) MarshalJSON() ([]byte, error)                      { return marshalString(c) }
   684  func (c Compaction) MarshalJSON() ([]byte, error)                           { return marshalString(c) }
   685  func (c CompactionDelta) MarshalJSON() ([]byte, error)                      { return marshalString(c) }
   686  func (c Completion) MarshalJSON() ([]byte, error)                           { return marshalString(c) }
   687  func (c ComplianceSettings) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   688  func (c Computer) MarshalJSON() ([]byte, error)                             { return marshalString(c) }
   689  func (c Computer20241022) MarshalJSON() ([]byte, error)                     { return marshalString(c) }
   690  func (c Computer20250124) MarshalJSON() ([]byte, error)                     { return marshalString(c) }
   691  func (c Computer20251124) MarshalJSON() ([]byte, error)                     { return marshalString(c) }
   692  func (c ComputerToolset20260801) MarshalJSON() ([]byte, error)              { return marshalString(c) }
   693  func (c ConflictError) MarshalJSON() ([]byte, error)                        { return marshalString(c) }
   694  func (c ContainerUpload) MarshalJSON() ([]byte, error)                      { return marshalString(c) }
   695  func (c Content) MarshalJSON() ([]byte, error)                              { return marshalString(c) }
   696  func (c ContentBlockDelta) MarshalJSON() ([]byte, error)                    { return marshalString(c) }
   697  func (c ContentBlockLocation) MarshalJSON() ([]byte, error)                 { return marshalString(c) }
   698  func (c ContentBlockStart) MarshalJSON() ([]byte, error)                    { return marshalString(c) }
   699  func (c ContentBlockStop) MarshalJSON() ([]byte, error)                     { return marshalString(c) }
   700  func (c Create) MarshalJSON() ([]byte, error)                               { return marshalString(c) }
   701  func (c Default) MarshalJSON() ([]byte, error)                              { return marshalString(c) }
   702  func (c Delete) MarshalJSON() ([]byte, error)                               { return marshalString(c) }
   703  func (c DeploymentRunFailed) MarshalJSON() ([]byte, error)                  { return marshalString(c) }
   704  func (c DeploymentRunStarted) MarshalJSON() ([]byte, error)                 { return marshalString(c) }
   705  func (c DeploymentRunSucceeded) MarshalJSON() ([]byte, error)               { return marshalString(c) }
   706  func (c DeploymentArchived) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   707  func (c DeploymentCreated) MarshalJSON() ([]byte, error)                    { return marshalString(c) }
   708  func (c DeploymentDeleted) MarshalJSON() ([]byte, error)                    { return marshalString(c) }
   709  func (c DeploymentPaused) MarshalJSON() ([]byte, error)                     { return marshalString(c) }
   710  func (c DeploymentUnpaused) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   711  func (c DeploymentUpdated) MarshalJSON() ([]byte, error)                    { return marshalString(c) }
   712  func (c Direct) MarshalJSON() ([]byte, error)                               { return marshalString(c) }
   713  func (c Disabled) MarshalJSON() ([]byte, error)                             { return marshalString(c) }
   714  func (c Discovery) MarshalJSON() ([]byte, error)                            { return marshalString(c) }
   715  func (c Document) MarshalJSON() ([]byte, error)                             { return marshalString(c) }
   716  func (c DownloadCompleted) MarshalJSON() ([]byte, error)                    { return marshalString(c) }
   717  func (c DownloadFailed) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   718  func (c DownloadStarted) MarshalJSON() ([]byte, error)                      { return marshalString(c) }
   719  func (c Edit) MarshalJSON() ([]byte, error)                                 { return marshalString(c) }
   720  func (c Enabled) MarshalJSON() ([]byte, error)                              { return marshalString(c) }
   721  func (c EncryptedCodeExecutionResult) MarshalJSON() ([]byte, error)         { return marshalString(c) }
   722  func (c Environment) MarshalJSON() ([]byte, error)                          { return marshalString(c) }
   723  func (c EnvironmentArchived) MarshalJSON() ([]byte, error)                  { return marshalString(c) }
   724  func (c EnvironmentCreated) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   725  func (c EnvironmentDeleted) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   726  func (c EnvironmentUpdated) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   727  func (c Ephemeral) MarshalJSON() ([]byte, error)                            { return marshalString(c) }
   728  func (c Error) MarshalJSON() ([]byte, error)                                { return marshalString(c) }
   729  func (c Errored) MarshalJSON() ([]byte, error)                              { return marshalString(c) }
   730  func (c Event) MarshalJSON() ([]byte, error)                                { return marshalString(c) }
   731  func (c Expired) MarshalJSON() ([]byte, error)                              { return marshalString(c) }
   732  func (c ExplicitURL) MarshalJSON() ([]byte, error)                          { return marshalString(c) }
   733  func (c ExternalKey) MarshalJSON() ([]byte, error)                          { return marshalString(c) }
   734  func (c ExternalKeyDeleted) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   735  func (c ExternalKeyValidation) MarshalJSON() ([]byte, error)                { return marshalString(c) }
   736  func (c Fallback) MarshalJSON() ([]byte, error)                             { return marshalString(c) }
   737  func (c FallbackMessage) MarshalJSON() ([]byte, error)                      { return marshalString(c) }
   738  func (c FederationIssuer) MarshalJSON() ([]byte, error)                     { return marshalString(c) }
   739  func (c FederationRule) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   740  func (c FederationRuleWorkspace) MarshalJSON() ([]byte, error)              { return marshalString(c) }
   741  func (c FederationRuleWorkspaceDeleted) MarshalJSON() ([]byte, error)       { return marshalString(c) }
   742  func (c File) MarshalJSON() ([]byte, error)                                 { return marshalString(c) }
   743  func (c GCP) MarshalJSON() ([]byte, error)                                  { return marshalString(c) }
   744  func (c Glob) MarshalJSON() ([]byte, error)                                 { return marshalString(c) }
   745  func (c Grep) MarshalJSON() ([]byte, error)                                 { return marshalString(c) }
   746  func (c Image) MarshalJSON() ([]byte, error)                                { return marshalString(c) }
   747  func (c Inline) MarshalJSON() ([]byte, error)                               { return marshalString(c) }
   748  func (c InputJSONDelta) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   749  func (c InputTokens) MarshalJSON() ([]byte, error)                          { return marshalString(c) }
   750  func (c Insert) MarshalJSON() ([]byte, error)                               { return marshalString(c) }
   751  func (c InvalidRequestError) MarshalJSON() ([]byte, error)                  { return marshalString(c) }
   752  func (c Invite) MarshalJSON() ([]byte, error)                               { return marshalString(c) }
   753  func (c InviteDeleted) MarshalJSON() ([]byte, error)                        { return marshalString(c) }
   754  func (c JSONSchema) MarshalJSON() ([]byte, error)                           { return marshalString(c) }
   755  func (c Limited) MarshalJSON() ([]byte, error)                              { return marshalString(c) }
   756  func (c MCPToolReference) MarshalJSON() ([]byte, error)                     { return marshalString(c) }
   757  func (c MCPToolResult) MarshalJSON() ([]byte, error)                        { return marshalString(c) }
   758  func (c MCPToolUse) MarshalJSON() ([]byte, error)                           { return marshalString(c) }
   759  func (c MCPToolset) MarshalJSON() ([]byte, error)                           { return marshalString(c) }
   760  func (c MCPToolsetReference) MarshalJSON() ([]byte, error)                  { return marshalString(c) }
   761  func (c Memory) MarshalJSON() ([]byte, error)                               { return marshalString(c) }
   762  func (c Memory20250818) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   763  func (c MemoryStoreArchived) MarshalJSON() ([]byte, error)                  { return marshalString(c) }
   764  func (c MemoryStoreCreated) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   765  func (c MemoryStoreDeleted) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   766  func (c Message) MarshalJSON() ([]byte, error)                              { return marshalString(c) }
   767  func (c MessageBatch) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   768  func (c MessageBatchDeleted) MarshalJSON() ([]byte, error)                  { return marshalString(c) }
   769  func (c MessageDelta) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   770  func (c MessageStart) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   771  func (c MessageStop) MarshalJSON() ([]byte, error)                          { return marshalString(c) }
   772  func (c MessagesChanged) MarshalJSON() ([]byte, error)                      { return marshalString(c) }
   773  func (c Model) MarshalJSON() ([]byte, error)                                { return marshalString(c) }
   774  func (c ModelChanged) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   775  func (c None) MarshalJSON() ([]byte, error)                                 { return marshalString(c) }
   776  func (c NotApplied) MarshalJSON() ([]byte, error)                           { return marshalString(c) }
   777  func (c NotFoundError) MarshalJSON() ([]byte, error)                        { return marshalString(c) }
   778  func (c Object) MarshalJSON() ([]byte, error)                               { return marshalString(c) }
   779  func (c Organization) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   780  func (c OverloadedError) MarshalJSON() ([]byte, error)                      { return marshalString(c) }
   781  func (c PageLocation) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   782  func (c PermissionError) MarshalJSON() ([]byte, error)                      { return marshalString(c) }
   783  func (c PreviousMessageNotFound) MarshalJSON() ([]byte, error)              { return marshalString(c) }
   784  func (c RateLimit) MarshalJSON() ([]byte, error)                            { return marshalString(c) }
   785  func (c RateLimitError) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   786  func (c Read) MarshalJSON() ([]byte, error)                                 { return marshalString(c) }
   787  func (c RedactedThinking) MarshalJSON() ([]byte, error)                     { return marshalString(c) }
   788  func (c Redeemed) MarshalJSON() ([]byte, error)                             { return marshalString(c) }
   789  func (c Refusal) MarshalJSON() ([]byte, error)                              { return marshalString(c) }
   790  func (c Rename) MarshalJSON() ([]byte, error)                               { return marshalString(c) }
   791  func (c SearchResult) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   792  func (c SearchResultLocation) MarshalJSON() ([]byte, error)                 { return marshalString(c) }
   793  func (c SelfHosted) MarshalJSON() ([]byte, error)                           { return marshalString(c) }
   794  func (c ServerToolUse) MarshalJSON() ([]byte, error)                        { return marshalString(c) }
   795  func (c ServiceAccount) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   796  func (c ServiceAccountActor) MarshalJSON() ([]byte, error)                  { return marshalString(c) }
   797  func (c ServiceAccountWorkspaceMember) MarshalJSON() ([]byte, error)        { return marshalString(c) }
   798  func (c ServiceAccountWorkspaceMemberDeleted) MarshalJSON() ([]byte, error) { return marshalString(c) }
   799  func (c Session) MarshalJSON() ([]byte, error)                              { return marshalString(c) }
   800  func (c SessionArchived) MarshalJSON() ([]byte, error)                      { return marshalString(c) }
   801  func (c SessionBudgetReached) MarshalJSON() ([]byte, error)                 { return marshalString(c) }
   802  func (c SessionCreated) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   803  func (c SessionDeleted) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   804  func (c SessionIdled) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   805  func (c SessionOutcomeEvaluationEnded) MarshalJSON() ([]byte, error)        { return marshalString(c) }
   806  func (c SessionPending) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   807  func (c SessionRequiresAction) MarshalJSON() ([]byte, error)                { return marshalString(c) }
   808  func (c SessionRunning) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   809  func (c SessionStatusIdled) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   810  func (c SessionStatusRescheduled) MarshalJSON() ([]byte, error)             { return marshalString(c) }
   811  func (c SessionStatusRunStarted) MarshalJSON() ([]byte, error)              { return marshalString(c) }
   812  func (c SessionStatusTerminated) MarshalJSON() ([]byte, error)              { return marshalString(c) }
   813  func (c SessionThreadCreated) MarshalJSON() ([]byte, error)                 { return marshalString(c) }
   814  func (c SessionThreadIdled) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   815  func (c SessionThreadTerminated) MarshalJSON() ([]byte, error)              { return marshalString(c) }
   816  func (c SessionUpdated) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   817  func (c SignatureDelta) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   818  func (c Skill) MarshalJSON() ([]byte, error)                                { return marshalString(c) }
   819  func (c SkillDeleted) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   820  func (c SkillVersion) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   821  func (c SkillVersionDeleted) MarshalJSON() ([]byte, error)                  { return marshalString(c) }
   822  func (c StrReplace) MarshalJSON() ([]byte, error)                           { return marshalString(c) }
   823  func (c StrReplaceBasedEditTool) MarshalJSON() ([]byte, error)              { return marshalString(c) }
   824  func (c StrReplaceEditor) MarshalJSON() ([]byte, error)                     { return marshalString(c) }
   825  func (c Succeeded) MarshalJSON() ([]byte, error)                            { return marshalString(c) }
   826  func (c SystemChanged) MarshalJSON() ([]byte, error)                        { return marshalString(c) }
   827  func (c TabOpened) MarshalJSON() ([]byte, error)                            { return marshalString(c) }
   828  func (c Text) MarshalJSON() ([]byte, error)                                 { return marshalString(c) }
   829  func (c TextDelta) MarshalJSON() ([]byte, error)                            { return marshalString(c) }
   830  func (c TextEditor20241022) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   831  func (c TextEditor20250124) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   832  func (c TextEditor20250429) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   833  func (c TextEditor20250728) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   834  func (c TextEditorCodeExecutionCreateResult) MarshalJSON() ([]byte, error)  { return marshalString(c) }
   835  func (c TextEditorCodeExecutionStrReplaceResult) MarshalJSON() ([]byte, error) {
   836  	return marshalString(c)
   837  }
   838  func (c TextEditorCodeExecutionToolResult) MarshalJSON() ([]byte, error) { return marshalString(c) }
   839  func (c TextEditorCodeExecutionToolResultError) MarshalJSON() ([]byte, error) {
   840  	return marshalString(c)
   841  }
   842  func (c TextEditorCodeExecutionViewResult) MarshalJSON() ([]byte, error) { return marshalString(c) }
   843  func (c TextPlain) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   844  func (c Thinking) MarshalJSON() ([]byte, error)                          { return marshalString(c) }
   845  func (c ThinkingDelta) MarshalJSON() ([]byte, error)                     { return marshalString(c) }
   846  func (c ThinkingDropped) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   847  func (c ThinkingTurns) MarshalJSON() ([]byte, error)                     { return marshalString(c) }
   848  func (c TimeoutError) MarshalJSON() ([]byte, error)                      { return marshalString(c) }
   849  func (c Tokens) MarshalJSON() ([]byte, error)                            { return marshalString(c) }
   850  func (c Tool) MarshalJSON() ([]byte, error)                              { return marshalString(c) }
   851  func (c ToolAddition) MarshalJSON() ([]byte, error)                      { return marshalString(c) }
   852  func (c ToolReference) MarshalJSON() ([]byte, error)                     { return marshalString(c) }
   853  func (c ToolRemoval) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   854  func (c ToolResult) MarshalJSON() ([]byte, error)                        { return marshalString(c) }
   855  func (c ToolSearchToolBm25) MarshalJSON() ([]byte, error)                { return marshalString(c) }
   856  func (c ToolSearchToolRegex) MarshalJSON() ([]byte, error)               { return marshalString(c) }
   857  func (c ToolSearchToolResult) MarshalJSON() ([]byte, error)              { return marshalString(c) }
   858  func (c ToolSearchToolResultError) MarshalJSON() ([]byte, error)         { return marshalString(c) }
   859  func (c ToolSearchToolSearchResult) MarshalJSON() ([]byte, error)        { return marshalString(c) }
   860  func (c ToolUse) MarshalJSON() ([]byte, error)                           { return marshalString(c) }
   861  func (c ToolUses) MarshalJSON() ([]byte, error)                          { return marshalString(c) }
   862  func (c ToolsChanged) MarshalJSON() ([]byte, error)                      { return marshalString(c) }
   863  func (c Tunnel) MarshalJSON() ([]byte, error)                            { return marshalString(c) }
   864  func (c TunnelCertificate) MarshalJSON() ([]byte, error)                 { return marshalString(c) }
   865  func (c TunnelToken) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   866  func (c Unattached) MarshalJSON() ([]byte, error)                        { return marshalString(c) }
   867  func (c Unavailable) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   868  func (c Unrestricted) MarshalJSON() ([]byte, error)                      { return marshalString(c) }
   869  func (c URL) MarshalJSON() ([]byte, error)                               { return marshalString(c) }
   870  func (c User) MarshalJSON() ([]byte, error)                              { return marshalString(c) }
   871  func (c UserActor) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   872  func (c UserDeleted) MarshalJSON() ([]byte, error)                       { return marshalString(c) }
   873  func (c VaultCredentialArchived) MarshalJSON() ([]byte, error)           { return marshalString(c) }
   874  func (c VaultCredentialCreated) MarshalJSON() ([]byte, error)            { return marshalString(c) }
   875  func (c VaultCredentialDeleted) MarshalJSON() ([]byte, error)            { return marshalString(c) }
   876  func (c VaultCredentialRefreshFailed) MarshalJSON() ([]byte, error)      { return marshalString(c) }
   877  func (c VaultArchived) MarshalJSON() ([]byte, error)                     { return marshalString(c) }
   878  func (c VaultCreated) MarshalJSON() ([]byte, error)                      { return marshalString(c) }
   879  func (c VaultDeleted) MarshalJSON() ([]byte, error)                      { return marshalString(c) }
   880  func (c View) MarshalJSON() ([]byte, error)                              { return marshalString(c) }
   881  func (c WebFetch) MarshalJSON() ([]byte, error)                          { return marshalString(c) }
   882  func (c WebFetch20250910) MarshalJSON() ([]byte, error)                  { return marshalString(c) }
   883  func (c WebFetch20260209) MarshalJSON() ([]byte, error)                  { return marshalString(c) }
   884  func (c WebFetch20260309) MarshalJSON() ([]byte, error)                  { return marshalString(c) }
   885  func (c WebFetch20260318) MarshalJSON() ([]byte, error)                  { return marshalString(c) }
   886  func (c WebFetchResult) MarshalJSON() ([]byte, error)                    { return marshalString(c) }
   887  func (c WebFetchToolResult) MarshalJSON() ([]byte, error)                { return marshalString(c) }
   888  func (c WebFetchToolResultError) MarshalJSON() ([]byte, error)           { return marshalString(c) }
   889  func (c WebSearch) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   890  func (c WebSearch20250305) MarshalJSON() ([]byte, error)                 { return marshalString(c) }
   891  func (c WebSearch20260209) MarshalJSON() ([]byte, error)                 { return marshalString(c) }
   892  func (c WebSearch20260318) MarshalJSON() ([]byte, error)                 { return marshalString(c) }
   893  func (c WebSearchResult) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   894  func (c WebSearchResultLocation) MarshalJSON() ([]byte, error)           { return marshalString(c) }
   895  func (c WebSearchToolResult) MarshalJSON() ([]byte, error)               { return marshalString(c) }
   896  func (c WebSearchToolResultError) MarshalJSON() ([]byte, error)          { return marshalString(c) }
   897  func (c Work) MarshalJSON() ([]byte, error)                              { return marshalString(c) }
   898  func (c WorkHeartbeat) MarshalJSON() ([]byte, error)                     { return marshalString(c) }
   899  func (c WorkQueueStats) MarshalJSON() ([]byte, error)                    { return marshalString(c) }
   900  func (c Workspace) MarshalJSON() ([]byte, error)                         { return marshalString(c) }
   901  func (c WorkspaceMember) MarshalJSON() ([]byte, error)                   { return marshalString(c) }
   902  func (c WorkspaceMemberDeleted) MarshalJSON() ([]byte, error)            { return marshalString(c) }
   903  func (c WorkspaceRateLimit) MarshalJSON() ([]byte, error)                { return marshalString(c) }
   904  func (c Write) MarshalJSON() ([]byte, error)                             { return marshalString(c) }
   905  
   906  type constant[T any] interface {
   907  	Constant[T]
   908  	*T
   909  }
   910  
   911  func marshalString[T ~string, PT constant[T]](v T) ([]byte, error) {
   912  	var zero T
   913  	if v == zero {
   914  		v = PT(&v).Default()
   915  	}
   916  	return shimjson.Marshal(string(v))
   917  }