cadenya 0.19.0 → 0.20.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: 8a1cd1094416300054791cf69e8674033368d3f3c8f780d2b320fdc2f0188aeb
4
- data.tar.gz: 1e379a7e547aad3305d2862ee4cc916b0d0e2df1543a4ec43df93bb83bca0f33
3
+ metadata.gz: 8b730337cf1df040466c045753883dd3ac7ec9bf3eecdb9e5d3bd83e5dff9e89
4
+ data.tar.gz: f16906ca0dbd38a614844e1211599c10c64197757e180eb4d5a65bd608654085
5
5
  SHA512:
6
- metadata.gz: 259dd0100c397323f498c42cd3c9af529acd9fa647a039d4c869bd9a64d02ab154750fee6bd7ab5b67c1374c17dbbd85e6c120453f36a6e6045c0b875718ea13
7
- data.tar.gz: 73baee1a23b48abf85714213080a3acc32f259601e6e21e5e8328ff6ebc95b02a4b4ea11f9a8d4c3f23679fff537c9753966a7e0caeb26afaacc2d0925c87a6b
6
+ metadata.gz: eb4f982fbbded8020bd160cc55dc9b993c4da96f7a835393c89f8761dbf3755bc461b772d9272f80cf19dcc86097ae3293c023d9fa4c817e28f4ae210ebf52f7
7
+ data.tar.gz: adc7678acce3185b78648fae0cac8812fdad9b69c92b5d5020603ac24b723be312ce9f2265895809418530c30b6e21a97cf7dd53888305a61ec3744cc2e74b3c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.20.0 (2026-06-21)
4
+
5
+ Full Changelog: [v0.19.0...v0.20.0](https://github.com/cadenya/cadenya-ruby/compare/v0.19.0...v0.20.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([e22d35c](https://github.com/cadenya/cadenya-ruby/commit/e22d35c7f53bd0de57df4020fba7a1a61dd87311))
10
+
3
11
  ## 0.19.0 (2026-06-18)
4
12
 
5
13
  Full Changelog: [v0.18.1...v0.19.0](https://github.com/cadenya/cadenya-ruby/compare/v0.18.1...v0.19.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.19.0"
20
+ gem "cadenya", "~> 0.20.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -40,9 +40,14 @@ module Cadenya
40
40
  #
41
41
  # @return [String]
42
42
  required :profile_id, String, api_name: :profileId
43
+
44
+ # @!attribute created_at
45
+ #
46
+ # @return [Time, nil]
47
+ optional :created_at, Time, api_name: :createdAt
43
48
  end
44
49
 
45
- # @!method initialize(id:, account_id:, name:, profile_id:, external_id: nil, labels: nil)
50
+ # @!method initialize(id:, account_id:, name:, profile_id:, created_at: nil, external_id: nil, labels: nil)
46
51
  # Some parameter documentations has been truncated, see
47
52
  # {Cadenya::Models::AccountResourceMetadata} for more details.
48
53
  #
@@ -57,6 +62,8 @@ module Cadenya
57
62
  #
58
63
  # @param profile_id [String]
59
64
  #
65
+ # @param created_at [Time]
66
+ #
60
67
  # @param external_id [String] External ID for the resource (e.g., a workflow ID from an external system)
61
68
  #
62
69
  # @param labels [Hash{Symbol=>String}] Arbitrary key-value pairs for categorization and filtering
@@ -17,6 +17,12 @@ module Cadenya
17
17
  required :spec, -> { Cadenya::WorkspaceSpec }
18
18
 
19
19
  response_only do
20
+ # @!attribute info
21
+ # WorkspaceInfo returns counts
22
+ #
23
+ # @return [Cadenya::Models::Workspace::Info, nil]
24
+ optional :info, -> { Cadenya::Workspace::Info }
25
+
20
26
  # @!attribute status
21
27
  # Lifecycle status of the workspace. Archived workspaces reject all requests
22
28
  # scoped to them. Server-populated.
@@ -25,7 +31,7 @@ module Cadenya
25
31
  optional :status, enum: -> { Cadenya::Workspace::Status }
26
32
  end
27
33
 
28
- # @!method initialize(metadata:, spec:, status: nil)
34
+ # @!method initialize(metadata:, spec:, info: nil, status: nil)
29
35
  # Some parameter documentations has been truncated, see
30
36
  # {Cadenya::Models::Workspace} for more details.
31
37
  #
@@ -33,8 +39,41 @@ module Cadenya
33
39
  #
34
40
  # @param spec [Cadenya::Models::WorkspaceSpec]
35
41
  #
42
+ # @param info [Cadenya::Models::Workspace::Info] WorkspaceInfo returns counts
43
+ #
36
44
  # @param status [Symbol, Cadenya::Models::Workspace::Status] Lifecycle status of the workspace. Archived workspaces reject all
37
45
 
46
+ # @see Cadenya::Models::Workspace#info
47
+ class Info < Cadenya::Internal::Type::BaseModel
48
+ # @!attribute total_agents
49
+ #
50
+ # @return [Integer, nil]
51
+ optional :total_agents, Integer, api_name: :totalAgents
52
+
53
+ # @!attribute total_agent_variations
54
+ #
55
+ # @return [Integer, nil]
56
+ optional :total_agent_variations, Integer, api_name: :totalAgentVariations
57
+
58
+ # @!attribute total_available_tools
59
+ #
60
+ # @return [Integer, nil]
61
+ optional :total_available_tools, Integer, api_name: :totalAvailableTools
62
+
63
+ # @!attribute total_memory_entries
64
+ #
65
+ # @return [Integer, nil]
66
+ optional :total_memory_entries, Integer, api_name: :totalMemoryEntries
67
+
68
+ # @!method initialize(total_agents: nil, total_agent_variations: nil, total_available_tools: nil, total_memory_entries: nil)
69
+ # WorkspaceInfo returns counts
70
+ #
71
+ # @param total_agents [Integer]
72
+ # @param total_agent_variations [Integer]
73
+ # @param total_available_tools [Integer]
74
+ # @param total_memory_entries [Integer]
75
+ end
76
+
38
77
  # Lifecycle status of the workspace. Archived workspaces reject all requests
39
78
  # scoped to them. Server-populated.
40
79
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cadenya
4
- VERSION = "0.19.0"
4
+ VERSION = "0.20.0"
5
5
  end
@@ -39,6 +39,12 @@ module Cadenya
39
39
  sig { returns(String) }
40
40
  attr_accessor :profile_id
41
41
 
42
+ sig { returns(T.nilable(Time)) }
43
+ attr_reader :created_at
44
+
45
+ sig { params(created_at: Time).void }
46
+ attr_writer :created_at
47
+
42
48
  # AccountResourceMetadata is used to represent a resource that is associated to an
43
49
  # account but not to a workspace.
44
50
  sig do
@@ -47,6 +53,7 @@ module Cadenya
47
53
  account_id: String,
48
54
  name: String,
49
55
  profile_id: String,
56
+ created_at: Time,
50
57
  external_id: String,
51
58
  labels: T::Hash[Symbol, String]
52
59
  ).returns(T.attached_class)
@@ -60,6 +67,7 @@ module Cadenya
60
67
  # Tool") Required for resources that users interact with directly
61
68
  name:,
62
69
  profile_id:,
70
+ created_at: nil,
63
71
  # External ID for the resource (e.g., a workflow ID from an external system)
64
72
  external_id: nil,
65
73
  # Arbitrary key-value pairs for categorization and filtering Examples:
@@ -75,6 +83,7 @@ module Cadenya
75
83
  account_id: String,
76
84
  name: String,
77
85
  profile_id: String,
86
+ created_at: Time,
78
87
  external_id: String,
79
88
  labels: T::Hash[Symbol, String]
80
89
  }
