speakeasy_client_sdk_ruby 3.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/lib/speakeasy_client_sdk/apiendpoints.rb +18 -10
  3. data/lib/speakeasy_client_sdk/apis.rb +14 -9
  4. data/lib/speakeasy_client_sdk/auth.rb +57 -0
  5. data/lib/speakeasy_client_sdk/embeds.rb +4 -3
  6. data/lib/speakeasy_client_sdk/events.rb +69 -0
  7. data/lib/speakeasy_client_sdk/metadata.rb +7 -4
  8. data/lib/speakeasy_client_sdk/models/operations/getallapiendpoints_response.rb +4 -4
  9. data/lib/speakeasy_client_sdk/models/operations/getallapiversions_response.rb +4 -4
  10. data/lib/speakeasy_client_sdk/models/operations/getallforversionapiendpoints_response.rb +4 -4
  11. data/lib/speakeasy_client_sdk/models/operations/getapis_response.rb +4 -4
  12. data/lib/speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb +4 -4
  13. data/lib/speakeasy_client_sdk/models/operations/getversionmetadata_response.rb +5 -5
  14. data/lib/speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb +27 -0
  15. data/lib/speakeasy_client_sdk/models/operations/{upsertplugin_response.rb → postworkspaceevents_response.rb} +4 -7
  16. data/lib/speakeasy_client_sdk/models/operations/queryeventlog_response.rb +4 -4
  17. data/lib/speakeasy_client_sdk/models/operations/validateapikey_response.rb +5 -2
  18. data/lib/speakeasy_client_sdk/models/operations.rb +3 -5
  19. data/lib/speakeasy_client_sdk/models/shared/apikeydetails.rb +24 -0
  20. data/lib/speakeasy_client_sdk/models/shared/clievent.rb +156 -0
  21. data/lib/speakeasy_client_sdk/models/shared/generate_bump_type.rb +22 -0
  22. data/lib/speakeasy_client_sdk/models/shared/interaction_type.rb +19 -0
  23. data/lib/speakeasy_client_sdk/models/shared.rb +4 -1
  24. data/lib/speakeasy_client_sdk/requests.rb +6 -4
  25. data/lib/speakeasy_client_sdk/schemas.rb +16 -8
  26. data/lib/speakeasy_client_sdk/sdk.rb +17 -36
  27. data/lib/speakeasy_client_sdk/sdkconfiguration.rb +9 -6
  28. data/lib/speakeasy_client_sdk/utils/utils.rb +2 -2
  29. data/lib/speakeasy_client_sdk_ruby.rb +2 -1
  30. metadata +10 -8
  31. data/lib/speakeasy_client_sdk/models/operations/getplugins_response.rb +0 -36
  32. data/lib/speakeasy_client_sdk/models/operations/runplugin_request.rb +0 -27
  33. data/lib/speakeasy_client_sdk/models/operations/runplugin_response.rb +0 -36
  34. data/lib/speakeasy_client_sdk/models/shared/plugin.rb +0 -42
  35. data/lib/speakeasy_client_sdk/plugins.rb +0 -146
@@ -5,7 +5,6 @@
5
5
 
6
6
  module SpeakeasyClientSDK
7
7
  module Operations
8
- autoload :ValidateApiKeyResponse, 'speakeasy_client_sdk/models/operations/validateapikey_response.rb'
9
8
  autoload :DeleteApiRequest, 'speakeasy_client_sdk/models/operations/deleteapi_request.rb'
10
9
  autoload :DeleteApiResponse, 'speakeasy_client_sdk/models/operations/deleteapi_response.rb'
11
10
  autoload :GenerateOpenApiSpecRequest, 'speakeasy_client_sdk/models/operations/generateopenapispec_request.rb'
@@ -60,20 +59,19 @@ module SpeakeasyClientSDK
60
59
  autoload :RegisterSchemaRequestBody, 'speakeasy_client_sdk/models/operations/registerschema_requestbody.rb'
61
60
  autoload :RegisterSchemaRequest, 'speakeasy_client_sdk/models/operations/registerschema_request.rb'
62
61
  autoload :RegisterSchemaResponse, 'speakeasy_client_sdk/models/operations/registerschema_response.rb'
