speakeasy_client_sdk_ruby 4.0.6 → 4.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/speakeasy_client_sdk/auth.rb +0 -5
- data/lib/speakeasy_client_sdk/events.rb +86 -0
- data/lib/speakeasy_client_sdk/models/operations/getworkspaceaccess_response.rb +2 -5
- data/lib/speakeasy_client_sdk/models/operations/getworkspaceevents_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/getworkspaceevents_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getworkspacetargets_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/getworkspacetargets_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations.rb +4 -0
- data/lib/speakeasy_client_sdk/models/shared/clievent.rb +17 -5
- data/lib/speakeasy_client_sdk/models/shared/interaction_type.rb +5 -0
- data/lib/speakeasy_client_sdk/models/shared/security.rb +6 -3
- data/lib/speakeasy_client_sdk/models/shared/targetsdk.rb +84 -0
- data/lib/speakeasy_client_sdk/models/shared.rb +1 -0
- data/lib/speakeasy_client_sdk/sdk.rb +7 -7
- data/lib/speakeasy_client_sdk/sdkconfiguration.rb +5 -5
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 279f0d691cc6cbe6eeaf01b4f4901ddff2db610050ffcf26911fe67f1ad315fa
|
4
|
+
data.tar.gz: 4b5b231d4f2e92383d2ca02090b6b528c503f24dc96e87dc1f8bba3021258f1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 667c9f85774a56abe70c2ed3058b79ad47c52e09713bcec35d7e666a0b7ef3877900b2f367aafbf6ec25feaa2dc9f685fe1f59648faf150df42a0d5724d28746
|
7
|
+
data.tar.gz: 84422309adddcd1c3d662fe46ef22ee855c443d41cbb37ecac296a08879d2e2ff986a0b853288df7aaaeb6470ffe411b4c7fe36264f9b9a8e6e2206be3942e13
|
@@ -47,11 +47,6 @@ module SpeakeasyClientSDK
|
|
47
47
|
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::AccessDetails)
|
48
48
|
res.access_details = out
|
49
49
|
end
|
50
|
-
elsif r.status >= 500 && r.status < 600
|
51
|
-
if Utils.match_content_type(content_type, 'application/json')
|
52
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
53
|
-
res.error = out
|
54
|
-
end
|
55
50
|
end
|
56
51
|
res
|
57
52
|
end
|
@@ -19,6 +19,92 @@ module SpeakeasyClientSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetWorkspaceEventsRequest)).returns(::SpeakeasyClientSDK::Operations::GetWorkspaceEventsResponse) }
|
23
|
+
def get_workspace_events(request)
|
24
|
+
# get_workspace_events - Load recent events for a particular workspace
|
25
|
+
url, params = @sdk_configuration.get_server_details
|
26
|
+
base_url = Utils.template_url(url, params)
|
27
|
+
url = Utils.generate_url(
|
28
|
+
::SpeakeasyClientSDK::Operations::GetWorkspaceEventsRequest,
|
29
|
+
base_url,
|
30
|
+
'/v1/workspace/{workspaceID}/events',
|
31
|
+
request,
|
32
|
+
@sdk_configuration.globals
|
33
|
+
)
|
34
|
+
headers = {}
|
35
|
+
query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetWorkspaceEventsRequest, request, @sdk_configuration.globals)
|
36
|
+
headers['Accept'] = 'application/json'
|
37
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
38
|
+
|
39
|
+
r = @sdk_configuration.client.get(url) do |req|
|
40
|
+
req.headers = headers
|
41
|
+
req.params = query_params
|
42
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
43
|
+
end
|
44
|
+
|
45
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
46
|
+
|
47
|
+
res = ::SpeakeasyClientSDK::Operations::GetWorkspaceEventsResponse.new(
|
48
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
49
|
+
)
|
50
|
+
if r.status == 200
|
51
|
+
if Utils.match_content_type(content_type, 'application/json')
|
52
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::CliEvent])
|
53
|
+
res.cli_event_batch = out
|
54
|
+
end
|
55
|
+
elsif r.status >= 500 && r.status < 600
|
56
|
+
if Utils.match_content_type(content_type, 'application/json')
|
57
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
58
|
+
res.error = out
|
59
|
+
end
|
60
|
+
end
|
61
|
+
res
|
62
|
+
end
|
63
|
+
|
64
|
+
|
65
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetWorkspaceTargetsRequest)).returns(::SpeakeasyClientSDK::Operations::GetWorkspaceTargetsResponse) }
|
66
|
+
def get_workspace_targets(request)
|
67
|
+
# get_workspace_targets - Load targets for a particular workspace
|
68
|
+
url, params = @sdk_configuration.get_server_details
|
69
|
+
base_url = Utils.template_url(url, params)
|
70
|
+
url = Utils.generate_url(
|
71
|
+
::SpeakeasyClientSDK::Operations::GetWorkspaceTargetsRequest,
|
72
|
+
base_url,
|
73
|
+
'/v1/workspace/{workspaceID}/events/targets',
|
74
|
+
request,
|
75
|
+
@sdk_configuration.globals
|
76
|
+
)
|
77
|
+
headers = {}
|
78
|
+
query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetWorkspaceTargetsRequest, request, @sdk_configuration.globals)
|
79
|
+
headers['Accept'] = 'application/json'
|
80
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
81
|
+
|
82
|
+
r = @sdk_configuration.client.get(url) do |req|
|
83
|
+
req.headers = headers
|
84
|
+
req.params = query_params
|
85
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
86
|
+
end
|
87
|
+
|
88
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
89
|
+
|
90
|
+
res = ::SpeakeasyClientSDK::Operations::GetWorkspaceTargetsResponse.new(
|
91
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
92
|
+
)
|
93
|
+
if r.status == 200
|
94
|
+
if Utils.match_content_type(content_type, 'application/json')
|
95
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::TargetSDK])
|
96
|
+
res.target_sdk_list = out
|
97
|
+
end
|
98
|
+
elsif r.status >= 500 && r.status < 600
|
99
|
+
if Utils.match_content_type(content_type, 'application/json')
|
100
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
101
|
+
res.error = out
|
102
|
+
end
|
103
|
+
end
|
104
|
+
res
|
105
|
+
end
|
106
|
+
|
107
|
+
|
22
108
|
sig { params(request: ::SpeakeasyClientSDK::Operations::PostWorkspaceEventsRequest).returns(::SpeakeasyClientSDK::Operations::PostWorkspaceEventsResponse) }
|
23
109
|
def post_workspace_events(request)
|
24
110
|
# post_workspace_events - Post events for a specific workspace
|
@@ -20,16 +20,13 @@ module SpeakeasyClientSDK
|
|
20
20
|
# OK
|
21
21
|
field :access_details, T.nilable(::SpeakeasyClientSDK::Shared::AccessDetails)
|
22
22
|
|
23
|
-
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
|
24
23
|
|
25
|
-
|
26
|
-
|
27
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, access_details: nil, error: nil)
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, access_details: T.nilable(::SpeakeasyClientSDK::Shared::AccessDetails)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, access_details: nil)
|
28
26
|
@content_type = content_type
|
29
27
|
@raw_response = raw_response
|
30
28
|
@status_code = status_code
|
31
29
|
@access_details = access_details
|
32
|
-
@error = error
|
33
30
|
end
|
34
31
|
end
|
35
32
|
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class GetWorkspaceEventsRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Filter to only return events created after this timestamp
|
15
|
+
field :after_created_at, T.nilable(::DateTime), { 'query_param': { 'field_name': 'after_created_at', 'style': 'form', 'explode': true } }
|
16
|
+
# Filter to only return events corresponding to a particular gen_lock_id (gen_lock_id uniquely identifies a target)
|
17
|
+
field :generate_gen_lock_id, T.nilable(::String), { 'query_param': { 'field_name': 'generate_gen_lock_id', 'style': 'form', 'explode': true } }
|
18
|
+
# Unique identifier of the workspace.
|
19
|
+
field :workspace_id, T.nilable(::String), { 'path_param': { 'field_name': 'workspaceID', 'style': 'simple', 'explode': false } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(after_created_at: T.nilable(::DateTime), generate_gen_lock_id: T.nilable(::String), workspace_id: T.nilable(::String)).void }
|
23
|
+
def initialize(after_created_at: nil, generate_gen_lock_id: nil, workspace_id: nil)
|
24
|
+
@after_created_at = after_created_at
|
25
|
+
@generate_gen_lock_id = generate_gen_lock_id
|
26
|
+
@workspace_id = workspace_id
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class GetWorkspaceEventsResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# Success
|
21
|
+
field :cli_event_batch, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::CliEvent])
|
22
|
+
# Error
|
23
|
+
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, cli_event_batch: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::CliEvent]), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
|
27
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, cli_event_batch: nil, error: nil)
|
28
|
+
@content_type = content_type
|
29
|
+
@raw_response = raw_response
|
30
|
+
@status_code = status_code
|
31
|
+
@cli_event_batch = cli_event_batch
|
32
|
+
@error = error
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class GetWorkspaceTargetsRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Filter to only return targets with events created after this timestamp
|
15
|
+
field :after_last_event_created_at, T.nilable(::DateTime), { 'query_param': { 'field_name': 'after_last_event_created_at', 'style': 'form', 'explode': true } }
|
16
|
+
# Unique identifier of the workspace.
|
17
|
+
field :workspace_id, T.nilable(::String), { 'path_param': { 'field_name': 'workspaceID', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(after_last_event_created_at: T.nilable(::DateTime), workspace_id: T.nilable(::String)).void }
|
21
|
+
def initialize(after_last_event_created_at: nil, workspace_id: nil)
|
22
|
+
@after_last_event_created_at = after_last_event_created_at
|
23
|
+
@workspace_id = workspace_id
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class GetWorkspaceTargetsResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
|
21
|
+
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
|
22
|
+
# Success
|
23
|
+
field :target_sdk_list, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::TargetSDK])
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), target_sdk_list: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::TargetSDK])).void }
|
27
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, target_sdk_list: nil)
|
28
|
+
@content_type = content_type
|
29
|
+
@raw_response = raw_response
|
30
|
+
@status_code = status_code
|
31
|
+
@error = error
|
32
|
+
@target_sdk_list = target_sdk_list
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -73,6 +73,10 @@ module SpeakeasyClientSDK
|
|
73
73
|
autoload :GetValidEmbedAccessTokensResponse, 'speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb'
|
74
74
|
autoload :RevokeEmbedAccessTokenRequest, 'speakeasy_client_sdk/models/operations/revokeembedaccesstoken_request.rb'
|
75
75
|
autoload :RevokeEmbedAccessTokenResponse, 'speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb'
|
76
|
+
autoload :GetWorkspaceEventsRequest, 'speakeasy_client_sdk/models/operations/getworkspaceevents_request.rb'
|
77
|
+
autoload :GetWorkspaceEventsResponse, 'speakeasy_client_sdk/models/operations/getworkspaceevents_response.rb'
|
78
|
+
autoload :GetWorkspaceTargetsRequest, 'speakeasy_client_sdk/models/operations/getworkspacetargets_request.rb'
|
79
|
+
autoload :GetWorkspaceTargetsResponse, 'speakeasy_client_sdk/models/operations/getworkspacetargets_response.rb'
|
76
80
|
autoload :PostWorkspaceEventsRequest, 'speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb'
|
77
81
|
autoload :PostWorkspaceEventsResponse, 'speakeasy_client_sdk/models/operations/postworkspaceevents_response.rb'
|
78
82
|
end
|
@@ -39,13 +39,13 @@ module SpeakeasyClientSDK
|
|
39
39
|
field :generate_config_post_checksum, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_post_checksum') } }
|
40
40
|
# Rendered configuration file (post generation)
|
41
41
|
field :generate_config_post_raw, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_post_raw') } }
|
42
|
-
#
|
42
|
+
# The version of the customer's SDK that we just generated
|
43
43
|
field :generate_config_post_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_post_version') } }
|
44
44
|
# Checksum of the configuration file (prior to generation)
|
45
45
|
field :generate_config_pre_checksum, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_pre_checksum') } }
|
46
46
|
# Rendered configuration file (prior to generation)
|
47
47
|
field :generate_config_pre_raw, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_pre_raw') } }
|
48
|
-
#
|
48
|
+
# The version of the customer's SDK before we generated
|
49
49
|
field :generate_config_pre_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_pre_version') } }
|
50
50
|
# gen.lock ID (expected to be a uuid).
|
51
51
|
field :generate_gen_lock_id, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_gen_lock_id') } }
|
@@ -87,7 +87,7 @@ module SpeakeasyClientSDK
|
|
87
87
|
field :git_remote_default_repo, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_remote_default_repo') } }
|
88
88
|
# User email from git configuration.
|
89
89
|
field :git_user_email, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_user_email') } }
|
90
|
-
# User name from git configuration.
|
90
|
+
# User's name from git configuration. (not GitHub username)
|
91
91
|
field :git_user_name, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_user_name') } }
|
92
92
|
# Remote hostname.
|
93
93
|
field :hostname, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('hostname') } }
|
@@ -97,14 +97,22 @@ module SpeakeasyClientSDK
|
|
97
97
|
field :management_doc_checksum, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('management_doc_checksum') } }
|
98
98
|
# Version taken from info.version field of the Rendered OpenAPI document.
|
99
99
|
field :management_doc_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('management_doc_version') } }
|
100
|
+
# Name of the published package.
|
101
|
+
field :publish_package_name, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('publish_package_name') } }
|
102
|
+
# Name of the registry where the package was published.
|
103
|
+
field :publish_package_registry_name, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('publish_package_registry_name') } }
|
104
|
+
# URL of the published package.
|
105
|
+
field :publish_package_url, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('publish_package_url') } }
|
106
|
+
# Version of the published package.
|
107
|
+
field :publish_package_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('publish_package_version') } }
|
100
108
|
# Full CLI command.
|
101
109
|
field :raw_command, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('raw_command') } }
|
102
110
|
# Label of the git repository.
|
103
111
|
field :repo_label, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('repo_label') } }
|
104
112
|
|
105
113
|
|
106
|
-
sig { params(created_at: ::DateTime, execution_id: ::String, id: ::String, interaction_type: ::SpeakeasyClientSDK::Shared::InteractionType, local_started_at: ::DateTime, speakeasy_api_key_name: ::String, speakeasy_version: ::String, success: T::Boolean, workspace_id: ::String, commit_head: T.nilable(::String), duration_ms: T.nilable(::Integer), generate_bump_type: T.nilable(::SpeakeasyClientSDK::Shared::GenerateBumpType), generate_config_post_checksum: T.nilable(::String), generate_config_post_raw: T.nilable(::String), generate_config_post_version: T.nilable(::String), generate_config_pre_checksum: T.nilable(::String), generate_config_pre_raw: T.nilable(::String), generate_config_pre_version: T.nilable(::String), generate_gen_lock_id: T.nilable(::String), generate_gen_lock_post_features: T.nilable(::String), generate_gen_lock_pre_doc_checksum: T.nilable(::String), generate_gen_lock_pre_doc_version: T.nilable(::String), generate_gen_lock_pre_features: T.nilable(::String), generate_gen_lock_pre_version: T.nilable(::String), generate_output_tests: T.nilable(T::Boolean), generate_published: T.nilable(T::Boolean), generate_repo_url: T.nilable(::String), generate_target: T.nilable(::String), generate_target_version: T.nilable(::String), generate_version: T.nilable(::String), gh_action_organization: T.nilable(::String), gh_action_repository: T.nilable(::String), gh_action_run_link: T.nilable(::String), gh_action_version: T.nilable(::String), git_relative_cwd: T.nilable(::String), git_remote_default_owner: T.nilable(::String), git_remote_default_repo: T.nilable(::String), git_user_email: T.nilable(::String), git_user_name: T.nilable(::String), hostname: T.nilable(::String), local_completed_at: T.nilable(::DateTime), management_doc_checksum: T.nilable(::String), management_doc_version: T.nilable(::String), raw_command: T.nilable(::String), repo_label: T.nilable(::String)).void }
|
107
|
-
def initialize(created_at: nil, execution_id: nil, id: nil, interaction_type: nil, local_started_at: nil, speakeasy_api_key_name: nil, speakeasy_version: nil, success: nil, workspace_id: nil, commit_head: nil, duration_ms: nil, generate_bump_type: nil, generate_config_post_checksum: nil, generate_config_post_raw: nil, generate_config_post_version: nil, generate_config_pre_checksum: nil, generate_config_pre_raw: nil, generate_config_pre_version: nil, generate_gen_lock_id: nil, generate_gen_lock_post_features: nil, generate_gen_lock_pre_doc_checksum: nil, generate_gen_lock_pre_doc_version: nil, generate_gen_lock_pre_features: nil, generate_gen_lock_pre_version: nil, generate_output_tests: nil, generate_published: nil, generate_repo_url: nil, generate_target: nil, generate_target_version: nil, generate_version: nil, gh_action_organization: nil, gh_action_repository: nil, gh_action_run_link: nil, gh_action_version: nil, git_relative_cwd: nil, git_remote_default_owner: nil, git_remote_default_repo: nil, git_user_email: nil, git_user_name: nil, hostname: nil, local_completed_at: nil, management_doc_checksum: nil, management_doc_version: nil, raw_command: nil, repo_label: nil)
|
114
|
+
sig { params(created_at: ::DateTime, execution_id: ::String, id: ::String, interaction_type: ::SpeakeasyClientSDK::Shared::InteractionType, local_started_at: ::DateTime, speakeasy_api_key_name: ::String, speakeasy_version: ::String, success: T::Boolean, workspace_id: ::String, commit_head: T.nilable(::String), duration_ms: T.nilable(::Integer), generate_bump_type: T.nilable(::SpeakeasyClientSDK::Shared::GenerateBumpType), generate_config_post_checksum: T.nilable(::String), generate_config_post_raw: T.nilable(::String), generate_config_post_version: T.nilable(::String), generate_config_pre_checksum: T.nilable(::String), generate_config_pre_raw: T.nilable(::String), generate_config_pre_version: T.nilable(::String), generate_gen_lock_id: T.nilable(::String), generate_gen_lock_post_features: T.nilable(::String), generate_gen_lock_pre_doc_checksum: T.nilable(::String), generate_gen_lock_pre_doc_version: T.nilable(::String), generate_gen_lock_pre_features: T.nilable(::String), generate_gen_lock_pre_version: T.nilable(::String), generate_output_tests: T.nilable(T::Boolean), generate_published: T.nilable(T::Boolean), generate_repo_url: T.nilable(::String), generate_target: T.nilable(::String), generate_target_version: T.nilable(::String), generate_version: T.nilable(::String), gh_action_organization: T.nilable(::String), gh_action_repository: T.nilable(::String), gh_action_run_link: T.nilable(::String), gh_action_version: T.nilable(::String), git_relative_cwd: T.nilable(::String), git_remote_default_owner: T.nilable(::String), git_remote_default_repo: T.nilable(::String), git_user_email: T.nilable(::String), git_user_name: T.nilable(::String), hostname: T.nilable(::String), local_completed_at: T.nilable(::DateTime), management_doc_checksum: T.nilable(::String), management_doc_version: T.nilable(::String), publish_package_name: T.nilable(::String), publish_package_registry_name: T.nilable(::String), publish_package_url: T.nilable(::String), publish_package_version: T.nilable(::String), raw_command: T.nilable(::String), repo_label: T.nilable(::String)).void }
|
115
|
+
def initialize(created_at: nil, execution_id: nil, id: nil, interaction_type: nil, local_started_at: nil, speakeasy_api_key_name: nil, speakeasy_version: nil, success: nil, workspace_id: nil, commit_head: nil, duration_ms: nil, generate_bump_type: nil, generate_config_post_checksum: nil, generate_config_post_raw: nil, generate_config_post_version: nil, generate_config_pre_checksum: nil, generate_config_pre_raw: nil, generate_config_pre_version: nil, generate_gen_lock_id: nil, generate_gen_lock_post_features: nil, generate_gen_lock_pre_doc_checksum: nil, generate_gen_lock_pre_doc_version: nil, generate_gen_lock_pre_features: nil, generate_gen_lock_pre_version: nil, generate_output_tests: nil, generate_published: nil, generate_repo_url: nil, generate_target: nil, generate_target_version: nil, generate_version: nil, gh_action_organization: nil, gh_action_repository: nil, gh_action_run_link: nil, gh_action_version: nil, git_relative_cwd: nil, git_remote_default_owner: nil, git_remote_default_repo: nil, git_user_email: nil, git_user_name: nil, hostname: nil, local_completed_at: nil, management_doc_checksum: nil, management_doc_version: nil, publish_package_name: nil, publish_package_registry_name: nil, publish_package_url: nil, publish_package_version: nil, raw_command: nil, repo_label: nil)
|
108
116
|
@created_at = created_at
|
109
117
|
@execution_id = execution_id
|
110
118
|
@id = id
|
@@ -148,6 +156,10 @@ module SpeakeasyClientSDK
|
|
148
156
|
@local_completed_at = local_completed_at
|
149
157
|
@management_doc_checksum = management_doc_checksum
|
150
158
|
@management_doc_version = management_doc_version
|
159
|
+
@publish_package_name = publish_package_name
|
160
|
+
@publish_package_registry_name = publish_package_registry_name
|
161
|
+
@publish_package_url = publish_package_url
|
162
|
+
@publish_package_version = publish_package_version
|
151
163
|
@raw_command = raw_command
|
152
164
|
@repo_label = repo_label
|
153
165
|
end
|
@@ -12,6 +12,11 @@ module SpeakeasyClientSDK
|
|
12
12
|
enums do
|
13
13
|
CLI_EXEC = new('CLI_EXEC')
|
14
14
|
TARGET_GENERATE = new('TARGET_GENERATE')
|
15
|
+
AUTHENTICATE = new('AUTHENTICATE')
|
16
|
+
QUICKSTART = new('QUICKSTART')
|
17
|
+
RUN = new('RUN')
|
18
|
+
CONFIGURE = new('CONFIGURE')
|
19
|
+
PUBLISH = new('PUBLISH')
|
15
20
|
end
|
16
21
|
end
|
17
22
|
|
@@ -12,12 +12,15 @@ module SpeakeasyClientSDK
|
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
|
15
|
-
field :api_key, ::String, { 'security': { 'scheme': true, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'x-api-key' } }
|
15
|
+
field :api_key, T.nilable(::String), { 'security': { 'scheme': true, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'x-api-key' } }
|
16
16
|
|
17
|
+
field :bearer, T.nilable(::String), { 'security': { 'scheme': true, 'type': 'http', 'sub_type': 'bearer', 'field_name': 'Authorization' } }
|
17
18
|
|
18
|
-
|
19
|
-
|
19
|
+
|
20
|
+
sig { params(api_key: T.nilable(::String), bearer: T.nilable(::String)).void }
|
21
|
+
def initialize(api_key: nil, bearer: nil)
|
20
22
|
@api_key = api_key
|
23
|
+
@bearer = bearer
|
21
24
|
end
|
22
25
|
end
|
23
26
|
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class TargetSDK < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# gen.lock ID (expected to be a uuid). The same as `id`. A unique identifier for the target.
|
15
|
+
field :generate_gen_lock_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_gen_lock_id') } }
|
16
|
+
# The target of the event.
|
17
|
+
field :generate_target, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_target') } }
|
18
|
+
# Unique identifier of the target the same as `generate_gen_lock_id`
|
19
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('id') } }
|
20
|
+
# Timestamp when the event was created in the database.
|
21
|
+
field :last_event_created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('last_event_created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
22
|
+
# Unique identifier of the last event for the target
|
23
|
+
field :last_event_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('last_event_id') } }
|
24
|
+
# Remote commit ID.
|
25
|
+
field :commit_head, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('commit_head') } }
|
26
|
+
# Version of the generated target (post generation)
|
27
|
+
field :generate_config_post_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_post_version') } }
|
28
|
+
# Indicates whether the target was considered published.
|
29
|
+
field :generate_published, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_published') } }
|
30
|
+
# The version of the Speakeasy generator for this target eg v2 of the typescript generator.
|
31
|
+
field :generate_target_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_target_version') } }
|
32
|
+
# GitHub organization of the action.
|
33
|
+
field :gh_action_organization, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('gh_action_organization') } }
|
34
|
+
# GitHub repository of the action.
|
35
|
+
field :gh_action_repository, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('gh_action_repository') } }
|
36
|
+
# Link to the GitHub action run.
|
37
|
+
field :gh_action_run_link, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('gh_action_run_link') } }
|
38
|
+
# Version of the GitHub action.
|
39
|
+
field :gh_action_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('gh_action_version') } }
|
40
|
+
# Current working directory relative to the git root.
|
41
|
+
field :git_relative_cwd, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_relative_cwd') } }
|
42
|
+
# Default owner for git remote.
|
43
|
+
field :git_remote_default_owner, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_remote_default_owner') } }
|
44
|
+
# Default repository name for git remote.
|
45
|
+
field :git_remote_default_repo, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_remote_default_repo') } }
|
46
|
+
# User email from git configuration.
|
47
|
+
field :git_user_email, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_user_email') } }
|
48
|
+
# User's name from git configuration. (not GitHub username)
|
49
|
+
field :git_user_name, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_user_name') } }
|
50
|
+
# Remote hostname.
|
51
|
+
field :hostname, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('hostname') } }
|
52
|
+
# Label of the git repository.
|
53
|
+
field :repo_label, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('repo_label') } }
|
54
|
+
# Indicates whether the event was successful.
|
55
|
+
field :success, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('success') } }
|
56
|
+
|
57
|
+
|
58
|
+
sig { params(generate_gen_lock_id: ::String, generate_target: ::String, id: ::String, last_event_created_at: ::DateTime, last_event_id: ::String, commit_head: T.nilable(::String), generate_config_post_version: T.nilable(::String), generate_published: T.nilable(T::Boolean), generate_target_version: T.nilable(::String), gh_action_organization: T.nilable(::String), gh_action_repository: T.nilable(::String), gh_action_run_link: T.nilable(::String), gh_action_version: T.nilable(::String), git_relative_cwd: T.nilable(::String), git_remote_default_owner: T.nilable(::String), git_remote_default_repo: T.nilable(::String), git_user_email: T.nilable(::String), git_user_name: T.nilable(::String), hostname: T.nilable(::String), repo_label: T.nilable(::String), success: T.nilable(T::Boolean)).void }
|
59
|
+
def initialize(generate_gen_lock_id: nil, generate_target: nil, id: nil, last_event_created_at: nil, last_event_id: nil, commit_head: nil, generate_config_post_version: nil, generate_published: nil, generate_target_version: nil, gh_action_organization: nil, gh_action_repository: nil, gh_action_run_link: nil, gh_action_version: nil, git_relative_cwd: nil, git_remote_default_owner: nil, git_remote_default_repo: nil, git_user_email: nil, git_user_name: nil, hostname: nil, repo_label: nil, success: nil)
|
60
|
+
@generate_gen_lock_id = generate_gen_lock_id
|
61
|
+
@generate_target = generate_target
|
62
|
+
@id = id
|
63
|
+
@last_event_created_at = last_event_created_at
|
64
|
+
@last_event_id = last_event_id
|
65
|
+
@commit_head = commit_head
|
66
|
+
@generate_config_post_version = generate_config_post_version
|
67
|
+
@generate_published = generate_published
|
68
|
+
@generate_target_version = generate_target_version
|
69
|
+
@gh_action_organization = gh_action_organization
|
70
|
+
@gh_action_repository = gh_action_repository
|
71
|
+
@gh_action_run_link = gh_action_run_link
|
72
|
+
@gh_action_version = gh_action_version
|
73
|
+
@git_relative_cwd = git_relative_cwd
|
74
|
+
@git_remote_default_owner = git_remote_default_owner
|
75
|
+
@git_remote_default_repo = git_remote_default_repo
|
76
|
+
@git_user_email = git_user_email
|
77
|
+
@git_user_name = git_user_name
|
78
|
+
@hostname = hostname
|
79
|
+
@repo_label = repo_label
|
80
|
+
@success = success
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -29,6 +29,7 @@ module SpeakeasyClientSDK
|
|
29
29
|
autoload :GenerateBumpType, 'speakeasy_client_sdk/models/shared/generate_bump_type.rb'
|
30
30
|
autoload :InteractionType, 'speakeasy_client_sdk/models/shared/interaction_type.rb'
|
31
31
|
autoload :CliEvent, 'speakeasy_client_sdk/models/shared/clievent.rb'
|
32
|
+
autoload :TargetSDK, 'speakeasy_client_sdk/models/shared/targetsdk.rb'
|
32
33
|
autoload :Security, 'speakeasy_client_sdk/models/shared/security.rb'
|
33
34
|
end
|
34
35
|
end
|
@@ -17,27 +17,27 @@ module SpeakeasyClientSDK
|
|
17
17
|
attr_accessor :security, :language, :sdk_version, :gen_version
|
18
18
|
|
19
19
|
sig do
|
20
|
-
params(
|
20
|
+
params(client: Faraday::Request,
|
21
|
+
security: T.nilable(Shared::Security),
|
21
22
|
workspace_id: ::String,
|
22
23
|
server: String,
|
23
24
|
server_url: String,
|
24
|
-
url_params: T::Hash[Symbol, String]
|
25
|
-
client: Faraday::Request).void
|
25
|
+
url_params: T::Hash[Symbol, String]).void
|
26
26
|
end
|
27
|
-
def initialize(
|
27
|
+
def initialize(client: nil,
|
28
|
+
security: nil,
|
28
29
|
workspace_id: nil,
|
29
30
|
server: nil,
|
30
31
|
server_url: nil,
|
31
|
-
url_params: nil
|
32
|
-
client: nil)
|
32
|
+
url_params: nil)
|
33
33
|
|
34
34
|
## Instantiates the SDK configuring it with the provided parameters.
|
35
|
+
# @param [Faraday::Request] client The faraday HTTP client to use for all operations
|
35
36
|
# @param [Shared::Security] security The security details required for authentication
|
36
37
|
# @param [::String] workspace_id: Configures the workspace_id parameter for all supported operations
|
37
38
|
# @param [String] server The server by name to use for all operations
|
38
39
|
# @param [String] server_url The server URL to use for all operations
|
39
40
|
# @param [Hash<Symbol, String>] url_params Parameters to optionally template the server URL with
|
40
|
-
# @param [Faraday::Request] client The faraday HTTP client to use for all operations
|
41
41
|
|
42
42
|
if client.nil?
|
43
43
|
client = Faraday.new(request: {
|
@@ -30,8 +30,8 @@ module SpeakeasyClientSDK
|
|
30
30
|
field :sdk_version, String
|
31
31
|
field :gen_version, String
|
32
32
|
field :user_agent, String
|
33
|
-
|
34
|
-
|
33
|
+
|
34
|
+
|
35
35
|
sig { params(client: Faraday::Connection, security: T.nilable(Shared::Security), server_url: T.nilable(String), server_idx: T.nilable(Integer), globals: T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]]).void }
|
36
36
|
def initialize(client, security, server_url, server_idx, globals)
|
37
37
|
@client = client
|
@@ -41,9 +41,9 @@ module SpeakeasyClientSDK
|
|
41
41
|
@globals = globals.nil? ? {} : globals
|
42
42
|
@language = 'ruby'
|
43
43
|
@openapi_doc_version = '0.4.0'
|
44
|
-
@sdk_version = '4.0.
|
45
|
-
@gen_version = '2.
|
46
|
-
@user_agent = 'speakeasy-sdk/ruby 4.0.
|
44
|
+
@sdk_version = '4.0.8'
|
45
|
+
@gen_version = '2.272.7'
|
46
|
+
@user_agent = 'speakeasy-sdk/ruby 4.0.8 2.272.7 0.4.0 speakeasy_client_sdk_ruby'
|
47
47
|
end
|
48
48
|
|
49
49
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: speakeasy_client_sdk_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Speakeasy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -201,6 +201,10 @@ files:
|
|
201
201
|
- lib/speakeasy_client_sdk/models/operations/getversionmetadata_response.rb
|
202
202
|
- lib/speakeasy_client_sdk/models/operations/getworkspaceaccess_request.rb
|
203
203
|
- lib/speakeasy_client_sdk/models/operations/getworkspaceaccess_response.rb
|
204
|
+
- lib/speakeasy_client_sdk/models/operations/getworkspaceevents_request.rb
|
205
|
+
- lib/speakeasy_client_sdk/models/operations/getworkspaceevents_response.rb
|
206
|
+
- lib/speakeasy_client_sdk/models/operations/getworkspacetargets_request.rb
|
207
|
+
- lib/speakeasy_client_sdk/models/operations/getworkspacetargets_response.rb
|
204
208
|
- lib/speakeasy_client_sdk/models/operations/insertversionmetadata_request.rb
|
205
209
|
- lib/speakeasy_client_sdk/models/operations/insertversionmetadata_response.rb
|
206
210
|
- lib/speakeasy_client_sdk/models/operations/op.rb
|
@@ -241,6 +245,7 @@ files:
|
|
241
245
|
- lib/speakeasy_client_sdk/models/shared/schema.rb
|
242
246
|
- lib/speakeasy_client_sdk/models/shared/schemadiff.rb
|
243
247
|
- lib/speakeasy_client_sdk/models/shared/security.rb
|
248
|
+
- lib/speakeasy_client_sdk/models/shared/targetsdk.rb
|
244
249
|
- lib/speakeasy_client_sdk/models/shared/unboundedrequest.rb
|
245
250
|
- lib/speakeasy_client_sdk/models/shared/valuechange.rb
|
246
251
|
- lib/speakeasy_client_sdk/models/shared/versionmetadata.rb
|