speakeasy_client_sdk_ruby 2.2.3 → 3.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 +48 -39
- data/lib/{sdk → speakeasy_client_sdk}/apis.rb +37 -30
- data/lib/{sdk → speakeasy_client_sdk}/embeds.rb +17 -13
- data/lib/{sdk → speakeasy_client_sdk}/metadata.rb +19 -15
- 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/{sdk/models/operations/getplugins.rb → speakeasy_client_sdk/models/operations/getplugins_response.rb} +7 -9
- 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/speakeasy_client_sdk/models/operations/getschemas_response.rb +36 -0
- data/lib/{sdk/models/operations/getvalidembedaccesstokens.rb → speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb} +7 -9
- 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/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/speakeasy_client_sdk/models/operations/registerschema_response.rb +33 -0
- 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/runplugin_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/runplugin_response.rb +36 -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/{sdk/models/operations/upsertplugin.rb → speakeasy_client_sdk/models/operations/upsertplugin_response.rb} +7 -10
- data/lib/{sdk/models/operations/validateapikey.rb → speakeasy_client_sdk/models/operations/validateapikey_response.rb} +6 -8
- data/lib/speakeasy_client_sdk/models/operations.rb +79 -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/boundedrequest.rb +63 -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/{sdk → speakeasy_client_sdk}/models/shared/generateopenapispecdiff.rb +4 -5
- data/lib/speakeasy_client_sdk/models/shared/plugin.rb +42 -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 +29 -0
- data/lib/{sdk → speakeasy_client_sdk}/plugins.rb +18 -14
- data/lib/{sdk → speakeasy_client_sdk}/requests.rb +19 -15
- data/lib/{sdk → speakeasy_client_sdk}/schemas.rb +46 -37
- data/lib/{sdk → speakeasy_client_sdk}/sdk.rb +3 -3
- data/lib/{sdk → speakeasy_client_sdk}/sdkconfiguration.rb +5 -5
- data/lib/speakeasy_client_sdk_ruby.rb +13 -66
- metadata +105 -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/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 → speakeasy_client_sdk}/utils/metadata_fields.rb +0 -0
- /data/lib/{sdk → speakeasy_client_sdk}/utils/utils.rb +0 -0
@@ -3,34 +3,33 @@
|
|
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 Api is representation of a API (a collection of API Endpoints) within the Speakeasy Platform.
|
12
11
|
class Api < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
12
|
extend T::Sig
|
14
13
|
|
15
14
|
# The ID of this Api. This is a human-readable name (subject to change).
|
16
|
-
field :api_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
|
15
|
+
field :api_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
|
17
16
|
# Creation timestamp.
|
18
|
-
field :created_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
17
|
+
field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
19
18
|
# A detailed description of the Api.
|
20
|
-
field :description, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
|
19
|
+
field :description, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
|
21
20
|
# Last update timestamp.
|
22
|
-
field :updated_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
21
|
+
field :updated_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
23
22
|
# The version ID of this Api. This is semantic version identifier.
|
24
|
-
field :version_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
23
|
+
field :version_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
25
24
|
# The workspace ID this Api belongs to.
|
26
|
-
field :workspace_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
25
|
+
field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
27
26
|
# Determines if all the endpoints within the Api are found in the OpenAPI spec associated with the Api.
|
28
27
|
field :matched, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('matched') } }
|
29
28
|
# A set of values associated with a meta_data key. This field is only set on get requests.
|
30
|
-
field :meta_data, T.nilable(T::Hash[Symbol, T::Array[String]]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_data') } }
|
29
|
+
field :meta_data, T.nilable(T::Hash[Symbol, T::Array[::String]]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_data') } }
|
31
30
|
|
32
31
|
|
33
|
-
sig { params(api_id: String, created_at: DateTime, description: String, updated_at: DateTime, version_id: String, workspace_id: String, matched: T.nilable(T::Boolean), meta_data: T.nilable(T::Hash[Symbol, T::Array[String]])).void }
|
32
|
+
sig { params(api_id: ::String, created_at: ::DateTime, description: ::String, updated_at: ::DateTime, version_id: ::String, workspace_id: ::String, matched: T.nilable(T::Boolean), meta_data: T.nilable(T::Hash[Symbol, T::Array[::String]])).void }
|
34
33
|
def initialize(api_id: nil, created_at: nil, description: nil, updated_at: nil, version_id: nil, workspace_id: nil, matched: nil, meta_data: nil)
|
35
34
|
@api_id = api_id
|
36
35
|
@created_at = created_at
|
@@ -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
|
# An Api is representation of a API (a collection of API Endpoints) within the Speakeasy Platform.
|
12
11
|
class ApiInput < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
12
|
extend T::Sig
|
14
13
|
|
15
14
|
# The ID of this Api. This is a human-readable name (subject to change).
|
16
|
-
field :api_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
|
15
|
+
field :api_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
|
17
16
|
# A detailed description of the Api.
|
18
|
-
field :description, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
|
17
|
+
field :description, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
|
19
18
|
# The version ID of this Api. This is semantic version identifier.
|
20
|
-
field :version_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
19
|
+
field :version_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
21
20
|
# A set of values associated with a meta_data key. This field is only set on get requests.
|
22
|
-
field :meta_data, T.nilable(T::Hash[Symbol, T::Array[String]]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_data') } }
|
21
|
+
field :meta_data, T.nilable(T::Hash[Symbol, T::Array[::String]]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_data') } }
|
23
22
|
|
24
23
|
|
25
|
-
sig { params(api_id: String, description: String, version_id: String, meta_data: T.nilable(T::Hash[Symbol, T::Array[String]])).void }
|
24
|
+
sig { params(api_id: ::String, description: ::String, version_id: ::String, meta_data: T.nilable(T::Hash[Symbol, T::Array[::String]])).void }
|
26
25
|
def initialize(api_id: nil, description: nil, version_id: nil, meta_data: nil)
|
27
26
|
@api_id = api_id
|
28
27
|
@description = description
|
@@ -0,0 +1,54 @@
|
|
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
|
+
# An ApiEndpoint is a description of an Endpoint for an API.
|
11
|
+
class ApiEndpoint < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The ID of this ApiEndpoint. This is a hash of the method and path.
|
15
|
+
field :api_endpoint_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_endpoint_id') } }
|
16
|
+
# The ID of the Api this ApiEndpoint belongs to.
|
17
|
+
field :api_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
|
18
|
+
# Creation timestamp.
|
19
|
+
field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
20
|
+
# A detailed description of the ApiEndpoint.
|
21
|
+
field :description, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
|
22
|
+
# A human-readable name for the ApiEndpoint.
|
23
|
+
field :display_name, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('display_name') } }
|
24
|
+
# HTTP verb.
|
25
|
+
field :method, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('method') } }
|
26
|
+
# Path that handles this Api.
|
27
|
+
field :path, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('path') } }
|
28
|
+
# Last update timestamp.
|
29
|
+
field :updated_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
30
|
+
# The version ID of the Api this ApiEndpoint belongs to.
|
31
|
+
field :version_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
32
|
+
# The workspace ID this ApiEndpoint belongs to.
|
33
|
+
field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
34
|
+
# Determines if the endpoint was found in the OpenAPI spec associated with the parent Api.
|
35
|
+
field :matched, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('matched') } }
|
36
|
+
|
37
|
+
|
38
|
+
sig { params(api_endpoint_id: ::String, api_id: ::String, created_at: ::DateTime, description: ::String, display_name: ::String, method: ::String, path: ::String, updated_at: ::DateTime, version_id: ::String, workspace_id: ::String, matched: T.nilable(T::Boolean)).void }
|
39
|
+
def initialize(api_endpoint_id: nil, api_id: nil, created_at: nil, description: nil, display_name: nil, method: nil, path: nil, updated_at: nil, version_id: nil, workspace_id: nil, matched: nil)
|
40
|
+
@api_endpoint_id = api_endpoint_id
|
41
|
+
@api_id = api_id
|
42
|
+
@created_at = created_at
|
43
|
+
@description = description
|
44
|
+
@display_name = display_name
|
45
|
+
@method = method
|
46
|
+
@path = path
|
47
|
+
@updated_at = updated_at
|
48
|
+
@version_id = version_id
|
49
|
+
@workspace_id = workspace_id
|
50
|
+
@matched = matched
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -3,30 +3,29 @@
|
|
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 ApiEndpoint is a description of an Endpoint for an API.
|
12
11
|
class ApiEndpointInput < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
12
|
extend T::Sig
|
14
13
|
|
15
14
|
# The ID of this ApiEndpoint. This is a hash of the method and path.
|
16
|
-
field :api_endpoint_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_endpoint_id') } }
|
15
|
+
field :api_endpoint_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_endpoint_id') } }
|
17
16
|
# A detailed description of the ApiEndpoint.
|
18
|
-
field :description, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
|
17
|
+
field :description, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
|
19
18
|
# A human-readable name for the ApiEndpoint.
|
20
|
-
field :display_name, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('display_name') } }
|
19
|
+
field :display_name, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('display_name') } }
|
21
20
|
# HTTP verb.
|
22
|
-
field :method, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('method') } }
|
21
|
+
field :method, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('method') } }
|
23
22
|
# Path that handles this Api.
|
24
|
-
field :path, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('path') } }
|
23
|
+
field :path, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('path') } }
|
25
24
|
# The version ID of the Api this ApiEndpoint belongs to.
|
26
|
-
field :version_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
25
|
+
field :version_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
27
26
|
|
28
27
|
|
29
|
-
sig { params(api_endpoint_id: String, description: String, display_name: String, method: String, path: String, version_id: String).void }
|
28
|
+
sig { params(api_endpoint_id: ::String, description: ::String, display_name: ::String, method: ::String, path: ::String, version_id: ::String).void }
|
30
29
|
def initialize(api_endpoint_id: nil, description: nil, display_name: nil, method: nil, path: nil, version_id: nil)
|
31
30
|
@api_endpoint_id = api_endpoint_id
|
32
31
|
@description = description
|
@@ -0,0 +1,63 @@
|
|
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 BoundedRequest is a request that has been logged by the Speakeasy without the contents of the request.
|
11
|
+
class BoundedRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The ID of the ApiEndpoint this request was made to.
|
15
|
+
field :api_endpoint_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_endpoint_id') } }
|
16
|
+
# The ID of the Api this request was made to.
|
17
|
+
field :api_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
|
18
|
+
# Creation timestamp.
|
19
|
+
field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
20
|
+
# The ID of the customer that made this request.
|
21
|
+
field :customer_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('customer_id') } }
|
22
|
+
# The latency of the request.
|
23
|
+
field :latency, ::Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('latency') } }
|
24
|
+
# HTTP verb.
|
25
|
+
field :method, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('method') } }
|
26
|
+
# The path of the request.
|
27
|
+
field :path, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('path') } }
|
28
|
+
# The time the request finished.
|
29
|
+
field :request_finish_time, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('request_finish_time'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
30
|
+
# The ID of this request.
|
31
|
+
field :request_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('request_id') } }
|
32
|
+
# The time the request was made.
|
33
|
+
field :request_start_time, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('request_start_time'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
34
|
+
# The status code of the request.
|
35
|
+
field :status, ::Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('status') } }
|
36
|
+
# The version ID of the Api this request was made to.
|
37
|
+
field :version_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
38
|
+
# The workspace ID this request was made to.
|
39
|
+
field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
40
|
+
# Metadata associated with this request
|
41
|
+
field :metadata, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::RequestMetadata]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('metadata') } }
|
42
|
+
|
43
|
+
|
44
|
+
sig { params(api_endpoint_id: ::String, api_id: ::String, created_at: ::DateTime, customer_id: ::String, latency: ::Integer, method: ::String, path: ::String, request_finish_time: ::DateTime, request_id: ::String, request_start_time: ::DateTime, status: ::Integer, version_id: ::String, workspace_id: ::String, metadata: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::RequestMetadata])).void }
|
45
|
+
def initialize(api_endpoint_id: nil, api_id: nil, created_at: nil, customer_id: nil, latency: nil, method: nil, path: nil, request_finish_time: nil, request_id: nil, request_start_time: nil, status: nil, version_id: nil, workspace_id: nil, metadata: nil)
|
46
|
+
@api_endpoint_id = api_endpoint_id
|
47
|
+
@api_id = api_id
|
48
|
+
@created_at = created_at
|
49
|
+
@customer_id = customer_id
|
50
|
+
@latency = latency
|
51
|
+
@method = method
|
52
|
+
@path = path
|
53
|
+
@request_finish_time = request_finish_time
|
54
|
+
@request_id = request_id
|
55
|
+
@request_start_time = request_start_time
|
56
|
+
@status = status
|
57
|
+
@version_id = version_id
|
58
|
+
@workspace_id = workspace_id
|
59
|
+
@metadata = metadata
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
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
|
# An EmbedAccessTokenResponse contains a token that can be used to embed a Speakeasy dashboard.
|
12
11
|
class EmbedAccessTokenResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
12
|
extend T::Sig
|
14
13
|
|
15
14
|
|
16
|
-
field :access_token, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('access_token') } }
|
15
|
+
field :access_token, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('access_token') } }
|
17
16
|
|
18
17
|
|
19
|
-
sig { params(access_token: String).void }
|
18
|
+
sig { params(access_token: ::String).void }
|
20
19
|
def initialize(access_token: nil)
|
21
20
|
@access_token = access_token
|
22
21
|
end
|
@@ -0,0 +1,51 @@
|
|
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 representation of an embed token granted for working with Speakeasy components.
|
11
|
+
class EmbedToken < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Creation timestamp.
|
15
|
+
field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
16
|
+
# The ID of the user that created this token.
|
17
|
+
field :created_by, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_by') } }
|
18
|
+
# A detailed description of the EmbedToken.
|
19
|
+
field :description, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
|
20
|
+
# The time this token expires.
|
21
|
+
field :expires_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('expires_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
22
|
+
# The filters applied to this token.
|
23
|
+
field :filters, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('filters') } }
|
24
|
+
# The ID of this EmbedToken.
|
25
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('id') } }
|
26
|
+
# The workspace ID this token belongs to.
|
27
|
+
field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
28
|
+
# The last time this token was used.
|
29
|
+
field :last_used, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('last_used'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
30
|
+
# The time this token was revoked.
|
31
|
+
field :revoked_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('revoked_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
32
|
+
# The ID of the user that revoked this token.
|
33
|
+
field :revoked_by, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('revoked_by') } }
|
34
|
+
|
35
|
+
|
36
|
+
sig { params(created_at: ::DateTime, created_by: ::String, description: ::String, expires_at: ::DateTime, filters: ::String, id: ::String, workspace_id: ::String, last_used: T.nilable(::DateTime), revoked_at: T.nilable(::DateTime), revoked_by: T.nilable(::String)).void }
|
37
|
+
def initialize(created_at: nil, created_by: nil, description: nil, expires_at: nil, filters: nil, id: nil, workspace_id: nil, last_used: nil, revoked_at: nil, revoked_by: nil)
|
38
|
+
@created_at = created_at
|
39
|
+
@created_by = created_by
|
40
|
+
@description = description
|
41
|
+
@expires_at = expires_at
|
42
|
+
@filters = filters
|
43
|
+
@id = id
|
44
|
+
@workspace_id = workspace_id
|
45
|
+
@last_used = last_used
|
46
|
+
@revoked_at = revoked_at
|
47
|
+
@revoked_by = revoked_by
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
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
|
# The `Status` type defines a logical error model
|
12
11
|
class Error < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
12
|
extend T::Sig
|
14
13
|
|
15
14
|
# A developer-facing error message.
|
16
|
-
field :message, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('message') } }
|
15
|
+
field :message, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('message') } }
|
17
16
|
# The HTTP status code
|
18
|
-
field :status_code, Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('status_code') } }
|
17
|
+
field :status_code, ::Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('status_code') } }
|
19
18
|
|
20
19
|
|
21
|
-
sig { params(message: String, status_code: Integer).void }
|
20
|
+
sig { params(message: ::String, status_code: ::Integer).void }
|
22
21
|
def initialize(message: nil, status_code: nil)
|
23
22
|
@message = message
|
24
23
|
@status_code = status_code
|
@@ -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
|
@@ -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,42 @@
|
|
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 plugin is a short script that is run against ingested requests
|
11
|
+
class Plugin < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :code, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('code') } }
|
16
|
+
|
17
|
+
field :plugin_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('plugin_id') } }
|
18
|
+
|
19
|
+
field :title, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('title') } }
|
20
|
+
|
21
|
+
field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
22
|
+
|
23
|
+
field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
24
|
+
|
25
|
+
field :eval_hash, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('eval_hash') } }
|
26
|
+
|
27
|
+
field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
28
|
+
|
29
|
+
|
30
|
+
sig { params(code: ::String, plugin_id: ::String, title: ::String, workspace_id: ::String, created_at: T.nilable(::DateTime), eval_hash: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
|
31
|
+
def initialize(code: nil, plugin_id: nil, title: nil, workspace_id: nil, created_at: nil, eval_hash: nil, updated_at: nil)
|
32
|
+
@code = code
|
33
|
+
@plugin_id = plugin_id
|
34
|
+
@title = title
|
35
|
+
@workspace_id = workspace_id
|
36
|
+
@created_at = created_at
|
37
|
+
@eval_hash = eval_hash
|
38
|
+
@updated_at = updated_at
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
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
|