anthropic 1.66.0 → 1.67.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/README.md +1 -1
- data/lib/anthropic/internal/page.rb +5 -5
- data/lib/anthropic/internal/token_page.rb +3 -1
- data/lib/anthropic/models/beta/beta_container.rb +5 -3
- data/lib/anthropic/models/beta/beta_container_skill.rb +51 -0
- data/lib/anthropic/models/beta/{skill_delete_response.rb → beta_deleted_skill.rb} +8 -6
- data/lib/anthropic/models/beta/beta_file_metadata.rb +11 -1
- data/lib/anthropic/models/beta/beta_skill.rb +59 -24
- data/lib/anthropic/models/beta/beta_skill_source.rb +52 -0
- data/lib/anthropic/models/beta/file_list_params.rb +19 -16
- data/lib/anthropic/models/beta/file_upload_params.rb +13 -1
- data/lib/anthropic/models/beta/organization/rate_limit_list_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/workspaces/rate_limit_list_params.rb +2 -2
- data/lib/anthropic/models/beta/skill_create_params.rb +7 -8
- data/lib/anthropic/models/beta/skill_list_params.rb +1 -1
- data/lib/anthropic/models/beta/skills/beta_deleted_skill_version.rb +35 -0
- data/lib/anthropic/models/beta/skills/beta_skill_version.rb +74 -0
- data/lib/anthropic/models/beta/skills/version_delete_params.rb +4 -3
- data/lib/anthropic/models/beta/skills/version_download_params.rb +4 -3
- data/lib/anthropic/models/beta/skills/version_list_params.rb +3 -3
- data/lib/anthropic/models/beta/skills/version_retrieve_params.rb +5 -3
- data/lib/anthropic/models/beta/unwrap_webhook_event.rb +2 -33
- data/lib/anthropic/models/beta/webhook_parse_unverified_params.rb +16 -0
- data/lib/anthropic/resources/beta/files.rb +18 -13
- data/lib/anthropic/resources/beta/organization/rate_limits.rb +2 -3
- data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +2 -3
- data/lib/anthropic/resources/beta/skills/versions.rb +17 -17
- data/lib/anthropic/resources/beta/skills.rb +14 -14
- data/lib/anthropic/resources/beta/webhooks.rb +17 -2
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +7 -9
- data/rbi/anthropic/models/beta/beta_container.rbi +6 -3
- data/rbi/anthropic/models/beta/beta_container_skill.rbi +91 -0
- data/rbi/anthropic/models/beta/{skill_delete_response.rbi → beta_deleted_skill.rbi} +8 -6
- data/rbi/anthropic/models/beta/beta_file_metadata.rbi +12 -0
- data/rbi/anthropic/models/beta/beta_skill.rbi +82 -42
- data/rbi/anthropic/models/beta/beta_skill_source.rbi +97 -0
- data/rbi/anthropic/models/beta/beta_webhook_event.rbi +2 -97
- data/rbi/anthropic/models/beta/file_list_params.rbi +25 -25
- data/rbi/anthropic/models/beta/file_upload_params.rbi +13 -0
- data/rbi/anthropic/models/beta/organization/rate_limit_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/workspaces/rate_limit_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/skill_create_params.rbi +10 -12
- data/rbi/anthropic/models/beta/skill_list_params.rbi +2 -2
- data/rbi/anthropic/models/beta/skills/{version_delete_response.rbi → beta_deleted_skill_version.rbi} +10 -12
- data/rbi/anthropic/models/beta/skills/beta_skill_version.rbi +104 -0
- data/rbi/anthropic/models/beta/skills/version_delete_params.rbi +6 -4
- data/rbi/anthropic/models/beta/skills/version_download_params.rbi +6 -4
- data/rbi/anthropic/models/beta/skills/version_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/skills/version_retrieve_params.rbi +8 -4
- data/rbi/anthropic/models/beta/unwrap_webhook_event.rbi +1 -102
- data/rbi/anthropic/models/beta/webhook_parse_unverified_params.rbi +32 -0
- data/rbi/anthropic/resources/beta/files.rbi +17 -9
- data/rbi/anthropic/resources/beta/organization/rate_limits.rbi +4 -5
- data/rbi/anthropic/resources/beta/organization/workspaces/rate_limits.rbi +4 -5
- data/rbi/anthropic/resources/beta/skills/versions.rbi +16 -12
- data/rbi/anthropic/resources/beta/skills.rbi +10 -15
- data/rbi/anthropic/resources/beta/webhooks.rbi +15 -1
- data/sig/anthropic/models/beta/beta_container.rbs +4 -4
- data/sig/anthropic/models/beta/beta_container_skill.rbs +45 -0
- data/sig/anthropic/models/beta/beta_deleted_skill.rbs +19 -0
- data/sig/anthropic/models/beta/beta_file_metadata.rbs +5 -0
- data/sig/anthropic/models/beta/beta_skill.rbs +32 -23
- data/sig/anthropic/models/beta/beta_skill_source.rbs +35 -0
- data/sig/anthropic/models/beta/file_list_params.rbs +9 -13
- data/sig/anthropic/models/beta/file_upload_params.rbs +7 -0
- data/sig/anthropic/models/beta/skill_create_params.rbs +4 -4
- data/sig/anthropic/models/beta/skills/beta_deleted_skill_version.rbs +20 -0
- data/sig/anthropic/models/beta/skills/{version_list_response.rbs → beta_skill_version.rbs} +10 -20
- data/sig/anthropic/models/beta/unwrap_webhook_event.rbs +1 -31
- data/sig/anthropic/models/beta/webhook_parse_unverified_params.rbs +17 -0
- data/sig/anthropic/resources/beta/files.rbs +4 -3
- data/sig/anthropic/resources/beta/skills/versions.rbs +4 -4
- data/sig/anthropic/resources/beta/skills.rbs +5 -5
- data/sig/anthropic/resources/beta/webhooks.rbs +5 -1
- metadata +20 -26
- data/lib/anthropic/models/beta/skill_create_response.rb +0 -84
- data/lib/anthropic/models/beta/skill_list_response.rb +0 -84
- data/lib/anthropic/models/beta/skill_retrieve_response.rb +0 -84
- data/lib/anthropic/models/beta/skills/version_create_response.rb +0 -92
- data/lib/anthropic/models/beta/skills/version_delete_response.rb +0 -36
- data/lib/anthropic/models/beta/skills/version_list_response.rb +0 -92
- data/lib/anthropic/models/beta/skills/version_retrieve_response.rb +0 -92
- data/rbi/anthropic/models/beta/skill_create_response.rbi +0 -118
- data/rbi/anthropic/models/beta/skill_list_response.rbi +0 -118
- data/rbi/anthropic/models/beta/skill_retrieve_response.rbi +0 -118
- data/rbi/anthropic/models/beta/skills/version_create_response.rbi +0 -124
- data/rbi/anthropic/models/beta/skills/version_list_response.rbi +0 -124
- data/rbi/anthropic/models/beta/skills/version_retrieve_response.rbi +0 -124
- data/sig/anthropic/models/beta/skill_create_response.rbs +0 -52
- data/sig/anthropic/models/beta/skill_delete_response.rbs +0 -17
- data/sig/anthropic/models/beta/skill_list_response.rbs +0 -52
- data/sig/anthropic/models/beta/skill_retrieve_response.rbs +0 -52
- data/sig/anthropic/models/beta/skills/version_create_response.rbs +0 -59
- data/sig/anthropic/models/beta/skills/version_delete_response.rbs +0 -19
- data/sig/anthropic/models/beta/skills/version_retrieve_response.rbs +0 -59
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7d63232dcb7062e98a3bacb9f193b2f2978d76c41a80979a93f1be937be59af1
|
|
4
|
+
data.tar.gz: cf1494922e6fcdba1daafed3ce43650d21c79e8213a217969056fe48a71bddfe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f0e8d744918b8ef81214991f86fddfc2ce75836cc35ebd416eea38da499ea64a544578a1bb601bb32db3d9982bf583da24a08230fed51c1c6d29c1e36a2e8870
|
|
7
|
+
data.tar.gz: 37f3517c2176bfca145e8683d4ecf84c6b0863347f02876595ba4ca61192ce8e58bf24c015bff80be4c168f7c718943ef966bb4f929c813a8c5eb4f2e95661a4
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.67.0 (2026-08-27)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.66.0...v1.67.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.66.0...v1.67.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** beta files/skills namespaces use GA shapes; drop dated beta header pins ([8c60f7a](https://github.com/anthropics/anthropic-sdk-ruby/commit/8c60f7ab13ee7a1c6fc1423a7a2b63d469048589))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **client:** follow the request direction and honor has_more when paginating ([8e5690f](https://github.com/anthropics/anthropic-sdk-ruby/commit/8e5690f643a523b4f2821105fd58cb176e5b2031))
|
|
15
|
+
* **webhooks:** require headers to be passed to `unwrap()` ([8b88482](https://github.com/anthropics/anthropic-sdk-ruby/commit/8b8848270ef0f6231a23a06c6df68d3c2014dc49))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Documentation
|
|
19
|
+
|
|
20
|
+
* **api:** clarify pagination on the organization rate-limit list endpoints ([fd6a5ad](https://github.com/anthropics/anthropic-sdk-ruby/commit/fd6a5adaa8867bf902e043fb47d8babd313a1a61))
|
|
21
|
+
|
|
3
22
|
## 1.66.0 (2026-08-26)
|
|
4
23
|
|
|
5
24
|
Full Changelog: [v1.65.0...v1.66.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.65.0...v1.66.0)
|
data/README.md
CHANGED
|
@@ -30,7 +30,9 @@ module Anthropic
|
|
|
30
30
|
|
|
31
31
|
# @return [Boolean]
|
|
32
32
|
def next_page?
|
|
33
|
-
has_more
|
|
33
|
+
return false if has_more == false
|
|
34
|
+
|
|
35
|
+
!data.to_a.empty? && (@req.dig(:query, :before_id) ? !first_id.to_s.empty? : !last_id.to_s.empty?)
|
|
34
36
|
end
|
|
35
37
|
|
|
36
38
|
# @raise [Anthropic::HTTP::Error]
|
|
@@ -41,10 +43,8 @@ module Anthropic
|
|
|
41
43
|
raise RuntimeError.new(message)
|
|
42
44
|
end
|
|
43
45
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
{query: first_id.nil? ? {after_id: last_id} : {before_id: first_id}}
|
|
47
|
-
)
|
|
46
|
+
query = @req.dig(:query, :before_id) ? {before_id: first_id} : {after_id: last_id}
|
|
47
|
+
req = Anthropic::Internal::Util.deep_merge(@req, {query: query})
|
|
48
48
|
@client.request(req)
|
|
49
49
|
end
|
|
50
50
|
|
|
@@ -19,8 +19,10 @@ module Anthropic
|
|
|
19
19
|
# @!attribute skills
|
|
20
20
|
# Skills loaded in the container
|
|
21
21
|
#
|
|
22
|
-
# @return [Array<Anthropic::Models::Beta::
|
|
23
|
-
required :skills,
|
|
22
|
+
# @return [Array<Anthropic::Models::Beta::BetaContainerSkill>, nil]
|
|
23
|
+
required :skills,
|
|
24
|
+
-> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaContainerSkill] },
|
|
25
|
+
nil?: true
|
|
24
26
|
|
|
25
27
|
# @!method initialize(id:, expires_at:, skills:)
|
|
26
28
|
# Information about the container used in the request (for the code execution
|
|
@@ -30,7 +32,7 @@ module Anthropic
|
|
|
30
32
|
#
|
|
31
33
|
# @param expires_at [Time] The time at which the container will expire.
|
|
32
34
|
#
|
|
33
|
-
# @param skills [Array<Anthropic::Models::Beta::
|
|
35
|
+
# @param skills [Array<Anthropic::Models::Beta::BetaContainerSkill>, nil] Skills loaded in the container
|
|
34
36
|
end
|
|
35
37
|
end
|
|
36
38
|
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaContainerSkill < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute skill_id
|
|
8
|
+
# Skill ID
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :skill_id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute type
|
|
14
|
+
# Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
|
|
15
|
+
#
|
|
16
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaContainerSkill::Type]
|
|
17
|
+
required :type, enum: -> { Anthropic::Beta::BetaContainerSkill::Type }
|
|
18
|
+
|
|
19
|
+
# @!attribute version
|
|
20
|
+
# The resolved version: a skill version ID for custom skills.
|
|
21
|
+
#
|
|
22
|
+
# @return [String]
|
|
23
|
+
required :version, String
|
|
24
|
+
|
|
25
|
+
# @!method initialize(skill_id:, type:, version:)
|
|
26
|
+
# A skill that was loaded in a container (response model).
|
|
27
|
+
#
|
|
28
|
+
# @param skill_id [String] Skill ID
|
|
29
|
+
#
|
|
30
|
+
# @param type [Symbol, Anthropic::Models::Beta::BetaContainerSkill::Type] Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
|
|
31
|
+
#
|
|
32
|
+
# @param version [String] The resolved version: a skill version ID for custom skills.
|
|
33
|
+
|
|
34
|
+
# Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
|
|
35
|
+
#
|
|
36
|
+
# @see Anthropic::Models::Beta::BetaContainerSkill#type
|
|
37
|
+
module Type
|
|
38
|
+
extend Anthropic::Internal::Type::Enum
|
|
39
|
+
|
|
40
|
+
ANTHROPIC = :anthropic
|
|
41
|
+
CUSTOM = :custom
|
|
42
|
+
|
|
43
|
+
# @!method self.values
|
|
44
|
+
# @return [Array<Symbol>]
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
BetaContainerSkill = Beta::BetaContainerSkill
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -4,7 +4,7 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
module Beta
|
|
6
6
|
# @see Anthropic::Resources::Beta::Skills#delete
|
|
7
|
-
class
|
|
7
|
+
class BetaDeletedSkill < Anthropic::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute id
|
|
9
9
|
# Unique identifier for the skill.
|
|
10
10
|
#
|
|
@@ -18,17 +18,19 @@ module Anthropic
|
|
|
18
18
|
#
|
|
19
19
|
# For Skills, this is always `"skill_deleted"`.
|
|
20
20
|
#
|
|
21
|
-
# @return [
|
|
22
|
-
required :type,
|
|
21
|
+
# @return [Symbol, :skill_deleted]
|
|
22
|
+
required :type, const: :skill_deleted
|
|
23
23
|
|
|
24
|
-
# @!method initialize(id:, type:)
|
|
24
|
+
# @!method initialize(id:, type: :skill_deleted)
|
|
25
25
|
# Some parameter documentations has been truncated, see
|
|
26
|
-
# {Anthropic::Models::Beta::
|
|
26
|
+
# {Anthropic::Models::Beta::BetaDeletedSkill} for more details.
|
|
27
27
|
#
|
|
28
28
|
# @param id [String] Unique identifier for the skill.
|
|
29
29
|
#
|
|
30
|
-
# @param type [
|
|
30
|
+
# @param type [Symbol, :skill_deleted] Deleted object type.
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
|
+
|
|
34
|
+
BetaDeletedSkill = Beta::BetaDeletedSkill
|
|
33
35
|
end
|
|
34
36
|
end
|
|
@@ -51,6 +51,14 @@ module Anthropic
|
|
|
51
51
|
# @return [Boolean, nil]
|
|
52
52
|
optional :downloadable, Anthropic::Internal::Type::Boolean
|
|
53
53
|
|
|
54
|
+
# @!attribute expires_at
|
|
55
|
+
# RFC 3339 datetime string representing when the file will expire and become
|
|
56
|
+
# unavailable for download. Null if the file does not expire. For files uploaded
|
|
57
|
+
# with `expires_in_seconds`, this is the upload time plus that value.
|
|
58
|
+
#
|
|
59
|
+
# @return [Time, nil]
|
|
60
|
+
optional :expires_at, Time, nil?: true
|
|
61
|
+
|
|
54
62
|
# @!attribute scope
|
|
55
63
|
# The scope of this file, indicating the context in which it was created (e.g., a
|
|
56
64
|
# session).
|
|
@@ -58,7 +66,7 @@ module Anthropic
|
|
|
58
66
|
# @return [Anthropic::Models::Beta::BetaFileScope, nil]
|
|
59
67
|
optional :scope, -> { Anthropic::Beta::BetaFileScope }, nil?: true
|
|
60
68
|
|
|
61
|
-
# @!method initialize(id:, created_at:, filename:, mime_type:, size_bytes:, downloadable: nil, scope: nil, type: :file)
|
|
69
|
+
# @!method initialize(id:, created_at:, filename:, mime_type:, size_bytes:, downloadable: nil, expires_at: nil, scope: nil, type: :file)
|
|
62
70
|
# Some parameter documentations has been truncated, see
|
|
63
71
|
# {Anthropic::Models::Beta::BetaFileMetadata} for more details.
|
|
64
72
|
#
|
|
@@ -74,6 +82,8 @@ module Anthropic
|
|
|
74
82
|
#
|
|
75
83
|
# @param downloadable [Boolean] Whether the file can be downloaded.
|
|
76
84
|
#
|
|
85
|
+
# @param expires_at [Time, nil] RFC 3339 datetime string representing when the file will expire and become unava
|
|
86
|
+
#
|
|
77
87
|
# @param scope [Anthropic::Models::Beta::BetaFileScope, nil] The scope of this file, indicating the context in which it was created (e.g., a
|
|
78
88
|
#
|
|
79
89
|
# @param type [Symbol, :file] Object type.
|
|
@@ -3,46 +3,81 @@
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Models
|
|
5
5
|
module Beta
|
|
6
|
+
# @see Anthropic::Resources::Beta::Skills#create
|
|
6
7
|
class BetaSkill < Anthropic::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute
|
|
8
|
-
#
|
|
8
|
+
# @!attribute id
|
|
9
|
+
# Unique identifier for the skill.
|
|
10
|
+
#
|
|
11
|
+
# The format and length of IDs may change over time.
|
|
9
12
|
#
|
|
10
13
|
# @return [String]
|
|
11
|
-
required :
|
|
14
|
+
required :id, String
|
|
12
15
|
|
|
13
|
-
# @!attribute
|
|
14
|
-
#
|
|
16
|
+
# @!attribute created_at
|
|
17
|
+
# ISO 8601 timestamp of when the skill was created.
|
|
18
|
+
#
|
|
19
|
+
# @return [Time]
|
|
20
|
+
required :created_at, Time
|
|
21
|
+
|
|
22
|
+
# @!attribute display_name
|
|
23
|
+
# Human-readable, single-line label for the Skill. Maximum 255 characters. Always
|
|
24
|
+
# set: derived from the SKILL.md frontmatter `name` when omitted at creation. Not
|
|
25
|
+
# unique.
|
|
15
26
|
#
|
|
16
|
-
# @return [
|
|
17
|
-
required :
|
|
27
|
+
# @return [String]
|
|
28
|
+
required :display_name, String
|
|
18
29
|
|
|
19
|
-
# @!attribute
|
|
20
|
-
#
|
|
30
|
+
# @!attribute latest_version_id
|
|
31
|
+
# ID of the newest Skill Version — what `latest` references resolve to. Always
|
|
32
|
+
# set: a Skill holds at least one version.
|
|
21
33
|
#
|
|
22
34
|
# @return [String]
|
|
23
|
-
required :
|
|
35
|
+
required :latest_version_id, String
|
|
24
36
|
|
|
25
|
-
# @!
|
|
26
|
-
#
|
|
37
|
+
# @!attribute source
|
|
38
|
+
# Where the Skill comes from.
|
|
27
39
|
#
|
|
28
|
-
#
|
|
40
|
+
# Possible values:
|
|
29
41
|
#
|
|
30
|
-
#
|
|
42
|
+
# - `"custom"`: authored by the platform user; private to their workspace
|
|
43
|
+
# - `"anthropic"`: published by Anthropic; shared and read-only
|
|
44
|
+
# - `"anthropic_example"`: Anthropic-published sample Skill
|
|
45
|
+
# - `"plugin"`: resolved from an installed plugin
|
|
31
46
|
#
|
|
32
|
-
# @
|
|
47
|
+
# @return [Anthropic::Models::Beta::BetaSkillSource]
|
|
48
|
+
required :source, -> { Anthropic::Beta::BetaSkillSource }
|
|
33
49
|
|
|
34
|
-
#
|
|
50
|
+
# @!attribute type
|
|
51
|
+
# Object type.
|
|
35
52
|
#
|
|
36
|
-
#
|
|
37
|
-
|
|
38
|
-
|
|
53
|
+
# For Skills, this is always `"skill"`.
|
|
54
|
+
#
|
|
55
|
+
# @return [Symbol, :skill]
|
|
56
|
+
required :type, const: :skill
|
|
39
57
|
|
|
40
|
-
|
|
41
|
-
|
|
58
|
+
# @!attribute updated_at
|
|
59
|
+
# ISO 8601 timestamp of when the skill was last updated.
|
|
60
|
+
#
|
|
61
|
+
# @return [Time]
|
|
62
|
+
required :updated_at, Time
|
|
42
63
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
64
|
+
# @!method initialize(id:, created_at:, display_name:, latest_version_id:, source:, updated_at:, type: :skill)
|
|
65
|
+
# Some parameter documentations has been truncated, see
|
|
66
|
+
# {Anthropic::Models::Beta::BetaSkill} for more details.
|
|
67
|
+
#
|
|
68
|
+
# @param id [String] Unique identifier for the skill.
|
|
69
|
+
#
|
|
70
|
+
# @param created_at [Time] ISO 8601 timestamp of when the skill was created.
|
|
71
|
+
#
|
|
72
|
+
# @param display_name [String] Human-readable, single-line label for the Skill. Maximum 255 characters.
|
|
73
|
+
#
|
|
74
|
+
# @param latest_version_id [String] ID of the newest Skill Version — what `latest` references resolve to. Always set
|
|
75
|
+
#
|
|
76
|
+
# @param source [Anthropic::Models::Beta::BetaSkillSource] Where the Skill comes from.
|
|
77
|
+
#
|
|
78
|
+
# @param updated_at [Time] ISO 8601 timestamp of when the skill was last updated.
|
|
79
|
+
#
|
|
80
|
+
# @param type [Symbol, :skill] Object type.
|
|
46
81
|
end
|
|
47
82
|
end
|
|
48
83
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaSkillSource < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute type
|
|
8
|
+
# Where the Skill comes from.
|
|
9
|
+
#
|
|
10
|
+
# Possible values:
|
|
11
|
+
#
|
|
12
|
+
# - `"custom"`: authored by the platform user; private to their workspace
|
|
13
|
+
# - `"anthropic"`: published by Anthropic; shared and read-only
|
|
14
|
+
# - `"anthropic_example"`: Anthropic-published sample Skill
|
|
15
|
+
# - `"plugin"`: resolved from an installed plugin
|
|
16
|
+
#
|
|
17
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaSkillSource::Type]
|
|
18
|
+
required :type, enum: -> { Anthropic::Beta::BetaSkillSource::Type }
|
|
19
|
+
|
|
20
|
+
# @!method initialize(type:)
|
|
21
|
+
# Some parameter documentations has been truncated, see
|
|
22
|
+
# {Anthropic::Models::Beta::BetaSkillSource} for more details.
|
|
23
|
+
#
|
|
24
|
+
# @param type [Symbol, Anthropic::Models::Beta::BetaSkillSource::Type] Where the Skill comes from.
|
|
25
|
+
|
|
26
|
+
# Where the Skill comes from.
|
|
27
|
+
#
|
|
28
|
+
# Possible values:
|
|
29
|
+
#
|
|
30
|
+
# - `"custom"`: authored by the platform user; private to their workspace
|
|
31
|
+
# - `"anthropic"`: published by Anthropic; shared and read-only
|
|
32
|
+
# - `"anthropic_example"`: Anthropic-published sample Skill
|
|
33
|
+
# - `"plugin"`: resolved from an installed plugin
|
|
34
|
+
#
|
|
35
|
+
# @see Anthropic::Models::Beta::BetaSkillSource#type
|
|
36
|
+
module Type
|
|
37
|
+
extend Anthropic::Internal::Type::Enum
|
|
38
|
+
|
|
39
|
+
CUSTOM = :custom
|
|
40
|
+
ANTHROPIC = :anthropic
|
|
41
|
+
ANTHROPIC_EXAMPLE = :anthropic_example
|
|
42
|
+
PLUGIN = :plugin
|
|
43
|
+
|
|
44
|
+
# @!method self.values
|
|
45
|
+
# @return [Array<Symbol>]
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
BetaSkillSource = Beta::BetaSkillSource
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -8,19 +8,15 @@ module Anthropic
|
|
|
8
8
|
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Anthropic::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
-
# @!attribute
|
|
12
|
-
#
|
|
13
|
-
#
|
|
11
|
+
# @!attribute ids
|
|
12
|
+
# Restrict the result set to Files whose `id` is in this list. At most 100 entries
|
|
13
|
+
# (after de-duplication). Mutually exclusive with `page` and `limit`. When
|
|
14
|
+
# supplied, the response is always a single page (`next_page` is null). IDs that
|
|
15
|
+
# do not resolve to a visible File — including deleted Files — are silently
|
|
16
|
+
# omitted.
|
|
14
17
|
#
|
|
15
|
-
# @return [String
|
|
16
|
-
optional :
|
|
17
|
-
|
|
18
|
-
# @!attribute before_id
|
|
19
|
-
# ID of the object to use as a cursor for pagination. When provided, returns the
|
|
20
|
-
# page of results immediately before this object.
|
|
21
|
-
#
|
|
22
|
-
# @return [String, nil]
|
|
23
|
-
optional :before_id, String
|
|
18
|
+
# @return [Array<String>, nil]
|
|
19
|
+
optional :ids, Anthropic::Internal::Type::ArrayOf[String], nil?: true
|
|
24
20
|
|
|
25
21
|
# @!attribute limit
|
|
26
22
|
# Number of items to return per page.
|
|
@@ -30,6 +26,13 @@ module Anthropic
|
|
|
30
26
|
# @return [Integer, nil]
|
|
31
27
|
optional :limit, Integer
|
|
32
28
|
|
|
29
|
+
# @!attribute page
|
|
30
|
+
# Opaque page cursor returned in a prior list response's `next_page`. Prefixed
|
|
31
|
+
# `page_`.
|
|
32
|
+
#
|
|
33
|
+
# @return [String, nil]
|
|
34
|
+
optional :page, String, nil?: true
|
|
35
|
+
|
|
33
36
|
# @!attribute scope_id
|
|
34
37
|
# Filter by scope ID. Only returns files associated with the specified scope
|
|
35
38
|
# (e.g., a session ID).
|
|
@@ -43,16 +46,16 @@ module Anthropic
|
|
|
43
46
|
# @return [Array<String, Symbol, Anthropic::Models::AnthropicBeta>, nil]
|
|
44
47
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
45
48
|
|
|
46
|
-
# @!method initialize(
|
|
49
|
+
# @!method initialize(ids: nil, limit: nil, page: nil, scope_id: nil, betas: nil, request_options: {})
|
|
47
50
|
# Some parameter documentations has been truncated, see
|
|
48
51
|
# {Anthropic::Models::Beta::FileListParams} for more details.
|
|
49
52
|
#
|
|
50
|
-
# @param
|
|
51
|
-
#
|
|
52
|
-
# @param before_id [String] ID of the object to use as a cursor for pagination. When provided, returns the p
|
|
53
|
+
# @param ids [Array<String>, nil] Restrict the result set to Files whose `id` is in this list. At most 100 entries
|
|
53
54
|
#
|
|
54
55
|
# @param limit [Integer] Number of items to return per page.
|
|
55
56
|
#
|
|
57
|
+
# @param page [String, nil] Opaque page cursor returned in a prior list response's `next_page`. Prefixed `pa
|
|
58
|
+
#
|
|
56
59
|
# @param scope_id [String] Filter by scope ID. Only returns files associated with the specified scope (e.g.
|
|
57
60
|
#
|
|
58
61
|
# @param betas [Array<String, Symbol, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
@@ -14,15 +14,27 @@ module Anthropic
|
|
|
14
14
|
# @return [Pathname, StringIO, IO, String, Anthropic::FilePart]
|
|
15
15
|
required :file, Anthropic::Internal::Type::FileInput
|
|
16
16
|
|
|
17
|
+
# @!attribute expires_in_seconds
|
|
18
|
+
# Seconds from upload until the file expires and its bytes become permanently
|
|
19
|
+
# unavailable. Must be between 3600 (one hour) and 7776000 (ninety days).
|
|
20
|
+
#
|
|
21
|
+
# @return [Integer, nil]
|
|
22
|
+
optional :expires_in_seconds, Integer
|
|
23
|
+
|
|
17
24
|
# @!attribute betas
|
|
18
25
|
# Optional header to specify the beta version(s) you want to use.
|
|
19
26
|
#
|
|
20
27
|
# @return [Array<String, Symbol, Anthropic::Models::AnthropicBeta>, nil]
|
|
21
28
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
22
29
|
|
|
23
|
-
# @!method initialize(file:, betas: nil, request_options: {})
|
|
30
|
+
# @!method initialize(file:, expires_in_seconds: nil, betas: nil, request_options: {})
|
|
31
|
+
# Some parameter documentations has been truncated, see
|
|
32
|
+
# {Anthropic::Models::Beta::FileUploadParams} for more details.
|
|
33
|
+
#
|
|
24
34
|
# @param file [Pathname, StringIO, IO, String, Anthropic::FilePart] The file to upload
|
|
25
35
|
#
|
|
36
|
+
# @param expires_in_seconds [Integer] Seconds from upload until the file expires and its bytes become permanently unav
|
|
37
|
+
#
|
|
26
38
|
# @param betas [Array<String, Symbol, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
27
39
|
#
|
|
28
40
|
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -20,8 +20,8 @@ module Anthropic
|
|
|
20
20
|
# @!attribute limit
|
|
21
21
|
# Maximum number of items to return per page. Ranges from `1` to `1000`.
|
|
22
22
|
#
|
|
23
|
-
#
|
|
24
|
-
#
|
|
23
|
+
# When omitted, every remaining entry is returned in a single page and `next_page`
|
|
24
|
+
# is `null`.
|
|
25
25
|
#
|
|
26
26
|
# @return [Integer, nil]
|
|
27
27
|
optional :limit, Integer, nil?: true
|
|
@@ -27,8 +27,8 @@ module Anthropic
|
|
|
27
27
|
# @!attribute limit
|
|
28
28
|
# Maximum number of items to return per page. Ranges from `1` to `1000`.
|
|
29
29
|
#
|
|
30
|
-
#
|
|
31
|
-
#
|
|
30
|
+
# When omitted, every remaining entry is returned in a single page and `next_page`
|
|
31
|
+
# is `null`.
|
|
32
32
|
#
|
|
33
33
|
# @return [Integer, nil]
|
|
34
34
|
optional :limit, Integer, nil?: true
|
|
@@ -17,14 +17,13 @@ module Anthropic
|
|
|
17
17
|
# @return [Array<Pathname, StringIO, IO, String, Anthropic::FilePart>]
|
|
18
18
|
required :files, Anthropic::Internal::Type::ArrayOf[Anthropic::Internal::Type::FileInput]
|
|
19
19
|
|
|
20
|
-
# @!attribute
|
|
21
|
-
#
|
|
22
|
-
#
|
|
23
|
-
#
|
|
24
|
-
# model.
|
|
20
|
+
# @!attribute display_name
|
|
21
|
+
# Human-readable, single-line label for the Skill. Maximum 255 characters. Always
|
|
22
|
+
# set: derived from the SKILL.md frontmatter `name` when omitted at creation. Not
|
|
23
|
+
# unique.
|
|
25
24
|
#
|
|
26
25
|
# @return [String, nil]
|
|
27
|
-
optional :
|
|
26
|
+
optional :display_name, String, nil?: true
|
|
28
27
|
|
|
29
28
|
# @!attribute betas
|
|
30
29
|
# Optional header to specify the beta version(s) you want to use.
|
|
@@ -32,13 +31,13 @@ module Anthropic
|
|
|
32
31
|
# @return [Array<String, Symbol, Anthropic::Models::AnthropicBeta>, nil]
|
|
33
32
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
34
33
|
|
|
35
|
-
# @!method initialize(files:,
|
|
34
|
+
# @!method initialize(files:, display_name: nil, betas: nil, request_options: {})
|
|
36
35
|
# Some parameter documentations has been truncated, see
|
|
37
36
|
# {Anthropic::Models::Beta::SkillCreateParams} for more details.
|
|
38
37
|
#
|
|
39
38
|
# @param files [Array<Pathname, StringIO, IO, String, Anthropic::FilePart>] Files to upload for the skill.
|
|
40
39
|
#
|
|
41
|
-
# @param
|
|
40
|
+
# @param display_name [String, nil] Human-readable, single-line label for the Skill. Maximum 255 characters.
|
|
42
41
|
#
|
|
43
42
|
# @param betas [Array<String, Symbol, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
44
43
|
#
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Skills
|
|
7
|
+
# @see Anthropic::Resources::Beta::Skills::Versions#delete
|
|
8
|
+
class BetaDeletedSkillVersion < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute id
|
|
10
|
+
# Unique identifier for this Skill Version. The id addresses the version in paths
|
|
11
|
+
# and pins it in references.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute type
|
|
17
|
+
# Deleted object type.
|
|
18
|
+
#
|
|
19
|
+
# For Skill Versions, this is always `"skill_version_deleted"`.
|
|
20
|
+
#
|
|
21
|
+
# @return [Symbol, :skill_version_deleted]
|
|
22
|
+
required :type, const: :skill_version_deleted
|
|
23
|
+
|
|
24
|
+
# @!method initialize(id:, type: :skill_version_deleted)
|
|
25
|
+
# Some parameter documentations has been truncated, see
|
|
26
|
+
# {Anthropic::Models::Beta::Skills::BetaDeletedSkillVersion} for more details.
|
|
27
|
+
#
|
|
28
|
+
# @param id [String] Unique identifier for this Skill Version. The id addresses the version in
|
|
29
|
+
#
|
|
30
|
+
# @param type [Symbol, :skill_version_deleted] Deleted object type.
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|