cadenya 0.1.0 → 0.3.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 +33 -0
- data/README.md +1 -1
- data/lib/cadenya/client.rb +14 -0
- data/lib/cadenya/internal/cursor_pagination.rb +1 -1
- data/lib/cadenya/internal/transport/base_client.rb +2 -0
- data/lib/cadenya/models/agent_spec.rb +19 -4
- data/lib/cadenya/models/agents/webhook_delivery_data.rb +3 -1
- data/lib/cadenya/models/agents/webhook_delivery_list_params.rb +3 -1
- data/lib/cadenya/models/approval_requirement_filter.rb +26 -0
- data/lib/cadenya/models/attribute_filter.rb +38 -0
- data/lib/cadenya/models/objective_create_params.rb +3 -3
- data/lib/cadenya/models/objective_data.rb +21 -1
- data/lib/cadenya/models/objective_event_data.rb +43 -5
- data/lib/cadenya/models/objective_list_events_params.rb +9 -1
- data/lib/cadenya/models/objective_list_params.rb +2 -1
- data/lib/cadenya/models/objective_status.rb +2 -1
- data/lib/cadenya/models/profile_spec.rb +1 -0
- data/lib/cadenya/models/string_matcher.rb +47 -0
- data/lib/cadenya/models/sub_agent_spawned.rb +35 -0
- data/lib/cadenya/models/sub_agent_updated.rb +66 -0
- data/lib/cadenya/models/tool_filter.rb +35 -0
- data/lib/cadenya/models/tool_set_adapter.rb +7 -1
- data/lib/cadenya/models/tool_set_adapter_mcp.rb +11 -33
- data/lib/cadenya/models/tool_set_adapter_openapi.rb +79 -0
- data/lib/cadenya/models/tool_set_get_openapi_spec_params.rb +26 -0
- data/lib/cadenya/models/tool_set_get_openapi_spec_response.rb +17 -0
- data/lib/cadenya/models/tool_sets/config_openapi.rb +29 -0
- data/lib/cadenya/models/tool_sets/tool_spec_config.rb +7 -1
- data/lib/cadenya/models/workspace.rb +27 -1
- data/lib/cadenya/models/workspace_admin/member_add_params.rb +39 -0
- data/lib/cadenya/models/workspace_admin/member_list_params.rb +39 -0
- data/lib/cadenya/models/workspace_admin/member_remove_params.rb +28 -0
- data/lib/cadenya/models/workspace_admin/profile_list_params.rb +44 -0
- data/lib/cadenya/models/workspace_admin_archive_params.rb +20 -0
- data/lib/cadenya/models/workspace_admin_create_params.rb +70 -0
- data/lib/cadenya/models/workspace_admin_list_params.rb +42 -0
- data/lib/cadenya/models/workspace_admin_retrieve_params.rb +20 -0
- data/lib/cadenya/models/workspace_admin_update_params.rb +85 -0
- data/lib/cadenya/models/workspace_member.rb +53 -0
- data/lib/cadenya/models.rb +29 -3
- data/lib/cadenya/resources/objectives.rb +5 -2
- data/lib/cadenya/resources/tool_sets.rb +31 -0
- data/lib/cadenya/resources/workspace_admin/members.rb +107 -0
- data/lib/cadenya/resources/workspace_admin/profiles.rb +54 -0
- data/lib/cadenya/resources/workspace_admin.rb +173 -0
- data/lib/cadenya/resources/workspaces.rb +4 -0
- data/lib/cadenya/version.rb +1 -1
- data/lib/cadenya.rb +23 -2
- data/rbi/cadenya/client.rbi +13 -0
- data/rbi/cadenya/models/agent_spec.rbi +21 -4
- data/rbi/cadenya/models/agents/webhook_delivery_data.rbi +15 -5
- data/rbi/cadenya/models/agents/webhook_delivery_list_params.rbi +15 -5
- data/rbi/cadenya/models/approval_requirement_filter.rbi +45 -0
- data/rbi/cadenya/models/attribute_filter.rbi +84 -0
- data/rbi/cadenya/models/objective_create_params.rbi +2 -2
- data/rbi/cadenya/models/objective_data.rbi +26 -0
- data/rbi/cadenya/models/objective_event_data.rbi +68 -9
- data/rbi/cadenya/models/objective_list_events_params.rbi +11 -0
- data/rbi/cadenya/models/objective_list_params.rbi +7 -2
- data/rbi/cadenya/models/objective_status.rbi +4 -2
- data/rbi/cadenya/models/profile_spec.rbi +5 -0
- data/rbi/cadenya/models/string_matcher.rbi +84 -0
- data/rbi/cadenya/models/sub_agent_spawned.rbi +62 -0
- data/rbi/cadenya/models/sub_agent_updated.rbi +127 -0
- data/rbi/cadenya/models/tool_filter.rbi +66 -0
- data/rbi/cadenya/models/tool_set_adapter.rbi +14 -3
- data/rbi/cadenya/models/tool_set_adapter_mcp.rbi +16 -62
- data/rbi/cadenya/models/tool_set_adapter_openapi.rbi +127 -0
- data/rbi/cadenya/models/tool_set_get_openapi_spec_params.rbi +46 -0
- data/rbi/cadenya/models/tool_set_get_openapi_spec_response.rbi +33 -0
- data/rbi/cadenya/models/tool_sets/config_openapi.rbi +48 -0
- data/rbi/cadenya/models/tool_sets/tool_spec_config.rbi +11 -3
- data/rbi/cadenya/models/workspace.rbi +39 -3
- data/rbi/cadenya/models/workspace_admin/member_add_params.rbi +68 -0
- data/rbi/cadenya/models/workspace_admin/member_list_params.rbi +68 -0
- data/rbi/cadenya/models/workspace_admin/member_remove_params.rbi +48 -0
- data/rbi/cadenya/models/workspace_admin/profile_list_params.rbi +75 -0
- data/rbi/cadenya/models/workspace_admin_archive_params.rbi +38 -0
- data/rbi/cadenya/models/workspace_admin_create_params.rbi +127 -0
- data/rbi/cadenya/models/workspace_admin_list_params.rbi +70 -0
- data/rbi/cadenya/models/workspace_admin_retrieve_params.rbi +38 -0
- data/rbi/cadenya/models/workspace_admin_update_params.rbi +144 -0
- data/rbi/cadenya/models/workspace_member.rbi +80 -0
- data/rbi/cadenya/models.rbi +29 -3
- data/rbi/cadenya/resources/objectives.rbi +4 -1
- data/rbi/cadenya/resources/tool_sets.rbi +18 -0
- data/rbi/cadenya/resources/workspace_admin/members.rbi +83 -0
- data/rbi/cadenya/resources/workspace_admin/profiles.rbi +42 -0
- data/rbi/cadenya/resources/workspace_admin.rbi +131 -0
- data/rbi/cadenya/resources/workspaces.rbi +4 -0
- data/sig/cadenya/client.rbs +2 -0
- data/sig/cadenya/models/agent_spec.rbs +12 -5
- data/sig/cadenya/models/agents/webhook_delivery_data.rbs +6 -2
- data/sig/cadenya/models/agents/webhook_delivery_list_params.rbs +6 -2
- data/sig/cadenya/models/approval_requirement_filter.rbs +20 -0
- data/sig/cadenya/models/attribute_filter.rbs +44 -0
- data/sig/cadenya/models/objective_create_params.rbs +6 -2
- data/sig/cadenya/models/objective_data.rbs +14 -0
- data/sig/cadenya/models/objective_event_data.rbs +37 -7
- data/sig/cadenya/models/objective_list_events_params.rbs +7 -0
- data/sig/cadenya/models/objective_list_params.rbs +4 -2
- data/sig/cadenya/models/objective_status.rbs +4 -2
- data/sig/cadenya/models/profile_spec.rbs +5 -1
- data/sig/cadenya/models/string_matcher.rbs +57 -0
- data/sig/cadenya/models/sub_agent_spawned.rbs +36 -0
- data/sig/cadenya/models/sub_agent_updated.rbs +66 -0
- data/sig/cadenya/models/tool_filter.rbs +41 -0
- data/sig/cadenya/models/tool_set_adapter.rbs +15 -3
- data/sig/cadenya/models/tool_set_adapter_mcp.rbs +16 -32
- data/sig/cadenya/models/tool_set_adapter_openapi.rbs +73 -0
- data/sig/cadenya/models/tool_set_get_openapi_spec_params.rbs +28 -0
- data/sig/cadenya/models/tool_set_get_openapi_spec_response.rbs +15 -0
- data/sig/cadenya/models/tool_sets/config_openapi.rbs +30 -0
- data/sig/cadenya/models/tool_sets/tool_spec_config.rbs +12 -3
- data/sig/cadenya/models/workspace.rbs +24 -3
- data/sig/cadenya/models/workspace_admin/member_add_params.rbs +38 -0
- data/sig/cadenya/models/workspace_admin/member_list_params.rbs +38 -0
- data/sig/cadenya/models/workspace_admin/member_remove_params.rbs +30 -0
- data/sig/cadenya/models/workspace_admin/profile_list_params.rbs +40 -0
- data/sig/cadenya/models/workspace_admin_archive_params.rbs +23 -0
- data/sig/cadenya/models/workspace_admin_create_params.rbs +58 -0
- data/sig/cadenya/models/workspace_admin_list_params.rbs +38 -0
- data/sig/cadenya/models/workspace_admin_retrieve_params.rbs +23 -0
- data/sig/cadenya/models/workspace_admin_update_params.rbs +76 -0
- data/sig/cadenya/models/workspace_member.rbs +46 -0
- data/sig/cadenya/models.rbs +29 -3
- data/sig/cadenya/resources/objectives.rbs +2 -1
- data/sig/cadenya/resources/tool_sets.rbs +6 -0
- data/sig/cadenya/resources/workspace_admin/members.rbs +29 -0
- data/sig/cadenya/resources/workspace_admin/profiles.rbs +16 -0
- data/sig/cadenya/resources/workspace_admin.rbs +42 -0
- metadata +71 -8
- data/lib/cadenya/models/mcp_tool_filter.rb +0 -111
- data/lib/cadenya/models/sub_objective_created.rb +0 -20
- data/rbi/cadenya/models/mcp_tool_filter.rbi +0 -235
- data/rbi/cadenya/models/sub_objective_created.rbi +0 -36
- data/sig/cadenya/models/mcp_tool_filter.rbs +0 -138
- data/sig/cadenya/models/sub_objective_created.rbs +0 -15
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Cadenya
|
|
4
|
+
module Models
|
|
5
|
+
class ToolFilter < Cadenya::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute operator
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, Cadenya::Models::ToolFilter::Operator]
|
|
9
|
+
required :operator, enum: -> { Cadenya::ToolFilter::Operator }
|
|
10
|
+
|
|
11
|
+
# @!attribute filters
|
|
12
|
+
#
|
|
13
|
+
# @return [Array<Cadenya::Models::AttributeFilter>, nil]
|
|
14
|
+
optional :filters, -> { Cadenya::Internal::Type::ArrayOf[Cadenya::AttributeFilter] }
|
|
15
|
+
|
|
16
|
+
# @!method initialize(operator:, filters: nil)
|
|
17
|
+
# Top-level filter with simple boolean logic (no nesting)
|
|
18
|
+
#
|
|
19
|
+
# @param operator [Symbol, Cadenya::Models::ToolFilter::Operator]
|
|
20
|
+
# @param filters [Array<Cadenya::Models::AttributeFilter>]
|
|
21
|
+
|
|
22
|
+
# @see Cadenya::Models::ToolFilter#operator
|
|
23
|
+
module Operator
|
|
24
|
+
extend Cadenya::Internal::Type::Enum
|
|
25
|
+
|
|
26
|
+
OPERATOR_UNSPECIFIED = :OPERATOR_UNSPECIFIED
|
|
27
|
+
OPERATOR_AND = :OPERATOR_AND
|
|
28
|
+
OPERATOR_OR = :OPERATOR_OR
|
|
29
|
+
|
|
30
|
+
# @!method self.values
|
|
31
|
+
# @return [Array<Symbol>]
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -13,9 +13,15 @@ module Cadenya
|
|
|
13
13
|
# @return [Cadenya::Models::ToolSetAdapterMcp, nil]
|
|
14
14
|
optional :mcp, -> { Cadenya::ToolSetAdapterMcp }
|
|
15
15
|
|
|
16
|
-
# @!
|
|
16
|
+
# @!attribute openapi
|
|
17
|
+
#
|
|
18
|
+
# @return [Cadenya::Models::ToolSetAdapterOpenAPI, nil]
|
|
19
|
+
optional :openapi, -> { Cadenya::ToolSetAdapterOpenAPI }
|
|
20
|
+
|
|
21
|
+
# @!method initialize(http: nil, mcp: nil, openapi: nil)
|
|
17
22
|
# @param http [Cadenya::Models::ToolSetAdapterHTTP]
|
|
18
23
|
# @param mcp [Cadenya::Models::ToolSetAdapterMcp]
|
|
24
|
+
# @param openapi [Cadenya::Models::ToolSetAdapterOpenAPI]
|
|
19
25
|
end
|
|
20
26
|
end
|
|
21
27
|
end
|
|
@@ -6,8 +6,8 @@ module Cadenya
|
|
|
6
6
|
# @!attribute exclude_tools
|
|
7
7
|
# Top-level filter with simple boolean logic (no nesting)
|
|
8
8
|
#
|
|
9
|
-
# @return [Cadenya::Models::
|
|
10
|
-
optional :exclude_tools, -> { Cadenya::
|
|
9
|
+
# @return [Cadenya::Models::ToolFilter, nil]
|
|
10
|
+
optional :exclude_tools, -> { Cadenya::ToolFilter }, api_name: :excludeTools
|
|
11
11
|
|
|
12
12
|
# @!attribute headers
|
|
13
13
|
#
|
|
@@ -17,15 +17,15 @@ module Cadenya
|
|
|
17
17
|
# @!attribute include_tools
|
|
18
18
|
# Top-level filter with simple boolean logic (no nesting)
|
|
19
19
|
#
|
|
20
|
-
# @return [Cadenya::Models::
|
|
21
|
-
optional :include_tools, -> { Cadenya::
|
|
20
|
+
# @return [Cadenya::Models::ToolFilter, nil]
|
|
21
|
+
optional :include_tools, -> { Cadenya::ToolFilter }, api_name: :includeTools
|
|
22
22
|
|
|
23
23
|
# @!attribute tool_approvals
|
|
24
|
-
# Approval filters that will automatically set the approval requirement on
|
|
25
|
-
#
|
|
24
|
+
# Approval filters that will automatically set the approval requirement on tools
|
|
25
|
+
# synced from an external source
|
|
26
26
|
#
|
|
27
|
-
# @return [Cadenya::Models::
|
|
28
|
-
optional :tool_approvals, -> { Cadenya::
|
|
27
|
+
# @return [Cadenya::Models::ApprovalRequirementFilter, nil]
|
|
28
|
+
optional :tool_approvals, -> { Cadenya::ApprovalRequirementFilter }, api_name: :toolApprovals
|
|
29
29
|
|
|
30
30
|
# @!attribute url
|
|
31
31
|
#
|
|
@@ -36,37 +36,15 @@ module Cadenya
|
|
|
36
36
|
# Some parameter documentations has been truncated, see
|
|
37
37
|
# {Cadenya::Models::ToolSetAdapterMcp} for more details.
|
|
38
38
|
#
|
|
39
|
-
# @param exclude_tools [Cadenya::Models::
|
|
39
|
+
# @param exclude_tools [Cadenya::Models::ToolFilter] Top-level filter with simple boolean logic (no nesting)
|
|
40
40
|
#
|
|
41
41
|
# @param headers [Hash{Symbol=>String}]
|
|
42
42
|
#
|
|
43
|
-
# @param include_tools [Cadenya::Models::
|
|
43
|
+
# @param include_tools [Cadenya::Models::ToolFilter] Top-level filter with simple boolean logic (no nesting)
|
|
44
44
|
#
|
|
45
|
-
# @param tool_approvals [Cadenya::Models::
|
|
45
|
+
# @param tool_approvals [Cadenya::Models::ApprovalRequirementFilter] Approval filters that will automatically set the approval requirement on tools s
|
|
46
46
|
#
|
|
47
47
|
# @param url [String]
|
|
48
|
-
|
|
49
|
-
# @see Cadenya::Models::ToolSetAdapterMcp#tool_approvals
|
|
50
|
-
class ToolApprovals < Cadenya::Internal::Type::BaseModel
|
|
51
|
-
# @!attribute always
|
|
52
|
-
#
|
|
53
|
-
# @return [Boolean, nil]
|
|
54
|
-
optional :always, Cadenya::Internal::Type::Boolean
|
|
55
|
-
|
|
56
|
-
# @!attribute only
|
|
57
|
-
# Top-level filter with simple boolean logic (no nesting)
|
|
58
|
-
#
|
|
59
|
-
# @return [Cadenya::Models::McpToolFilter, nil]
|
|
60
|
-
optional :only, -> { Cadenya::McpToolFilter }
|
|
61
|
-
|
|
62
|
-
# @!method initialize(always: nil, only: nil)
|
|
63
|
-
# Approval filters that will automatically set the approval requirement on the
|
|
64
|
-
# tools synced from the MCP server
|
|
65
|
-
#
|
|
66
|
-
# @param always [Boolean]
|
|
67
|
-
#
|
|
68
|
-
# @param only [Cadenya::Models::McpToolFilter] Top-level filter with simple boolean logic (no nesting)
|
|
69
|
-
end
|
|
70
48
|
end
|
|
71
49
|
end
|
|
72
50
|
end
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Cadenya
|
|
4
|
+
module Models
|
|
5
|
+
class ToolSetAdapterOpenAPI < Cadenya::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute base_url
|
|
7
|
+
# Base URL for dispatching tool calls. If set, overrides the server resolved from
|
|
8
|
+
# the spec's servers array.
|
|
9
|
+
#
|
|
10
|
+
# @return [String, nil]
|
|
11
|
+
optional :base_url, String, api_name: :baseUrl
|
|
12
|
+
|
|
13
|
+
# @!attribute exclude_tools
|
|
14
|
+
# Top-level filter with simple boolean logic (no nesting)
|
|
15
|
+
#
|
|
16
|
+
# @return [Cadenya::Models::ToolFilter, nil]
|
|
17
|
+
optional :exclude_tools, -> { Cadenya::ToolFilter }, api_name: :excludeTools
|
|
18
|
+
|
|
19
|
+
# @!attribute headers
|
|
20
|
+
# Headers sent when fetching the spec from a URL and when dispatching tool calls.
|
|
21
|
+
#
|
|
22
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
23
|
+
optional :headers, Cadenya::Internal::Type::HashOf[String]
|
|
24
|
+
|
|
25
|
+
# @!attribute include_tools
|
|
26
|
+
# Top-level filter with simple boolean logic (no nesting)
|
|
27
|
+
#
|
|
28
|
+
# @return [Cadenya::Models::ToolFilter, nil]
|
|
29
|
+
optional :include_tools, -> { Cadenya::ToolFilter }, api_name: :includeTools
|
|
30
|
+
|
|
31
|
+
# @!attribute server_name
|
|
32
|
+
# Name of the server entry in the spec's servers array (OpenAPI 3.2 server.name
|
|
33
|
+
# field). Used to select which server URL to dispatch to when base_url is not set.
|
|
34
|
+
# If unset, the first server is used. Ignored when base_url is set.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :server_name, String, api_name: :serverName
|
|
38
|
+
|
|
39
|
+
# @!attribute tool_approvals
|
|
40
|
+
# Approval filters that will automatically set the approval requirement on tools
|
|
41
|
+
# synced from an external source
|
|
42
|
+
#
|
|
43
|
+
# @return [Cadenya::Models::ApprovalRequirementFilter, nil]
|
|
44
|
+
optional :tool_approvals, -> { Cadenya::ApprovalRequirementFilter }, api_name: :toolApprovals
|
|
45
|
+
|
|
46
|
+
# @!attribute upload_id
|
|
47
|
+
# ID of a COMPLETE Upload containing the OpenAPI spec document.
|
|
48
|
+
#
|
|
49
|
+
# @return [String, nil]
|
|
50
|
+
optional :upload_id, String, api_name: :uploadId
|
|
51
|
+
|
|
52
|
+
# @!attribute url
|
|
53
|
+
# URL to fetch the OpenAPI spec from. Synced automatically every hour.
|
|
54
|
+
#
|
|
55
|
+
# @return [String, nil]
|
|
56
|
+
optional :url, String
|
|
57
|
+
|
|
58
|
+
# @!method initialize(base_url: nil, exclude_tools: nil, headers: nil, include_tools: nil, server_name: nil, tool_approvals: nil, upload_id: nil, url: nil)
|
|
59
|
+
# Some parameter documentations has been truncated, see
|
|
60
|
+
# {Cadenya::Models::ToolSetAdapterOpenAPI} for more details.
|
|
61
|
+
#
|
|
62
|
+
# @param base_url [String] Base URL for dispatching tool calls. If set, overrides the server
|
|
63
|
+
#
|
|
64
|
+
# @param exclude_tools [Cadenya::Models::ToolFilter] Top-level filter with simple boolean logic (no nesting)
|
|
65
|
+
#
|
|
66
|
+
# @param headers [Hash{Symbol=>String}] Headers sent when fetching the spec from a URL and when dispatching tool calls.
|
|
67
|
+
#
|
|
68
|
+
# @param include_tools [Cadenya::Models::ToolFilter] Top-level filter with simple boolean logic (no nesting)
|
|
69
|
+
#
|
|
70
|
+
# @param server_name [String] Name of the server entry in the spec's servers array (OpenAPI 3.2
|
|
71
|
+
#
|
|
72
|
+
# @param tool_approvals [Cadenya::Models::ApprovalRequirementFilter] Approval filters that will automatically set the approval requirement on tools s
|
|
73
|
+
#
|
|
74
|
+
# @param upload_id [String] ID of a COMPLETE Upload containing the OpenAPI spec document.
|
|
75
|
+
#
|
|
76
|
+
# @param url [String] URL to fetch the OpenAPI spec from. Synced automatically every hour.
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Cadenya
|
|
4
|
+
module Models
|
|
5
|
+
# @see Cadenya::Resources::ToolSets#get_openapi_spec
|
|
6
|
+
class ToolSetGetOpenAPISpecParams < Cadenya::Internal::Type::BaseModel
|
|
7
|
+
extend Cadenya::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Cadenya::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute workspace_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :workspace_id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute tool_set_id
|
|
16
|
+
#
|
|
17
|
+
# @return [String]
|
|
18
|
+
required :tool_set_id, String
|
|
19
|
+
|
|
20
|
+
# @!method initialize(workspace_id:, tool_set_id:, request_options: {})
|
|
21
|
+
# @param workspace_id [String]
|
|
22
|
+
# @param tool_set_id [String]
|
|
23
|
+
# @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Cadenya
|
|
4
|
+
module Models
|
|
5
|
+
# @see Cadenya::Resources::ToolSets#get_openapi_spec
|
|
6
|
+
class ToolSetGetOpenAPISpecResponse < Cadenya::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute spec
|
|
8
|
+
# The consumed OpenAPI specification as a JSON string.
|
|
9
|
+
#
|
|
10
|
+
# @return [String, nil]
|
|
11
|
+
optional :spec, String
|
|
12
|
+
|
|
13
|
+
# @!method initialize(spec: nil)
|
|
14
|
+
# @param spec [String] The consumed OpenAPI specification as a JSON string.
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Cadenya
|
|
4
|
+
module Models
|
|
5
|
+
module ToolSets
|
|
6
|
+
class ConfigOpenAPI < Cadenya::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute method_
|
|
8
|
+
#
|
|
9
|
+
# @return [String, nil]
|
|
10
|
+
optional :method_, String, api_name: :method
|
|
11
|
+
|
|
12
|
+
# @!attribute operation_id
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :operation_id, String, api_name: :operationId
|
|
16
|
+
|
|
17
|
+
# @!attribute path
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :path, String
|
|
21
|
+
|
|
22
|
+
# @!method initialize(method_: nil, operation_id: nil, path: nil)
|
|
23
|
+
# @param method_ [String]
|
|
24
|
+
# @param operation_id [String]
|
|
25
|
+
# @param path [String]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -14,13 +14,19 @@ module Cadenya
|
|
|
14
14
|
# @return [Cadenya::Models::ToolSets::ConfigMcp, nil]
|
|
15
15
|
optional :mcp, -> { Cadenya::ToolSets::ConfigMcp }
|
|
16
16
|
|
|
17
|
-
# @!
|
|
17
|
+
# @!attribute openapi
|
|
18
|
+
#
|
|
19
|
+
# @return [Cadenya::Models::ToolSets::ConfigOpenAPI, nil]
|
|
20
|
+
optional :openapi, -> { Cadenya::ToolSets::ConfigOpenAPI }
|
|
21
|
+
|
|
22
|
+
# @!method initialize(http: nil, mcp: nil, openapi: nil)
|
|
18
23
|
# Config defines the adapter to use for the tool. This is used to determine how
|
|
19
24
|
# the tool is called. For example, if the tool is an HTTP tool, the adapter will
|
|
20
25
|
# be Http. If the tool is an inline tool, the adapter will be Inline.
|
|
21
26
|
#
|
|
22
27
|
# @param http [Cadenya::Models::ToolSets::ConfigHTTP]
|
|
23
28
|
# @param mcp [Cadenya::Models::ToolSets::ConfigMcp]
|
|
29
|
+
# @param openapi [Cadenya::Models::ToolSets::ConfigOpenAPI]
|
|
24
30
|
end
|
|
25
31
|
end
|
|
26
32
|
end
|
|
@@ -16,13 +16,39 @@ module Cadenya
|
|
|
16
16
|
# @return [Cadenya::Models::WorkspaceSpec]
|
|
17
17
|
required :spec, -> { Cadenya::WorkspaceSpec }
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
response_only do
|
|
20
|
+
# @!attribute status
|
|
21
|
+
# Lifecycle status of the workspace. Archived workspaces reject all requests
|
|
22
|
+
# scoped to them. Server-populated.
|
|
23
|
+
#
|
|
24
|
+
# @return [Symbol, Cadenya::Models::Workspace::Status, nil]
|
|
25
|
+
optional :status, enum: -> { Cadenya::Workspace::Status }
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# @!method initialize(metadata:, spec:, status: nil)
|
|
20
29
|
# Some parameter documentations has been truncated, see
|
|
21
30
|
# {Cadenya::Models::Workspace} for more details.
|
|
22
31
|
#
|
|
23
32
|
# @param metadata [Cadenya::Models::AccountResourceMetadata] AccountResourceMetadata is used to represent a resource that is associated to an
|
|
24
33
|
#
|
|
25
34
|
# @param spec [Cadenya::Models::WorkspaceSpec]
|
|
35
|
+
#
|
|
36
|
+
# @param status [Symbol, Cadenya::Models::Workspace::Status] Lifecycle status of the workspace. Archived workspaces reject all
|
|
37
|
+
|
|
38
|
+
# Lifecycle status of the workspace. Archived workspaces reject all requests
|
|
39
|
+
# scoped to them. Server-populated.
|
|
40
|
+
#
|
|
41
|
+
# @see Cadenya::Models::Workspace#status
|
|
42
|
+
module Status
|
|
43
|
+
extend Cadenya::Internal::Type::Enum
|
|
44
|
+
|
|
45
|
+
STATUS_ENABLED = :STATUS_ENABLED
|
|
46
|
+
STATUS_DISABLED = :STATUS_DISABLED
|
|
47
|
+
STATUS_ARCHIVED = :STATUS_ARCHIVED
|
|
48
|
+
|
|
49
|
+
# @!method self.values
|
|
50
|
+
# @return [Array<Symbol>]
|
|
51
|
+
end
|
|
26
52
|
end
|
|
27
53
|
end
|
|
28
54
|
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Cadenya
|
|
4
|
+
module Models
|
|
5
|
+
module WorkspaceAdmin
|
|
6
|
+
# @see Cadenya::Resources::WorkspaceAdmin::Members#add
|
|
7
|
+
class MemberAddParams < 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 email
|
|
17
|
+
# Email address to add (resolve-or-invite). Mutually exclusive with profile_id.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :email, String
|
|
21
|
+
|
|
22
|
+
# @!attribute profile_id
|
|
23
|
+
# An existing account profile to add. Mutually exclusive with email.
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :profile_id, String, api_name: :profileId
|
|
27
|
+
|
|
28
|
+
# @!method initialize(workspace_id:, email: nil, profile_id: nil, request_options: {})
|
|
29
|
+
# @param workspace_id [String]
|
|
30
|
+
#
|
|
31
|
+
# @param email [String] Email address to add (resolve-or-invite). Mutually exclusive with profile_id.
|
|
32
|
+
#
|
|
33
|
+
# @param profile_id [String] An existing account profile to add. Mutually exclusive with email.
|
|
34
|
+
#
|
|
35
|
+
# @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Cadenya
|
|
4
|
+
module Models
|
|
5
|
+
module WorkspaceAdmin
|
|
6
|
+
# @see Cadenya::Resources::WorkspaceAdmin::Members#list
|
|
7
|
+
class MemberListParams < 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 cursor
|
|
17
|
+
# Pagination cursor from previous response
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :cursor, String
|
|
21
|
+
|
|
22
|
+
# @!attribute limit
|
|
23
|
+
# Maximum number of results to return
|
|
24
|
+
#
|
|
25
|
+
# @return [Integer, nil]
|
|
26
|
+
optional :limit, Integer
|
|
27
|
+
|
|
28
|
+
# @!method initialize(workspace_id:, cursor: nil, limit: nil, request_options: {})
|
|
29
|
+
# @param workspace_id [String]
|
|
30
|
+
#
|
|
31
|
+
# @param cursor [String] Pagination cursor from previous response
|
|
32
|
+
#
|
|
33
|
+
# @param limit [Integer] Maximum number of results to return
|
|
34
|
+
#
|
|
35
|
+
# @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Cadenya
|
|
4
|
+
module Models
|
|
5
|
+
module WorkspaceAdmin
|
|
6
|
+
# @see Cadenya::Resources::WorkspaceAdmin::Members#remove
|
|
7
|
+
class MemberRemoveParams < 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 profile_id
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :profile_id, String
|
|
20
|
+
|
|
21
|
+
# @!method initialize(workspace_id:, profile_id:, request_options: {})
|
|
22
|
+
# @param workspace_id [String]
|
|
23
|
+
# @param profile_id [String]
|
|
24
|
+
# @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Cadenya
|
|
4
|
+
module Models
|
|
5
|
+
module WorkspaceAdmin
|
|
6
|
+
# @see Cadenya::Resources::WorkspaceAdmin::Profiles#list
|
|
7
|
+
class ProfileListParams < Cadenya::Internal::Type::BaseModel
|
|
8
|
+
extend Cadenya::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Cadenya::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute cursor
|
|
12
|
+
# Pagination cursor from previous response
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :cursor, String
|
|
16
|
+
|
|
17
|
+
# @!attribute limit
|
|
18
|
+
# Maximum number of results to return
|
|
19
|
+
#
|
|
20
|
+
# @return [Integer, nil]
|
|
21
|
+
optional :limit, Integer
|
|
22
|
+
|
|
23
|
+
# @!attribute query
|
|
24
|
+
# Free-form search over profile name and email. Case-insensitive substring match;
|
|
25
|
+
# empty returns all profiles.
|
|
26
|
+
#
|
|
27
|
+
# @return [String, nil]
|
|
28
|
+
optional :query, String
|
|
29
|
+
|
|
30
|
+
# @!method initialize(cursor: nil, limit: nil, query: nil, request_options: {})
|
|
31
|
+
# Some parameter documentations has been truncated, see
|
|
32
|
+
# {Cadenya::Models::WorkspaceAdmin::ProfileListParams} for more details.
|
|
33
|
+
#
|
|
34
|
+
# @param cursor [String] Pagination cursor from previous response
|
|
35
|
+
#
|
|
36
|
+
# @param limit [Integer] Maximum number of results to return
|
|
37
|
+
#
|
|
38
|
+
# @param query [String] Free-form search over profile name and email. Case-insensitive substring
|
|
39
|
+
#
|
|
40
|
+
# @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Cadenya
|
|
4
|
+
module Models
|
|
5
|
+
# @see Cadenya::Resources::WorkspaceAdmin#archive
|
|
6
|
+
class WorkspaceAdminArchiveParams < Cadenya::Internal::Type::BaseModel
|
|
7
|
+
extend Cadenya::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Cadenya::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute workspace_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :workspace_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(workspace_id:, request_options: {})
|
|
16
|
+
# @param workspace_id [String]
|
|
17
|
+
# @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Cadenya
|
|
4
|
+
module Models
|
|
5
|
+
# @see Cadenya::Resources::WorkspaceAdmin#create
|
|
6
|
+
class WorkspaceAdminCreateParams < Cadenya::Internal::Type::BaseModel
|
|
7
|
+
extend Cadenya::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Cadenya::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute metadata
|
|
11
|
+
# CreateAccountResourceMetadata contains the user-provided fields for creating an
|
|
12
|
+
# account-scoped resource. Read-only fields (id, account_id, profile_id) are
|
|
13
|
+
# excluded since they are set by the server.
|
|
14
|
+
#
|
|
15
|
+
# @return [Cadenya::Models::WorkspaceAdminCreateParams::Metadata]
|
|
16
|
+
required :metadata, -> { Cadenya::WorkspaceAdminCreateParams::Metadata }
|
|
17
|
+
|
|
18
|
+
# @!attribute spec
|
|
19
|
+
#
|
|
20
|
+
# @return [Cadenya::Models::WorkspaceSpec]
|
|
21
|
+
required :spec, -> { Cadenya::WorkspaceSpec }
|
|
22
|
+
|
|
23
|
+
# @!method initialize(metadata:, spec:, request_options: {})
|
|
24
|
+
# Some parameter documentations has been truncated, see
|
|
25
|
+
# {Cadenya::Models::WorkspaceAdminCreateParams} for more details.
|
|
26
|
+
#
|
|
27
|
+
# @param metadata [Cadenya::Models::WorkspaceAdminCreateParams::Metadata] CreateAccountResourceMetadata contains the user-provided fields for creating
|
|
28
|
+
#
|
|
29
|
+
# @param spec [Cadenya::Models::WorkspaceSpec]
|
|
30
|
+
#
|
|
31
|
+
# @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
|
|
32
|
+
|
|
33
|
+
class Metadata < Cadenya::Internal::Type::BaseModel
|
|
34
|
+
# @!attribute name
|
|
35
|
+
# Human-readable name for the resource (e.g., "Production API Key", "Staging
|
|
36
|
+
# Workspace")
|
|
37
|
+
#
|
|
38
|
+
# @return [String]
|
|
39
|
+
required :name, String
|
|
40
|
+
|
|
41
|
+
# @!attribute external_id
|
|
42
|
+
# External ID for the resource (e.g., a workflow ID from an external system)
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
optional :external_id, String, api_name: :externalId
|
|
46
|
+
|
|
47
|
+
# @!attribute labels
|
|
48
|
+
# Arbitrary key-value pairs for categorization and filtering Examples:
|
|
49
|
+
# {"environment": "production", "team": "platform", "version": "v2"}
|
|
50
|
+
#
|
|
51
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
52
|
+
optional :labels, Cadenya::Internal::Type::HashOf[String]
|
|
53
|
+
|
|
54
|
+
# @!method initialize(name:, external_id: nil, labels: nil)
|
|
55
|
+
# Some parameter documentations has been truncated, see
|
|
56
|
+
# {Cadenya::Models::WorkspaceAdminCreateParams::Metadata} for more details.
|
|
57
|
+
#
|
|
58
|
+
# CreateAccountResourceMetadata contains the user-provided fields for creating an
|
|
59
|
+
# account-scoped resource. Read-only fields (id, account_id, profile_id) are
|
|
60
|
+
# excluded since they are set by the server.
|
|
61
|
+
#
|
|
62
|
+
# @param name [String] Human-readable name for the resource (e.g., "Production API Key", "Staging Works
|
|
63
|
+
#
|
|
64
|
+
# @param external_id [String] External ID for the resource (e.g., a workflow ID from an external system)
|
|
65
|
+
#
|
|
66
|
+
# @param labels [Hash{Symbol=>String}] Arbitrary key-value pairs for categorization and filtering
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Cadenya
|
|
4
|
+
module Models
|
|
5
|
+
# @see Cadenya::Resources::WorkspaceAdmin#list
|
|
6
|
+
class WorkspaceAdminListParams < Cadenya::Internal::Type::BaseModel
|
|
7
|
+
extend Cadenya::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Cadenya::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute cursor
|
|
11
|
+
# Pagination cursor from previous response
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :cursor, String
|
|
15
|
+
|
|
16
|
+
# @!attribute include_archived
|
|
17
|
+
# When true, archived workspaces are included in the results. Defaults to false
|
|
18
|
+
# (active workspaces only).
|
|
19
|
+
#
|
|
20
|
+
# @return [Boolean, nil]
|
|
21
|
+
optional :include_archived, Cadenya::Internal::Type::Boolean
|
|
22
|
+
|
|
23
|
+
# @!attribute limit
|
|
24
|
+
# Maximum number of results to return
|
|
25
|
+
#
|
|
26
|
+
# @return [Integer, nil]
|
|
27
|
+
optional :limit, Integer
|
|
28
|
+
|
|
29
|
+
# @!method initialize(cursor: nil, include_archived: nil, limit: nil, request_options: {})
|
|
30
|
+
# Some parameter documentations has been truncated, see
|
|
31
|
+
# {Cadenya::Models::WorkspaceAdminListParams} for more details.
|
|
32
|
+
#
|
|
33
|
+
# @param cursor [String] Pagination cursor from previous response
|
|
34
|
+
#
|
|
35
|
+
# @param include_archived [Boolean] When true, archived workspaces are included in the results. Defaults to
|
|
36
|
+
#
|
|
37
|
+
# @param limit [Integer] Maximum number of results to return
|
|
38
|
+
#
|
|
39
|
+
# @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Cadenya
|
|
4
|
+
module Models
|
|
5
|
+
# @see Cadenya::Resources::WorkspaceAdmin#retrieve
|
|
6
|
+
class WorkspaceAdminRetrieveParams < Cadenya::Internal::Type::BaseModel
|
|
7
|
+
extend Cadenya::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Cadenya::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute workspace_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :workspace_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(workspace_id:, request_options: {})
|
|
16
|
+
# @param workspace_id [String]
|
|
17
|
+
# @param request_options [Cadenya::RequestOptions, Hash{Symbol=>Object}]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|