62
+ autoload :ValidateApiKeyResponse, 'speakeasy_client_sdk/models/operations/validateapikey_response.rb'
63
63
  autoload :GenerateRequestPostmanCollectionRequest, 'speakeasy_client_sdk/models/operations/generaterequestpostmancollection_request.rb'
64
64
  autoload :GenerateRequestPostmanCollectionResponse, 'speakeasy_client_sdk/models/operations/generaterequestpostmancollection_response.rb'
65
65
  autoload :GetRequestFromEventLogRequest, 'speakeasy_client_sdk/models/operations/getrequestfromeventlog_request.rb'
66
66
  autoload :GetRequestFromEventLogResponse, 'speakeasy_client_sdk/models/operations/getrequestfromeventlog_response.rb'
67
67
  autoload :QueryEventLogRequest, 'speakeasy_client_sdk/models/operations/queryeventlog_request.rb'
68
68
  autoload :QueryEventLogResponse, 'speakeasy_client_sdk/models/operations/queryeventlog_response.rb'
69
- autoload :GetPluginsResponse, 'speakeasy_client_sdk/models/operations/getplugins_response.rb'
70
- autoload :RunPluginRequest, 'speakeasy_client_sdk/models/operations/runplugin_request.rb'
71
- autoload :RunPluginResponse, 'speakeasy_client_sdk/models/operations/runplugin_response.rb'
72
- autoload :UpsertPluginResponse, 'speakeasy_client_sdk/models/operations/upsertplugin_response.rb'
73
69
  autoload :GetEmbedAccessTokenRequest, 'speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb'
74
70
  autoload :GetEmbedAccessTokenResponse, 'speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb'
75
71
  autoload :GetValidEmbedAccessTokensResponse, 'speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb'
76
72
  autoload :RevokeEmbedAccessTokenRequest, 'speakeasy_client_sdk/models/operations/revokeembedaccesstoken_request.rb'
77
73
  autoload :RevokeEmbedAccessTokenResponse, 'speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb'
74
+ autoload :PostWorkspaceEventsRequest, 'speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb'
75
+ autoload :PostWorkspaceEventsResponse, 'speakeasy_client_sdk/models/operations/postworkspaceevents_response.rb'
78
76
  end
79
77
  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 Shared
