Skip to content

Commit 8dd22d4

Browse files
fix(api): restore missing features
1 parent 6b0457f commit 8dd22d4

11 files changed

Lines changed: 648 additions & 77 deletions

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 86
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-78e8ea00cd66db850ab32db53b5e0037fb0b4a791b513393c03d9011406a6c78.yml
3-
openapi_spec_hash: 3f08b4e5296e181c7243aa92f4a3073e
4-
config_hash: 350c1adcf8bb17e1913ed80e189c5a52
1+
configured_endpoints: 91
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-d4d7fd5ad7272db2902decf5c405e138a16b1fed45a697faea32af12a126b782.yml
3+
openapi_spec_hash: d3c28f7234c8c93e3b945bb76c9d57c0
4+
config_hash: c7cdab4e4eb2befb0d99f6db5c3d4737

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>
@@ -894,3 +895,19 @@ Methods:
894895
- <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>
895896
- <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>
896897
- <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>
898+
899+
## UserProfiles
900+
901+
Response Types:
902+
903+
- <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>
904+
- <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>
905+
- <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>
906+
907+
Methods:
908+
909+
- <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>
910+
- <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>
911+
- <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>
912+
- <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>
913+
- <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
@@ -28,6 +28,7 @@ type BetaService struct {
2828
MemoryStores BetaMemoryStoreService
2929
Files BetaFileService
3030
Skills BetaSkillService
31+
UserProfiles BetaUserProfileService
3132
}
3233

3334
// NewBetaService generates a new service that applies the given options to each
@@ -45,6 +46,7 @@ func NewBetaService(opts ...option.RequestOption) (r BetaService) {
4546
r.MemoryStores = NewBetaMemoryStoreService(opts...)
4647
r.Files = NewBetaFileService(opts...)
4748
r.Skills = NewBetaSkillService(opts...)
49+
r.UserProfiles = NewBetaUserProfileService(opts...)
4850
return
4951
}
5052

@@ -72,6 +74,7 @@ const (
7274
AnthropicBetaSkills2025_10_02 AnthropicBeta = "skills-2025-10-02"
7375
AnthropicBetaFastMode2026_02_01 AnthropicBeta = "fast-mode-2026-02-01"
7476
AnthropicBetaOutput300k2026_03_24 AnthropicBeta = "output-300k-2026-03-24"
77+
AnthropicBetaUserProfiles2026_03_24 AnthropicBeta = "user-profiles-2026-03-24"
7578
AnthropicBetaAdvisorTool2026_03_01 AnthropicBeta = "advisor-tool-2026-03-01"
7679
)
7780

0 commit comments

Comments
 (0)