anthropic 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/models/user_profile.rb +26 -1
  5. data/lib/anthropic/models/user_profile_enforcement_action.rb +66 -0
  6. data/lib/anthropic/models/user_profile_enforcement_action_ban.rb +62 -0
  7. data/lib/anthropic/models/user_profile_enforcement_action_next_step.rb +17 -0
  8. data/lib/anthropic/models/user_profile_enforcement_action_reason.rb +23 -0
  9. data/lib/anthropic/models/user_profile_enforcement_action_restriction.rb +67 -0
  10. data/lib/anthropic/models/user_profile_enforcement_status.rb +20 -0
  11. data/lib/anthropic/models/user_profile_list_params.rb +17 -1
  12. data/lib/anthropic/models.rb +12 -0
  13. data/lib/anthropic/resources/user_profiles.rb +5 -3
  14. data/lib/anthropic/version.rb +1 -1
  15. data/lib/anthropic.rb +6 -0
  16. data/rbi/anthropic/models/user_profile.rbi +42 -0
  17. data/rbi/anthropic/models/user_profile_enforcement_action.rbi +95 -0
  18. data/rbi/anthropic/models/user_profile_enforcement_action_ban.rbi +96 -0
  19. data/rbi/anthropic/models/user_profile_enforcement_action_next_step.rbi +34 -0
  20. data/rbi/anthropic/models/user_profile_enforcement_action_reason.rbi +58 -0
  21. data/rbi/anthropic/models/user_profile_enforcement_action_restriction.rbi +106 -0
  22. data/rbi/anthropic/models/user_profile_enforcement_status.rbi +39 -0
  23. data/rbi/anthropic/models/user_profile_list_params.rbi +36 -0
  24. data/rbi/anthropic/models.rbi +16 -0
  25. data/rbi/anthropic/resources/user_profiles.rbi +12 -0
  26. data/sig/anthropic/models/user_profile.rbs +10 -0
  27. data/sig/anthropic/models/user_profile_enforcement_action.rbs +50 -0
  28. data/sig/anthropic/models/user_profile_enforcement_action_ban.rbs +45 -0
  29. data/sig/anthropic/models/user_profile_enforcement_action_next_step.rbs +13 -0
  30. data/sig/anthropic/models/user_profile_enforcement_action_reason.rbs +24 -0
  31. data/sig/anthropic/models/user_profile_enforcement_action_restriction.rbs +45 -0
  32. data/sig/anthropic/models/user_profile_enforcement_status.rbs +17 -0
  33. data/sig/anthropic/models/user_profile_list_params.rbs +9 -0
  34. data/sig/anthropic/models.rbs +12 -0
  35. data/sig/anthropic/resources/user_profiles.rbs +1 -0
  36. metadata +20 -2
@@ -2,6 +2,7 @@ module Anthropic
2
2
  module Models
3
3
  type user_profile_list_params =