9
+
10
+
11
+ class ApiKeyDetails < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
16
+
17
+
18
+ sig { params(workspace_id: ::String).void }
19
+ def initialize(workspace_id: nil)
20
+ @workspace_id = workspace_id
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,156 @@
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 CliEvent < ::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
+ # Unique identifier for each execution of the CLI.
17
+ field :execution_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('execution_id') } }
18
+ # Unique identifier for each event.
19
+ field :id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('id') } }
20
+ # Type of interaction.
21
+ field :interaction_type, ::SpeakeasyClientSDK::Shared::InteractionType, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('interaction_type'), 'decoder': Utils.enum_from_string(::SpeakeasyClientSDK::Shared::InteractionType, false) } }
22
+ # Timestamp when the event started, in local time.
23
+ field :local_started_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('local_started_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
24
+ # Identifier of the Speakeasy API key.
25
+ field :speakeasy_api_key_name, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('speakeasy_api_key_name') } }
26
+ # Version of the Speakeasy CLI.
27
+ field :speakeasy_version, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('speakeasy_version') } }
28
+ # Indicates whether the event was successful.
29
+ field :success, T::Boolean, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('success') } }
30
+ # Identifier of the workspace.
31
+ field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
32
+ # Remote commit ID.
33
+ field :commit_head, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('commit_head') } }
34
+ # Duration of the event in milliseconds.
35
+ field :duration_ms, T.nilable(::Integer), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('duration_ms') } }
36
+ # Bump type of the lock file (calculated semver delta, or a custom change (manual release))
37
+ field :generate_bump_type, T.nilable(::SpeakeasyClientSDK::Shared::GenerateBumpType), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_bump_type'), 'decoder': Utils.enum_from_string(::SpeakeasyClientSDK::Shared::GenerateBumpType, true) } }
38
+ # Checksum of the configuration file (post generation)
39
+ field :generate_config_post_checksum, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_post_checksum') } }
40
+ # Rendered configuration file (post generation)
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)
43
+ field :generate_config_post_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_post_version') } }
44
+ # Checksum of the configuration file (prior to generation)
45
+ field :generate_config_pre_checksum, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_pre_checksum') } }
46
+ # Rendered configuration file (prior to generation)
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)
49
+ field :generate_config_pre_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_pre_version') } }
50
+ # gen.lock ID (expected to be a uuid).
51
+ field :generate_gen_lock_id, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_gen_lock_id') } }
52
+ # Features post generation
53
+ field :generate_gen_lock_post_features, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_gen_lock_post_features') } }
54
+ # Checksum of the Previous Rendered OpenAPI document (prior to generation, via gen lock)
55
+ field :generate_gen_lock_pre_doc_checksum, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_gen_lock_pre_doc_checksum') } }
56
+ # info.Version of the Previous Rendered OpenAPI document (prior to generation, via gen lock)
57
+ field :generate_gen_lock_pre_doc_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_gen_lock_pre_doc_version') } }
58
+ # Features prior to generation
59
+ field :generate_gen_lock_pre_features, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_gen_lock_pre_features') } }
60
+ # Artifact version for the Previous Generation
61
+ field :generate_gen_lock_pre_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_gen_lock_pre_version') } }
62
+ # Indicates whether tests were output.
63
+ field :generate_output_tests, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_output_tests') } }
64
+ # Indicates whether the target was considered published.
65
+ field :generate_published, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_published') } }
66
+ # Expected Repo URL, for use in documentation generation.
67
+ field :generate_repo_url, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_repo_url') } }
68
+ # The target of the event.
69
+ field :generate_target, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_target') } }
70
+ # The version of the target.
71
+ field :generate_target_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_target_version') } }
72
+ # Version of the generation logic used.
73
+ field :generate_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_version') } }
74
+ # GitHub organization of the action.
75
+ field :gh_action_organization, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('gh_action_organization') } }
76
+ # GitHub repository of the action.
77
+ field :gh_action_repository, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('gh_action_repository') } }
78
+ # Link to the GitHub action run.
79
+ field :gh_action_run_link, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('gh_action_run_link') } }
80
+ # Version of the GitHub action.
81
+ field :gh_action_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('gh_action_version') } }
82
+ # Current working directory relative to the git root.
83
+ field :git_relative_cwd, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_relative_cwd') } }
84
+ # Default owner for git remote.
85
+ field :git_remote_default_owner, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_remote_default_owner') } }
86
+ # Default repository name for git remote.
87
+ field :git_remote_default_repo, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_remote_default_repo') } }
88
+ # User email from git configuration.
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.
91
+ field :git_user_name, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_user_name') } }
92
+ # Remote hostname.
93
+ field :hostname, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('hostname') } }
94
+ # Timestamp when the event completed, in local time.
95
+ field :local_completed_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('local_completed_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
96
+ # Checksum of the currently Rendered OpenAPI document.
97
+ field :management_doc_checksum, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('management_doc_checksum') } }
98
+ # Version taken from info.version field of the Rendered OpenAPI document.
99
+ field :management_doc_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('management_doc_version') } }
100
+ # Full CLI command.
101
+ field :raw_command, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('raw_command') } }
102
+ # Label of the git repository.
103
+ field :repo_label, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('repo_label') } }
104
+
105
+
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)
108
+ @created_at = created_at
109
+ @execution_id = execution_id
110
+ @id = id
111
+ @interaction_type = interaction_type
112
+ @local_started_at = local_started_at
113
+ @speakeasy_api_key_name = speakeasy_api_key_name
114
+ @speakeasy_version = speakeasy_version
115
+ @success = success
116
+ @workspace_id = workspace_id
117
+ @commit_head = commit_head
118
+ @duration_ms = duration_ms
119
+ @generate_bump_type = generate_bump_type
120
+ @generate_config_post_checksum = generate_config_post_checksum
121
+ @generate_config_post_raw = generate_config_post_raw
122
+ @generate_config_post_version = generate_config_post_version
123
+ @generate_config_pre_checksum = generate_config_pre_checksum
124
+ @generate_config_pre_raw = generate_config_pre_raw
125
+ @generate_config_pre_version = generate_config_pre_version
126
+ @generate_gen_lock_id = generate_gen_lock_id
127
+ @generate_gen_lock_post_features = generate_gen_lock_post_features
128
+ @generate_gen_lock_pre_doc_checksum = generate_gen_lock_pre_doc_checksum
129
+ @generate_gen_lock_pre_doc_version = generate_gen_lock_pre_doc_version
130
+ @generate_gen_lock_pre_features = generate_gen_lock_pre_features
131
+ @generate_gen_lock_pre_version = generate_gen_lock_pre_version
132
+ @generate_output_tests = generate_output_tests
133
+ @generate_published = generate_published
134
+ @generate_repo_url = generate_repo_url
135
+ @generate_target = generate_target
136
+ @generate_target_version = generate_target_version
137
+ @generate_version = generate_version
138
+ @gh_action_organization = gh_action_organization
139
+ @gh_action_repository = gh_action_repository
140
+ @gh_action_run_link = gh_action_run_link
141
+ @gh_action_version = gh_action_version
142
+ @git_relative_cwd = git_relative_cwd
143
+ @git_remote_default_owner = git_remote_default_owner
144
+ @git_remote_default_repo = git_remote_default_repo
145
+ @git_user_email = git_user_email
146
+ @git_user_name = git_user_name
147
+ @hostname = hostname
148
+ @local_completed_at = local_completed_at
149
+ @management_doc_checksum = management_doc_checksum
150
+ @management_doc_version = management_doc_version
151
+ @raw_command = raw_command
152
+ @repo_label = repo_label
153
+ end
154
+ end
155
+ end
156
+ end
@@ -0,0 +1,22 @@
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
+ # GenerateBumpType - Bump type of the lock file (calculated semver delta, or a custom change (manual release))
11
+ class GenerateBumpType < T::Enum
12
+ enums do
13
+ MAJOR = new('major')
14
+ MINOR = new('minor')
15
+ PATCH = new('patch')
16
+ CUSTOM = new('custom')
17
+ NONE = new('none')
18
+ end
19
+ end
20
+
21
+ end
22
+ end
@@ -0,0 +1,19 @@
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
+ # InteractionType - Type of interaction.
11
+ class InteractionType < T::Enum
12
+ enums do
13
+ CLI_EXEC = new('CLI_EXEC')
14
+ TARGET_GENERATE = new('TARGET_GENERATE')
15
+ end
16
+ end
17
+
18
+ end
19
+ end
@@ -16,14 +16,17 @@ module SpeakeasyClientSDK
16
16
  autoload :Schema, 'speakeasy_client_sdk/models/shared/schema.rb'
