cadenya 0.16.0 → 0.18.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 (69) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/cadenya/models/ai_provider_key.rb +17 -3
  5. data/lib/cadenya/models/ai_provider_key_list_params.rb +11 -1
  6. data/lib/cadenya/models/model.rb +13 -23
  7. data/lib/cadenya/models/model_list_params.rb +11 -1
  8. data/lib/cadenya/models/model_swap_params.rb +11 -1
  9. data/lib/cadenya/models/objectives/objective_tool_call_data.rb +11 -1
  10. data/lib/cadenya/models/objectives/objective_tool_call_info.rb +27 -1
  11. data/lib/cadenya/models/objectives/objective_tool_call_with_result.rb +11 -1
  12. data/lib/cadenya/models/objectives/resolved_secret.rb +43 -0
  13. data/lib/cadenya/models/tool_sets/secret_create_params.rb +50 -0
  14. data/lib/cadenya/models/tool_sets/secret_delete_params.rb +34 -0
  15. data/lib/cadenya/models/tool_sets/secret_list_params.rb +86 -0
  16. data/lib/cadenya/models/tool_sets/secret_retrieve_params.rb +34 -0
  17. data/lib/cadenya/models/tool_sets/secret_update_params.rb +65 -0
  18. data/lib/cadenya/models/tool_sets/tool_set_secret.rb +41 -0
  19. data/lib/cadenya/models/tool_sets/tool_set_secret_info.rb +34 -0
  20. data/lib/cadenya/models/tool_sets/tool_set_secret_spec.rb +19 -0
  21. data/lib/cadenya/resources/ai_provider_keys.rb +3 -1
  22. data/lib/cadenya/resources/models.rb +4 -1
  23. data/lib/cadenya/resources/tool_sets/secrets.rb +224 -0
  24. data/lib/cadenya/resources/tool_sets.rb +9 -0
  25. data/lib/cadenya/version.rb +1 -1
  26. data/lib/cadenya.rb +10 -0
  27. data/rbi/cadenya/models/ai_provider_key.rbi +23 -5
  28. data/rbi/cadenya/models/ai_provider_key_list_params.rbi +15 -0
  29. data/rbi/cadenya/models/model.rbi +21 -43
  30. data/rbi/cadenya/models/model_list_params.rbi +15 -0
  31. data/rbi/cadenya/models/model_swap_params.rbi +21 -4
  32. data/rbi/cadenya/models/objectives/objective_tool_call_data.rbi +19 -0
  33. data/rbi/cadenya/models/objectives/objective_tool_call_info.rbi +45 -3
  34. data/rbi/cadenya/models/objectives/objective_tool_call_with_result.rbi +19 -0
  35. data/rbi/cadenya/models/objectives/resolved_secret.rbi +104 -0
  36. data/rbi/cadenya/models/tool_sets/secret_create_params.rbi +76 -0
  37. data/rbi/cadenya/models/tool_sets/secret_delete_params.rbi +53 -0
  38. data/rbi/cadenya/models/tool_sets/secret_list_params.rbi +129 -0
  39. data/rbi/cadenya/models/tool_sets/secret_retrieve_params.rbi +53 -0
  40. data/rbi/cadenya/models/tool_sets/secret_update_params.rbi +93 -0
  41. data/rbi/cadenya/models/tool_sets/tool_set_secret.rbi +64 -0
  42. data/rbi/cadenya/models/tool_sets/tool_set_secret_info.rbi +55 -0
  43. data/rbi/cadenya/models/tool_sets/tool_set_secret_spec.rbi +33 -0
  44. data/rbi/cadenya/resources/ai_provider_keys.rbi +5 -0
  45. data/rbi/cadenya/resources/models.rbi +5 -0
  46. data/rbi/cadenya/resources/tool_sets/secrets.rbi +164 -0
  47. data/rbi/cadenya/resources/tool_sets.rbi +8 -0
  48. data/sig/cadenya/models/ai_provider_key.rbs +13 -3
  49. data/sig/cadenya/models/ai_provider_key_list_params.rbs +7 -0
  50. data/sig/cadenya/models/model.rbs +10 -25
  51. data/sig/cadenya/models/model_list_params.rbs +7 -0
  52. data/sig/cadenya/models/model_swap_params.rbs +16 -2
  53. data/sig/cadenya/models/objectives/objective_tool_call_data.rbs +9 -0
  54. data/sig/cadenya/models/objectives/objective_tool_call_info.rbs +20 -3
  55. data/sig/cadenya/models/objectives/objective_tool_call_with_result.rbs +9 -0
  56. data/sig/cadenya/models/objectives/resolved_secret.rbs +50 -0
  57. data/sig/cadenya/models/tool_sets/secret_create_params.rbs +43 -0
  58. data/sig/cadenya/models/tool_sets/secret_delete_params.rbs +34 -0
  59. data/sig/cadenya/models/tool_sets/secret_list_params.rbs +82 -0
  60. data/sig/cadenya/models/tool_sets/secret_retrieve_params.rbs +34 -0
  61. data/sig/cadenya/models/tool_sets/secret_update_params.rbs +63 -0
  62. data/sig/cadenya/models/tool_sets/tool_set_secret.rbs +38 -0
  63. data/sig/cadenya/models/tool_sets/tool_set_secret_info.rbs +27 -0
  64. data/sig/cadenya/models/tool_sets/tool_set_secret_spec.rbs +19 -0
  65. data/sig/cadenya/resources/ai_provider_keys.rbs +1 -0
  66. data/sig/cadenya/resources/models.rbs +1 -0
  67. data/sig/cadenya/resources/tool_sets/secrets.rbs +54 -0
  68. data/sig/cadenya/resources/tool_sets.rbs +2 -0
  69. metadata +32 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae6a3e7de7658dc3909f5b116f10952737be338c529999a20c5678f9da27512b