@@ -20,6 +20,13 @@ module Cadenya
20
20
  sig { params(spec: Cadenya::WorkspaceSpec::OrHash).void }
21
21
  attr_writer :spec
22
22
 
23
+ # WorkspaceInfo returns counts
24
+ sig { returns(T.nilable(Cadenya::Workspace::Info)) }
25
+ attr_reader :info
26
+
27
+ sig { params(info: Cadenya::Workspace::Info::OrHash).void }
28
+ attr_writer :info
29
+
23
30
  # Lifecycle status of the workspace. Archived workspaces reject all requests
24
31
  # scoped to them. Server-populated.
25
32
  sig { returns(T.nilable(Cadenya::Workspace::Status::TaggedSymbol)) }
@@ -32,6 +39,7 @@ module Cadenya
32
39
  params(
33
40
  metadata: Cadenya::AccountResourceMetadata::OrHash,
34
41
  spec: Cadenya::WorkspaceSpec::OrHash,
42
+ info: Cadenya::Workspace::Info::OrHash,
35
43
  status: Cadenya::Workspace::Status::OrSymbol
36
44
  ).returns(T.attached_class)
37
45
  end
@@ -40,6 +48,8 @@ module Cadenya
40
48
  # account but not to a workspace.
41
49
  metadata:,
