Skip to content

Commit 62d0297

Browse files
feat(api): add claude-opus-4-7, token budgets and user_profiles
1 parent 9a9dd58 commit 62d0297

17 files changed

Lines changed: 696 additions & 80 deletions

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 72
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-f4d4f18820ecfbe244fb1bbc2232939afca73dfcb21ce23bc296571ee7320e3a.yml
3-
openapi_spec_hash: d849fdf2c4dd6631a60c4340e9bc1322
4-
config_hash: 2e9a2fd5355db62857f6be16f46a3ccc
1+
configured_endpoints: 77
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-e0696f59ae07dc1a9c5a8fc87a4eb05eb35afabaac0b5ff0ea38810fa9dd4a74.yml
3+
openapi_spec_hash: 69278ebbb0d1aa0b322bbbd5128bcec5
4+
config_hash: b0dbd234c2752507397c139a416f6cba

api.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ Params Types:
358358
- <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaThinkingConfigEnabledParam">BetaThinkingConfigEnabledParam</a>
359359
- <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaThinkingConfigParamUnion">BetaThinkingConfigParamUnion</a>
360360
- <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaThinkingTurnsParam">BetaThinkingTurnsParam</a>
361+
- <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaTokenTaskBudgetParam">BetaTokenTaskBudgetParam</a>
361362
- <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaToolParam">BetaToolParam</a>
362363
- <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaToolBash20241022Param">BetaToolBash20241022Param</a>
363364
- <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaToolBash20250124Param">BetaToolBash20250124Param</a>
@@ -833,3 +834,19 @@ Methods:
833834
- <code title="get /v1/skills/{skill_id}/versions/{version}?beta=true">client.Beta.Skills.Versions.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaSkillVersionService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, version <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaSkillVersionGetParams">BetaSkillVersionGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaSkillVersionGetResponse">BetaSkillVersionGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
834835
- <code title="get /v1/skills/{skill_id}/versions?beta=true">client.Beta.Skills.Versions.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaSkillVersionService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, skillID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaSkillVersionListParams">BetaSkillVersionListParams</a>) (\*<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go/packages/pagination#PageCursor">PageCursor</a>[<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaSkillVersionListResponse">BetaSkillVersionListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
835836
- <code title="delete /v1/skills/{skill_id}/versions/{version}?beta=true">client.Beta.Skills.Versions.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaSkillVersionService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, version <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaSkillVersionDeleteParams">BetaSkillVersionDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaSkillVersionDeleteResponse">BetaSkillVersionDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
837+
838+
## UserProfiles
839+
840+
Response Types:
841+
842+
- <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfile">BetaUserProfile</a>
843+
- <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfileEnrollmentURL">BetaUserProfileEnrollmentURL</a>
844+
- <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfileTrustGrant">BetaUserProfileTrustGrant</a>
845+
846+
Methods:
847+
848+
- <code title="post /v1/user_profiles?beta=true">client.Beta.UserProfiles.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfileService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfileNewParams">BetaUserProfileNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfile">BetaUserProfile</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
849+
- <code title="get /v1/user_profiles/{user_profile_id}?beta=true">client.Beta.UserProfiles.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfileService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, userProfileID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfileGetParams">BetaUserProfileGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfile">BetaUserProfile</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
850+
- <code title="post /v1/user_profiles/{user_profile_id}?beta=true">client.Beta.UserProfiles.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfileService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, userProfileID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfileUpdateParams">BetaUserProfileUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfile">BetaUserProfile</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
851+
- <code title="get /v1/user_profiles?beta=true">client.Beta.UserProfiles.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfileService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfileListParams">BetaUserProfileListParams</a>) (\*<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go/packages/pagination#PageCursor">PageCursor</a>[<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfile">BetaUserProfile</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
852+
- <code title="post /v1/user_profiles/{user_profile_id}/enrollment_url?beta=true">client.Beta.UserProfiles.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfileService.NewEnrollmentURL">NewEnrollmentURL</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, userProfileID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfileNewEnrollmentURLParams">BetaUserProfileNewEnrollmentURLParams</a>) (\*<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go">anthropic</a>.<a href="https://pkg.go.dev/github.com/anthropics/anthropic-sdk-go#BetaUserProfileEnrollmentURL">BetaUserProfileEnrollmentURL</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

beta.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ type BetaService struct {
2727
Vaults BetaVaultService
2828
Files BetaFileService
2929
Skills BetaSkillService
30+
UserProfiles BetaUserProfileService
3031
}
3132

3233
// NewBetaService generates a new service that applies the given options to each
@@ -43,6 +44,7 @@ func NewBetaService(opts ...option.RequestOption) (r BetaService) {
4344
r.Vaults = NewBetaVaultService(opts...)
4445
r.Files = NewBetaFileService(opts...)
4546
r.Skills = NewBetaSkillService(opts...)
47+
r.UserProfiles = NewBetaUserProfileService(opts...)
4648
return
4749
}
4850

@@ -71,6 +73,7 @@ const (
7173
AnthropicBetaFastMode2026_02_01 AnthropicBeta = "fast-mode-2026-02-01"
7274
AnthropicBetaOutput300k2026_03_24 AnthropicBeta = "output-300k-2026-03-24"
7375
AnthropicBetaAdvisorTool2026_03_01 AnthropicBeta = "advisor-tool-2026-03-01"
76+
AnthropicBetaUserProfiles2026_03_24 AnthropicBeta = "user-profiles-2026-03-24"
7477
)
7578

7679
type BetaAPIError struct {

betaagent.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,6 +1531,7 @@ const (
15311531
type BetaManagedAgentsModel = string
15321532

15331533
const (
1534+
BetaManagedAgentsModelClaudeOpus4_7 BetaManagedAgentsModel = "claude-opus-4-7"
15341535
BetaManagedAgentsModelClaudeOpus4_6 BetaManagedAgentsModel = "claude-opus-4-6"
15351536
BetaManagedAgentsModelClaudeSonnet4_6 BetaManagedAgentsModel = "claude-sonnet-4-6"
15361537
BetaManagedAgentsModelClaudeHaiku4_5 BetaManagedAgentsModel = "claude-haiku-4-5"

0 commit comments

Comments
 (0)