17
17
  autoload :ValueChange, 'speakeasy_client_sdk/models/shared/valuechange.rb'
18
18
  autoload :SchemaDiff, 'speakeasy_client_sdk/models/shared/schemadiff.rb'
19
+ autoload :ApiKeyDetails, 'speakeasy_client_sdk/models/shared/apikeydetails.rb'
19
20
  autoload :UnboundedRequest, 'speakeasy_client_sdk/models/shared/unboundedrequest.rb'
20
21
  autoload :BoundedRequest, 'speakeasy_client_sdk/models/shared/boundedrequest.rb'
21
22
  autoload :RequestMetadata, 'speakeasy_client_sdk/models/shared/requestmetadata.rb'
22
23
  autoload :Filters, 'speakeasy_client_sdk/models/shared/filters.rb'
23
24
  autoload :Filter, 'speakeasy_client_sdk/models/shared/filter.rb'
24
- autoload :Plugin, 'speakeasy_client_sdk/models/shared/plugin.rb'
25
25
  autoload :EmbedAccessTokenResponse, 'speakeasy_client_sdk/models/shared/embedaccesstokenresponse.rb'
26
26
  autoload :EmbedToken, 'speakeasy_client_sdk/models/shared/embedtoken.rb'
27
+ autoload :GenerateBumpType, 'speakeasy_client_sdk/models/shared/generate_bump_type.rb'
28
+ autoload :InteractionType, 'speakeasy_client_sdk/models/shared/interaction_type.rb'
29
+ autoload :CliEvent, 'speakeasy_client_sdk/models/shared/clievent.rb'
27
30
  autoload :Security, 'speakeasy_client_sdk/models/shared/security.rb'
28
31
  end
29
32
  end
@@ -30,7 +30,8 @@ module SpeakeasyClientSDK
30
30
  ::SpeakeasyClientSDK::Operations::GenerateRequestPostmanCollectionRequest,
31
31
  base_url,