42
50
  spec:,
51
+ # WorkspaceInfo returns counts
52
+ info: nil,
43
53
  # Lifecycle status of the workspace. Archived workspaces reject all requests
44
54
  # scoped to them. Server-populated.
45
55
  status: nil
@@ -51,6 +61,7 @@ module Cadenya
51
61
  {
52
62
  metadata: Cadenya::AccountResourceMetadata,
53
63
  spec: Cadenya::WorkspaceSpec,
64
+ info: Cadenya::Workspace::Info,
54
65
  status: Cadenya::Workspace::Status::TaggedSymbol
55
66
  }
56
67
  )
@@ -58,6 +69,67 @@ module Cadenya
58
69
  def to_hash
59
70
  end
60
71
 
72
+ class Info < Cadenya::Internal::Type::BaseModel
73
+ OrHash =
74
+ T.type_alias do
75
+ T.any(Cadenya::Workspace::Info, Cadenya::Internal::AnyHash)
76
+ end
77
+
78
+ sig { returns(T.nilable(Integer)) }
79
+ attr_reader :total_agents
80
+
81
+ sig { params(total_agents: Integer).void }
82
+ attr_writer :total_agents
83
+
84
+ sig { returns(T.nilable(Integer)) }
85
+ attr_reader :total_agent_variations
86
+
87
+ sig { params(total_agent_variations: Integer).void }
88
+ attr_writer :total_agent_variations
89
+
90
+ sig { returns(T.nilable(Integer)) }
91
+ attr_reader :total_available_tools
92
+
93
+ sig { params(total_available_tools: Integer).void }
94
+ attr_writer :total_available_tools
95
+
96
+ sig { returns(T.nilable(Integer)) }
97
+ attr_reader :total_memory_entries
98
+
99
+ sig { params(total_memory_entries: Integer).void }
100
+ attr_writer :total_memory_entries
101
+
102
+ # WorkspaceInfo returns counts
103
+ sig do
104
+ params(
105
+ total_agents: Integer,
106
+ total_agent_variations: Integer,
107
+ total_available_tools: Integer,
108
+ total_memory_entries: Integer
109
+ ).returns(T.attached_class)
110
+ end
111
+ def self.new(
112
+ total_agents: nil,
113
+ total_agent_variations: nil,
114
+ total_available_tools: nil,
115
+ total_memory_entries: nil
116
+ )
117
+ end
118
+
119
+ sig do
120
+ override.returns(
121
+ {
122
+ total_agents: Integer,
123
+ total_agent_variations: Integer,
124
+ total_available_tools: Integer,
125
+ total_memory_entries: Integer
126
+ }
127
+ )
128
+ end
129
+ def to_hash
130
+ end
131
+ end
132
+
61
133
  # Lifecycle status of the workspace. Archived workspaces reject all requests
62
134
  # scoped to them. Server-populated.
63
135
  module Status
@@ -6,6 +6,7 @@ module Cadenya
6
6
  account_id: String,
7
7
  name: String,
8
8
  profile_id: String,
