cadenya 0.15.0 → 0.16.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8a29ef2fc93cc941536823190bf6f8f88aa0af46adb4e666dd7b457e10cce02
4
- data.tar.gz: 66cf113556ef9e7ea53069e7c1f507b96a57ed20567a45f27181bf8d6b5ae232
3
+ metadata.gz: ae6a3e7de7658dc3909f5b116f10952737be338c529999a20c5678f9da27512b
4
+ data.tar.gz: 3009569366c92b99760b8caea39f18bb848bf8c6f57ff4fc697cb07a6a7032ed
5
5
  SHA512:
6
- metadata.gz: 50cbe429ade572d9255c77ecd3831de4c7e13ccf4aff63d06c343952b98240d70c3968de0ba760ced99a061dd8dd115d53c05d8ee4130b9f8331a8718b32b273
7
- data.tar.gz: 00a82b3fdcb5143225c94cfedf792cc7885e50ae12edce443b93ce4367a6e07c6798754707e7befae45b5dbaaf4e5913feab226a6ab5eecdf672fcdd1bd1cc4c
6
+ metadata.gz: 7dbc099db32c64a045d6468124176665f3a86c431a4f014e0289372bad2475f2fd0095583a441810c59b86990049bc3dee004383f3db5858659541126911d87c
7
+ data.tar.gz: fc2609020e4791914a3eb6259f8403039c82ae6cd9756bc680cbbbda589c583927805dfd115c1bba72a3b92d6b2500ba8141cf015b6a64e73b902891d764b811
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.16.0 (2026-06-12)
4
+
5
+ Full Changelog: [v0.15.0...v0.16.0](https://github.com/cadenya/cadenya-ruby/compare/v0.15.0...v0.16.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([def1484](https://github.com/cadenya/cadenya-ruby/commit/def148451d697c2509ce95b930b08355e4944898))
10
+
3
11
  ## 0.15.0 (2026-06-11)
4
12
 
5
13
  Full Changelog: [v0.14.0...v0.15.0](https://github.com/cadenya/cadenya-ruby/compare/v0.14.0...v0.15.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "cadenya", "~> 0.15.0"
20
+ gem "cadenya", "~> 0.16.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -29,6 +29,11 @@ module Cadenya
29
29
  # @return [Cadenya::Resources::Account]
30
30
  attr_reader :account
31
31
 
32
+ # Operations on profiles, the account-level principals (users, API keys, system)
33
+ # that authenticate against the API.
34
+ # @return [Cadenya::Resources::Profiles]
35
+ attr_reader :profiles
36
+
32
37
  # Manage AI agents within a workspace. Agents define AI behavior and tool access.
33
38
  # @return [Cadenya::Resources::Agents]
34
39
  attr_reader :agents
@@ -168,6 +173,7 @@ module Cadenya
168
173
 
169
174
  @ai_provider_keys = Cadenya::Resources::AIProviderKeys.new(client: self)
170
175
  @account = Cadenya::Resources::Account.new(client: self)
176
+ @profiles = Cadenya::Resources::Profiles.new(client: self)
171
177
  @agents = Cadenya::Resources::Agents.new(client: self)
172
178
  @objectives = Cadenya::Resources::Objectives.new(client: self)
173
179
  @memory_layers = Cadenya::Resources::MemoryLayers.new(client: self)
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cadenya
4
+ module Models
5
+ # @see Cadenya::Resources::Profiles#whoami
6
+ class ProfileWhoamiParams < Cadenya::Internal::Type::BaseModel
7
+ extend Cadenya::Internal::Type::RequestParameters::Converter
8
+ include Cadenya::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -237,6 +237,8 @@ module Cadenya
237
237
 
238
238
  ProfileSpec = Cadenya::Models::ProfileSpec
239
239
 
240
+ ProfileWhoamiParams = Cadenya::Models::ProfileWhoamiParams
241
+
240
242
  ResourceMetadata = Cadenya::Models::ResourceMetadata
241
243
 
242
244
  RotateWebhookSigningKeyResponse = Cadenya::Models::RotateWebhookSigningKeyResponse
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cadenya
4
+ module Resources
5
+ # Operations on profiles, the account-level principals (users, API keys, system)
6
+ # that authenticate against the API.
7
+ class Profiles
8
+ # Retrieves the profile of the authenticated caller. Useful to check which
9
+ # principal a token belongs to.
10
+ #
11
+ # @overload whoami(request_options: {})
12
+ #
13
+ # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}, nil]
14
+ #
15
+ # @return [Cadenya::Models::Profile]
16
+ #
17
+ # @see Cadenya::Models::ProfileWhoamiParams
18
+ def whoami(params = {})
19
+ @client.request(
20
+ method: :get,
21
+ path: "v1/whoami",
22
+ model: Cadenya::Profile,
23
+ options: params[:request_options]
24
+ )
25
+ end
26
+
27
+ # @api private
28
+ #
29
+ # @param client [Cadenya::Client]
30
+ def initialize(client:)
31
+ @client = client
32
+ end
33
+ end
34
+ end
35
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cadenya
4
- VERSION = "0.15.0"
4
+ VERSION = "0.16.0"
5
5
  end
data/lib/cadenya.rb CHANGED
@@ -242,6 +242,7 @@ require_relative "cadenya/models/operation_metadata"
242
242
  require_relative "cadenya/models/page"
243
243
  require_relative "cadenya/models/profile"
244
244
  require_relative "cadenya/models/profile_spec"
245
+ require_relative "cadenya/models/profile_whoami_params"
245
246
  require_relative "cadenya/models/resource_metadata"
246
247
  require_relative "cadenya/models/rotate_webhook_signing_key_response"
247
248
  require_relative "cadenya/models/search_search_tools_or_tool_sets_params"
@@ -349,6 +350,7 @@ require_relative "cadenya/resources/objectives/feedback"
349
350
  require_relative "cadenya/resources/objectives/tasks"
350
351
  require_relative "cadenya/resources/objectives/tool_calls"
351
352
  require_relative "cadenya/resources/objectives/tools"
353
+ require_relative "cadenya/resources/profiles"
352
354
  require_relative "cadenya/resources/search"
353
355
  require_relative "cadenya/resources/tool_sets"
354
356
  require_relative "cadenya/resources/tool_sets/tools"
@@ -24,6 +24,11 @@ module Cadenya
24
24
  sig { returns(Cadenya::Resources::Account) }
25
25
  attr_reader :account
26
26
 
27
+ # Operations on profiles, the account-level principals (users, API keys, system)
28
+ # that authenticate against the API.
29
+ sig { returns(Cadenya::Resources::Profiles) }
30
+ attr_reader :profiles
31
+
27
32
  # Manage AI agents within a workspace. Agents define AI behavior and tool access.
28
33
  sig { returns(Cadenya::Resources::Agents) }
29
34
  attr_reader :agents
@@ -0,0 +1,27 @@
1
+ # typed: strong
2
+
3
+ module Cadenya
4
+ module Models
5
+ class ProfileWhoamiParams < Cadenya::Internal::Type::BaseModel
6
+ extend Cadenya::Internal::Type::RequestParameters::Converter
7
+ include Cadenya::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(Cadenya::ProfileWhoamiParams, Cadenya::Internal::AnyHash)
12
+ end
13
+
14
+ sig do
15
+ params(request_options: Cadenya::RequestOptions::OrHash).returns(
16
+ T.attached_class
17
+ )
18
+ end
19
+ def self.new(request_options: {})
20
+ end
21
+
22
+ sig { override.returns({ request_options: Cadenya::RequestOptions }) }
23
+ def to_hash
24
+ end
25
+ end
26
+ end
27
+ end
@@ -204,6 +204,8 @@ module Cadenya
204
204
 
205
205
  ProfileSpec = Cadenya::Models::ProfileSpec
206
206
 
207
+ ProfileWhoamiParams = Cadenya::Models::ProfileWhoamiParams
208
+
207
209
  ResourceMetadata = Cadenya::Models::ResourceMetadata
208
210
 
209
211
  RotateWebhookSigningKeyResponse =
@@ -0,0 +1,24 @@
1
+ # typed: strong
2
+
3
+ module Cadenya
4
+ module Resources
5
+ # Operations on profiles, the account-level principals (users, API keys, system)
6
+ # that authenticate against the API.
7
+ class Profiles
8
+ # Retrieves the profile of the authenticated caller. Useful to check which
9
+ # principal a token belongs to.
10
+ sig do
11
+ params(request_options: Cadenya::RequestOptions::OrHash).returns(
12
+ Cadenya::Profile
13
+ )
14
+ end
15
+ def whoami(request_options: {})
16
+ end
17
+
18
+ # @api private
19
+ sig { params(client: Cadenya::Client).returns(T.attached_class) }
20
+ def self.new(client:)
21
+ end
22
+ end
23
+ end
24
+ end
@@ -16,6 +16,8 @@ module Cadenya
16
16
 
17
17
  attr_reader account: Cadenya::Resources::Account
18
18
 
19
+ attr_reader profiles: Cadenya::Resources::Profiles
20
+
19
21
  attr_reader agents: Cadenya::Resources::Agents
20
22
 
21
23
  attr_reader objectives: Cadenya::Resources::Objectives
@@ -0,0 +1,15 @@
1
+ module Cadenya
2
+ module Models
3
+ type profile_whoami_params =
4
+ { } & Cadenya::Internal::Type::request_parameters
5
+
6
+ class ProfileWhoamiParams < Cadenya::Internal::Type::BaseModel
7
+ extend Cadenya::Internal::Type::RequestParameters::Converter
8
+ include Cadenya::Internal::Type::RequestParameters
9
+
10
+ def initialize: (?request_options: Cadenya::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: Cadenya::RequestOptions }
13
+ end
14
+ end
15
+ end
@@ -197,6 +197,8 @@ module Cadenya
197
197
 
198
198
  class ProfileSpec = Cadenya::Models::ProfileSpec
199
199
 
200
+ class ProfileWhoamiParams = Cadenya::Models::ProfileWhoamiParams
201
+
200
202
  class ResourceMetadata = Cadenya::Models::ResourceMetadata
201
203
 
202
204
  class RotateWebhookSigningKeyResponse = Cadenya::Models::RotateWebhookSigningKeyResponse
@@ -0,0 +1,9 @@
1
+ module Cadenya
2
+ module Resources
3
+ class Profiles
4
+ def whoami: (?request_options: Cadenya::request_opts) -> Cadenya::Profile
5
+
6
+ def initialize: (client: Cadenya::Client) -> void
7
+ end
8
+ end
9
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cadenya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cadenya
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-11 00:00:00.000000000 Z
11
+ date: 2026-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi
@@ -272,6 +272,7 @@ files:
272
272
  - lib/cadenya/models/page.rb
273
273
  - lib/cadenya/models/profile.rb
274
274
  - lib/cadenya/models/profile_spec.rb
275
+ - lib/cadenya/models/profile_whoami_params.rb
275
276
  - lib/cadenya/models/resource_metadata.rb
276
277
  - lib/cadenya/models/rotate_webhook_signing_key_response.rb
277
278
  - lib/cadenya/models/search_search_tools_or_tool_sets_params.rb
@@ -379,6 +380,7 @@ files:
379
380
  - lib/cadenya/resources/objectives/tasks.rb
380
381
  - lib/cadenya/resources/objectives/tool_calls.rb
381
382
  - lib/cadenya/resources/objectives/tools.rb
383
+ - lib/cadenya/resources/profiles.rb
382
384
  - lib/cadenya/resources/search.rb
383
385
  - lib/cadenya/resources/tool_sets.rb
384
386
  - lib/cadenya/resources/tool_sets/tools.rb
@@ -599,6 +601,7 @@ files:
599
601
  - rbi/cadenya/models/page.rbi
600
602
  - rbi/cadenya/models/profile.rbi
601
603
  - rbi/cadenya/models/profile_spec.rbi
604
+ - rbi/cadenya/models/profile_whoami_params.rbi
602
605
  - rbi/cadenya/models/resource_metadata.rbi
603
606
  - rbi/cadenya/models/rotate_webhook_signing_key_response.rbi
604
607
  - rbi/cadenya/models/search_search_tools_or_tool_sets_params.rbi
@@ -706,6 +709,7 @@ files:
706
709
  - rbi/cadenya/resources/objectives/tasks.rbi
707
710
  - rbi/cadenya/resources/objectives/tool_calls.rbi
708
711
  - rbi/cadenya/resources/objectives/tools.rbi
712
+ - rbi/cadenya/resources/profiles.rbi
709
713
  - rbi/cadenya/resources/search.rbi
710
714
  - rbi/cadenya/resources/tool_sets.rbi
711
715
  - rbi/cadenya/resources/tool_sets/tools.rbi
@@ -925,6 +929,7 @@ files:
925
929
  - sig/cadenya/models/page.rbs
926
930
  - sig/cadenya/models/profile.rbs
927
931
  - sig/cadenya/models/profile_spec.rbs
932
+ - sig/cadenya/models/profile_whoami_params.rbs
928
933
  - sig/cadenya/models/resource_metadata.rbs
929
934
  - sig/cadenya/models/rotate_webhook_signing_key_response.rbs
930
935
  - sig/cadenya/models/search_search_tools_or_tool_sets_params.rbs
@@ -1032,6 +1037,7 @@ files:
1032
1037
  - sig/cadenya/resources/objectives/tasks.rbs
1033
1038
  - sig/cadenya/resources/objectives/tool_calls.rbs
1034
1039
  - sig/cadenya/resources/objectives/tools.rbs
1040
+ - sig/cadenya/resources/profiles.rbs
1035
1041
  - sig/cadenya/resources/search.rbs
1036
1042
  - sig/cadenya/resources/tool_sets.rbs
1037
1043
  - sig/cadenya/resources/tool_sets/tools.rbs