32
32
  '/v1/eventlog/{requestID}/generate/postman',
33
- request
33
+ request,
34
+ @sdk_configuration.globals
34
35
  )
35
36
  headers = {}
36
37
  headers['Accept'] = 'application/json;q=1, application/octet-stream;q=0'
@@ -69,7 +70,8 @@ module SpeakeasyClientSDK
69
70
  ::SpeakeasyClientSDK::Operations::GetRequestFromEventLogRequest,
70
71
  base_url,
71
72
  '/v1/eventlog/{requestID}',
72
- request
73
+ request,
74
+ @sdk_configuration.globals
73
75
  )
74
76
  headers = {}
75
77
  headers['Accept'] = 'application/json'
@@ -110,7 +112,7 @@ module SpeakeasyClientSDK
110
112
  base_url = Utils.template_url(url, params)
111
113
  url = "#{base_url}/v1/eventlog/query"
112
114
  headers = {}
113
- query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::QueryEventLogRequest, request)
115
+ query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::QueryEventLogRequest, request, @sdk_configuration.globals)
114
116
  headers['Accept'] = 'application/json'
115
117
  headers['user-agent'] = @sdk_configuration.user_agent
116
118
 
@@ -128,7 +130,7 @@ module SpeakeasyClientSDK
128
130
  if r.status == 200
129
131
  if Utils.match_content_type(content_type, 'application/json')
130
132
  out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::BoundedRequest])
131
- res.classes = out
133
+ res.bounded_requests = out
132
134
  end
133
135
  else
134
136
 
@@ -28,7 +28,8 @@ module SpeakeasyClientSDK
28
28
  ::SpeakeasyClientSDK::Operations::DeleteSchemaRequest,
29
29
  base_url,
30
30
  '/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}',
31
- request
31
+ request,
32
+ @sdk_configuration.globals
32
33
  )
33
34
  headers = {}
34
35
  headers['Accept'] = 'application/json'
@@ -65,7 +66,8 @@ module SpeakeasyClientSDK
65
66
  ::SpeakeasyClientSDK::Operations::DownloadSchemaRequest,
66
67
  base_url,
67
68
  '/v1/apis/{apiID}/version/{versionID}/schema/download',
68
- request
69
+ request,
70
+ @sdk_configuration.globals
69
71
  )
70
72
  headers = {}
71
73
  headers['Accept'] = 'application/json;q=1, application/x-yaml;q=0'
@@ -106,7 +108,8 @@ module SpeakeasyClientSDK
106
108
  ::SpeakeasyClientSDK::Operations::DownloadSchemaRevisionRequest,
107
109
  base_url,
108
110
  '/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}/download',
109
- request
111
+ request,
112
+ @sdk_configuration.globals
110
113
  )
111
114
  headers = {}
112
115
  headers['Accept'] = 'application/json;q=1, application/x-yaml;q=0'
@@ -149,7 +152,8 @@ module SpeakeasyClientSDK
149
152
  ::SpeakeasyClientSDK::Operations::GetSchemaRequest,
150
153
  base_url,
151
154
  '/v1/apis/{apiID}/version/{versionID}/schema',
152
- request
155
+ request,
156
+ @sdk_configuration.globals
153
157
  )
154
158
  headers = {}
155
159
  headers['Accept'] = 'application/json'
@@ -190,7 +194,8 @@ module SpeakeasyClientSDK
190
194
  ::SpeakeasyClientSDK::Operations::GetSchemaDiffRequest,
191
195
  base_url,
192
196
  '/v1/apis/{apiID}/version/{versionID}/schema/{baseRevisionID}/diff/{targetRevisionID}',
193
- request
197
+ request,
198
+ @sdk_configuration.globals
194
199
  )
195
200
  headers = {}
196
201
  headers['Accept'] = 'application/json'
@@ -233,7 +238,8 @@ module SpeakeasyClientSDK
233
238
  ::SpeakeasyClientSDK::Operations::GetSchemaRevisionRequest,
234
239
  base_url,
235
240
  '/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}',
236
- request
241
+ request,
242
+ @sdk_configuration.globals
237
243
  )
238
244
  headers = {}
239
245
  headers['Accept'] = 'application/json'
@@ -276,7 +282,8 @@ module SpeakeasyClientSDK
276
282
  ::SpeakeasyClientSDK::Operations::GetSchemasRequest,
277
283
  base_url,
278
284
  '/v1/apis/{apiID}/version/{versionID}/schemas',
279
- request
285
+ request,
286
+ @sdk_configuration.globals
280
287
  )
281
288
  headers = {}
282
289
  headers['Accept'] = 'application/json'
@@ -319,7 +326,8 @@ module SpeakeasyClientSDK
319
326
  ::SpeakeasyClientSDK::Operations::RegisterSchemaRequest,
320
327
  base_url,
321
328
  '/v1/apis/{apiID}/version/{versionID}/schema',
322
- request
329
+ request,
330
+ @sdk_configuration.globals
323
331
  )
324
332
  headers = {}
325
333
  req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :multipart)
@@ -12,18 +12,20 @@ module SpeakeasyClientSDK
12
12
  class SDK
13
13
  extend T::Sig
14
14
 
15
- attr_accessor :apis, :api_endpoints, :metadata, :schemas, :requests, :plugins, :embeds
15
+ attr_accessor :apis, :api_endpoints, :metadata, :schemas, :auth, :requests, :embeds, :events
16
16
 
17
17
  attr_accessor :security, :language, :sdk_version, :gen_version
18
18
 
19
19
  sig do
20
20
  params(security: T.nilable(Shared::Security),
21
+ workspace_id: ::String,
21
22
  server: String,
22
23
  server_url: String,
23
24
  url_params: T::Hash[Symbol, String],
24
25
  client: Faraday::Request).void
25
26
  end
26
27
  def initialize(security: nil,
28
+ workspace_id: nil,
27
29
  server: nil,
28
30
  server_url: nil,
29
31
  url_params: nil,
@@ -31,6 +33,7 @@ module SpeakeasyClientSDK
31
33
 
32
34
  ## Instantiates the SDK configuring it with the provided parameters.
33
35
  # @param [Shared::Security] security The security details required for authentication
36
+ # @param [::String] workspace_id: Configures the workspace_id parameter for all supported operations
34
37
  # @param [String] server The server by name to use for all operations
35
38
  # @param [String] server_url The server URL to use for all operations
36
39
  # @param [Hash<Symbol, String>] url_params Parameters to optionally template the server URL with
@@ -53,8 +56,17 @@ module SpeakeasyClientSDK
53
56
  server = SERVER_PROD if server.nil?
54
57
 
55
58
 
56
-
57
- @sdk_configuration = SDKConfiguration.new(client, security, server_url, server)
59
+ globals = {
60
+ 'parameters': {
61
+ 'queryParam': {
62
+ },
63
+ 'pathParam': {
64
+ 'workspace_id': workspace_id
65
+ }
66
+ }
67
+ }
68
+
69
+ @sdk_configuration = SDKConfiguration.new(client, security, server_url, server, globals)
58
70
  init_sdks
59
71
  end
60
72
 
@@ -86,41 +98,10 @@ module SpeakeasyClientSDK
86
98
  @api_endpoints = ApiEndpoints.new(@sdk_configuration)
87
99
  @metadata = Metadata.new(@sdk_configuration)
88
100
  @schemas = Schemas.new(@sdk_configuration)
101
+ @auth = Auth.new(@sdk_configuration)
89
102
  @requests = Requests.new(@sdk_configuration)
90
- @plugins = Plugins.new(@sdk_configuration)
91
103
  @embeds = Embeds.new(@sdk_configuration)
92
- end
93
-
94
-
95
- sig { returns(::SpeakeasyClientSDK::Utils::FieldAugmented) }
96
- def validate_api_key
97
- # validate_api_key - Validate the current api key.
98
- url, params = @sdk_configuration.get_server_details
99
- base_url = Utils.template_url(url, params)
100
- url = "#{base_url}/v1/auth/validate"
101
- headers = {}
102
- headers['Accept'] = 'application/json'
103
- headers['user-agent'] = @sdk_configuration.user_agent
104
-
105
- r = @sdk_configuration.client.get(url) do |req|
106
- req.headers = headers
107
- Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
108
- end
109
-
110
- content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
111
-
112
- res = ::SpeakeasyClientSDK::Operations::ValidateApiKeyResponse.new(
113
- status_code: r.status, content_type: content_type, raw_response: r
114
- )
115
- if r.status == 200
116
- else
117
-
118
- if Utils.match_content_type(content_type, 'application/json')
119
- out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
120
- res.error = out
121
- end
122
- end
123
- res
104
+ @events = Events.new(@sdk_configuration)
124
105
  end
125
106
  end
126
107
  end
@@ -24,6 +24,7 @@ module SpeakeasyClientSDK
24
24
  field :client, T.nilable(Faraday::Connection)
25
25
  field :security, Shared::Security
26
26
  field :server_url, T.nilable(String)
27
+ field :globals, Hash[Symbol, Hash[Symbol, Hash[Symbol, Object]]]
27
28
  field :language, String
28
29
  field :openapi_doc_version, String
29
30
  field :sdk_version, String
@@ -31,16 +32,18 @@ module SpeakeasyClientSDK
31
32
  field :user_agent, String
32
33
 
33
34
 
34
- sig { params(client: Faraday::Connection, security: T.nilable(Shared::Security), server_url: T.nilable(String), server_idx: T.nilable(Integer)).void }
35
- def initialize(client, security, server_url, server_idx)
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
+ def initialize(client, security, server_url, server_idx, globals)
36
37
  @client = client
37
38
  @server_url = server_url
38
39
  @server = ''
40
+ @security = security
41
+ @globals = globals.nil? ? {} : globals
39
42
  @language = 'ruby'
40
- @openapi_doc_version = '0.3.0'
41
- @sdk_version = '3.0.0'
42
- @gen_version = '2.250.2'
43
- @user_agent = 'speakeasy-sdk/ruby 3.0.0 2.250.2 0.3.0 speakeasy_client_sdk_ruby'
43
+ @openapi_doc_version = '0.4.0'
44
+ @sdk_version = '4.0.1'
45
+ @gen_version = '2.250.21'
46
+ @user_agent = 'speakeasy-sdk/ruby 4.0.1 2.250.21 0.4.0 speakeasy_client_sdk_ruby'
44
47
  end
45
48
 
46
49
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -235,8 +235,8 @@ module SpeakeasyClientSDK
235
235
  _populate_form(field_name, metadata.fetch(:explode, true), obj, delimiter, &get_query_param_field_name)
236
236
  end
237
237
 
238
- sig { params(clazz: Class, query_params: FieldAugmented, gbls: T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]]).returns(T::Hash[Symbol, T::Array[String]]) }
239
- def self.get_query_params(clazz, query_params, gbls)
238
+ sig { params(clazz: Class, query_params: FieldAugmented, gbls: T.nilable(T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]])).returns(T::Hash[Symbol, T::Array[String]]) }
239
+ def self.get_query_params(clazz, query_params, gbls = nil)
240
240
  params = {}