9
+ created_at: Time,
9
10
  external_id: String,
10
11
  labels: ::Hash[Symbol, String]
11
12
  }
@@ -27,11 +28,16 @@ module Cadenya
27
28
 
28
29
  attr_accessor profile_id: String
29
30
 
31
+ attr_reader created_at: Time?
32
+
33
+ def created_at=: (Time) -> Time
34
+
30
35
  def initialize: (
31
36
  id: String,
32
37
  account_id: String,
33
38
  name: String,
34
39
  profile_id: String,
40
+ ?created_at: Time,
35
41
  ?external_id: String,
36
42
  ?labels: ::Hash[Symbol, String]
37
43
  ) -> void
@@ -41,6 +47,7 @@ module Cadenya
41
47
  account_id: String,
42
48
  name: String,
43
49
  profile_id: String,
50
+ created_at: Time,
44
51
  external_id: String,
45
52
  labels: ::Hash[Symbol, String]
46
53
  }
@@ -4,6 +4,7 @@ module Cadenya
4
4
  {
5
5
  metadata: Cadenya::AccountResourceMetadata,
6
6
  spec: Cadenya::WorkspaceSpec,
7
+ info: Cadenya::Workspace::Info,
7
8
  status: Cadenya::Models::Workspace::status
8
9
  }
9
10
 
@@ -12,6 +13,10 @@ module Cadenya
12
13
 
13
14
  attr_accessor spec: Cadenya::WorkspaceSpec
14
15
 
16
+ attr_reader info: Cadenya::Workspace::Info?
17
+
18
+ def info=: (Cadenya::Workspace::Info) -> Cadenya::Workspace::Info
19
+
15
20
  attr_reader status: Cadenya::Models::Workspace::status?
16
21
 
17
22
  def status=: (
@@ -21,15 +26,57 @@ module Cadenya
21
26
  def initialize: (
22
27
  metadata: Cadenya::AccountResourceMetadata,
23
28
  spec: Cadenya::WorkspaceSpec,
29
+ ?info: Cadenya::Workspace::Info,
24
30
  ?status: Cadenya::Models::Workspace::status
25
31
  ) -> void
26
32
 
27
33
  def to_hash: -> {
28
34
  metadata: Cadenya::AccountResourceMetadata,
29
35
  spec: Cadenya::WorkspaceSpec,
36
+ info: Cadenya::Workspace::Info,
30
37
  status: Cadenya::Models::Workspace::status
31
38
  }
32
39
 
40
+ type info =
41
+ {
42
+ total_agents: Integer,
43
+ total_agent_variations: Integer,
44
+ total_available_tools: Integer,
45
+ total_memory_entries: Integer
46
+ }
47
+
48
+ class Info < Cadenya::Internal::Type::BaseModel
49
+ attr_reader total_agents: Integer?
50
+
51
+ def total_agents=: (Integer) -> Integer
52
+
53
+ attr_reader total_agent_variations: Integer?
54
+
55
+ def total_agent_variations=: (Integer) -> Integer
56
+
57
+ attr_reader total_available_tools: Integer?
58
+
59
+ def total_available_tools=: (Integer) -> Integer
60
+
61
+ attr_reader total_memory_entries: Integer?
62
+
63
+ def total_memory_entries=: (Integer) -> Integer
64
+
65
+ def initialize: (
66
+ ?total_agents: Integer,
67
+ ?total_agent_variations: Integer,
68
+ ?total_available_tools: Integer,
69
+ ?total_memory_entries: Integer
70
+ ) -> void
71
+
72
+ def to_hash: -> {
73
+ total_agents: Integer,
74
+ total_agent_variations: Integer,
75
+ total_available_tools: Integer,
76
+ total_memory_entries: Integer
77
+ }
78
+ end
79
+
33
80
  type status = :STATUS_ENABLED | :STATUS_DISABLED | :STATUS_ARCHIVED
34
81
 
35
82
  module Status
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.19.0
4
+ version: 0.20.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-18 00:00:00.000000000 Z
11
+ date: 2026-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi