speakeasy_client_sdk_ruby 4.0.7 → 4.0.8

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: 961d9208301353899008da6643c34111efc93e92f7e3c8c60f6e0b07dae8ab73
4
- data.tar.gz: 198a41fe13c7ac468e569294559fcb8369267997f85a5da0dae5fb66e43f6d3e
3
+ metadata.gz: 279f0d691cc6cbe6eeaf01b4f4901ddff2db610050ffcf26911fe67f1ad315fa
4
+ data.tar.gz: 4b5b231d4f2e92383d2ca02090b6b528c503f24dc96e87dc1f8bba3021258f1c
5
5
  SHA512:
6
- metadata.gz: ea789ce032e18fb3179efd48d248d7971437ef9d57463eac945ec69c257d58b98d0949897f10d28aa2d1c66a9a077f550ff9fb322239dc3ad5ade4ff7d2dea25
7
- data.tar.gz: e72f87b81212d45c3f0210c7bf80d0ea13087fa14815f785f55dc4451bb29b1ad44ca04244b13a9f93d20b62bd10cc26d3d51cbd0787f465ff5679773e05b85d
6
+ metadata.gz: 667c9f85774a56abe70c2ed3058b79ad47c52e09713bcec35d7e666a0b7ef3877900b2f367aafbf6ec25feaa2dc9f685fe1f59648faf150df42a0d5724d28746
7
+ data.tar.gz: 84422309adddcd1c3d662fe46ef22ee855c443d41cbb37ecac296a08879d2e2ff986a0b853288df7aaaeb6470ffe411b4c7fe36264f9b9a8e6e2206be3942e13
@@ -75,11 +75,13 @@ module SpeakeasyClientSDK
75
75
  @sdk_configuration.globals
76
76
  )
77
77
  headers = {}
78
+ query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetWorkspaceTargetsRequest, request, @sdk_configuration.globals)
78
79
  headers['Accept'] = 'application/json'
79
80
  headers['user-agent'] = @sdk_configuration.user_agent
80
81
 
81
82
  r = @sdk_configuration.client.get(url) do |req|
82
83
  req.headers = headers
84
+ req.params = query_params
83
85
  Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
84
86
  end
85
87
 
@@ -11,14 +11,17 @@ module SpeakeasyClientSDK
11
11
  class GetWorkspaceEventsRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
- # Filter to only return events corresponding to a particular gen_lock_id
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)
15
17
  field :generate_gen_lock_id, T.nilable(::String), { 'query_param': { 'field_name': 'generate_gen_lock_id', 'style': 'form', 'explode': true } }
16
18
  # Unique identifier of the workspace.
17
19
  field :workspace_id, T.nilable(::String), { 'path_param': { 'field_name': 'workspaceID', 'style': 'simple', 'explode': false } }
18
20
 
19
21
 
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
+ 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
22
25
  @generate_gen_lock_id = generate_gen_lock_id
23
26
  @workspace_id = workspace_id
24
27
  end
@@ -11,12 +11,15 @@ module SpeakeasyClientSDK
11
11
  class GetWorkspaceTargetsRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
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 } }
14
16
  # Unique identifier of the workspace.
15
17
  field :workspace_id, T.nilable(::String), { 'path_param': { 'field_name': 'workspaceID', 'style': 'simple', 'explode': false } }
16
18
 
17
19
 
18
- sig { params(workspace_id: T.nilable(::String)).void }
19
- def initialize(workspace_id: nil)
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
20
23
  @workspace_id = workspace_id
21
24
  end
22
25
  end
@@ -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') } }
@@ -11,45 +11,72 @@ module SpeakeasyClientSDK
11
11
  class TargetSDK < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
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) } }
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
16
  # The target of the event.
17
17
  field :generate_target, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_target') } }
18
- # Unique identifier for each event.
18
+ # Unique identifier of the target the same as `generate_gen_lock_id`
19
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') } }
20
24
  # Remote commit ID.
21
25
  field :commit_head, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('commit_head') } }
22
26
  # Version of the generated target (post generation)
23
27
  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
28
  # Indicates whether the target was considered published.
27
29
  field :generate_published, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_published') } }
28
- # The version of the target.
30
+ # The version of the Speakeasy generator for this target eg v2 of the typescript generator.
29
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') } }
30
40
  # Current working directory relative to the git root.
31
41
  field :git_relative_cwd, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_relative_cwd') } }
32
42
  # Default owner for git remote.
33
43
  field :git_remote_default_owner, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_remote_default_owner') } }
34
44
  # Default repository name for git remote.
35
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') } }
36
54
  # Indicates whether the event was successful.
37
55
  field :success, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('success') } }
38
56
 
39
57
 
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
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
43
61
  @generate_target = generate_target
44
62
  @id = id
63
+ @last_event_created_at = last_event_created_at
64
+ @last_event_id = last_event_id
45
65
  @commit_head = commit_head
46
66
  @generate_config_post_version = generate_config_post_version
47
- @generate_gen_lock_id = generate_gen_lock_id
48
67
  @generate_published = generate_published
49
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
50
73
  @git_relative_cwd = git_relative_cwd
51
74
  @git_remote_default_owner = git_remote_default_owner
52
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
53
80
  @success = success
54
81
  end
55
82
  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(security: T.nilable(Shared::Security),
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(security: nil,
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.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'
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.7
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-25 00:00:00.000000000 Z
11
+ date: 2024-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday