scalar_api_ruby 0.2.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 +71 -0
- data/README.md +5 -3
- data/SKILL.md +3 -1
- data/api.md +20 -181
- data/lib/scalar_api_ruby/client.rb +14 -5
- data/lib/scalar_api_ruby/errors.rb +22 -0
- data/lib/scalar_api_ruby/file_part.rb +13 -1
- data/lib/scalar_api_ruby/internal/transport/base_client.rb +187 -42
- data/lib/scalar_api_ruby/internal/transport/connection_pool.rb +160 -0
- data/lib/scalar_api_ruby/internal/transport/pooled_net_requester.rb +77 -10
- data/lib/scalar_api_ruby/internal/type/base_model.rb +70 -18
- data/lib/scalar_api_ruby/internal/type/boolean.rb +3 -1
- data/lib/scalar_api_ruby/internal/type/converter.rb +13 -3
- data/lib/scalar_api_ruby/internal/type/enum.rb +9 -4
- data/lib/scalar_api_ruby/internal/type/file_input.rb +8 -2
- data/lib/scalar_api_ruby/internal/type/hash_of.rb +3 -1
- data/lib/scalar_api_ruby/internal/type/union.rb +21 -7
- data/lib/scalar_api_ruby/internal/type/unknown.rb +3 -1
- data/lib/scalar_api_ruby/internal/util.rb +277 -17
- data/lib/scalar_api_ruby/internal.rb +5 -1
- data/lib/scalar_api_ruby/models/access_group_create_params.rb +3 -3
- data/lib/scalar_api_ruby/models/access_group_create_response.rb +6 -6
- data/lib/scalar_api_ruby/models/access_group_retrieve_response.rb +6 -6
- data/lib/scalar_api_ruby/models/api_document.rb +3 -3
- data/lib/scalar_api_ruby/models/docs_project.rb +3 -3
- data/lib/scalar_api_ruby/models/github_project.rb +16 -4
- data/lib/scalar_api_ruby/models/mcp/mcp_server.rb +23 -18
- data/lib/scalar_api_ruby/models/mcp/server_create_response.rb +1 -7
- data/lib/scalar_api_ruby/models/mcp/server_list_response.rb +72 -1
- data/lib/scalar_api_ruby/models/sdk.rb +13 -7
- data/lib/scalar_api_ruby/models/sdk_build_params.rb +7 -1
- data/lib/scalar_api_ruby/models/sdk_create_params.rb +14 -7
- data/lib/scalar_api_ruby/models/sdk_update_params.rb +13 -3
- data/lib/scalar_api_ruby/models/sdk_version.rb +5 -34
- data/lib/scalar_api_ruby/models/sdks/repository_link_params.rb +33 -2
- data/lib/scalar_api_ruby/models/sdks/repository_update_publishing_params.rb +31 -1
- data/lib/scalar_api_ruby/models/sdks/version_create_params.rb +13 -7
- data/lib/scalar_api_ruby/models.rb +28 -31
- data/lib/scalar_api_ruby/request_options.rb +13 -5
- data/lib/scalar_api_ruby/resources/access_groups.rb +1 -1
- data/lib/scalar_api_ruby/resources/mcp/servers.rb +7 -74
- data/lib/scalar_api_ruby/resources/registry.rb +44 -16
- data/lib/scalar_api_ruby/resources/rules.rb +16 -8
- data/lib/scalar_api_ruby/resources/schemas/access_group.rb +6 -2
- data/lib/scalar_api_ruby/resources/schemas/version.rb +18 -8
- data/lib/scalar_api_ruby/resources/schemas.rb +6 -2
- data/lib/scalar_api_ruby/resources/sdks/repositories.rb +38 -6
- data/lib/scalar_api_ruby/resources/sdks/versions.rb +22 -5
- data/lib/scalar_api_ruby/resources/sdks.rb +45 -10
- data/lib/scalar_api_ruby/resources/themes.rb +1 -3
- data/lib/scalar_api_ruby/version.rb +1 -1
- data/lib/scalar_api_ruby.rb +4 -19
- data/rbi/scalar_api_ruby/client.rbi +5 -0
- data/rbi/scalar_api_ruby/errors.rbi +15 -27
- data/rbi/scalar_api_ruby/internal/transport/base_client.rbi +45 -54
- data/rbi/scalar_api_ruby/internal/transport/connection_pool.rbi +44 -0
- data/rbi/scalar_api_ruby/internal/transport/pooled_net_requester.rbi +14 -14
- data/rbi/scalar_api_ruby/internal/type/base_model.rbi +28 -35
- data/rbi/scalar_api_ruby/internal/type/converter.rbi +9 -30
- data/rbi/scalar_api_ruby/internal/type/enum.rbi +1 -5
- data/rbi/scalar_api_ruby/internal/type/request_parameters.rbi +1 -3
- data/rbi/scalar_api_ruby/internal/type/union.rbi +2 -9
- data/rbi/scalar_api_ruby/internal/util.rbi +101 -112
- data/rbi/scalar_api_ruby/internal.rbi +1 -2
- data/rbi/scalar_api_ruby/models/access_group_create_params.rbi +4 -4
- data/rbi/scalar_api_ruby/models/access_group_create_response.rbi +6 -6
- data/rbi/scalar_api_ruby/models/access_group_retrieve_response.rbi +6 -6
- data/rbi/scalar_api_ruby/models/api_document.rbi +3 -3
- data/rbi/scalar_api_ruby/models/docs_project.rbi +3 -3
- data/rbi/scalar_api_ruby/models/github_project.rbi +18 -6
- data/rbi/scalar_api_ruby/models/mcp/mcp_server.rbi +22 -16
- data/rbi/scalar_api_ruby/models/mcp/server_create_response.rbi +5 -19
- data/rbi/scalar_api_ruby/models/mcp/server_list_response.rbi +116 -1
- data/rbi/scalar_api_ruby/models/sdk.rbi +15 -9
- data/rbi/scalar_api_ruby/models/sdk_build_params.rbi +15 -1
- data/rbi/scalar_api_ruby/models/sdk_create_params.rbi +19 -6
- data/rbi/scalar_api_ruby/models/sdk_update_params.rbi +9 -4
- data/rbi/scalar_api_ruby/models/sdk_version.rbi +7 -52
- data/rbi/scalar_api_ruby/models/sdks/repository_link_params.rbi +59 -0
- data/rbi/scalar_api_ruby/models/sdks/repository_update_publishing_params.rbi +45 -0
- data/rbi/scalar_api_ruby/models/sdks/version_create_params.rbi +16 -6
- data/rbi/scalar_api_ruby/request_options.rbi +6 -8
- data/rbi/scalar_api_ruby/resources/access_groups.rbi +1 -1
- data/rbi/scalar_api_ruby/resources/mcp/servers.rbi +6 -51
- data/rbi/scalar_api_ruby/resources/sdks/repositories.rbi +28 -1
- data/rbi/scalar_api_ruby/resources/sdks/versions.rbi +21 -4
- data/rbi/scalar_api_ruby/resources/sdks.rbi +40 -10
- data/sig/scalar_api_ruby/client.rbs +2 -0
- data/sig/scalar_api_ruby/errors.rbs +6 -0
- data/sig/scalar_api_ruby/internal/transport/base_client.rbs +19 -1
- data/sig/scalar_api_ruby/internal/transport/connection_pool.rbs +19 -0
- data/sig/scalar_api_ruby/internal/transport/pooled_net_requester.rbs +11 -1
- data/sig/scalar_api_ruby/internal/type/base_model.rbs +4 -0
- data/sig/scalar_api_ruby/internal/util.rbs +29 -1
- data/sig/scalar_api_ruby/models/access_group_create_params.rbs +5 -5
- data/sig/scalar_api_ruby/models/access_group_create_response.rbs +8 -8
- data/sig/scalar_api_ruby/models/access_group_retrieve_response.rbs +8 -8
- data/sig/scalar_api_ruby/models/api_document.rbs +4 -4
- data/sig/scalar_api_ruby/models/docs_project.rbs +4 -4
- data/sig/scalar_api_ruby/models/github_project.rbs +17 -7
- data/sig/scalar_api_ruby/models/mcp/mcp_server.rbs +22 -17
- data/sig/scalar_api_ruby/models/mcp/server_create_response.rbs +3 -15
- data/sig/scalar_api_ruby/models/mcp/server_list_response.rbs +66 -1
- data/sig/scalar_api_ruby/models/sdk.rbs +13 -8
- data/sig/scalar_api_ruby/models/sdk_build_params.rbs +7 -0
- data/sig/scalar_api_ruby/models/sdk_create_params.rbs +9 -5
- data/sig/scalar_api_ruby/models/sdk_update_params.rbs +6 -4
- data/sig/scalar_api_ruby/models/sdk_version.rbs +7 -37
- data/sig/scalar_api_ruby/models/sdks/repository_link_params.rbs +21 -1
- data/sig/scalar_api_ruby/models/sdks/repository_update_publishing_params.rbs +36 -1
- data/sig/scalar_api_ruby/models/sdks/version_create_params.rbs +7 -5
- data/sig/scalar_api_ruby/resources/access_groups.rbs +1 -1
- data/sig/scalar_api_ruby/resources/mcp/servers.rbs +1 -20
- data/sig/scalar_api_ruby/resources/sdks/repositories.rbs +6 -0
- data/sig/scalar_api_ruby/resources/sdks/versions.rbs +1 -1
- data/sig/scalar_api_ruby/resources/sdks.rbs +3 -2
- metadata +8 -73
- data/lib/scalar_api_ruby/models/mcp/mcp_installation.rb +0 -75
- data/lib/scalar_api_ruby/models/mcp/server_delete_params.rb +0 -22
- data/lib/scalar_api_ruby/models/mcp/server_retrieve_params.rb +0 -22
- data/lib/scalar_api_ruby/models/mcp/server_update_params.rb +0 -52
- data/lib/scalar_api_ruby/models/mcp/servers/installation_create_access_group_params.rb +0 -36
- data/lib/scalar_api_ruby/models/mcp/servers/installation_create_params.rb +0 -44
- data/lib/scalar_api_ruby/models/mcp/servers/installation_delete_access_group_params.rb +0 -36
- data/lib/scalar_api_ruby/models/mcp/servers/installation_delete_params.rb +0 -30
- data/lib/scalar_api_ruby/models/mcp/servers/installation_list_params.rb +0 -24
- data/lib/scalar_api_ruby/models/mcp/servers/installation_list_response.rb +0 -13
- data/lib/scalar_api_ruby/models/mcp/servers/installation_retrieve_params.rb +0 -30
- data/lib/scalar_api_ruby/models/mcp/servers/installation_update_params.rb +0 -68
- data/lib/scalar_api_ruby/models/mcp/servers/mcp_installation_list_item.rb +0 -43
- data/lib/scalar_api_ruby/resources/mcp/servers/installations.rb +0 -200
- data/rbi/scalar_api_ruby/models/mcp/mcp_installation.rbi +0 -93
- data/rbi/scalar_api_ruby/models/mcp/server_delete_params.rbi +0 -37
- data/rbi/scalar_api_ruby/models/mcp/server_retrieve_params.rbi +0 -37
- data/rbi/scalar_api_ruby/models/mcp/server_update_params.rbi +0 -88
- data/rbi/scalar_api_ruby/models/mcp/servers/installation_create_access_group_params.rbi +0 -60
- data/rbi/scalar_api_ruby/models/mcp/servers/installation_create_params.rbi +0 -69
- data/rbi/scalar_api_ruby/models/mcp/servers/installation_delete_access_group_params.rbi +0 -60
- data/rbi/scalar_api_ruby/models/mcp/servers/installation_delete_params.rbi +0 -50
- data/rbi/scalar_api_ruby/models/mcp/servers/installation_list_params.rbi +0 -42
- data/rbi/scalar_api_ruby/models/mcp/servers/installation_list_response.rbi +0 -17
- data/rbi/scalar_api_ruby/models/mcp/servers/installation_retrieve_params.rbi +0 -50
- data/rbi/scalar_api_ruby/models/mcp/servers/installation_update_params.rbi +0 -102
- data/rbi/scalar_api_ruby/models/mcp/servers/mcp_installation_list_item.rbi +0 -60
- data/rbi/scalar_api_ruby/resources/mcp/servers/installations.rbi +0 -140
- data/sig/scalar_api_ruby/models/mcp/mcp_installation.rbs +0 -69
- data/sig/scalar_api_ruby/models/mcp/server_delete_params.rbs +0 -22
- data/sig/scalar_api_ruby/models/mcp/server_retrieve_params.rbs +0 -22
- data/sig/scalar_api_ruby/models/mcp/server_update_params.rbs +0 -63
- data/sig/scalar_api_ruby/models/mcp/servers/installation_create_access_group_params.rbs +0 -36
- data/sig/scalar_api_ruby/models/mcp/servers/installation_create_params.rbs +0 -47
- data/sig/scalar_api_ruby/models/mcp/servers/installation_delete_access_group_params.rbs +0 -36
- data/sig/scalar_api_ruby/models/mcp/servers/installation_delete_params.rbs +0 -32
- data/sig/scalar_api_ruby/models/mcp/servers/installation_list_params.rbs +0 -27
- data/sig/scalar_api_ruby/models/mcp/servers/installation_list_response.rbs +0 -12
- data/sig/scalar_api_ruby/models/mcp/servers/installation_retrieve_params.rbs +0 -32
- data/sig/scalar_api_ruby/models/mcp/servers/installation_update_params.rbs +0 -73
- data/sig/scalar_api_ruby/models/mcp/servers/mcp_installation_list_item.rbs +0 -44
- data/sig/scalar_api_ruby/resources/mcp/servers/installations.rbs +0 -62
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Scalar
|
|
4
|
-
module Models
|
|
5
|
-
module Mcp
|
|
6
|
-
module Servers
|
|
7
|
-
class InstallationUpdateParams < Scalar::Internal::Type::BaseModel
|
|
8
|
-
extend Scalar::Internal::Type::RequestParameters::Converter
|
|
9
|
-
include Scalar::Internal::Type::RequestParameters
|
|
10
|
-
|
|
11
|
-
OrHash =
|
|
12
|
-
T.type_alias do
|
|
13
|
-
T.any(
|
|
14
|
-
Scalar::Mcp::Servers::InstallationUpdateParams,
|
|
15
|
-
Scalar::Internal::AnyHash
|
|
16
|
-
)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
sig { returns(String) }
|
|
20
|
-
attr_accessor :id
|
|
21
|
-
|
|
22
|
-
sig { returns(String) }
|
|
23
|
-
attr_accessor :installation_id
|
|
24
|
-
|
|
25
|
-
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
26
|
-
attr_reader :document_auth
|
|
27
|
-
|
|
28
|
-
sig { params(document_auth: T::Hash[Symbol, T.anything]).void }
|
|
29
|
-
attr_writer :document_auth
|
|
30
|
-
|
|
31
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
32
|
-
attr_reader :is_private
|
|
33
|
-
|
|
34
|
-
sig { params(is_private: T::Boolean).void }
|
|
35
|
-
attr_writer :is_private
|
|
36
|
-
|
|
37
|
-
sig { returns(T.nilable(String)) }
|
|
38
|
-
attr_accessor :login_portal_uid
|
|
39
|
-
|
|
40
|
-
sig { returns(T.nilable(String)) }
|
|
41
|
-
attr_accessor :mcp_version
|
|
42
|
-
|
|
43
|
-
sig { returns(T.nilable(String)) }
|
|
44
|
-
attr_reader :name
|
|
45
|
-
|
|
46
|
-
sig { params(name: String).void }
|
|
47
|
-
attr_writer :name
|
|
48
|
-
|
|
49
|
-
sig { returns(T.nilable(String)) }
|
|
50
|
-
attr_reader :slug
|
|
51
|
-
|
|
52
|
-
sig { params(slug: String).void }
|
|
53
|
-
attr_writer :slug
|
|
54
|
-
|
|
55
|
-
sig do
|
|
56
|
-
params(
|
|
57
|
-
id: String,
|
|
58
|
-
installation_id: String,
|
|
59
|
-
document_auth: T::Hash[Symbol, T.anything],
|
|
60
|
-
is_private: T::Boolean,
|
|
61
|
-
login_portal_uid: T.nilable(String),
|
|
62
|
-
mcp_version: T.nilable(String),
|
|
63
|
-
name: String,
|
|
64
|
-
slug: String,
|
|
65
|
-
request_options: Scalar::RequestOptions::OrHash
|
|
66
|
-
).returns(T.attached_class)
|
|
67
|
-
end
|
|
68
|
-
def self.new(
|
|
69
|
-
id:,
|
|
70
|
-
installation_id:,
|
|
71
|
-
document_auth: nil,
|
|
72
|
-
is_private: nil,
|
|
73
|
-
login_portal_uid: nil,
|
|
74
|
-
mcp_version: nil,
|
|
75
|
-
name: nil,
|
|
76
|
-
slug: nil,
|
|
77
|
-
request_options: {}
|
|
78
|
-
)
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
sig do
|
|
82
|
-
override.returns(
|
|
83
|
-
{
|
|
84
|
-
id: String,
|
|
85
|
-
installation_id: String,
|
|
86
|
-
document_auth: T::Hash[Symbol, T.anything],
|
|
87
|
-
is_private: T::Boolean,
|
|
88
|
-
login_portal_uid: T.nilable(String),
|
|
89
|
-
mcp_version: T.nilable(String),
|
|
90
|
-
name: String,
|
|
91
|
-
slug: String,
|
|
92
|
-
request_options: Scalar::RequestOptions
|
|
93
|
-
}
|
|
94
|
-
)
|
|
95
|
-
end
|
|
96
|
-
def to_hash
|
|
97
|
-
end
|
|
98
|
-
end
|
|
99
|
-
end
|
|
100
|
-
end
|
|
101
|
-
end
|
|
102
|
-
end
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Scalar
|
|
4
|
-
module Models
|
|
5
|
-
module Mcp
|
|
6
|
-
module Servers
|
|
7
|
-
class McpInstallationListItem < Scalar::Internal::Type::BaseModel
|
|
8
|
-
OrHash =
|
|
9
|
-
T.type_alias do
|
|
10
|
-
T.any(
|
|
11
|
-
Scalar::Mcp::Servers::McpInstallationListItem,
|
|
12
|
-
Scalar::Internal::AnyHash
|
|
13
|
-
)
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
sig { returns(String) }
|
|
17
|
-
attr_accessor :id
|
|
18
|
-
|
|
19
|
-
sig { returns(T::Boolean) }
|
|
20
|
-
attr_accessor :is_private
|
|
21
|
-
|
|
22
|
-
sig { returns(T.nilable(String)) }
|
|
23
|
-
attr_accessor :mcp_version
|
|
24
|
-
|
|
25
|
-
sig { returns(String) }
|
|
26
|
-
attr_accessor :name
|
|
27
|
-
|
|
28
|
-
sig { returns(String) }
|
|
29
|
-
attr_accessor :slug
|
|
30
|
-
|
|
31
|
-
sig do
|
|
32
|
-
params(
|
|
33
|
-
id: String,
|
|
34
|
-
is_private: T::Boolean,
|
|
35
|
-
mcp_version: T.nilable(String),
|
|
36
|
-
name: String,
|
|
37
|
-
slug: String
|
|
38
|
-
).returns(T.attached_class)
|
|
39
|
-
end
|
|
40
|
-
def self.new(id:, is_private:, mcp_version:, name:, slug:)
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
sig do
|
|
44
|
-
override.returns(
|
|
45
|
-
{
|
|
46
|
-
id: String,
|
|
47
|
-
is_private: T::Boolean,
|
|
48
|
-
mcp_version: T.nilable(String),
|
|
49
|
-
name: String,
|
|
50
|
-
slug: String
|
|
51
|
-
}
|
|
52
|
-
)
|
|
53
|
-
end
|
|
54
|
-
def to_hash
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Scalar
|
|
4
|
-
module Resources
|
|
5
|
-
class Mcp
|
|
6
|
-
class Servers
|
|
7
|
-
# MCP
|
|
8
|
-
class Installations
|
|
9
|
-
# Create an installation of an MCP server. `documentAuth` holds the credentials
|
|
10
|
-
# the server presents to the upstream API and is never returned.
|
|
11
|
-
sig do
|
|
12
|
-
params(
|
|
13
|
-
id: String,
|
|
14
|
-
document_auth: T::Hash[Symbol, T.anything],
|
|
15
|
-
name: String,
|
|
16
|
-
slug: String,
|
|
17
|
-
request_options: Scalar::RequestOptions::OrHash
|
|
18
|
-
).returns(Scalar::Mcp::McpInstallation)
|
|
19
|
-
end
|
|
20
|
-
def create(id, document_auth:, name:, slug: nil, request_options: {})
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
# Get a single installation of an MCP server.
|
|
24
|
-
sig do
|
|
25
|
-
params(
|
|
26
|
-
installation_id: String,
|
|
27
|
-
id: String,
|
|
28
|
-
request_options: Scalar::RequestOptions::OrHash
|
|
29
|
-
).returns(Scalar::Mcp::McpInstallation)
|
|
30
|
-
end
|
|
31
|
-
def retrieve(installation_id, id:, request_options: {})
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
# Update an installation. Set `isPrivate` and add access groups to put it behind a
|
|
35
|
-
# login.
|
|
36
|
-
sig do
|
|
37
|
-
params(
|
|
38
|
-
installation_id: String,
|
|
39
|
-
id: String,
|
|
40
|
-
document_auth: T::Hash[Symbol, T.anything],
|
|
41
|
-
is_private: T::Boolean,
|
|
42
|
-
login_portal_uid: T.nilable(String),
|
|
43
|
-
mcp_version: T.nilable(String),
|
|
44
|
-
name: String,
|
|
45
|
-
slug: String,
|
|
46
|
-
request_options: Scalar::RequestOptions::OrHash
|
|
47
|
-
).returns(Scalar::Mcp::McpInstallation)
|
|
48
|
-
end
|
|
49
|
-
def update(
|
|
50
|
-
# Path param
|
|
51
|
-
installation_id,
|
|
52
|
-
# Path param
|
|
53
|
-
id:,
|
|
54
|
-
# Body param
|
|
55
|
-
document_auth: nil,
|
|
56
|
-
# Body param
|
|
57
|
-
is_private: nil,
|
|
58
|
-
# Body param
|
|
59
|
-
login_portal_uid: nil,
|
|
60
|
-
# Body param
|
|
61
|
-
mcp_version: nil,
|
|
62
|
-
# Body param
|
|
63
|
-
name: nil,
|
|
64
|
-
# Body param
|
|
65
|
-
slug: nil,
|
|
66
|
-
request_options: {}
|
|
67
|
-
)
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
# List the installations of an MCP server. An installation is what an MCP client
|
|
71
|
-
# connects to.
|
|
72
|
-
sig do
|
|
73
|
-
params(
|
|
74
|
-
id: String,
|
|
75
|
-
request_options: Scalar::RequestOptions::OrHash
|
|
76
|
-
).returns(T::Array[Scalar::Mcp::Servers::McpInstallationListItem])
|
|
77
|
-
end
|
|
78
|
-
def list(id, request_options: {})
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
# Delete an installation of an MCP server.
|
|
82
|
-
sig do
|
|
83
|
-
params(
|
|
84
|
-
installation_id: String,
|
|
85
|
-
id: String,
|
|
86
|
-
request_options: Scalar::RequestOptions::OrHash
|
|
87
|
-
).returns(T.anything)
|
|
88
|
-
end
|
|
89
|
-
def delete(installation_id, id:, request_options: {})
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
# Let an access group reach a private installation.
|
|
93
|
-
sig do
|
|
94
|
-
params(
|
|
95
|
-
installation_id: String,
|
|
96
|
-
id: String,
|
|
97
|
-
access_group_uid: String,
|
|
98
|
-
request_options: Scalar::RequestOptions::OrHash
|
|
99
|
-
).returns(T.anything)
|
|
100
|
-
end
|
|
101
|
-
def create_access_group(
|
|
102
|
-
# Path param
|
|
103
|
-
installation_id,
|
|
104
|
-
# Path param
|
|
105
|
-
id:,
|
|
106
|
-
# Body param
|
|
107
|
-
access_group_uid:,
|
|
108
|
-
request_options: {}
|
|
109
|
-
)
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
# Stop an access group reaching a private installation.
|
|
113
|
-
sig do
|
|
114
|
-
params(
|
|
115
|
-
installation_id: String,
|
|
116
|
-
id: String,
|
|
117
|
-
access_group_uid: String,
|
|
118
|
-
request_options: Scalar::RequestOptions::OrHash
|
|
119
|
-
).returns(T.anything)
|
|
120
|
-
end
|
|
121
|
-
def delete_access_group(
|
|
122
|
-
# Path param
|
|
123
|
-
installation_id,
|
|
124
|
-
# Path param
|
|
125
|
-
id:,
|
|
126
|
-
# Body param
|
|
127
|
-
access_group_uid:,
|
|
128
|
-
request_options: {}
|
|
129
|
-
)
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
# @api private
|
|
133
|
-
sig { params(client: Scalar::Client).returns(T.attached_class) }
|
|
134
|
-
def self.new(client:)
|
|
135
|
-
end
|
|
136
|
-
end
|
|
137
|
-
end
|
|
138
|
-
end
|
|
139
|
-
end
|
|
140
|
-
end
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
module Scalar
|
|
2
|
-
module Models
|
|
3
|
-
class McpInstallation = Mcp::McpInstallation
|
|
4
|
-
|
|
5
|
-
module Mcp
|
|
6
|
-
type mcp_installation =
|
|
7
|
-
{
|
|
8
|
-
id: String,
|
|
9
|
-
access_groups: ::Array[String],
|
|
10
|
-
credential_redaction_enabled: bool,
|
|
11
|
-
is_private: bool,
|
|
12
|
-
login_portal_uid: String?,
|
|
13
|
-
mcp_server_id: String,
|
|
14
|
-
mcp_version: String?,
|
|
15
|
-
name: String,
|
|
16
|
-
pii_redaction_enabled: bool,
|
|
17
|
-
slug: String
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
class McpInstallation < Scalar::Internal::Type::BaseModel
|
|
21
|
-
attr_accessor id: String
|
|
22
|
-
|
|
23
|
-
attr_accessor access_groups: ::Array[String]
|
|
24
|
-
|
|
25
|
-
attr_accessor credential_redaction_enabled: bool
|
|
26
|
-
|
|
27
|
-
attr_accessor is_private: bool
|
|
28
|
-
|
|
29
|
-
attr_accessor login_portal_uid: String?
|
|
30
|
-
|
|
31
|
-
attr_accessor mcp_server_id: String
|
|
32
|
-
|
|
33
|
-
attr_accessor mcp_version: String?
|
|
34
|
-
|
|
35
|
-
attr_accessor name: String
|
|
36
|
-
|
|
37
|
-
attr_accessor pii_redaction_enabled: bool
|
|
38
|
-
|
|
39
|
-
attr_accessor slug: String
|
|
40
|
-
|
|
41
|
-
def initialize: (
|
|
42
|
-
id: String,
|
|
43
|
-
access_groups: ::Array[String],
|
|
44
|
-
credential_redaction_enabled: bool,
|
|
45
|
-
is_private: bool,
|
|
46
|
-
login_portal_uid: String?,
|
|
47
|
-
mcp_server_id: String,
|
|
48
|
-
mcp_version: String?,
|
|
49
|
-
name: String,
|
|
50
|
-
pii_redaction_enabled: bool,
|
|
51
|
-
slug: String
|
|
52
|
-
) -> void
|
|
53
|
-
|
|
54
|
-
def to_hash: -> {
|
|
55
|
-
id: String,
|
|
56
|
-
access_groups: ::Array[String],
|
|
57
|
-
credential_redaction_enabled: bool,
|
|
58
|
-
is_private: bool,
|
|
59
|
-
login_portal_uid: String?,
|
|
60
|
-
mcp_server_id: String,
|
|
61
|
-
mcp_version: String?,
|
|
62
|
-
name: String,
|
|
63
|
-
pii_redaction_enabled: bool,
|
|
64
|
-
slug: String
|
|
65
|
-
}
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|
|
69
|
-
end
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
module Scalar
|
|
2
|
-
module Models
|
|
3
|
-
module Mcp
|
|
4
|
-
type server_delete_params =
|
|
5
|
-
{ id: String } & Scalar::Internal::Type::request_parameters
|
|
6
|
-
|
|
7
|
-
class ServerDeleteParams < Scalar::Internal::Type::BaseModel
|
|
8
|
-
extend Scalar::Internal::Type::RequestParameters::Converter
|
|
9
|
-
include Scalar::Internal::Type::RequestParameters
|
|
10
|
-
|
|
11
|
-
attr_accessor id: String
|
|
12
|
-
|
|
13
|
-
def initialize: (
|
|
14
|
-
id: String,
|
|
15
|
-
?request_options: Scalar::request_opts
|
|
16
|
-
) -> void
|
|
17
|
-
|
|
18
|
-
def to_hash: -> { id: String, request_options: Scalar::RequestOptions }
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
module Scalar
|
|
2
|
-
module Models
|
|
3
|
-
module Mcp
|
|
4
|
-
type server_retrieve_params =
|
|
5
|
-
{ id: String } & Scalar::Internal::Type::request_parameters
|
|
6
|
-
|
|
7
|
-
class ServerRetrieveParams < Scalar::Internal::Type::BaseModel
|
|
8
|
-
extend Scalar::Internal::Type::RequestParameters::Converter
|
|
9
|
-
include Scalar::Internal::Type::RequestParameters
|
|
10
|
-
|
|
11
|
-
attr_accessor id: String
|
|
12
|
-
|
|
13
|
-
def initialize: (
|
|
14
|
-
id: String,
|
|
15
|
-
?request_options: Scalar::request_opts
|
|
16
|
-
) -> void
|
|
17
|
-
|
|
18
|
-
def to_hash: -> { id: String, request_options: Scalar::RequestOptions }
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
module Scalar
|
|
2
|
-
module Models
|
|
3
|
-
module Mcp
|
|
4
|
-
type server_update_params =
|
|
5
|
-
{
|
|
6
|
-
id: String,
|
|
7
|
-
auto_add_operations: bool,
|
|
8
|
-
docs_pages: ::Array[String],
|
|
9
|
-
name: String,
|
|
10
|
-
operations: ::Array[String],
|
|
11
|
-
slug: String
|
|
12
|
-
}
|
|
13
|
-
& Scalar::Internal::Type::request_parameters
|
|
14
|
-
|
|
15
|
-
class ServerUpdateParams < Scalar::Internal::Type::BaseModel
|
|
16
|
-
extend Scalar::Internal::Type::RequestParameters::Converter
|
|
17
|
-
include Scalar::Internal::Type::RequestParameters
|
|
18
|
-
|
|
19
|
-
attr_accessor id: String
|
|
20
|
-
|
|
21
|
-
attr_reader auto_add_operations: bool?
|
|
22
|
-
|
|
23
|
-
def auto_add_operations=: (bool) -> bool
|
|
24
|
-
|
|
25
|
-
attr_reader docs_pages: ::Array[String]?
|
|
26
|
-
|
|
27
|
-
def docs_pages=: (::Array[String]) -> ::Array[String]
|
|
28
|
-
|
|
29
|
-
attr_reader name: String?
|
|
30
|
-
|
|
31
|
-
def name=: (String) -> String
|
|
32
|
-
|
|
33
|
-
attr_reader operations: ::Array[String]?
|
|
34
|
-
|
|
35
|
-
def operations=: (::Array[String]) -> ::Array[String]
|
|
36
|
-
|
|
37
|
-
attr_reader slug: String?
|
|
38
|
-
|
|
39
|
-
def slug=: (String) -> String
|
|
40
|
-
|
|
41
|
-
def initialize: (
|
|
42
|
-
id: String,
|
|
43
|
-
?auto_add_operations: bool,
|
|
44
|
-
?docs_pages: ::Array[String],
|
|
45
|
-
?name: String,
|
|
46
|
-
?operations: ::Array[String],
|
|
47
|
-
?slug: String,
|
|
48
|
-
?request_options: Scalar::request_opts
|
|
49
|
-
) -> void
|
|
50
|
-
|
|
51
|
-
def to_hash: -> {
|
|
52
|
-
id: String,
|
|
53
|
-
auto_add_operations: bool,
|
|
54
|
-
docs_pages: ::Array[String],
|
|
55
|
-
name: String,
|
|
56
|
-
operations: ::Array[String],
|
|
57
|
-
slug: String,
|
|
58
|
-
request_options: Scalar::RequestOptions
|
|
59
|
-
}
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
end
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
module Scalar
|
|
2
|
-
module Models
|
|
3
|
-
module Mcp
|
|
4
|
-
module Servers
|
|
5
|
-
type installation_create_access_group_params =
|
|
6
|
-
{ id: String, installation_id: String, access_group_uid: String }
|
|
7
|
-
& Scalar::Internal::Type::request_parameters
|
|
8
|
-
|
|
9
|
-
class InstallationCreateAccessGroupParams < Scalar::Internal::Type::BaseModel
|
|
10
|
-
extend Scalar::Internal::Type::RequestParameters::Converter
|
|
11
|
-
include Scalar::Internal::Type::RequestParameters
|
|
12
|
-
|
|
13
|
-
attr_accessor id: String
|
|
14
|
-
|
|
15
|
-
attr_accessor installation_id: String
|
|
16
|
-
|
|
17
|
-
attr_accessor access_group_uid: String
|
|
18
|
-
|
|
19
|
-
def initialize: (
|
|
20
|
-
id: String,
|
|
21
|
-
installation_id: String,
|
|
22
|
-
access_group_uid: String,
|
|
23
|
-
?request_options: Scalar::request_opts
|
|
24
|
-
) -> void
|
|
25
|
-
|
|
26
|
-
def to_hash: -> {
|
|
27
|
-
id: String,
|
|
28
|
-
installation_id: String,
|
|
29
|
-
access_group_uid: String,
|
|
30
|
-
request_options: Scalar::RequestOptions
|
|
31
|
-
}
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
end
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
module Scalar
|
|
2
|
-
module Models
|
|
3
|
-
module Mcp
|
|
4
|
-
module Servers
|
|
5
|
-
type installation_create_params =
|
|
6
|
-
{
|
|
7
|
-
id: String,
|
|
8
|
-
document_auth: ::Hash[Symbol, top],
|
|
9
|
-
name: String,
|
|
10
|
-
slug: String
|
|
11
|
-
}
|
|
12
|
-
& Scalar::Internal::Type::request_parameters
|
|
13
|
-
|
|
14
|
-
class InstallationCreateParams < Scalar::Internal::Type::BaseModel
|
|
15
|
-
extend Scalar::Internal::Type::RequestParameters::Converter
|
|
16
|
-
include Scalar::Internal::Type::RequestParameters
|
|
17
|
-
|
|
18
|
-
attr_accessor id: String
|
|
19
|
-
|
|
20
|
-
attr_accessor document_auth: ::Hash[Symbol, top]
|
|
21
|
-
|
|
22
|
-
attr_accessor name: String
|
|
23
|
-
|
|
24
|
-
attr_reader slug: String?
|
|
25
|
-
|
|
26
|
-
def slug=: (String) -> String
|
|
27
|
-
|
|
28
|
-
def initialize: (
|
|
29
|
-
id: String,
|
|
30
|
-
document_auth: ::Hash[Symbol, top],
|
|
31
|
-
name: String,
|
|
32
|
-
?slug: String,
|
|
33
|
-
?request_options: Scalar::request_opts
|
|
34
|
-
) -> void
|
|
35
|
-
|
|
36
|
-
def to_hash: -> {
|
|
37
|
-
id: String,
|
|
38
|
-
document_auth: ::Hash[Symbol, top],
|
|
39
|
-
name: String,
|
|
40
|
-
slug: String,
|
|
41
|
-
request_options: Scalar::RequestOptions
|
|
42
|
-
}
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
module Scalar
|
|
2
|
-
module Models
|
|
3
|
-
module Mcp
|
|
4
|
-
module Servers
|
|
5
|
-
type installation_delete_access_group_params =
|
|
6
|
-
{ id: String, installation_id: String, access_group_uid: String }
|
|
7
|
-
& Scalar::Internal::Type::request_parameters
|
|
8
|
-
|
|
9
|
-
class InstallationDeleteAccessGroupParams < Scalar::Internal::Type::BaseModel
|
|
10
|
-
extend Scalar::Internal::Type::RequestParameters::Converter
|
|
11
|
-
include Scalar::Internal::Type::RequestParameters
|
|
12
|
-
|
|
13
|
-
attr_accessor id: String
|
|
14
|
-
|
|
15
|
-
attr_accessor installation_id: String
|
|
16
|
-
|
|
17
|
-
attr_accessor access_group_uid: String
|
|
18
|
-
|
|
19
|
-
def initialize: (
|
|
20
|
-
id: String,
|
|
21
|
-
installation_id: String,
|
|
22
|
-
access_group_uid: String,
|
|
23
|
-
?request_options: Scalar::request_opts
|
|
24
|
-
) -> void
|
|
25
|
-
|
|
26
|
-
def to_hash: -> {
|
|
27
|
-
id: String,
|
|
28
|
-
installation_id: String,
|
|
29
|
-
access_group_uid: String,
|
|
30
|
-
request_options: Scalar::RequestOptions
|
|
31
|
-
}
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
end
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
module Scalar
|
|
2
|
-
module Models
|
|
3
|
-
module Mcp
|
|
4
|
-
module Servers
|
|
5
|
-
type installation_delete_params =
|
|
6
|
-
{ id: String, installation_id: String }
|
|
7
|
-
& Scalar::Internal::Type::request_parameters
|
|
8
|
-
|
|
9
|
-
class InstallationDeleteParams < Scalar::Internal::Type::BaseModel
|
|
10
|
-
extend Scalar::Internal::Type::RequestParameters::Converter
|
|
11
|
-
include Scalar::Internal::Type::RequestParameters
|
|
12
|
-
|
|
13
|
-
attr_accessor id: String
|
|
14
|
-
|
|
15
|
-
attr_accessor installation_id: String
|
|
16
|
-
|
|
17
|
-
def initialize: (
|
|
18
|
-
id: String,
|
|
19
|
-
installation_id: String,
|
|
20
|
-
?request_options: Scalar::request_opts
|
|
21
|
-
) -> void
|
|
22
|
-
|
|
23
|
-
def to_hash: -> {
|
|
24
|
-
id: String,
|
|
25
|
-
installation_id: String,
|
|
26
|
-
request_options: Scalar::RequestOptions
|
|
27
|
-
}
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
module Scalar
|
|
2
|
-
module Models
|
|
3
|
-
module Mcp
|
|
4
|
-
module Servers
|
|
5
|
-
type installation_list_params =
|
|
6
|
-
{ id: String } & Scalar::Internal::Type::request_parameters
|
|
7
|
-
|
|
8
|
-
class InstallationListParams < Scalar::Internal::Type::BaseModel
|
|
9
|
-
extend Scalar::Internal::Type::RequestParameters::Converter
|
|
10
|
-
include Scalar::Internal::Type::RequestParameters
|
|
11
|
-
|
|
12
|
-
attr_accessor id: String
|
|
13
|
-
|
|
14
|
-
def initialize: (
|
|
15
|
-
id: String,
|
|
16
|
-
?request_options: Scalar::request_opts
|
|
17
|
-
) -> void
|
|
18
|
-
|
|
19
|
-
def to_hash: -> {
|
|
20
|
-
id: String,
|
|
21
|
-
request_options: Scalar::RequestOptions
|
|
22
|
-
}
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|