cadenya 0.40.0 → 0.42.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: e294afb83985b1864a4de1b54ead56fc84155436be7680ef970b7e4a7bb81e11
4
- data.tar.gz: 490831f8d6c255f16cc3af0b2d0f8d587c2d6d42866e5b827efd99b3120494d2
3
+ metadata.gz: 0d796dfcd154c76ac542df58a39a9aaf59c80b3b254f5fb1ca350030698872b5
4
+ data.tar.gz: a5121c66bfac6c7e3fdb4cd18366cb5e9072a7ed3b86f75d393829e6ec39c01b
5
5
  SHA512:
6
- metadata.gz: 37d2d6e3511e24300872dd3efdacc6a51f134350451d02d4ce28b61fdba3ad6a70efa5ac449863541b9a6b17a0f24071f75257dd83e78cddff770b492bc91430
7
- data.tar.gz: b5f69dda694d28fbd291053e204a2cdd079cb00f0c2b168c1e9a8d3fb4a5768a2e035deaecefc312136b39ec00bdcc510bf21dc4765352befe46cc1eee001164
6
+ metadata.gz: 8d8549ff3da05a75a4aa7740d91f70c47cf00805ffb172239764943639b9e5e2409628bb9b74979f77bb9f9c8324ccee832f739c4bfde1027d979fb7a92a4b36
7
+ data.tar.gz: 406933b86edbfe78a31c6609804e4bde26d99b21f045b8aff8c38b4872454fafa55fc154b1aa9daddf86d68bae2bde258e80dcd879499c043e1e9ad1ef9c0365
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.42.0 (2026-07-09)
4
+
5
+ Full Changelog: [v0.41.0...v0.42.0](https://github.com/cadenya/cadenya-ruby/compare/v0.41.0...v0.42.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([16c93e2](https://github.com/cadenya/cadenya-ruby/commit/16c93e2a2526e1d42b8608515c7867e4dbaf810e))
10
+
11
+ ## 0.41.0 (2026-07-08)
12
+
13
+ Full Changelog: [v0.40.0...v0.41.0](https://github.com/cadenya/cadenya-ruby/compare/v0.40.0...v0.41.0)
14
+
15
+ ### Features
16
+
17
+ * Remove the GetCurrentWorkspace RPC and /v1/workspaces/current (ENG-436) ([d1934ae](https://github.com/cadenya/cadenya-ruby/commit/d1934aea0f43d65f542f15cddc7c8e039883e2dc))
18
+
3
19
  ## 0.40.0 (2026-07-08)
4
20
 
5
21
  Full Changelog: [v0.39.0...v0.40.0](https://github.com/cadenya/cadenya-ruby/compare/v0.39.0...v0.40.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.40.0"
20
+ gem "cadenya", "~> 0.42.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -55,7 +55,9 @@ module Cadenya
55
55
  optional :limit, Integer
56
56
 
57
57
  # @!attribute prefix
58
- # Filter by name prefix
58
+ # Filter by a prefix of the model's display name, external id, or id
59
+ # (case-insensitive). A model's external id is the form used in
60
+ # modelConfig.modelId, so a caller holding that can narrow the list by it.
59
61
  #
60
62
  # @return [String, nil]
61
63
  optional :prefix, String
@@ -96,7 +98,7 @@ module Cadenya
96
98
  #
97
99
  # @param limit [Integer] Maximum number of results to return
98
100
  #
99
- # @param prefix [String] Filter by name prefix
101
+ # @param prefix [String] Filter by a prefix of the model's display name, external id, or id
100
102
  #
101
103
  # @param query [String] Free-form search query
102
104
  #
@@ -335,8 +335,6 @@ module Cadenya
335
335
 
336
336
  WorkspaceAdminUpdateParams = Cadenya::Models::WorkspaceAdminUpdateParams
337
337
 
338
- WorkspaceGetParams = Cadenya::Models::WorkspaceGetParams
339
-
340
338
  WorkspaceListParams = Cadenya::Models::WorkspaceListParams
341
339
 
342
340
  WorkspaceMember = Cadenya::Models::WorkspaceMember
@@ -54,7 +54,7 @@ module Cadenya
54
54
  #
55
55
  # @param limit [Integer] Maximum number of results to return
56
56
  #
57
- # @param prefix [String] Filter by name prefix
57
+ # @param prefix [String] Filter by a prefix of the model's display name, external id, or id
58
58
  #
59
59
  # @param query [String] Free-form search query
60
60
  #
@@ -44,25 +44,6 @@ module Cadenya
44
44
  )
45
45
  end
46
46
 
47
- # Retrieves the workspace associated with the current API token. Useful for
48
- # workspace-scoped tokens to identify which workspace they belong to.
49
- #
50
- # @overload get(request_options: {})
51
- #
52
- # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}, nil]
53
- #
54
- # @return [Cadenya::Models::Workspace]
55
- #
56
- # @see Cadenya::Models::WorkspaceGetParams
57
- def get(params = {})
58
- @client.request(
59
- method: :get,
60
- path: "v1/workspaces/current",
61
- model: Cadenya::Workspace,
62
- options: params[:request_options]
63
- )
64
- end
65
-
66
47
  # @api private
67
48
  #
68
49
  # @param client [Cadenya::Client]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cadenya
4
- VERSION = "0.40.0"
4
+ VERSION = "0.42.0"
5
5
  end
data/lib/cadenya.rb CHANGED
@@ -315,7 +315,6 @@ require_relative "cadenya/models/workspace_admin_create_params"
315
315
  require_relative "cadenya/models/workspace_admin_list_params"
316
316
  require_relative "cadenya/models/workspace_admin_retrieve_params"
317
317
  require_relative "cadenya/models/workspace_admin_update_params"
318
- require_relative "cadenya/models/workspace_get_params"
319
318
  require_relative "cadenya/models/workspace_list_params"
320
319
  require_relative "cadenya/models/workspace_member"
321
320
  require_relative "cadenya/models/workspace_secret"
@@ -62,7 +62,9 @@ module Cadenya
62
62
  sig { params(limit: Integer).void }
63
63
  attr_writer :limit
64
64
 
65
- # Filter by name prefix
65
+ # Filter by a prefix of the model's display name, external id, or id
66
+ # (case-insensitive). A model's external id is the form used in
67
+ # modelConfig.modelId, so a caller holding that can narrow the list by it.
66
68
  sig { returns(T.nilable(String)) }
67
69
  attr_reader :prefix
68
70
 
@@ -126,7 +128,9 @@ module Cadenya
126
128
  labels: nil,
127
129
  # Maximum number of results to return
128
130
  limit: nil,
129
- # Filter by name prefix
131
+ # Filter by a prefix of the model's display name, external id, or id
132
+ # (case-insensitive). A model's external id is the form used in
133
+ # modelConfig.modelId, so a caller holding that can narrow the list by it.
130
134
  prefix: nil,
131
135
  # Free-form search query
132
136
  query: nil,
@@ -303,8 +303,6 @@ module Cadenya
303
303
 
304
304
  WorkspaceAdminUpdateParams = Cadenya::Models::WorkspaceAdminUpdateParams
305
305
 
306
- WorkspaceGetParams = Cadenya::Models::WorkspaceGetParams
307
-
308
306
  WorkspaceListParams = Cadenya::Models::WorkspaceListParams
309
307
 
310
308
  WorkspaceMember = Cadenya::Models::WorkspaceMember
@@ -61,7 +61,9 @@ module Cadenya
61
61
  labels: nil,
62
62
  # Maximum number of results to return
63
63
  limit: nil,
64
- # Filter by name prefix
64
+ # Filter by a prefix of the model's display name, external id, or id
65
+ # (case-insensitive). A model's external id is the form used in
66
+ # modelConfig.modelId, so a caller holding that can narrow the list by it.
65
67
  prefix: nil,
66
68
  # Free-form search query
67
69
  query: nil,
@@ -37,16 +37,6 @@ module Cadenya
37
37
  )
38
38
  end
39
39
 
40
- # Retrieves the workspace associated with the current API token. Useful for
41
- # workspace-scoped tokens to identify which workspace they belong to.
42
- sig do
43
- params(request_options: Cadenya::RequestOptions::OrHash).returns(
44
- Cadenya::Workspace
45
- )
46
- end
47
- def get(request_options: {})
48
- end
49
-
50
40
  # @api private
51
41
  sig { params(client: Cadenya::Client).returns(T.attached_class) }
52
42
  def self.new(client:)
@@ -295,8 +295,6 @@ module Cadenya
295
295
 
296
296
  class WorkspaceAdminUpdateParams = Cadenya::Models::WorkspaceAdminUpdateParams
297
297
 
298
- class WorkspaceGetParams = Cadenya::Models::WorkspaceGetParams
299
-
300
298
  class WorkspaceListParams = Cadenya::Models::WorkspaceListParams
301
299
 
302
300
  class WorkspaceMember = Cadenya::Models::WorkspaceMember
@@ -10,8 +10,6 @@ module Cadenya
10
10
  ?request_options: Cadenya::request_opts
11
11
  ) -> Cadenya::Internal::CursorPagination[Cadenya::Workspace]
12
12
 
13
- def get: (?request_options: Cadenya::request_opts) -> Cadenya::Workspace
14
-
15
13
  def initialize: (client: Cadenya::Client) -> void
16
14
  end
17
15
  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.40.0
4
+ version: 0.42.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-07-08 00:00:00.000000000 Z
11
+ date: 2026-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi
@@ -345,7 +345,6 @@ files:
345
345
  - lib/cadenya/models/workspace_admin_list_params.rb
346
346
  - lib/cadenya/models/workspace_admin_retrieve_params.rb
347
347
  - lib/cadenya/models/workspace_admin_update_params.rb
348
- - lib/cadenya/models/workspace_get_params.rb
349
348
  - lib/cadenya/models/workspace_list_params.rb
350
349
  - lib/cadenya/models/workspace_member.rb
351
350
  - lib/cadenya/models/workspace_secret.rb
@@ -670,7 +669,6 @@ files:
670
669
  - rbi/cadenya/models/workspace_admin_list_params.rbi
671
670
  - rbi/cadenya/models/workspace_admin_retrieve_params.rbi
672
671
  - rbi/cadenya/models/workspace_admin_update_params.rbi
673
- - rbi/cadenya/models/workspace_get_params.rbi
674
672
  - rbi/cadenya/models/workspace_list_params.rbi
675
673
  - rbi/cadenya/models/workspace_member.rbi
676
674
  - rbi/cadenya/models/workspace_secret.rbi
@@ -994,7 +992,6 @@ files:
994
992
  - sig/cadenya/models/workspace_admin_list_params.rbs
995
993
  - sig/cadenya/models/workspace_admin_retrieve_params.rbs
996
994
  - sig/cadenya/models/workspace_admin_update_params.rbs
997
- - sig/cadenya/models/workspace_get_params.rbs
998
995
  - sig/cadenya/models/workspace_list_params.rbs
999
996
  - sig/cadenya/models/workspace_member.rbs
1000
997
  - sig/cadenya/models/workspace_secret.rbs
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Cadenya
4
- module Models
5
- # @see Cadenya::Resources::Workspaces#get
6
- class WorkspaceGetParams < 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
@@ -1,27 +0,0 @@
1
- # typed: strong
2
-
3
- module Cadenya
4
- module Models
5
- class WorkspaceGetParams < 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::WorkspaceGetParams, 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
@@ -1,15 +0,0 @@
1
- module Cadenya
2
- module Models
3
- type workspace_get_params =
4
- { } & Cadenya::Internal::Type::request_parameters
5
-
6
- class WorkspaceGetParams < 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