speakeasy_client_sdk_ruby 2.2.3 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/{sdk → speakeasy_client_sdk}/apiendpoints.rb +66 -49
- data/lib/{sdk → speakeasy_client_sdk}/apis.rb +49 -37
- data/lib/speakeasy_client_sdk/auth.rb +57 -0
- data/lib/{sdk → speakeasy_client_sdk}/embeds.rb +20 -15
- data/lib/speakeasy_client_sdk/events.rb +63 -0
- data/lib/{sdk → speakeasy_client_sdk}/metadata.rb +26 -19
- data/lib/speakeasy_client_sdk/models/operations/deleteapi_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteapi_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteschema_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteschema_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteversionmetadata_request.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/deleteversionmetadata_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/downloadschema_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/downloadschema_response.rb +39 -0
- data/lib/speakeasy_client_sdk/models/operations/downloadschemarevision_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/downloadschemarevision_response.rb +39 -0
- data/lib/speakeasy_client_sdk/models/operations/file.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/findapiendpoint_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/findapiendpoint_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/generateopenapispec_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/generateopenapispec_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/generateopenapispecforapiendpoint_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/generateopenapispecforapiendpoint_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/generatepostmancollection_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/generatepostmancollection_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/generatepostmancollectionforapiendpoint_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/generatepostmancollectionforapiendpoint_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/generaterequestpostmancollection_request.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/generaterequestpostmancollection_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getallapiendpoints_request.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/getallapiendpoints_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getallapiversions_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/getallapiversions_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getallforversionapiendpoints_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/getallforversionapiendpoints_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getapiendpoint_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/getapiendpoint_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getapis_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/getapis_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_request.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getschema_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/getschema_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getschemadiff_request.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/getschemadiff_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getschemarevision_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/getschemarevision_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/getschemas_request.rb +27 -0
- data/lib/{sdk/models/operations/getplugins.rb → speakeasy_client_sdk/models/operations/getschemas_response.rb} +8 -10
- data/lib/{sdk/models/operations/getvalidembedaccesstokens.rb → speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb} +9 -11
- data/lib/speakeasy_client_sdk/models/operations/getversionmetadata_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/getversionmetadata_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/insertversionmetadata_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/insertversionmetadata_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/op.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/postworkspaceevents_response.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/queryeventlog_request.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/queryeventlog_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/queryparam_op.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/registerschema_request.rb +30 -0
- data/lib/speakeasy_client_sdk/models/operations/registerschema_requestbody.rb +24 -0
- data/lib/{sdk/models/operations/validateapikey.rb → speakeasy_client_sdk/models/operations/registerschema_response.rb} +7 -9
- data/lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_request.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/upsertapi_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/upsertapi_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_request.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations/validateapikey_response.rb +36 -0
- data/lib/speakeasy_client_sdk/models/operations.rb +77 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/api.rb +9 -10
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/api_input.rb +6 -7
- data/lib/speakeasy_client_sdk/models/shared/apiendpoint.rb +54 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/apiendpoint_input.rb +8 -9
- data/lib/speakeasy_client_sdk/models/shared/apikeydetails.rb +24 -0
- data/lib/speakeasy_client_sdk/models/shared/boundedrequest.rb +63 -0
- data/lib/speakeasy_client_sdk/models/shared/clievent.rb +156 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/embedaccesstokenresponse.rb +3 -4
- data/lib/speakeasy_client_sdk/models/shared/embedtoken.rb +51 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/error.rb +4 -5
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/filter.rb +5 -6
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/filters.rb +6 -7
- data/lib/speakeasy_client_sdk/models/shared/generate_bump_type.rb +22 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/generateopenapispecdiff.rb +4 -5
- data/lib/speakeasy_client_sdk/models/shared/interaction_type.rb +19 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/requestmetadata.rb +4 -5
- data/lib/speakeasy_client_sdk/models/shared/schema.rb +39 -0
- data/lib/speakeasy_client_sdk/models/shared/schemadiff.rb +30 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/security.rb +3 -4
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/unboundedrequest.rb +7 -8
- data/lib/speakeasy_client_sdk/models/shared/valuechange.rb +27 -0
- data/lib/speakeasy_client_sdk/models/shared/versionmetadata.rb +39 -0
- data/lib/{sdk → speakeasy_client_sdk}/models/shared/versionmetadata_input.rb +4 -5
- data/lib/speakeasy_client_sdk/models/shared.rb +32 -0
- data/lib/{sdk → speakeasy_client_sdk}/requests.rb +24 -18
- data/lib/{sdk → speakeasy_client_sdk}/schemas.rb +62 -45
- data/lib/{sdk → speakeasy_client_sdk}/sdk.rb +18 -37
- data/lib/{sdk → speakeasy_client_sdk}/sdkconfiguration.rb +11 -8
- data/lib/{sdk → speakeasy_client_sdk}/utils/utils.rb +2 -2
- data/lib/speakeasy_client_sdk_ruby.rb +14 -66
- metadata +107 -67
- data/lib/sdk/models/operations/deleteapi.rb +0 -52
- data/lib/sdk/models/operations/deleteapiendpoint.rb +0 -55
- data/lib/sdk/models/operations/deleteschema.rb +0 -55
- data/lib/sdk/models/operations/deleteversionmetadata.rb +0 -58
- data/lib/sdk/models/operations/downloadschema.rb +0 -58
- data/lib/sdk/models/operations/downloadschemarevision.rb +0 -61
- data/lib/sdk/models/operations/findapiendpoint.rb +0 -59
- data/lib/sdk/models/operations/generateopenapispec.rb +0 -56
- data/lib/sdk/models/operations/generateopenapispecforapiendpoint.rb +0 -59
- data/lib/sdk/models/operations/generatepostmancollection.rb +0 -55
- data/lib/sdk/models/operations/generatepostmancollectionforapiendpoint.rb +0 -58
- data/lib/sdk/models/operations/generaterequestpostmancollection.rb +0 -52
- data/lib/sdk/models/operations/getallapiendpoints.rb +0 -52
- data/lib/sdk/models/operations/getallapiversions.rb +0 -72
- data/lib/sdk/models/operations/getallforversionapiendpoints.rb +0 -55
- data/lib/sdk/models/operations/getapiendpoint.rb +0 -59
- data/lib/sdk/models/operations/getapis.rb +0 -69
- data/lib/sdk/models/operations/getembedaccesstoken.rb +0 -60
- data/lib/sdk/models/operations/getrequestfromeventlog.rb +0 -53
- data/lib/sdk/models/operations/getschema.rb +0 -56
- data/lib/sdk/models/operations/getschemadiff.rb +0 -62
- data/lib/sdk/models/operations/getschemarevision.rb +0 -59
- data/lib/sdk/models/operations/getschemas.rb +0 -55
- data/lib/sdk/models/operations/getversionmetadata.rb +0 -55
- data/lib/sdk/models/operations/insertversionmetadata.rb +0 -59
- data/lib/sdk/models/operations/queryeventlog.rb +0 -53
- data/lib/sdk/models/operations/registerschema.rb +0 -86
- data/lib/sdk/models/operations/revokeembedaccesstoken.rb +0 -49
- data/lib/sdk/models/operations/runplugin.rb +0 -56
- data/lib/sdk/models/operations/upsertapi.rb +0 -56
- data/lib/sdk/models/operations/upsertapiendpoint.rb +0 -62
- data/lib/sdk/models/operations/upsertplugin.rb +0 -39
- data/lib/sdk/models/shared/apiendpoint.rb +0 -55
- data/lib/sdk/models/shared/boundedrequest.rb +0 -64
- data/lib/sdk/models/shared/embedtoken.rb +0 -52
- data/lib/sdk/models/shared/plugin.rb +0 -43
- data/lib/sdk/models/shared/schema.rb +0 -40
- data/lib/sdk/models/shared/schemadiff.rb +0 -48
- data/lib/sdk/models/shared/versionmetadata.rb +0 -40
- data/lib/sdk/plugins.rb +0 -142
- /data/lib/{sdk → speakeasy_client_sdk}/utils/metadata_fields.rb +0 -0
@@ -3,24 +3,23 @@
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
5
5
|
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
6
|
|
9
7
|
module SpeakeasyClientSDK
|
10
8
|
module Shared
|
9
|
+
|
11
10
|
# A filter is a key-value pair that can be used to filter a list of requests.
|
12
11
|
class Filter < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
12
|
extend T::Sig
|
14
13
|
|
15
14
|
# The key of the filter.
|
16
|
-
field :key, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('key') } }
|
15
|
+
field :key, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('key') } }
|
17
16
|
# The operator of the filter.
|
18
|
-
field :operator, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('operator') } }
|
17
|
+
field :operator, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('operator') } }
|
19
18
|
# The value of the filter.
|
20
|
-
field :value, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('value') } }
|
19
|
+
field :value, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('value') } }
|
21
20
|
|
22
21
|
|
23
|
-
sig { params(key: String, operator: String, value: String).void }
|
22
|
+
sig { params(key: ::String, operator: ::String, value: ::String).void }
|
24
23
|
def initialize(key: nil, operator: nil, value: nil)
|
25
24
|
@key = key
|
26
25
|
@operator = operator
|
@@ -3,26 +3,25 @@
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
5
5
|
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
6
|
|
9
7
|
module SpeakeasyClientSDK
|
10
8
|
module Shared
|
9
|
+
|
11
10
|
# Filters are used to query requests.
|
12
11
|
class Filters < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
12
|
extend T::Sig
|
14
13
|
|
15
14
|
# A list of filters to apply to the query.
|
16
|
-
field :filters, T::Array[Shared::Filter], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('filters') } }
|
15
|
+
field :filters, T::Array[::SpeakeasyClientSDK::Shared::Filter], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('filters') } }
|
17
16
|
# The maximum number of results to return.
|
18
|
-
field :limit, Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('limit') } }
|
17
|
+
field :limit, ::Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('limit') } }
|
19
18
|
# The offset to start the query from.
|
20
|
-
field :offset, Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('offset') } }
|
19
|
+
field :offset, ::Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('offset') } }
|
21
20
|
# The operator to use when combining filters.
|
22
|
-
field :operator, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('operator') } }
|
21
|
+
field :operator, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('operator') } }
|
23
22
|
|
24
23
|
|
25
|
-
sig { params(filters: T::Array[Shared::Filter], limit: Integer, offset: Integer, operator: String).void }
|
24
|
+
sig { params(filters: T::Array[::SpeakeasyClientSDK::Shared::Filter], limit: ::Integer, offset: ::Integer, operator: ::String).void }
|
26
25
|
def initialize(filters: nil, limit: nil, offset: nil, operator: nil)
|
27
26
|
@filters = filters
|
28
27
|
@limit = limit
|
@@ -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
|
@@ -3,22 +3,21 @@
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
5
5
|
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
6
|
|
9
7
|
module SpeakeasyClientSDK
|
10
8
|
module Shared
|
9
|
+
|
11
10
|
|
12
11
|
class GenerateOpenApiSpecDiff < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
12
|
extend T::Sig
|
14
13
|
|
15
14
|
|
16
|
-
field :current_schema, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('current_schema') } }
|
15
|
+
field :current_schema, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('current_schema') } }
|
17
16
|
|
18
|
-
field :new_schema, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('new_schema') } }
|
17
|
+
field :new_schema, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('new_schema') } }
|
19
18
|
|
20
19
|
|
21
|
-
sig { params(current_schema: String, new_schema: String).void }
|
20
|
+
sig { params(current_schema: ::String, new_schema: ::String).void }
|
22
21
|
def initialize(current_schema: nil, new_schema: nil)
|
23
22
|
@current_schema = current_schema
|
24
23
|
@new_schema = new_schema
|
@@ -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
|
@@ -3,22 +3,21 @@
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
5
5
|
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
6
|
|
9
7
|
module SpeakeasyClientSDK
|
10
8
|
module Shared
|
9
|
+
|
11
10
|
# Key-Value pairs associated with a request
|
12
11
|
class RequestMetadata < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
12
|
extend T::Sig
|
14
13
|
|
15
14
|
|
16
|
-
field :key, T.nilable(String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('key') } }
|
15
|
+
field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('key') } }
|
17
16
|
|
18
|
-
field :value, T.nilable(String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('value') } }
|
17
|
+
field :value, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('value') } }
|
19
18
|
|
20
19
|
|
21
|
-
sig { params(key: T.nilable(String), value: T.nilable(String)).void }
|
20
|
+
sig { params(key: T.nilable(::String), value: T.nilable(::String)).void }
|
22
21
|
def initialize(key: nil, value: nil)
|
23
22
|
@key = key
|
24
23
|
@value = value
|
@@ -0,0 +1,39 @@
|
|
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
|
+
# A Schema represents an API schema for a particular Api and Version.
|
11
|
+
class Schema < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The ID of the Api this Schema belongs to.
|
15
|
+
field :api_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
|
16
|
+
# Creation timestamp.
|
17
|
+
field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
18
|
+
# A detailed description of the Schema.
|
19
|
+
field :description, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
|
20
|
+
# An ID referencing this particular revision of the Schema.
|
21
|
+
field :revision_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('revision_id') } }
|
22
|
+
# The version ID of the Api this Schema belongs to.
|
23
|
+
field :version_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
24
|
+
# The workspace ID this Schema belongs to.
|
25
|
+
field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
26
|
+
|
27
|
+
|
28
|
+
sig { params(api_id: ::String, created_at: ::DateTime, description: ::String, revision_id: ::String, version_id: ::String, workspace_id: ::String).void }
|
29
|
+
def initialize(api_id: nil, created_at: nil, description: nil, revision_id: nil, version_id: nil, workspace_id: nil)
|
30
|
+
@api_id = api_id
|
31
|
+
@created_at = created_at
|
32
|
+
@description = description
|
33
|
+
@revision_id = revision_id
|
34
|
+
@version_id = version_id
|
35
|
+
@workspace_id = workspace_id
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
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 Shared
|
9
|
+
|
10
|
+
# A SchemaDiff represents a diff of two Schemas.
|
11
|
+
class SchemaDiff < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Holds every addition change in the diff.
|
15
|
+
field :additions, T::Array[::String], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('additions') } }
|
16
|
+
# Holds every deletion change in the diff.
|
17
|
+
field :deletions, T::Array[::String], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('deletions') } }
|
18
|
+
# Holds every modification change in the diff.
|
19
|
+
field :modifications, T::Hash[Symbol, ::SpeakeasyClientSDK::Shared::ValueChange], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('modifications') } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(additions: T::Array[::String], deletions: T::Array[::String], modifications: T::Hash[Symbol, ::SpeakeasyClientSDK::Shared::ValueChange]).void }
|
23
|
+
def initialize(additions: nil, deletions: nil, modifications: nil)
|
24
|
+
@additions = additions
|
25
|
+
@deletions = deletions
|
26
|
+
@modifications = modifications
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -3,20 +3,19 @@
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
5
5
|
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
6
|
|
9
7
|
module SpeakeasyClientSDK
|
10
8
|
module Shared
|
9
|
+
|
11
10
|
|
12
11
|
class Security < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
12
|
extend T::Sig
|
14
13
|
|
15
14
|
|
16
|
-
field :api_key, String, { 'security': { 'scheme': true, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'x-api-key' } }
|
15
|
+
field :api_key, ::String, { 'security': { 'scheme': true, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'x-api-key' } }
|
17
16
|
|
18
17
|
|
19
|
-
sig { params(api_key: String).void }
|
18
|
+
sig { params(api_key: ::String).void }
|
20
19
|
def initialize(api_key: nil)
|
21
20
|
@api_key = api_key
|
22
21
|
end
|
@@ -3,28 +3,27 @@
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
5
5
|
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
6
|
|
9
7
|
module SpeakeasyClientSDK
|
10
8
|
module Shared
|
9
|
+
|
11
10
|
# An UnboundedRequest represents the HAR content capture by Speakeasy when logging a request.
|
12
11
|
class UnboundedRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
12
|
extend T::Sig
|
14
13
|
|
15
14
|
# Creation timestamp.
|
16
|
-
field :created_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
15
|
+
field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
17
16
|
# The HAR content of the request.
|
18
|
-
field :har, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('har') } }
|
17
|
+
field :har, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('har') } }
|
19
18
|
# The size of the HAR content in bytes.
|
20
|
-
field :har_size_bytes, Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('har_size_bytes') } }
|
19
|
+
field :har_size_bytes, ::Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('har_size_bytes') } }
|
21
20
|
# The ID of this request.
|
22
|
-
field :request_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('request_id') } }
|
21
|
+
field :request_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('request_id') } }
|
23
22
|
# The workspace ID this request was made to.
|
24
|
-
field :workspace_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
23
|
+
field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
25
24
|
|
26
25
|
|
27
|
-
sig { params(created_at: DateTime, har: String, har_size_bytes: Integer, request_id: String, workspace_id: String).void }
|
26
|
+
sig { params(created_at: ::DateTime, har: ::String, har_size_bytes: ::Integer, request_id: ::String, workspace_id: ::String).void }
|
28
27
|
def initialize(created_at: nil, har: nil, har_size_bytes: nil, request_id: nil, workspace_id: nil)
|
29
28
|
@created_at = created_at
|
30
29
|
@har = har
|
@@ -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 Shared
|
9
|
+
|
10
|
+
|
11
|
+
class ValueChange < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Represents the previous value of the element.
|
15
|
+
field :from, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('From') } }
|
16
|
+
# Represents the current value of the element.
|
17
|
+
field :to, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('To') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(from: ::String, to: ::String).void }
|
21
|
+
def initialize(from: nil, to: nil)
|
22
|
+
@from = from
|
23
|
+
@to = to
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,39 @@
|
|
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
|
+
# A set of keys and associated values, attached to a particular version of an Api.
|
11
|
+
class VersionMetadata < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The ID of the Api this Metadata belongs to.
|
15
|
+
field :api_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
|
16
|
+
# Creation timestamp.
|
17
|
+
field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
18
|
+
# The key for this metadata.
|
19
|
+
field :meta_key, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_key') } }
|
20
|
+
# One of the values for this metadata.
|
21
|
+
field :meta_value, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_value') } }
|
22
|
+
# The version ID of the Api this Metadata belongs to.
|
23
|
+
field :version_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
24
|
+
# The workspace ID this Metadata belongs to.
|
25
|
+
field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
26
|
+
|
27
|
+
|
28
|
+
sig { params(api_id: ::String, created_at: ::DateTime, meta_key: ::String, meta_value: ::String, version_id: ::String, workspace_id: ::String).void }
|
29
|
+
def initialize(api_id: nil, created_at: nil, meta_key: nil, meta_value: nil, version_id: nil, workspace_id: nil)
|
30
|
+
@api_id = api_id
|
31
|
+
@created_at = created_at
|
32
|
+
@meta_key = meta_key
|
33
|
+
@meta_value = meta_value
|
34
|
+
@version_id = version_id
|
35
|
+
@workspace_id = workspace_id
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -3,22 +3,21 @@
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
5
5
|
|
6
|
-
require 'sorbet-runtime'
|
7
|
-
require 'faraday'
|
8
6
|
|
9
7
|
module SpeakeasyClientSDK
|
10
8
|
module Shared
|
9
|
+
|
11
10
|
# A set of keys and associated values, attached to a particular version of an Api.
|
12
11
|
class VersionMetadataInput < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
12
|
extend T::Sig
|
14
13
|
|
15
14
|
# The key for this metadata.
|
16
|
-
field :meta_key, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_key') } }
|
15
|
+
field :meta_key, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_key') } }
|
17
16
|
# One of the values for this metadata.
|
18
|
-
field :meta_value, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_value') } }
|
17
|
+
field :meta_value, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_value') } }
|
19
18
|
|
20
19
|
|
21
|
-
sig { params(meta_key: String, meta_value: String).void }
|
20
|
+
sig { params(meta_key: ::String, meta_value: ::String).void }
|
22
21
|
def initialize(meta_key: nil, meta_value: nil)
|
23
22
|
@meta_key = meta_key
|
24
23
|
@meta_value = meta_value
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
module SpeakeasyClientSDK
|
7
|
+
module Shared
|
8
|
+
autoload :Error, 'speakeasy_client_sdk/models/shared/error.rb'
|
9
|
+
autoload :GenerateOpenApiSpecDiff, 'speakeasy_client_sdk/models/shared/generateopenapispecdiff.rb'
|
10
|
+
autoload :Api, 'speakeasy_client_sdk/models/shared/api.rb'
|
11
|
+
autoload :ApiInput, 'speakeasy_client_sdk/models/shared/api_input.rb'
|
12
|
+
autoload :ApiEndpoint, 'speakeasy_client_sdk/models/shared/apiendpoint.rb'
|
13
|
+
autoload :ApiEndpointInput, 'speakeasy_client_sdk/models/shared/apiendpoint_input.rb'
|
14
|
+
autoload :VersionMetadata, 'speakeasy_client_sdk/models/shared/versionmetadata.rb'
|
15
|
+
autoload :VersionMetadataInput, 'speakeasy_client_sdk/models/shared/versionmetadata_input.rb'
|
16
|
+
autoload :Schema, 'speakeasy_client_sdk/models/shared/schema.rb'
|
17
|
+
autoload :ValueChange, 'speakeasy_client_sdk/models/shared/valuechange.rb'
|
18
|
+
autoload :SchemaDiff, 'speakeasy_client_sdk/models/shared/schemadiff.rb'
|
19
|
+
autoload :ApiKeyDetails, 'speakeasy_client_sdk/models/shared/apikeydetails.rb'
|
20
|
+
autoload :UnboundedRequest, 'speakeasy_client_sdk/models/shared/unboundedrequest.rb'
|
21
|
+
autoload :BoundedRequest, 'speakeasy_client_sdk/models/shared/boundedrequest.rb'
|
22
|
+
autoload :RequestMetadata, 'speakeasy_client_sdk/models/shared/requestmetadata.rb'
|
23
|
+
autoload :Filters, 'speakeasy_client_sdk/models/shared/filters.rb'
|
24
|
+
autoload :Filter, 'speakeasy_client_sdk/models/shared/filter.rb'
|
25
|
+
autoload :EmbedAccessTokenResponse, 'speakeasy_client_sdk/models/shared/embedaccesstokenresponse.rb'
|
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'
|
30
|
+
autoload :Security, 'speakeasy_client_sdk/models/shared/security.rb'
|
31
|
+
end
|
32
|
+
end
|
@@ -10,14 +10,16 @@ require 'sorbet-runtime'
|
|
10
10
|
module SpeakeasyClientSDK
|
11
11
|
extend T::Sig
|
12
12
|
class Requests
|
13
|
-
# REST APIs for retrieving request information
|
14
13
|
extend T::Sig
|
14
|
+
# REST APIs for retrieving request information
|
15
|
+
|
15
16
|
sig { params(sdk_config: SDKConfiguration).void }
|
16
17
|
def initialize(sdk_config)
|
17
18
|
@sdk_configuration = sdk_config
|
18
19
|
end
|
19
20
|
|
20
|
-
|
21
|
+
|
22
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GenerateRequestPostmanCollectionRequest)).returns(Utils::FieldAugmented) }
|
21
23
|
def generate_request_postman_collection(request)
|
22
24
|
# generate_request_postman_collection - Generate a Postman collection for a particular request.
|
23
25
|
# Generates a Postman collection for a particular request.
|
@@ -25,10 +27,11 @@ module SpeakeasyClientSDK
|
|
25
27
|
url, params = @sdk_configuration.get_server_details
|
26
28
|
base_url = Utils.template_url(url, params)
|
27
29
|
url = Utils.generate_url(
|
28
|
-
Operations::GenerateRequestPostmanCollectionRequest,
|
30
|
+
::SpeakeasyClientSDK::Operations::GenerateRequestPostmanCollectionRequest,
|
29
31
|
base_url,
|
30
32
|
'/v1/eventlog/{requestID}/generate/postman',
|
31
|
-
request
|
33
|
+
request,
|
34
|
+
@sdk_configuration.globals
|
32
35
|
)
|
33
36
|
headers = {}
|
34
37
|
headers['Accept'] = 'application/json;q=1, application/octet-stream;q=0'
|
@@ -41,7 +44,7 @@ module SpeakeasyClientSDK
|
|
41
44
|
|
42
45
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
43
46
|
|
44
|
-
res = Operations::GenerateRequestPostmanCollectionResponse.new(
|
47
|
+
res = ::SpeakeasyClientSDK::Operations::GenerateRequestPostmanCollectionResponse.new(
|
45
48
|
status_code: r.status, content_type: content_type, raw_response: r
|
46
49
|
)
|
47
50
|
if r.status == 200
|
@@ -50,23 +53,25 @@ module SpeakeasyClientSDK
|
|
50
53
|
else
|
51
54
|
|
52
55
|
if Utils.match_content_type(content_type, 'application/json')
|
53
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
|
56
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
54
57
|
res.error = out
|
55
58
|
end
|
56
59
|
end
|
57
60
|
res
|
58
61
|
end
|
59
62
|
|
60
|
-
|
63
|
+
|
64
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetRequestFromEventLogRequest)).returns(Utils::FieldAugmented) }
|
61
65
|
def get_request_from_event_log(request)
|
62
66
|
# get_request_from_event_log - Get information about a particular request.
|
63
67
|
url, params = @sdk_configuration.get_server_details
|
64
68
|
base_url = Utils.template_url(url, params)
|
65
69
|
url = Utils.generate_url(
|
66
|
-
Operations::GetRequestFromEventLogRequest,
|
70
|
+
::SpeakeasyClientSDK::Operations::GetRequestFromEventLogRequest,
|
67
71
|
base_url,
|
68
72
|
'/v1/eventlog/{requestID}',
|
69
|
-
request
|
73
|
+
request,
|
74
|
+
@sdk_configuration.globals
|
70
75
|
)
|
71
76
|
headers = {}
|
72
77
|
headers['Accept'] = 'application/json'
|
@@ -79,25 +84,26 @@ module SpeakeasyClientSDK
|
|
79
84
|
|
80
85
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
81
86
|
|
82
|
-
res = Operations::GetRequestFromEventLogResponse.new(
|
87
|
+
res = ::SpeakeasyClientSDK::Operations::GetRequestFromEventLogResponse.new(
|
83
88
|
status_code: r.status, content_type: content_type, raw_response: r
|
84
89
|
)
|
85
90
|
if r.status == 200
|
86
91
|
if Utils.match_content_type(content_type, 'application/json')
|
87
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::UnboundedRequest)
|
92
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::UnboundedRequest)
|
88
93
|
res.unbounded_request = out
|
89
94
|
end
|
90
95
|
else
|
91
96
|
|
92
97
|
if Utils.match_content_type(content_type, 'application/json')
|
93
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
|
98
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
94
99
|
res.error = out
|
95
100
|
end
|
96
101
|
end
|
97
102
|
res
|
98
103
|
end
|
99
104
|
|
100
|
-
|
105
|
+
|
106
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::QueryEventLogRequest)).returns(Utils::FieldAugmented) }
|
101
107
|
def query_event_log(request)
|
102
108
|
# query_event_log - Query the event log to retrieve a list of requests.
|
103
109
|
# Supports retrieving a list of request captured by the SDK for this workspace.
|
@@ -106,7 +112,7 @@ module SpeakeasyClientSDK
|
|
106
112
|
base_url = Utils.template_url(url, params)
|
107
113
|
url = "#{base_url}/v1/eventlog/query"
|
108
114
|
headers = {}
|
109
|
-
query_params = Utils.get_query_params(Operations::QueryEventLogRequest, request)
|
115
|
+
query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::QueryEventLogRequest, request, @sdk_configuration.globals)
|
110
116
|
headers['Accept'] = 'application/json'
|
111
117
|
headers['user-agent'] = @sdk_configuration.user_agent
|
112
118
|
|
@@ -118,18 +124,18 @@ module SpeakeasyClientSDK
|
|
118
124
|
|
119
125
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
120
126
|
|
121
|
-
res = Operations::QueryEventLogResponse.new(
|
127
|
+
res = ::SpeakeasyClientSDK::Operations::QueryEventLogResponse.new(
|
122
128
|
status_code: r.status, content_type: content_type, raw_response: r
|
123
129
|
)
|
124
130
|
if r.status == 200
|
125
131
|
if Utils.match_content_type(content_type, 'application/json')
|
126
|
-
out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::BoundedRequest])
|
127
|
-
res.
|
132
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::BoundedRequest])
|
133
|
+
res.bounded_requests = out
|
128
134
|
end
|
129
135
|
else
|
130
136
|
|
131
137
|
if Utils.match_content_type(content_type, 'application/json')
|
132
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
|
138
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
133
139
|
res.error = out
|
134
140
|
end
|
135
141
|
end
|