4
4
  {
5
+ enforcement_status: ::Array[Anthropic::Models::user_profile_enforcement_status],
5
6
  limit: Integer,
6
7
  order: Anthropic::Models::user_profile_list_order,
7
8
  order_by: Anthropic::Models::user_profile_list_order_by,
@@ -14,6 +15,12 @@ module Anthropic
14
15
  extend Anthropic::Internal::Type::RequestParameters::Converter
15
16
  include Anthropic::Internal::Type::RequestParameters
16
17
 
18
+ attr_reader enforcement_status: ::Array[Anthropic::Models::user_profile_enforcement_status]?
19
+
20
+ def enforcement_status=: (
21
+ ::Array[Anthropic::Models::user_profile_enforcement_status]
22
+ ) -> ::Array[Anthropic::Models::user_profile_enforcement_status]
23
+
17
24
  attr_reader limit: Integer?
18
25
 
19
26
  def limit=: (Integer) -> Integer
@@ -39,6 +46,7 @@ module Anthropic
39
46
  def workspace_id=: (String) -> String
40
47
 
41
48
  def initialize: (
49
+ ?enforcement_status: ::Array[Anthropic::Models::user_profile_enforcement_status],
42
50
  ?limit: Integer,
43
51
  ?order: Anthropic::Models::user_profile_list_order,
44
52
  ?order_by: Anthropic::Models::user_profile_list_order_by,
@@ -48,6 +56,7 @@ module Anthropic
48
56
  ) -> void
49
57
 
50
58
  def to_hash: -> {
59
+ enforcement_status: ::Array[Anthropic::Models::user_profile_enforcement_status],
51
60
  limit: Integer,
52
61
  order: Anthropic::Models::user_profile_list_order,
53
62
  order_by: Anthropic::Models::user_profile_list_order_by,
@@ -789,6 +789,18 @@ module Anthropic
789
789
 
790
790
  class UserProfileEfsProgram = Anthropic::Models::UserProfileEfsProgram
791
791
 
792
+ module UserProfileEnforcementAction = Anthropic::Models::UserProfileEnforcementAction
793
+
794
+ class UserProfileEnforcementActionBan = Anthropic::Models::UserProfileEnforcementActionBan
795
+
796
+ module UserProfileEnforcementActionNextStep = Anthropic::Models::UserProfileEnforcementActionNextStep
797
+
798
+ module UserProfileEnforcementActionReason = Anthropic::Models::UserProfileEnforcementActionReason
799
+
800
+ class UserProfileEnforcementActionRestriction = Anthropic::Models::UserProfileEnforcementActionRestriction
801
+
802
+ module UserProfileEnforcementStatus = Anthropic::Models::UserProfileEnforcementStatus
803
+
792
804
  module UserProfileExternalUserAccountStatus = Anthropic::Models::UserProfileExternalUserAccountStatus
793
805
 
794
806
  class UserProfileExternalUserDetails = Anthropic::Models::UserProfileExternalUserDetails
@@ -29,6 +29,7 @@ module Anthropic
29
29
  ) -> Anthropic::UserProfile
30
30
 
31
31
  def list: (
32
+ ?enforcement_status: ::Array[Anthropic::Models::user_profile_enforcement_status],
32
33
  ?limit: Integer,
33
34
  ?order: Anthropic::Models::user_profile_list_order,
34
35
  ?order_by: Anthropic::Models::user_profile_list_order_by,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anthropic
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthropic
@@ -2097,6 +2097,12 @@ files:
2097
2097
  - lib/anthropic/models/user_profile_delete_params.rb
2098
2098
  - lib/anthropic/models/user_profile_efs_feature.rb
2099
2099
  - lib/anthropic/models/user_profile_efs_program.rb
2100
+ - lib/anthropic/models/user_profile_enforcement_action.rb
2101
+ - lib/anthropic/models/user_profile_enforcement_action_ban.rb
2102
+ - lib/anthropic/models/user_profile_enforcement_action_next_step.rb
2103
+ - lib/anthropic/models/user_profile_enforcement_action_reason.rb
2104
+ - lib/anthropic/models/user_profile_enforcement_action_restriction.rb
2105
+ - lib/anthropic/models/user_profile_enforcement_status.rb
2100
2106
  - lib/anthropic/models/user_profile_external_user_account_status.rb
2101
2107
  - lib/anthropic/models/user_profile_external_user_details.rb
2102
2108
  - lib/anthropic/models/user_profile_external_user_details_params.rb
@@ -4224,6 +4230,12 @@ files:
4224
4230
  - rbi/anthropic/models/user_profile_delete_params.rbi
4225
4231
  - rbi/anthropic/models/user_profile_efs_feature.rbi
4226
4232
  - rbi/anthropic/models/user_profile_efs_program.rbi
4233
+ - rbi/anthropic/models/user_profile_enforcement_action.rbi
4234
+ - rbi/anthropic/models/user_profile_enforcement_action_ban.rbi
4235
+ - rbi/anthropic/models/user_profile_enforcement_action_next_step.rbi
4236
+ - rbi/anthropic/models/user_profile_enforcement_action_reason.rbi
4237
+ - rbi/anthropic/models/user_profile_enforcement_action_restriction.rbi
4238
+ - rbi/anthropic/models/user_profile_enforcement_status.rbi
4227
4239
  - rbi/anthropic/models/user_profile_external_user_account_status.rbi
4228
4240
  - rbi/anthropic/models/user_profile_external_user_details.rbi
4229
4241
  - rbi/anthropic/models/user_profile_external_user_details_params.rbi
@@ -6335,6 +6347,12 @@ files:
6335
6347
  - sig/anthropic/models/user_profile_delete_params.rbs
6336
6348
  - sig/anthropic/models/user_profile_efs_feature.rbs
6337
6349
  - sig/anthropic/models/user_profile_efs_program.rbs
6350
+ - sig/anthropic/models/user_profile_enforcement_action.rbs
6351
+ - sig/anthropic/models/user_profile_enforcement_action_ban.rbs
6352
+ - sig/anthropic/models/user_profile_enforcement_action_next_step.rbs
6353
+ - sig/anthropic/models/user_profile_enforcement_action_reason.rbs
6354
+ - sig/anthropic/models/user_profile_enforcement_action_restriction.rbs
6355
+ - sig/anthropic/models/user_profile_enforcement_status.rbs
6338
6356
  - sig/anthropic/models/user_profile_external_user_account_status.rbs
6339
6357
  - sig/anthropic/models/user_profile_external_user_details.rbs
6340
6358
  - sig/anthropic/models/user_profile_external_user_details_params.rbs
@@ -6504,7 +6522,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
6504
6522
  - !ruby/object:Gem::Version
6505
6523
  version: '0'
6506
6524
  requirements: []
6507
- rubygems_version: 3.4.1
6525
+ rubygems_version: 3.4.19
6508
6526
  signing_key:
6509
6527
  specification_version: 4
6510
6528
  summary: Ruby library to access the Anthropic API