4
- data.tar.gz: 3009569366c92b99760b8caea39f18bb848bf8c6f57ff4fc697cb07a6a7032ed
3
+ metadata.gz: 870caa5861d88c74a29670c427f0582778ef11797b8907256c9abf720b1d351f
4
+ data.tar.gz: 4c932d49f6ec3944cf1e6397863a9c09b493bff2532a0e2bbd2c013824005baf
5
5
  SHA512:
6
- metadata.gz: 7dbc099db32c64a045d6468124176665f3a86c431a4f014e0289372bad2475f2fd0095583a441810c59b86990049bc3dee004383f3db5858659541126911d87c
7
- data.tar.gz: fc2609020e4791914a3eb6259f8403039c82ae6cd9756bc680cbbbda589c583927805dfd115c1bba72a3b92d6b2500ba8141cf015b6a64e73b902891d764b811
6
+ metadata.gz: ec277a7357047b4864a5b3460d7ea70bc8141e860084a73f76b93cb71a0a0b549fb02967bf79e030758d356e2ad19ebaee6f1f8d1d91a8804111dc79311b329b
7
+ data.tar.gz: d04915be80453482e4dcac1de5271ead1744caac3b8c903209d2f43d315607afdfdedbcede0b999f6001b87fe2d1af34c1d79584f8c2501300beef2b4c53cc3e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.18.0 (2026-06-14)
4
+
5
+ Full Changelog: [v0.17.0...v0.18.0](https://github.com/cadenya/cadenya-ruby/compare/v0.17.0...v0.18.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([d0f9386](https://github.com/cadenya/cadenya-ruby/commit/d0f9386001d7a584b2985f46b71848c74959a7e8))
10
+
11
+ ## 0.17.0 (2026-06-12)
12
+
13
+ Full Changelog: [v0.16.0...v0.17.0](https://github.com/cadenya/cadenya-ruby/compare/v0.16.0...v0.17.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([6a0f6da](https://github.com/cadenya/cadenya-ruby/commit/6a0f6da77dd3f34b582c40acc9971286bd5ff00f))
18
+
3
19
  ## 0.16.0 (2026-06-12)
4
20
 
5
21
  Full Changelog: [v0.15.0...v0.16.0](https://github.com/cadenya/cadenya-ruby/compare/v0.15.0...v0.16.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.16.0"
20
+ gem "cadenya", "~> 0.18.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -28,8 +28,10 @@ module Cadenya
28
28
  # Some parameter documentations has been truncated, see
29
29
  # {Cadenya::Models::AIProviderKey} for more details.
30
30
  #
31
- # AIProviderKey is a customer-provided (BYOK) credential for an AI provider,
32
- # scoped to a workspace. The secret value is never returned in responses.
31
+ # AIProviderKey is a credential for an AI provider, scoped to a workspace. Most
32
+ # keys are customer-provided (BYOK); Cadenya also provisions promotional keys (see
33
+ # AIProviderKeyInfo.is_promotional), which cannot be modified or deleted by
34
+ # account administrators. The secret value is never returned in responses.
33
35
  #
34
36
  # @param metadata [Cadenya::Models::ResourceMetadata] Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
35
37
  #
@@ -51,15 +53,27 @@ module Cadenya
51
53
  #
52
54
  # @return [Integer, nil]
53
55
  optional :enabled_model_count, Integer, api_name: :enabledModelCount
56
+
57
+ # @!attribute is_promotional
58
+ # Cadenya includes promotional keys (one for onboarding, and potentially more in
59
+ # the future). These are not added or maintained by account administrators.
60
+ #
61
+ # @return [Boolean, nil]
62
+ optional :is_promotional, Cadenya::Internal::Type::Boolean, api_name: :isPromotional
54
63
  end
55
64
 
56
- # @!method initialize(disabled_model_count: nil, enabled_model_count: nil)
65
+ # @!method initialize(disabled_model_count: nil, enabled_model_count: nil, is_promotional: nil)
66
+ # Some parameter documentations has been truncated, see
67
+ # {Cadenya::Models::AIProviderKey::Info} for more details.
68
+ #
57
69
  # AIProviderKeyInfo carries server-derived, read-only details about a key, for AI
58
70
  # provider management UIs.
59
71
  #
60
72
  # @param disabled_model_count [Integer] Number of disabled models provisioned on this key.
61
73
  #
62
74
  # @param enabled_model_count [Integer] Number of enabled models provisioned on this key.
75
+ #
76
+ # @param is_promotional [Boolean] Cadenya includes promotional keys (one for onboarding, and potentially more in t
63
77
  end
64
78
  end
65
79
  end
@@ -37,6 +37,14 @@ module Cadenya
37
37
  # @return [String, nil]
38
38
  optional :prefix, String
39
39
 
40
+ # @!attribute promotional
41
+ # When true, return only promotional keys (provided by Cadenya, e.g. for
42
+ # onboarding). Defaults to returning all keys, customer-provided and promotional
43
+ # alike.
44
+ #
45
+ # @return [Boolean, nil]
46
+ optional :promotional, Cadenya::Internal::Type::Boolean
47
+
40
48
  # @!attribute query
41
49
  # Free-form search query
42
50
  #
@@ -49,7 +57,7 @@ module Cadenya
49
57
  # @return [String, nil]
50
58
  optional :sort_order, String
51
59
 
52
- # @!method initialize(workspace_id:, cursor: nil, include_info: nil, limit: nil, prefix: nil, query: nil, sort_order: nil, request_options: {})
60
+ # @!method initialize(workspace_id:, cursor: nil, include_info: nil, limit: nil, prefix: nil, promotional: nil, query: nil, sort_order: nil, request_options: {})
53
61
  # Some parameter documentations has been truncated, see
54
62
  # {Cadenya::Models::AIProviderKeyListParams} for more details.
55
63
  #
@@ -63,6 +71,8 @@ module Cadenya
63
71
  #
64
72
  # @param prefix [String] Filter expression (query param: prefix)
65
73
  #
74
+ # @param promotional [Boolean] When true, return only promotional keys (provided by Cadenya, e.g. for
75
+ #
66
76
  # @param query [String] Free-form search query
67
77
  #
68
78
  # @param sort_order [String] Sort order for results (asc or desc by creation time)
@@ -69,19 +69,22 @@ module Cadenya
69
69
  optional :agent_variation_count, Integer, api_name: :agentVariationCount
70
70
 
71
71
  # @!attribute ai_provider_key
72
- # Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
72
+ # AIProviderKey is a credential for an AI provider, scoped to a workspace. Most
73
+ # keys are customer-provided (BYOK); Cadenya also provisions promotional keys (see
74
+ # AIProviderKeyInfo.is_promotional), which cannot be modified or deleted by
75
+ # account administrators. The secret value is never returned in responses.
73
76
  #
74
- # @return [Cadenya::Models::ResourceMetadata, nil]
75
- optional :ai_provider_key, -> { Cadenya::ResourceMetadata }, api_name: :aiProviderKey
77
+ # @return [Cadenya::Models::AIProviderKey, nil]
78
+ optional :ai_provider_key, -> { Cadenya::AIProviderKey }, api_name: :aiProviderKey
76
79
 
77
- # @!attribute provider
78
- # The AI provider this model routes through (via its provider key).
80
+ # @!attribute last_used_at
81
+ # Represents the last time this model was used in an agent objective
79
82
  #
80
- # @return [Symbol, Cadenya::Models::Model::Info::Provider, nil]
81
- optional :provider, enum: -> { Cadenya::Model::Info::Provider }
83
+ # @return [Time, nil]
84
+ optional :last_used_at, Time, api_name: :lastUsedAt
82
85
  end
83
86
 
84
- # @!method initialize(agent_variation_count: nil, ai_provider_key: nil, provider: nil)
87
+ # @!method initialize(agent_variation_count: nil, ai_provider_key: nil, last_used_at: nil)
85
88
  # Some parameter documentations has been truncated, see
86
89
  # {Cadenya::Models::Model::Info} for more details.
87
90
  #
@@ -89,22 +92,9 @@ module Cadenya
89
92
  #
90
93
  # @param agent_variation_count [Integer] Number of agent variations currently provisioned on this model. Useful for
91
94
  #
92
- # @param ai_provider_key [Cadenya::Models::ResourceMetadata] Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
95
+ # @param ai_provider_key [Cadenya::Models::AIProviderKey] AIProviderKey is a credential for an AI provider, scoped to a workspace.
93
96
  #
94
- # @param provider [Symbol, Cadenya::Models::Model::Info::Provider] The AI provider this model routes through (via its provider key).
95
-
96
- # The AI provider this model routes through (via its provider key).
97
- #
98
- # @see Cadenya::Models::Model::Info#provider
99
- module Provider
100
- extend Cadenya::Internal::Type::Enum
101
-
102
- AI_PROVIDER_UNSPECIFIED = :AI_PROVIDER_UNSPECIFIED
103
- AI_PROVIDER_OPENROUTER = :AI_PROVIDER_OPENROUTER
104
-
105
- # @!method self.values
106
- # @return [Array<Symbol>]
107
- end
97
+ # @param last_used_at [Time] Represents the last time this model was used in an agent objective
108
98
  end
109
99
  end
110
100
  end
@@ -38,6 +38,14 @@ module Cadenya
38
38
  # @return [Boolean, nil]
39
39
  optional :include_info, Cadenya::Internal::Type::Boolean
40
40
 
41
+ # @!attribute is_assigned
42
+ # Filter models to only ones assigned to an active agent variation/agent. Draft
43
+ # agents count as assigned; archived agents do not. Assignment does not imply
44
+ # recent traffic — see ModelInfo.last_used_at for that.
45
+ #
46
+ # @return [Boolean, nil]
47
+ optional :is_assigned, Cadenya::Internal::Type::Boolean
48
+
41
49
  # @!attribute limit
42
50
  # Maximum number of results to return
43
51
  #
@@ -68,7 +76,7 @@ module Cadenya
68
76
  # @return [Symbol, Cadenya::Models::ModelListParams::State, nil]
69
77
  optional :state, enum: -> { Cadenya::ModelListParams::State }
70
78
 
71
- # @!method initialize(workspace_id:, ai_provider_key_id: nil, bundle_key: nil, cursor: nil, include_info: nil, limit: nil, prefix: nil, query: nil, sort_order: nil, state: nil, request_options: {})
79
+ # @!method initialize(workspace_id:, ai_provider_key_id: nil, bundle_key: nil, cursor: nil, include_info: nil, is_assigned: nil, limit: nil, prefix: nil, query: nil, sort_order: nil, state: nil, request_options: {})
72
80
  # Some parameter documentations has been truncated, see
73
81
  # {Cadenya::Models::ModelListParams} for more details.
74
82
  #
@@ -82,6 +90,8 @@ module Cadenya
82
90
  #
83
91
  # @param include_info [Boolean] When true, populate each item's info (e.g. the AI provider), at the cost of
84
92
  #
93
+ # @param is_assigned [Boolean] Filter models to only ones assigned to an active agent variation/agent.
94
+ #
85
95
  # @param limit [Integer] Maximum number of results to return
86
96
  #
87
97
  # @param prefix [String] Filter by name prefix
@@ -34,15 +34,25 @@ module Cadenya
34
34
  # @return [String, nil]
35
35
  optional :current_model_id, String, api_name: :currentModelId
36
36
 
37
+ # @!attribute disable_current_after_swap
38
+ # Whether to disable the current model after the swap.
39
+ #
40
+ # @return [Boolean, nil]
41
+ optional :disable_current_after_swap,
42
+ Cadenya::Internal::Type::Boolean,
43
+ api_name: :disableCurrentAfterSwap
44
+
37
45
  # @!attribute next_model_id
38
46
  # The model to move variations to. Accepts an id or "external_id:" slug.
39
47
  #
40
48
  # @return [String, nil]
41
49
  optional :next_model_id, String, api_name: :nextModelId
42
50
 
43
- # @!method initialize(current_model_id: nil, next_model_id: nil)
51
+ # @!method initialize(current_model_id: nil, disable_current_after_swap: nil, next_model_id: nil)
44
52
  # @param current_model_id [String] The model variations are currently on. Accepts an id or "external_id:" slug.
45
53
  #
54
+ # @param disable_current_after_swap [Boolean] Whether to disable the current model after the swap.
55
+ #
46
56
  # @param next_model_id [String] The model to move variations to. Accepts an id or "external_id:" slug.
47
57
  end
48
58
  end
@@ -26,6 +26,14 @@ module Cadenya
26
26
  optional :memo, String
27
27
 
28
28
  response_only do
29
+ # @!attribute resolved_secrets
30
+ # List of resolved secrets used by the tool call
31
+ #
32
+ # @return [Array<Cadenya::Models::Objectives::ResolvedSecret>, nil]
33
+ optional :resolved_secrets,
34
+ -> { Cadenya::Internal::Type::ArrayOf[Cadenya::Objectives::ResolvedSecret] },
35
+ api_name: :resolvedSecrets
36
+
29
37
  # @!attribute status_changed_by
30
38
  # A profile identifies a user or non-human principal (such as an API key) at the
31
39
  # account level. Profiles are account-scoped and can be granted access to multiple
@@ -35,7 +43,7 @@ module Cadenya
35
43
  optional :status_changed_by, -> { Cadenya::Profile }, api_name: :statusChangedBy
36
44
  end
37
45
 
38
- # @!method initialize(callable:, arguments: nil, memo: nil, status_changed_by: nil)
46
+ # @!method initialize(callable:, arguments: nil, memo: nil, resolved_secrets: nil, status_changed_by: nil)
39
47
  # Some parameter documentations has been truncated, see
40
48
  # {Cadenya::Models::Objectives::ObjectiveToolCallData} for more details.
41
49
  #
@@ -45,6 +53,8 @@ module Cadenya
45
53
  #
46
54
  # @param memo [String] A memo supplied by the reviewer when denying the tool call
47
55
  #
56
+ # @param resolved_secrets [Array<Cadenya::Models::Objectives::ResolvedSecret>] List of resolved secrets used by the tool call
57
+ #
48
58
  # @param status_changed_by [Cadenya::Models::Profile] A profile identifies a user or non-human principal (such as an API key)
49
59
  end
50
60
  end
@@ -19,13 +19,39 @@ module Cadenya
19
19
  # @return [Cadenya::Models::OperationMetadata, nil]
20
20
  optional :objective, -> { Cadenya::OperationMetadata }
21
21
 
22
- # @!method initialize(created_by: nil, objective: nil)
22
+ # @!attribute tool
23
+ # BareMetadata contains the minimal metadata for a resource: the ID and an
24
+ # optional human-readable name. These are used for reference fields where the full
25
+ # metadata (account scoping, timestamps, labels, external IDs) is not needed —
26
+ # e.g., the tool references inside an agent variation spec or the tools assigned
27
+ # to an objective. Both fields are server-populated; clients provide IDs through
28
+ # sibling fields rather than by constructing a BareMetadata themselves.
29
+ #
30
+ # @return [Cadenya::Models::BareMetadata, nil]
31
+ optional :tool, -> { Cadenya::BareMetadata }
32
+
33
+ # @!attribute tool_set
34
+ # BareMetadata contains the minimal metadata for a resource: the ID and an
35
+ # optional human-readable name. These are used for reference fields where the full
36
+ # metadata (account scoping, timestamps, labels, external IDs) is not needed —
37
+ # e.g., the tool references inside an agent variation spec or the tools assigned
38
+ # to an objective. Both fields are server-populated; clients provide IDs through
39
+ # sibling fields rather than by constructing a BareMetadata themselves.
40
+ #
41
+ # @return [Cadenya::Models::BareMetadata, nil]
42
+ optional :tool_set, -> { Cadenya::BareMetadata }, api_name: :toolSet
43
+
44
+ # @!method initialize(created_by: nil, objective: nil, tool: nil, tool_set: nil)
23
45
  # Some parameter documentations has been truncated, see
24
46
  # {Cadenya::Models::Objectives::ObjectiveToolCallInfo} for more details.
25
47
  #
26
48
  # @param created_by [Cadenya::Models::Profile] A profile identifies a user or non-human principal (such as an API key)
27
49
  #
28
50
  # @param objective [Cadenya::Models::OperationMetadata] Metadata for ephemeral operations and activities (e.g., objectives, executions,
51
+ #
52
+ # @param tool [Cadenya::Models::BareMetadata] BareMetadata contains the minimal metadata for a resource: the ID and an
53
+ #
54
+ # @param tool_set [Cadenya::Models::BareMetadata] BareMetadata contains the minimal metadata for a resource: the ID and an
29
55
  end
30
56
  end
31
57
 
@@ -36,6 +36,14 @@ module Cadenya
36
36
  enum: -> { Cadenya::Objectives::ObjectiveToolCallWithResult::ExecutionStatus },
37
37
  api_name: :executionStatus
38
38
 
39
+ # @!attribute resolved_secrets
40
+ # List of resolved secrets used by the tool call
41
+ #
42
+ # @return [Array<Cadenya::Models::Objectives::ResolvedSecret>, nil]
43
+ optional :resolved_secrets,
44
+ -> { Cadenya::Internal::Type::ArrayOf[Cadenya::Objectives::ResolvedSecret] },
45
+ api_name: :resolvedSecrets
46
+
39
47
  # @!attribute result
40
48
  # ObjectiveToolCallResult is the content a tool returned after execution. Tools
41
49
  # can return multiple content blocks, and blocks can be multi-modal (text, image,
@@ -46,7 +54,7 @@ module Cadenya
46
54
  optional :result, -> { Cadenya::Objectives::ObjectiveToolCallResult }
47
55
  end
48
56
 
49
- # @!method initialize(data:, execution_status:, info:, metadata:, status:, result: nil)
57
+ # @!method initialize(data:, execution_status:, info:, metadata:, status:, resolved_secrets: nil, result: nil)
50
58
  # Some parameter documentations has been truncated, see
51
59
  # {Cadenya::Models::Objectives::ObjectiveToolCallWithResult} for more details.
52
60
  #
@@ -63,6 +71,8 @@ module Cadenya
63
71
  #
64
72
  # @param status [Symbol, Cadenya::Models::Objectives::ObjectiveToolCallWithResult::Status] Current status of the tool call
65
73
  #
74
+ # @param resolved_secrets [Array<Cadenya::Models::Objectives::ResolvedSecret>] List of resolved secrets used by the tool call
75
+ #
66
76
  # @param result [Cadenya::Models::Objectives::ObjectiveToolCallResult] ObjectiveToolCallResult is the content a tool returned after execution.
67
77
 
68
78
  # @see Cadenya::Models::Objectives::ObjectiveToolCallWithResult#execution_status
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cadenya
4
+ module Models
5
+ module Objectives
6
+ class ResolvedSecret < Cadenya::Internal::Type::BaseModel
7
+ # @!attribute key
8
+ #
9
+ # @return [String, nil]
10
+ optional :key, String
11
+
12
+ # @!attribute source
13
+ #
14
+ # @return [Symbol, Cadenya::Models::Objectives::ResolvedSecret::Source, nil]
15
+ optional :source, enum: -> { Cadenya::Objectives::ResolvedSecret::Source }
16
+
17
+ # @!method initialize(key: nil, source: nil)
18
+ # ResolvedSecret is a resolved secret value from the workspace, toolset, or
19
+ # objective. When a tool is called, it will rely on secrets in the order of:
20
+ #
21
+ # - Objective
22
+ # - Toolset
23
+ # - Workspace
24
+ #
25
+ # @param key [String]
26
+ # @param source [Symbol, Cadenya::Models::Objectives::ResolvedSecret::Source]
27
+
28
+ # @see Cadenya::Models::Objectives::ResolvedSecret#source
29
+ module Source
30
+ extend Cadenya::Internal::Type::Enum
31
+
32
+ RESOLVED_SECRET_SOURCE_UNSPECIFIED = :RESOLVED_SECRET_SOURCE_UNSPECIFIED
33
+ RESOLVED_SECRET_SOURCE_WORKSPACE = :RESOLVED_SECRET_SOURCE_WORKSPACE
34
+ RESOLVED_SECRET_SOURCE_TOOLSET = :RESOLVED_SECRET_SOURCE_TOOLSET
35
+ RESOLVED_SECRET_SOURCE_OBJECTIVE = :RESOLVED_SECRET_SOURCE_OBJECTIVE
36
+
37
+ # @!method self.values
38
+ # @return [Array<Symbol>]
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cadenya
4
+ module Models
5
+ module ToolSets
6
+ # @see Cadenya::Resources::ToolSets::Secrets#create
7
+ class SecretCreateParams < Cadenya::Internal::Type::BaseModel
8
+ extend Cadenya::Internal::Type::RequestParameters::Converter
9
+ include Cadenya::Internal::Type::RequestParameters
10
+
11
+ # @!attribute workspace_id
12
+ #
13
+ # @return [String]
14
+ required :workspace_id, String
15
+
16
+ # @!attribute tool_set_id
17
+ #
18
+ # @return [String]
19
+ required :tool_set_id, String
20
+
21
+ # @!attribute metadata
22
+ # CreateResourceMetadata contains the user-provided fields for creating a
23
+ # workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
24
+ # profile_id, created_at) are excluded since they are set by the server.
25
+ #
26
+ # @return [Cadenya::Models::CreateResourceMetadata]
27
+ required :metadata, -> { Cadenya::CreateResourceMetadata }
28
+
29
+ # @!attribute spec
30
+ #
31
+ # @return [Cadenya::Models::ToolSets::ToolSetSecretSpec]
32
+ required :spec, -> { Cadenya::ToolSets::ToolSetSecretSpec }
33
+
34
+ # @!method initialize(workspace_id:, tool_set_id:, metadata:, spec:, request_options: {})
35
+ # Some parameter documentations has been truncated, see
36
+ # {Cadenya::Models::ToolSets::SecretCreateParams} for more details.
37
+ #
38
+ # @param workspace_id [String]
39
+ #
40
+ # @param tool_set_id [String]
41
+ #
42
+ # @param metadata [Cadenya::Models::CreateResourceMetadata] CreateResourceMetadata contains the user-provided fields for creating
43
+ #
44
+ # @param spec [Cadenya::Models::ToolSets::ToolSetSecretSpec]
45
+ #
46
+ # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cadenya
4
+ module Models
5
+ module ToolSets
6
+ # @see Cadenya::Resources::ToolSets::Secrets#delete
7
+ class SecretDeleteParams < Cadenya::Internal::Type::BaseModel
8
+ extend Cadenya::Internal::Type::RequestParameters::Converter
9
+ include Cadenya::Internal::Type::RequestParameters
10
+
11
+ # @!attribute workspace_id
12
+ #
13
+ # @return [String]
14
+ required :workspace_id, String
15
+
16
+ # @!attribute tool_set_id
17
+ #
18
+ # @return [String]
19
+ required :tool_set_id, String
20
+
21
+ # @!attribute id
22
+ #
23
+ # @return [String]
24
+ required :id, String
25
+
26
+ # @!method initialize(workspace_id:, tool_set_id:, id:, request_options: {})
27
+ # @param workspace_id [String]
28
+ # @param tool_set_id [String]
29
+ # @param id [String]
30
+ # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,86 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cadenya
4
+ module Models
5
+ module ToolSets
6
+ # @see Cadenya::Resources::ToolSets::Secrets#list
7
+ class SecretListParams < Cadenya::Internal::Type::BaseModel
8
+ extend Cadenya::Internal::Type::RequestParameters::Converter
9
+ include Cadenya::Internal::Type::RequestParameters
10
+
11
+ # @!attribute workspace_id
12
+ #
13
+ # @return [String]
14
+ required :workspace_id, String
15
+
16
+ # @!attribute tool_set_id
17
+ #
18
+ # @return [String]
19
+ required :tool_set_id, String
20
+
21
+ # @!attribute bundle_key
22
+ # Filter by bundle_key — return only resources owned by this bundle.
23
+ #
24
+ # @return [String, nil]
25
+ optional :bundle_key, String
26
+
27
+ # @!attribute cursor
28
+ # Pagination cursor from previous response
29
+ #
30
+ # @return [String, nil]
31
+ optional :cursor, String
32
+
33
+ # @!attribute include_info
34
+ # When set to true you may use more of your alloted API rate-limit
35
+ #
36
+ # @return [Boolean, nil]
37
+ optional :include_info, Cadenya::Internal::Type::Boolean
38
+
39
+ # @!attribute limit
40
+ # Maximum number of results to return
41
+ #
42
+ # @return [Integer, nil]
43
+ optional :limit, Integer
44
+
45
+ # @!attribute prefix
46
+ # Filter expression (query param: prefix)
47
+ #
48
+ # @return [String, nil]
49
+ optional :prefix, String
50
+
51
+ # @!attribute query
52
+ # Free-form search query
53
+ #
54
+ # @return [String, nil]
55
+ optional :query, String
56
+
57
+ # @!attribute sort_order
58
+ # Sort order for results (asc or desc by creation time)
59
+ #
60
+ # @return [String, nil]
61
+ optional :sort_order, String
62
+
63
+ # @!method initialize(workspace_id:, tool_set_id:, bundle_key: nil, cursor: nil, include_info: nil, limit: nil, prefix: nil, query: nil, sort_order: nil, request_options: {})
64
+ # @param workspace_id [String]
65
+ #
66
+ # @param tool_set_id [String]
67
+ #
68
+ # @param bundle_key [String] Filter by bundle_key — return only resources owned by this bundle.
69
+ #
70
+ # @param cursor [String] Pagination cursor from previous response
71
+ #
72
+ # @param include_info [Boolean] When set to true you may use more of your alloted API rate-limit
73
+ #
74
+ # @param limit [Integer] Maximum number of results to return
75
+ #
76
+ # @param prefix [String] Filter expression (query param: prefix)
77
+ #
78
+ # @param query [String] Free-form search query
79
+ #
80
+ # @param sort_order [String] Sort order for results (asc or desc by creation time)
81
+ #
82
+ # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
83
+ end
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cadenya
4
+ module Models
5
+ module ToolSets
6
+ # @see Cadenya::Resources::ToolSets::Secrets#retrieve
7
+ class SecretRetrieveParams < Cadenya::Internal::Type::BaseModel
8
+ extend Cadenya::Internal::Type::RequestParameters::Converter
9
+ include Cadenya::Internal::Type::RequestParameters
10
+
11
+ # @!attribute workspace_id
12
+ #
13
+ # @return [String]
14
+ required :workspace_id, String
15
+
16
+ # @!attribute tool_set_id
17
+ #
18
+ # @return [String]
19
+ required :tool_set_id, String
20
+
21
+ # @!attribute id
22
+ #
23
+ # @return [String]
24
+ required :id, String
25
+
26
+ # @!method initialize(workspace_id:, tool_set_id:, id:, request_options: {})
27
+ # @param workspace_id [String]
28
+ # @param tool_set_id [String]
29
+ # @param id [String]
30
+ # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,65 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cadenya
4
+ module Models
5
+ module ToolSets
6
+ # @see Cadenya::Resources::ToolSets::Secrets#update
7
+ class SecretUpdateParams < Cadenya::Internal::Type::BaseModel
8
+ extend Cadenya::Internal::Type::RequestParameters::Converter
9
+ include Cadenya::Internal::Type::RequestParameters
10
+
11
+ # @!attribute workspace_id
12
+ #
13
+ # @return [String]
14
+ required :workspace_id, String
15
+
16
+ # @!attribute tool_set_id
17
+ #
18
+ # @return [String]
19
+ required :tool_set_id, String
20
+
21
+ # @!attribute id
22
+ #
23
+ # @return [String]
24
+ required :id, String
25
+
26
+ # @!attribute metadata
27
+ # UpdateResourceMetadata contains the user-provided fields for updating a
28
+ # workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
29
+ # profile_id, created_at) are excluded since they are set by the server.
30
+ #
31
+ # @return [Cadenya::Models::UpdateResourceMetadata, nil]
32
+ optional :metadata, -> { Cadenya::UpdateResourceMetadata }
33
+
34
+ # @!attribute spec
35
+ #
36
+ # @return [Cadenya::Models::ToolSets::ToolSetSecretSpec, nil]
37
+ optional :spec, -> { Cadenya::ToolSets::ToolSetSecretSpec }
38
+
39
+ # @!attribute update_mask
40
+ # Fields to update.
41
+ #
42
+ # @return [String, nil]
43
+ optional :update_mask, String, api_name: :updateMask
44
+
45
+ # @!method initialize(workspace_id:, tool_set_id:, id:, metadata: nil, spec: nil, update_mask: nil, request_options: {})
46
+ # Some parameter documentations has been truncated, see
47
+ # {Cadenya::Models::ToolSets::SecretUpdateParams} for more details.
48
+ #
49
+ # @param workspace_id [String]
50
+ #
51
+ # @param tool_set_id [String]
52
+ #
53
+ # @param id [String]
54
+ #
55
+ # @param metadata [Cadenya::Models::UpdateResourceMetadata] UpdateResourceMetadata contains the user-provided fields for updating
56
+ #
57
+ # @param spec [Cadenya::Models::ToolSets::ToolSetSecretSpec]
58
+ #
59
+ # @param update_mask [String] Fields to update.
60
+ #
61
+ # @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
62
+ end
63
+ end
64
+ end
65
+ end