speakeasy_client_sdk_ruby 4.0.6 → 4.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34f587b57888d5e66249e802240807efbadd90f4917156004e2da925f5500ac6
4
- data.tar.gz: abfc9c5f52409051e51a666765f97c62e5d731a11c8d9919575fc46493c662d9
3
+ metadata.gz: 961d9208301353899008da6643c34111efc93e92f7e3c8c60f6e0b07dae8ab73
4
+ data.tar.gz: 198a41fe13c7ac468e569294559fcb8369267997f85a5da0dae5fb66e43f6d3e
5
5
  SHA512:
6
- metadata.gz: 555567ca4512c1f93fd6494559b6cba52e81b45540bf2a125a763f5a5f373c432679f7dc35e21f5de0b387a429d726db7f54c40d20ed6b8751421c3858c44a83
7
- data.tar.gz: e57b6cdb80aaf6da0789be6153a753915b8b66370b54fbd5cec8cdc2ec431ded84e5f57a6a5b43c4f9dba5ebbfd6b42e76f2135c357a0129397373b64d4065c3
6
+ metadata.gz: ea789ce032e18fb3179efd48d248d7971437ef9d57463eac945ec69c257d58b98d0949897f10d28aa2d1c66a9a077f550ff9fb322239dc3ad5ade4ff7d2dea25
7
+ data.tar.gz: e72f87b81212d45c3f0210c7bf80d0ea13087fa14815f785f55dc4451bb29b1ad44ca04244b13a9f93d20b62bd10cc26d3d51cbd0787f465ff5679773e05b85d
@@ -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,90 @@ 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
+ headers['Accept'] = 'application/json'
79
+ headers['user-agent'] = @sdk_configuration.user_agent
80
+
81
+ r = @sdk_configuration.client.get(url) do |req|
82
+ req.headers = headers
83
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
84
+ end
85
+
86
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
87
+
88
+ res = ::SpeakeasyClientSDK::Operations::GetWorkspaceTargetsResponse.new(
89
+ status_code: r.status, content_type: content_type, raw_response: r
90
+ )
91
+ if r.status == 200
92
+ if Utils.match_content_type(content_type, 'application/json')
93
+ out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::TargetSDK])
94
+ res.target_sdk_list = out
95
+ end
96
+ elsif r.status >= 500 && r.status < 600
97
+ if Utils.match_content_type(content_type, 'application/json')
98
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
99
+ res.error = out
100
+ end
101
+ end
102
+ res
103
+ end
104
+
105
+
22
106
  sig { params(request: ::SpeakeasyClientSDK::Operations::PostWorkspaceEventsRequest).returns(::SpeakeasyClientSDK::Operations::PostWorkspaceEventsResponse) }
23
107
  def post_workspace_events(request)
24
108
  # 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
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, access_details: T.nilable(::SpeakeasyClientSDK::Shared::AccessDetails), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
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,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 GetWorkspaceEventsRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # Filter to only return events corresponding to a particular gen_lock_id
15
+ field :generate_gen_lock_id, T.nilable(::String), { 'query_param': { 'field_name': 'generate_gen_lock_id', '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(generate_gen_lock_id: T.nilable(::String), workspace_id: T.nilable(::String)).void }
21
+ def initialize(generate_gen_lock_id: nil, workspace_id: nil)
22
+ @generate_gen_lock_id = generate_gen_lock_id
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 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,24 @@
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
+ # Unique identifier of the workspace.
15
+ field :workspace_id, T.nilable(::String), { 'path_param': { 'field_name': 'workspaceID', 'style': 'simple', 'explode': false } }
16
+
17
+
18
+ sig { params(workspace_id: T.nilable(::String)).void }
19
+ def initialize(workspace_id: nil)
20
+ @workspace_id = workspace_id
21
+ end
22
+ end
23
+ end
24
+ 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
- # Version of the generated target (post generation)
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
- # Version of the generated target (prior to generation)
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') } }
@@ -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
- sig { params(api_key: ::String).void }
19
- def initialize(api_key: nil)
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,57 @@
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
+ # Timestamp when the event was created in the database.
15
+ field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
16
+ # The target of the event.
17
+ field :generate_target, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_target') } }
18
+ # Unique identifier for each event.
19
+ field :id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('id') } }
20
+ # Remote commit ID.
21
+ field :commit_head, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('commit_head') } }
22
+ # Version of the generated target (post generation)
23
+ field :generate_config_post_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_post_version') } }
24
+ # gen.lock ID (expected to be a uuid).
25
+ field :generate_gen_lock_id, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_gen_lock_id') } }
26
+ # Indicates whether the target was considered published.
27
+ field :generate_published, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_published') } }
28
+ # The version of the target.
29
+ field :generate_target_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_target_version') } }
30
+ # Current working directory relative to the git root.
31
+ field :git_relative_cwd, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_relative_cwd') } }
32
+ # Default owner for git remote.
33
+ field :git_remote_default_owner, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_remote_default_owner') } }
34
+ # Default repository name for git remote.
35
+ field :git_remote_default_repo, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_remote_default_repo') } }
36
+ # Indicates whether the event was successful.
37
+ field :success, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('success') } }
38
+
39
+
40
+ sig { params(created_at: ::DateTime, generate_target: ::String, id: ::String, commit_head: T.nilable(::String), generate_config_post_version: T.nilable(::String), generate_gen_lock_id: T.nilable(::String), generate_published: T.nilable(T::Boolean), generate_target_version: T.nilable(::String), git_relative_cwd: T.nilable(::String), git_remote_default_owner: T.nilable(::String), git_remote_default_repo: T.nilable(::String), success: T.nilable(T::Boolean)).void }
41
+ def initialize(created_at: nil, generate_target: nil, id: nil, commit_head: nil, generate_config_post_version: nil, generate_gen_lock_id: nil, generate_published: nil, generate_target_version: nil, git_relative_cwd: nil, git_remote_default_owner: nil, git_remote_default_repo: nil, success: nil)
42
+ @created_at = created_at
43
+ @generate_target = generate_target
44
+ @id = id
45
+ @commit_head = commit_head
46
+ @generate_config_post_version = generate_config_post_version
47
+ @generate_gen_lock_id = generate_gen_lock_id
48
+ @generate_published = generate_published
49
+ @generate_target_version = generate_target_version
50
+ @git_relative_cwd = git_relative_cwd
51
+ @git_remote_default_owner = git_remote_default_owner
52
+ @git_remote_default_repo = git_remote_default_repo
53
+ @success = success
54
+ end
55
+ end
56
+ end
57
+ 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
@@ -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.6'
45
- @gen_version = '2.269.0'
46
- @user_agent = 'speakeasy-sdk/ruby 4.0.6 2.269.0 0.4.0 speakeasy_client_sdk_ruby'
44
+ @sdk_version = '4.0.7'
45
+ @gen_version = '2.272.4'
46
+ @user_agent = 'speakeasy-sdk/ruby 4.0.7 2.272.4 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.6
4
+ version: 4.0.7
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-23 00:00:00.000000000 Z
11
+ date: 2024-02-25 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