241
241
  param_fields = clazz.fields
242
242
  param_fields.each do |f|
@@ -14,7 +14,8 @@ module SpeakeasyClientSDK
14
14
  autoload :ApiEndpoints, 'speakeasy_client_sdk/apiendpoints'
15
15
  autoload :Metadata, 'speakeasy_client_sdk/metadata'
16
16
  autoload :Schemas, 'speakeasy_client_sdk/schemas'
17
+ autoload :Auth, 'speakeasy_client_sdk/auth'
17
18
  autoload :Requests, 'speakeasy_client_sdk/requests'
18
- autoload :Plugins, 'speakeasy_client_sdk/plugins'
19
19
  autoload :Embeds, 'speakeasy_client_sdk/embeds'
20
+ autoload :Events, 'speakeasy_client_sdk/events'
20
21
  end
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: 3.0.0
4
+ version: 4.0.1
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-06 00:00:00.000000000 Z
11
+ date: 2024-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -144,7 +144,9 @@ extra_rdoc_files: []
144
144
  files:
145
145
  - lib/speakeasy_client_sdk/apiendpoints.rb
146
146
  - lib/speakeasy_client_sdk/apis.rb
147
+ - lib/speakeasy_client_sdk/auth.rb
147
148
  - lib/speakeasy_client_sdk/embeds.rb
149
+ - lib/speakeasy_client_sdk/events.rb
148
150
  - lib/speakeasy_client_sdk/metadata.rb
149
151
  - lib/speakeasy_client_sdk/models/operations.rb
150
152
  - lib/speakeasy_client_sdk/models/operations/deleteapi_request.rb
