speakeasy_client_sdk_ruby 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sdk/embeds.rb +1 -1
- data/lib/sdk/models/operations/deleteapi.rb +2 -2
- data/lib/sdk/models/operations/deleteapiendpoint.rb +2 -2
- data/lib/sdk/models/operations/deleteschema.rb +2 -2
- data/lib/sdk/models/operations/deleteversionmetadata.rb +2 -2
- data/lib/sdk/models/operations/downloadschema.rb +2 -2
- data/lib/sdk/models/operations/downloadschemarevision.rb +2 -2
- data/lib/sdk/models/operations/findapiendpoint.rb +2 -2
- data/lib/sdk/models/operations/generateopenapispec.rb +2 -2
- data/lib/sdk/models/operations/generateopenapispecforapiendpoint.rb +2 -2
- data/lib/sdk/models/operations/generatepostmancollection.rb +2 -2
- data/lib/sdk/models/operations/generatepostmancollectionforapiendpoint.rb +2 -2
- data/lib/sdk/models/operations/generaterequestpostmancollection.rb +2 -2
- data/lib/sdk/models/operations/getallapiendpoints.rb +2 -2
- data/lib/sdk/models/operations/getallapiversions.rb +3 -3
- data/lib/sdk/models/operations/getallforversionapiendpoints.rb +2 -2
- data/lib/sdk/models/operations/getapiendpoint.rb +2 -2
- data/lib/sdk/models/operations/getapis.rb +3 -3
- data/lib/sdk/models/operations/getembedaccesstoken.rb +2 -2
- data/lib/sdk/models/operations/getplugins.rb +1 -1
- data/lib/sdk/models/operations/getrequestfromeventlog.rb +2 -2
- data/lib/sdk/models/operations/getschema.rb +2 -2
- data/lib/sdk/models/operations/getschemadiff.rb +2 -2
- data/lib/sdk/models/operations/getschemarevision.rb +2 -2
- data/lib/sdk/models/operations/getschemas.rb +2 -2
- data/lib/sdk/models/operations/getvalidembedaccesstokens.rb +1 -1
- data/lib/sdk/models/operations/getversionmetadata.rb +2 -2
- data/lib/sdk/models/operations/insertversionmetadata.rb +2 -2
- data/lib/sdk/models/operations/queryeventlog.rb +2 -2
- data/lib/sdk/models/operations/registerschema.rb +4 -4
- data/lib/sdk/models/operations/revokeembedaccesstoken.rb +2 -2
- data/lib/sdk/models/operations/runplugin.rb +2 -2
- data/lib/sdk/models/operations/upsertapi.rb +2 -2
- data/lib/sdk/models/operations/upsertapiendpoint.rb +2 -2
- data/lib/sdk/models/operations/upsertplugin.rb +1 -1
- data/lib/sdk/models/operations/validateapikey.rb +1 -1
- data/lib/sdk/models/shared/api.rb +9 -9
- data/lib/sdk/models/shared/api_input.rb +5 -5
- data/lib/sdk/models/shared/apiendpoint.rb +12 -12
- data/lib/sdk/models/shared/apiendpoint_input.rb +7 -7
- data/lib/sdk/models/shared/boundedrequest.rb +15 -15
- data/lib/sdk/models/shared/embedaccesstokenresponse.rb +2 -2
- data/lib/sdk/models/shared/embedtoken.rb +11 -11
- data/lib/sdk/models/shared/error.rb +3 -3
- data/lib/sdk/models/shared/filter.rb +4 -4
- data/lib/sdk/models/shared/filters.rb +5 -5
- data/lib/sdk/models/shared/generateopenapispecdiff.rb +3 -3
- data/lib/sdk/models/shared/plugin.rb +8 -8
- data/lib/sdk/models/shared/requestmetadata.rb +3 -3
- data/lib/sdk/models/shared/schema.rb +7 -7
- data/lib/sdk/models/shared/schemadiff.rb +7 -7
- data/lib/sdk/models/shared/security.rb +1 -1
- data/lib/sdk/models/shared/unboundedrequest.rb +6 -6
- data/lib/sdk/models/shared/versionmetadata.rb +7 -7
- data/lib/sdk/models/shared/versionmetadata_input.rb +3 -3
- data/lib/sdk/plugins.rb +1 -1
- data/lib/sdk/sdk.rb +1 -1
- data/lib/sdk/sdkconfiguration.rb +5 -5
- metadata +7 -7
@@ -11,7 +11,7 @@ require_relative '../shared/plugin'
|
|
11
11
|
module SpeakeasyClientSDK
|
12
12
|
module Operations
|
13
13
|
|
14
|
-
class UpsertPluginResponse < SpeakeasyClientSDK::Utils::FieldAugmented
|
14
|
+
class UpsertPluginResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
15
15
|
extend T::Sig
|
16
16
|
|
17
17
|
# HTTP response content type for this operation
|
@@ -10,7 +10,7 @@ require_relative '../shared/error'
|
|
10
10
|
module SpeakeasyClientSDK
|
11
11
|
module Operations
|
12
12
|
|
13
|
-
class ValidateApiKeyResponse < SpeakeasyClientSDK::Utils::FieldAugmented
|
13
|
+
class ValidateApiKeyResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
14
14
|
extend T::Sig
|
15
15
|
|
16
16
|
# HTTP response content type for this operation
|
@@ -9,25 +9,25 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
# An Api is representation of a API (a collection of API Endpoints) within the Speakeasy Platform.
|
12
|
-
class Api < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class Api < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
# The ID of this Api. This is a human-readable name (subject to change).
|
16
|
-
field :api_id, String, { 'format_json': { 'letter_case':
|
16
|
+
field :api_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
|
17
17
|
# Creation timestamp.
|
18
|
-
field :created_at, DateTime, { 'format_json': { 'letter_case':
|
18
|
+
field :created_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
19
19
|
# A detailed description of the Api.
|
20
|
-
field :description, String, { 'format_json': { 'letter_case':
|
20
|
+
field :description, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
|
21
21
|
# Last update timestamp.
|
22
|
-
field :updated_at, DateTime, { 'format_json': { 'letter_case':
|
22
|
+
field :updated_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
23
23
|
# The version ID of this Api. This is semantic version identifier.
|
24
|
-
field :version_id, String, { 'format_json': { 'letter_case':
|
24
|
+
field :version_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
25
25
|
# The workspace ID this Api belongs to.
|
26
|
-
field :workspace_id, String, { 'format_json': { 'letter_case':
|
26
|
+
field :workspace_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
27
27
|
# Determines if all the endpoints within the Api are found in the OpenAPI spec associated with the Api.
|
28
|
-
field :matched, T.nilable(T::Boolean), { 'format_json': { 'letter_case':
|
28
|
+
field :matched, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('matched') } }
|
29
29
|
# 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':
|
30
|
+
field :meta_data, T.nilable(T::Hash[Symbol, T::Array[String]]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_data') } }
|
31
31
|
|
32
32
|
|
33
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 }
|
@@ -9,17 +9,17 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
# An Api is representation of a API (a collection of API Endpoints) within the Speakeasy Platform.
|
12
|
-
class ApiInput < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class ApiInput < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
# The ID of this Api. This is a human-readable name (subject to change).
|
16
|
-
field :api_id, String, { 'format_json': { 'letter_case':
|
16
|
+
field :api_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
|
17
17
|
# A detailed description of the Api.
|
18
|
-
field :description, String, { 'format_json': { 'letter_case':
|
18
|
+
field :description, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
|
19
19
|
# The version ID of this Api. This is semantic version identifier.
|
20
|
-
field :version_id, String, { 'format_json': { 'letter_case':
|
20
|
+
field :version_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
21
21
|
# 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':
|
22
|
+
field :meta_data, T.nilable(T::Hash[Symbol, T::Array[String]]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_data') } }
|
23
23
|
|
24
24
|
|
25
25
|
sig { params(api_id: String, description: String, version_id: String, meta_data: T.nilable(T::Hash[Symbol, T::Array[String]])).void }
|
@@ -9,31 +9,31 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
# An ApiEndpoint is a description of an Endpoint for an API.
|
12
|
-
class ApiEndpoint < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class ApiEndpoint < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
# The ID of this ApiEndpoint. This is a hash of the method and path.
|
16
|
-
field :api_endpoint_id, String, { 'format_json': { 'letter_case':
|
16
|
+
field :api_endpoint_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_endpoint_id') } }
|
17
17
|
# The ID of the Api this ApiEndpoint belongs to.
|
18
|
-
field :api_id, String, { 'format_json': { 'letter_case':
|
18
|
+
field :api_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
|
19
19
|
# Creation timestamp.
|
20
|
-
field :created_at, DateTime, { 'format_json': { 'letter_case':
|
20
|
+
field :created_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
21
21
|
# A detailed description of the ApiEndpoint.
|
22
|
-
field :description, String, { 'format_json': { 'letter_case':
|
22
|
+
field :description, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
|
23
23
|
# A human-readable name for the ApiEndpoint.
|
24
|
-
field :display_name, String, { 'format_json': { 'letter_case':
|
24
|
+
field :display_name, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('display_name') } }
|
25
25
|
# HTTP verb.
|
26
|
-
field :method, String, { 'format_json': { 'letter_case':
|
26
|
+
field :method, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('method') } }
|
27
27
|
# Path that handles this Api.
|
28
|
-
field :path, String, { 'format_json': { 'letter_case':
|
28
|
+
field :path, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('path') } }
|
29
29
|
# Last update timestamp.
|
30
|
-
field :updated_at, DateTime, { 'format_json': { 'letter_case':
|
30
|
+
field :updated_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
31
31
|
# The version ID of the Api this ApiEndpoint belongs to.
|
32
|
-
field :version_id, String, { 'format_json': { 'letter_case':
|
32
|
+
field :version_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
33
33
|
# The workspace ID this ApiEndpoint belongs to.
|
34
|
-
field :workspace_id, String, { 'format_json': { 'letter_case':
|
34
|
+
field :workspace_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
35
35
|
# Determines if the endpoint was found in the OpenAPI spec associated with the parent Api.
|
36
|
-
field :matched, T.nilable(T::Boolean), { 'format_json': { 'letter_case':
|
36
|
+
field :matched, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('matched') } }
|
37
37
|
|
38
38
|
|
39
39
|
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 }
|
@@ -9,21 +9,21 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
# An ApiEndpoint is a description of an Endpoint for an API.
|
12
|
-
class ApiEndpointInput < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class ApiEndpointInput < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
# The ID of this ApiEndpoint. This is a hash of the method and path.
|
16
|
-
field :api_endpoint_id, String, { 'format_json': { 'letter_case':
|
16
|
+
field :api_endpoint_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_endpoint_id') } }
|
17
17
|
# A detailed description of the ApiEndpoint.
|
18
|
-
field :description, String, { 'format_json': { 'letter_case':
|
18
|
+
field :description, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
|
19
19
|
# A human-readable name for the ApiEndpoint.
|
20
|
-
field :display_name, String, { 'format_json': { 'letter_case':
|
20
|
+
field :display_name, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('display_name') } }
|
21
21
|
# HTTP verb.
|
22
|
-
field :method, String, { 'format_json': { 'letter_case':
|
22
|
+
field :method, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('method') } }
|
23
23
|
# Path that handles this Api.
|
24
|
-
field :path, String, { 'format_json': { 'letter_case':
|
24
|
+
field :path, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('path') } }
|
25
25
|
# The version ID of the Api this ApiEndpoint belongs to.
|
26
|
-
field :version_id, String, { 'format_json': { 'letter_case':
|
26
|
+
field :version_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
27
27
|
|
28
28
|
|
29
29
|
sig { params(api_endpoint_id: String, description: String, display_name: String, method: String, path: String, version_id: String).void }
|
@@ -9,37 +9,37 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
# A BoundedRequest is a request that has been logged by the Speakeasy without the contents of the request.
|
12
|
-
class BoundedRequest < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class BoundedRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
# The ID of the ApiEndpoint this request was made to.
|
16
|
-
field :api_endpoint_id, String, { 'format_json': { 'letter_case':
|
16
|
+
field :api_endpoint_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_endpoint_id') } }
|
17
17
|
# The ID of the Api this request was made to.
|
18
|
-
field :api_id, String, { 'format_json': { 'letter_case':
|
18
|
+
field :api_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
|
19
19
|
# Creation timestamp.
|
20
|
-
field :created_at, DateTime, { 'format_json': { 'letter_case':
|
20
|
+
field :created_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
21
21
|
# The ID of the customer that made this request.
|
22
|
-
field :customer_id, String, { 'format_json': { 'letter_case':
|
22
|
+
field :customer_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('customer_id') } }
|
23
23
|
# The latency of the request.
|
24
|
-
field :latency, Integer, { 'format_json': { 'letter_case':
|
24
|
+
field :latency, Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('latency') } }
|
25
25
|
# HTTP verb.
|
26
|
-
field :method, String, { 'format_json': { 'letter_case':
|
26
|
+
field :method, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('method') } }
|
27
27
|
# The path of the request.
|
28
|
-
field :path, String, { 'format_json': { 'letter_case':
|
28
|
+
field :path, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('path') } }
|
29
29
|
# The time the request finished.
|
30
|
-
field :request_finish_time, DateTime, { 'format_json': { 'letter_case':
|
30
|
+
field :request_finish_time, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('request_finish_time'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
31
31
|
# The ID of this request.
|
32
|
-
field :request_id, String, { 'format_json': { 'letter_case':
|
32
|
+
field :request_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('request_id') } }
|
33
33
|
# The time the request was made.
|
34
|
-
field :request_start_time, DateTime, { 'format_json': { 'letter_case':
|
34
|
+
field :request_start_time, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('request_start_time'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
35
35
|
# The status code of the request.
|
36
|
-
field :status, Integer, { 'format_json': { 'letter_case':
|
36
|
+
field :status, Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('status') } }
|
37
37
|
# The version ID of the Api this request was made to.
|
38
|
-
field :version_id, String, { 'format_json': { 'letter_case':
|
38
|
+
field :version_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
39
39
|
# The workspace ID this request was made to.
|
40
|
-
field :workspace_id, String, { 'format_json': { 'letter_case':
|
40
|
+
field :workspace_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
41
41
|
# Metadata associated with this request
|
42
|
-
field :metadata, T.nilable(T::Array[Shared::RequestMetadata]), { 'format_json': { 'letter_case':
|
42
|
+
field :metadata, T.nilable(T::Array[Shared::RequestMetadata]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('metadata') } }
|
43
43
|
|
44
44
|
|
45
45
|
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[Shared::RequestMetadata])).void }
|
@@ -9,11 +9,11 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
# An EmbedAccessTokenResponse contains a token that can be used to embed a Speakeasy dashboard.
|
12
|
-
class EmbedAccessTokenResponse < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class EmbedAccessTokenResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
|
16
|
-
field :access_token, String, { 'format_json': { 'letter_case':
|
16
|
+
field :access_token, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('access_token') } }
|
17
17
|
|
18
18
|
|
19
19
|
sig { params(access_token: String).void }
|
@@ -9,29 +9,29 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
# A representation of an embed token granted for working with Speakeasy components.
|
12
|
-
class EmbedToken < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class EmbedToken < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
# Creation timestamp.
|
16
|
-
field :created_at, DateTime, { 'format_json': { 'letter_case':
|
16
|
+
field :created_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
17
17
|
# The ID of the user that created this token.
|
18
|
-
field :created_by, String, { 'format_json': { 'letter_case':
|
18
|
+
field :created_by, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_by') } }
|
19
19
|
# A detailed description of the EmbedToken.
|
20
|
-
field :description, String, { 'format_json': { 'letter_case':
|
20
|
+
field :description, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
|
21
21
|
# The time this token expires.
|
22
|
-
field :expires_at, DateTime, { 'format_json': { 'letter_case':
|
22
|
+
field :expires_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('expires_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
23
23
|
# The filters applied to this token.
|
24
|
-
field :filters, String, { 'format_json': { 'letter_case':
|
24
|
+
field :filters, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('filters') } }
|
25
25
|
# The ID of this EmbedToken.
|
26
|
-
field :id, String, { 'format_json': { 'letter_case':
|
26
|
+
field :id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('id') } }
|
27
27
|
# The workspace ID this token belongs to.
|
28
|
-
field :workspace_id, String, { 'format_json': { 'letter_case':
|
28
|
+
field :workspace_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
29
29
|
# The last time this token was used.
|
30
|
-
field :last_used, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
30
|
+
field :last_used, T.nilable(DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('last_used'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
31
31
|
# The time this token was revoked.
|
32
|
-
field :revoked_at, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
32
|
+
field :revoked_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('revoked_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
33
33
|
# The ID of the user that revoked this token.
|
34
|
-
field :revoked_by, T.nilable(String), { 'format_json': { 'letter_case':
|
34
|
+
field :revoked_by, T.nilable(String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('revoked_by') } }
|
35
35
|
|
36
36
|
|
37
37
|
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 }
|
@@ -9,13 +9,13 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
# The `Status` type defines a logical error model
|
12
|
-
class Error < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class Error < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
# A developer-facing error message.
|
16
|
-
field :message, String, { 'format_json': { 'letter_case':
|
16
|
+
field :message, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('message') } }
|
17
17
|
# The HTTP status code
|
18
|
-
field :status_code, Integer, { 'format_json': { 'letter_case':
|
18
|
+
field :status_code, Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('status_code') } }
|
19
19
|
|
20
20
|
|
21
21
|
sig { params(message: String, status_code: Integer).void }
|
@@ -9,15 +9,15 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
# A filter is a key-value pair that can be used to filter a list of requests.
|
12
|
-
class Filter < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class Filter < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
# The key of the filter.
|
16
|
-
field :key, String, { 'format_json': { 'letter_case':
|
16
|
+
field :key, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('key') } }
|
17
17
|
# The operator of the filter.
|
18
|
-
field :operator, String, { 'format_json': { 'letter_case':
|
18
|
+
field :operator, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('operator') } }
|
19
19
|
# The value of the filter.
|
20
|
-
field :value, String, { 'format_json': { 'letter_case':
|
20
|
+
field :value, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('value') } }
|
21
21
|
|
22
22
|
|
23
23
|
sig { params(key: String, operator: String, value: String).void }
|
@@ -9,17 +9,17 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
# Filters are used to query requests.
|
12
|
-
class Filters < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class Filters < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
# A list of filters to apply to the query.
|
16
|
-
field :filters, T::Array[Shared::Filter], { 'format_json': { 'letter_case':
|
16
|
+
field :filters, T::Array[Shared::Filter], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('filters') } }
|
17
17
|
# The maximum number of results to return.
|
18
|
-
field :limit, Integer, { 'format_json': { 'letter_case':
|
18
|
+
field :limit, Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('limit') } }
|
19
19
|
# The offset to start the query from.
|
20
|
-
field :offset, Integer, { 'format_json': { 'letter_case':
|
20
|
+
field :offset, Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('offset') } }
|
21
21
|
# The operator to use when combining filters.
|
22
|
-
field :operator, String, { 'format_json': { 'letter_case':
|
22
|
+
field :operator, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('operator') } }
|
23
23
|
|
24
24
|
|
25
25
|
sig { params(filters: T::Array[Shared::Filter], limit: Integer, offset: Integer, operator: String).void }
|
@@ -9,13 +9,13 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
|
12
|
-
class GenerateOpenApiSpecDiff < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class GenerateOpenApiSpecDiff < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
|
16
|
-
field :current_schema, String, { 'format_json': { 'letter_case':
|
16
|
+
field :current_schema, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('current_schema') } }
|
17
17
|
|
18
|
-
field :new_schema, String, { 'format_json': { 'letter_case':
|
18
|
+
field :new_schema, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('new_schema') } }
|
19
19
|
|
20
20
|
|
21
21
|
sig { params(current_schema: String, new_schema: String).void }
|
@@ -9,23 +9,23 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
# A plugin is a short script that is run against ingested requests
|
12
|
-
class Plugin < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class Plugin < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
|
16
|
-
field :code, String, { 'format_json': { 'letter_case':
|
16
|
+
field :code, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('code') } }
|
17
17
|
|
18
|
-
field :plugin_id, String, { 'format_json': { 'letter_case':
|
18
|
+
field :plugin_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('plugin_id') } }
|
19
19
|
|
20
|
-
field :title, String, { 'format_json': { 'letter_case':
|
20
|
+
field :title, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('title') } }
|
21
21
|
|
22
|
-
field :workspace_id, String, { 'format_json': { 'letter_case':
|
22
|
+
field :workspace_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
23
23
|
|
24
|
-
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
24
|
+
field :created_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
25
25
|
|
26
|
-
field :eval_hash, T.nilable(String), { 'format_json': { 'letter_case':
|
26
|
+
field :eval_hash, T.nilable(String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('eval_hash') } }
|
27
27
|
|
28
|
-
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case':
|
28
|
+
field :updated_at, T.nilable(DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
29
29
|
|
30
30
|
|
31
31
|
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 }
|
@@ -9,13 +9,13 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
# Key-Value pairs associated with a request
|
12
|
-
class RequestMetadata < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class RequestMetadata < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
|
16
|
-
field :key, T.nilable(String), { 'format_json': { 'letter_case':
|
16
|
+
field :key, T.nilable(String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('key') } }
|
17
17
|
|
18
|
-
field :value, T.nilable(String), { 'format_json': { 'letter_case':
|
18
|
+
field :value, T.nilable(String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('value') } }
|
19
19
|
|
20
20
|
|
21
21
|
sig { params(key: T.nilable(String), value: T.nilable(String)).void }
|
@@ -9,21 +9,21 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
# A Schema represents an API schema for a particular Api and Version.
|
12
|
-
class Schema < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class Schema < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
# The ID of the Api this Schema belongs to.
|
16
|
-
field :api_id, String, { 'format_json': { 'letter_case':
|
16
|
+
field :api_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
|
17
17
|
# Creation timestamp.
|
18
|
-
field :created_at, DateTime, { 'format_json': { 'letter_case':
|
18
|
+
field :created_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
19
19
|
# A detailed description of the Schema.
|
20
|
-
field :description, String, { 'format_json': { 'letter_case':
|
20
|
+
field :description, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
|
21
21
|
# An ID referencing this particular revision of the Schema.
|
22
|
-
field :revision_id, String, { 'format_json': { 'letter_case':
|
22
|
+
field :revision_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('revision_id') } }
|
23
23
|
# The version ID of the Api this Schema belongs to.
|
24
|
-
field :version_id, String, { 'format_json': { 'letter_case':
|
24
|
+
field :version_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
25
25
|
# The workspace ID this Schema belongs to.
|
26
|
-
field :workspace_id, String, { 'format_json': { 'letter_case':
|
26
|
+
field :workspace_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
27
27
|
|
28
28
|
|
29
29
|
sig { params(api_id: String, created_at: DateTime, description: String, revision_id: String, version_id: String, workspace_id: String).void }
|
@@ -9,13 +9,13 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
|
12
|
-
class ValueChange < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class ValueChange < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
# Represents the previous value of the element.
|
16
|
-
field :from, String, { 'format_json': { 'letter_case':
|
16
|
+
field :from, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('From') } }
|
17
17
|
# Represents the current value of the element.
|
18
|
-
field :to, String, { 'format_json': { 'letter_case':
|
18
|
+
field :to, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('To') } }
|
19
19
|
|
20
20
|
|
21
21
|
sig { params(from: String, to: String).void }
|
@@ -26,15 +26,15 @@ module SpeakeasyClientSDK
|
|
26
26
|
end
|
27
27
|
|
28
28
|
# A SchemaDiff represents a diff of two Schemas.
|
29
|
-
class SchemaDiff < SpeakeasyClientSDK::Utils::FieldAugmented
|
29
|
+
class SchemaDiff < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
30
30
|
extend T::Sig
|
31
31
|
|
32
32
|
# Holds every addition change in the diff.
|
33
|
-
field :additions, T::Array[String], { 'format_json': { 'letter_case':
|
33
|
+
field :additions, T::Array[String], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('additions') } }
|
34
34
|
# Holds every deletion change in the diff.
|
35
|
-
field :deletions, T::Array[String], { 'format_json': { 'letter_case':
|
35
|
+
field :deletions, T::Array[String], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('deletions') } }
|
36
36
|
# Holds every modification change in the diff.
|
37
|
-
field :modifications, T::Hash[Symbol, Shared::ValueChange], { 'format_json': { 'letter_case':
|
37
|
+
field :modifications, T::Hash[Symbol, Shared::ValueChange], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('modifications') } }
|
38
38
|
|
39
39
|
|
40
40
|
sig { params(additions: T::Array[String], deletions: T::Array[String], modifications: T::Hash[Symbol, Shared::ValueChange]).void }
|
@@ -9,19 +9,19 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
# An UnboundedRequest represents the HAR content capture by Speakeasy when logging a request.
|
12
|
-
class UnboundedRequest < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class UnboundedRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
# Creation timestamp.
|
16
|
-
field :created_at, DateTime, { 'format_json': { 'letter_case':
|
16
|
+
field :created_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
17
17
|
# The HAR content of the request.
|
18
|
-
field :har, String, { 'format_json': { 'letter_case':
|
18
|
+
field :har, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('har') } }
|
19
19
|
# The size of the HAR content in bytes.
|
20
|
-
field :har_size_bytes, Integer, { 'format_json': { 'letter_case':
|
20
|
+
field :har_size_bytes, Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('har_size_bytes') } }
|
21
21
|
# The ID of this request.
|
22
|
-
field :request_id, String, { 'format_json': { 'letter_case':
|
22
|
+
field :request_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('request_id') } }
|
23
23
|
# The workspace ID this request was made to.
|
24
|
-
field :workspace_id, String, { 'format_json': { 'letter_case':
|
24
|
+
field :workspace_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
25
25
|
|
26
26
|
|
27
27
|
sig { params(created_at: DateTime, har: String, har_size_bytes: Integer, request_id: String, workspace_id: String).void }
|
@@ -9,21 +9,21 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
# A set of keys and associated values, attached to a particular version of an Api.
|
12
|
-
class VersionMetadata < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class VersionMetadata < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
# The ID of the Api this Metadata belongs to.
|
16
|
-
field :api_id, String, { 'format_json': { 'letter_case':
|
16
|
+
field :api_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
|
17
17
|
# Creation timestamp.
|
18
|
-
field :created_at, DateTime, { 'format_json': { 'letter_case':
|
18
|
+
field :created_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
|
19
19
|
# The key for this metadata.
|
20
|
-
field :meta_key, String, { 'format_json': { 'letter_case':
|
20
|
+
field :meta_key, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_key') } }
|
21
21
|
# One of the values for this metadata.
|
22
|
-
field :meta_value, String, { 'format_json': { 'letter_case':
|
22
|
+
field :meta_value, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_value') } }
|
23
23
|
# The version ID of the Api this Metadata belongs to.
|
24
|
-
field :version_id, String, { 'format_json': { 'letter_case':
|
24
|
+
field :version_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
|
25
25
|
# The workspace ID this Metadata belongs to.
|
26
|
-
field :workspace_id, String, { 'format_json': { 'letter_case':
|
26
|
+
field :workspace_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
|
27
27
|
|
28
28
|
|
29
29
|
sig { params(api_id: String, created_at: DateTime, meta_key: String, meta_value: String, version_id: String, workspace_id: String).void }
|
@@ -9,13 +9,13 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
# A set of keys and associated values, attached to a particular version of an Api.
|
12
|
-
class VersionMetadataInput < SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
class VersionMetadataInput < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
# The key for this metadata.
|
16
|
-
field :meta_key, String, { 'format_json': { 'letter_case':
|
16
|
+
field :meta_key, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_key') } }
|
17
17
|
# One of the values for this metadata.
|
18
|
-
field :meta_value, String, { 'format_json': { 'letter_case':
|
18
|
+
field :meta_value, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_value') } }
|
19
19
|
|
20
20
|
|
21
21
|
sig { params(meta_key: String, meta_value: String).void }
|
data/lib/sdk/plugins.rb
CHANGED
@@ -17,7 +17,7 @@ module SpeakeasyClientSDK
|
|
17
17
|
@sdk_configuration = sdk_config
|
18
18
|
end
|
19
19
|
|
20
|
-
sig { returns(Utils::FieldAugmented) }
|
20
|
+
sig { returns(::SpeakeasyClientSDK::Utils::FieldAugmented) }
|
21
21
|
def get_plugins
|
22
22
|
# get_plugins - Get all plugins for the current workspace.
|
23
23
|
url, params = @sdk_configuration.get_server_details
|
data/lib/sdk/sdk.rb
CHANGED
@@ -92,7 +92,7 @@ module SpeakeasyClientSDK
|
|
92
92
|
end
|
93
93
|
|
94
94
|
|
95
|
-
sig { returns(Utils::FieldAugmented) }
|
95
|
+
sig { returns(::SpeakeasyClientSDK::Utils::FieldAugmented) }
|
96
96
|
def validate_api_key
|
97
97
|
# validate_api_key - Validate the current api key.
|
98
98
|
url, params = @sdk_configuration.get_server_details
|