@@ -184,7 +186,6 @@ files:
184
186
  - lib/speakeasy_client_sdk/models/operations/getapis_response.rb
185
187
  - lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb
186
188
  - lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb
187
- - lib/speakeasy_client_sdk/models/operations/getplugins_response.rb
188
189
  - lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_request.rb
189
190
  - lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_response.rb
190
191
  - lib/speakeasy_client_sdk/models/operations/getschema_request.rb
@@ -201,6 +202,8 @@ files:
201
202
  - lib/speakeasy_client_sdk/models/operations/insertversionmetadata_request.rb
202
203
  - lib/speakeasy_client_sdk/models/operations/insertversionmetadata_response.rb
203
204
  - lib/speakeasy_client_sdk/models/operations/op.rb
205
+ - lib/speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb
206
+ - lib/speakeasy_client_sdk/models/operations/postworkspaceevents_response.rb
204
207
  - lib/speakeasy_client_sdk/models/operations/queryeventlog_request.rb
205
208
  - lib/speakeasy_client_sdk/models/operations/queryeventlog_response.rb
206
209
  - lib/speakeasy_client_sdk/models/operations/queryparam_op.rb
@@ -209,27 +212,27 @@ files:
209
212
  - lib/speakeasy_client_sdk/models/operations/registerschema_response.rb
210
213
  - lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_request.rb
211
214
  - lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb
212
- - lib/speakeasy_client_sdk/models/operations/runplugin_request.rb
213
- - lib/speakeasy_client_sdk/models/operations/runplugin_response.rb
214
215
  - lib/speakeasy_client_sdk/models/operations/upsertapi_request.rb
215
216
  - lib/speakeasy_client_sdk/models/operations/upsertapi_response.rb
216
217
  - lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_request.rb
217
218
  - lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_response.rb
218
- - lib/speakeasy_client_sdk/models/operations/upsertplugin_response.rb
219
219
  - lib/speakeasy_client_sdk/models/operations/validateapikey_response.rb
220
220
  - lib/speakeasy_client_sdk/models/shared.rb
221
221
  - lib/speakeasy_client_sdk/models/shared/api.rb
222
222
  - lib/speakeasy_client_sdk/models/shared/api_input.rb
223
223
  - lib/speakeasy_client_sdk/models/shared/apiendpoint.rb
224
224
  - lib/speakeasy_client_sdk/models/shared/apiendpoint_input.rb
225
+ - lib/speakeasy_client_sdk/models/shared/apikeydetails.rb
225
226
  - lib/speakeasy_client_sdk/models/shared/boundedrequest.rb
227
+ - lib/speakeasy_client_sdk/models/shared/clievent.rb
226
228
  - lib/speakeasy_client_sdk/models/shared/embedaccesstokenresponse.rb
227
229
  - lib/speakeasy_client_sdk/models/shared/embedtoken.rb
228
230
  - lib/speakeasy_client_sdk/models/shared/error.rb
229
231
  - lib/speakeasy_client_sdk/models/shared/filter.rb
230
232
  - lib/speakeasy_client_sdk/models/shared/filters.rb
233
+ - lib/speakeasy_client_sdk/models/shared/generate_bump_type.rb
231
234
  - lib/speakeasy_client_sdk/models/shared/generateopenapispecdiff.rb
232
- - lib/speakeasy_client_sdk/models/shared/plugin.rb
235
+ - lib/speakeasy_client_sdk/models/shared/interaction_type.rb
233
236
  - lib/speakeasy_client_sdk/models/shared/requestmetadata.rb
234
237
  - lib/speakeasy_client_sdk/models/shared/schema.rb
235
238
  - lib/speakeasy_client_sdk/models/shared/schemadiff.rb
@@ -238,7 +241,6 @@ files:
238
241
  - lib/speakeasy_client_sdk/models/shared/valuechange.rb
239
242
  - lib/speakeasy_client_sdk/models/shared/versionmetadata.rb
240
243
  - lib/speakeasy_client_sdk/models/shared/versionmetadata_input.rb
241
- - lib/speakeasy_client_sdk/plugins.rb
242
244
  - lib/speakeasy_client_sdk/requests.rb
243
245
  - lib/speakeasy_client_sdk/schemas.rb
244
246
  - lib/speakeasy_client_sdk/sdk.rb