speakeasy_client_sdk_ruby 2.1.1 → 2.1.3
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/apiendpoints.rb +9 -0
- data/lib/sdk/apis.rb +7 -0
- data/lib/sdk/embeds.rb +3 -0
- data/lib/sdk/metadata.rb +3 -0
- data/lib/sdk/models/operations/deleteapi.rb +5 -5
- data/lib/sdk/models/operations/deleteapiendpoint.rb +5 -5
- data/lib/sdk/models/operations/deleteschema.rb +5 -5
- data/lib/sdk/models/operations/deleteversionmetadata.rb +5 -5
- data/lib/sdk/models/operations/downloadschema.rb +5 -5
- data/lib/sdk/models/operations/downloadschemarevision.rb +5 -5
- data/lib/sdk/models/operations/findapiendpoint.rb +5 -5
- data/lib/sdk/models/operations/generateopenapispec.rb +5 -5
- data/lib/sdk/models/operations/generateopenapispecforapiendpoint.rb +5 -5
- data/lib/sdk/models/operations/generatepostmancollection.rb +5 -5
- data/lib/sdk/models/operations/generatepostmancollectionforapiendpoint.rb +5 -5
- data/lib/sdk/models/operations/generaterequestpostmancollection.rb +5 -5
- data/lib/sdk/models/operations/getallapiendpoints.rb +5 -5
- data/lib/sdk/models/operations/getallapiversions.rb +5 -5
- data/lib/sdk/models/operations/getallforversionapiendpoints.rb +5 -5
- data/lib/sdk/models/operations/getapiendpoint.rb +5 -5
- data/lib/sdk/models/operations/getapis.rb +5 -5
- data/lib/sdk/models/operations/getembedaccesstoken.rb +5 -5
- data/lib/sdk/models/operations/getplugins.rb +5 -5
- data/lib/sdk/models/operations/getrequestfromeventlog.rb +5 -5
- data/lib/sdk/models/operations/getschema.rb +5 -5
- data/lib/sdk/models/operations/getschemadiff.rb +5 -5
- data/lib/sdk/models/operations/getschemarevision.rb +5 -5
- data/lib/sdk/models/operations/getschemas.rb +5 -5
- data/lib/sdk/models/operations/getvalidembedaccesstokens.rb +5 -5
- data/lib/sdk/models/operations/getversionmetadata.rb +5 -5
- data/lib/sdk/models/operations/insertversionmetadata.rb +5 -5
- data/lib/sdk/models/operations/queryeventlog.rb +5 -5
- data/lib/sdk/models/operations/registerschema.rb +5 -5
- data/lib/sdk/models/operations/revokeembedaccesstoken.rb +5 -5
- data/lib/sdk/models/operations/runplugin.rb +5 -5
- data/lib/sdk/models/operations/upsertapi.rb +5 -5
- data/lib/sdk/models/operations/upsertapiendpoint.rb +5 -5
- data/lib/sdk/models/operations/upsertplugin.rb +5 -5
- data/lib/sdk/models/operations/validateapikey.rb +5 -5
- data/lib/sdk/plugins.rb +3 -0
- data/lib/sdk/requests.rb +4 -0
- data/lib/sdk/schemas.rb +12 -0
- data/lib/sdk/sdk.rb +1 -0
- data/lib/sdk/sdkconfiguration.rb +3 -3
- metadata +2 -2
@@ -46,23 +46,23 @@ module SpeakeasyClientSDK
|
|
46
46
|
|
47
47
|
# HTTP response content type for this operation
|
48
48
|
field :content_type, String
|
49
|
+
# Raw HTTP response; suitable for custom response parsing
|
50
|
+
field :raw_response, Faraday::Response
|
49
51
|
# HTTP response status code for this operation
|
50
52
|
field :status_code, Integer
|
51
53
|
# OK
|
52
54
|
field :classes, T.nilable(T::Array[Shared::Api])
|
53
55
|
# Default error response
|
54
56
|
field :error, T.nilable(Shared::Error)
|
55
|
-
# Raw HTTP response; suitable for custom response parsing
|
56
|
-
field :raw_response, T.nilable(Faraday::Response)
|
57
57
|
|
58
58
|
|
59
|
-
sig { params(content_type: String, status_code: Integer, classes: T.nilable(T::Array[Shared::Api]), error: T.nilable(Shared::Error)
|
60
|
-
def initialize(content_type: nil,
|
59
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, classes: T.nilable(T::Array[Shared::Api]), error: T.nilable(Shared::Error)).void }
|
60
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, classes: nil, error: nil)
|
61
61
|
@content_type = content_type
|
62
|
+
@raw_response = raw_response
|
62
63
|
@status_code = status_code
|
63
64
|
@classes = classes
|
64
65
|
@error = error
|
65
|
-
@raw_response = raw_response
|
66
66
|
end
|
67
67
|
end
|
68
68
|
end
|
@@ -37,23 +37,23 @@ module SpeakeasyClientSDK
|
|
37
37
|
|
38
38
|
# HTTP response content type for this operation
|
39
39
|
field :content_type, String
|
40
|
+
# Raw HTTP response; suitable for custom response parsing
|
41
|
+
field :raw_response, Faraday::Response
|
40
42
|
# HTTP response status code for this operation
|
41
43
|
field :status_code, Integer
|
42
44
|
# OK
|
43
45
|
field :embed_access_token_response, T.nilable(Shared::EmbedAccessTokenResponse)
|
44
46
|
# Default error response
|
45
47
|
field :error, T.nilable(Shared::Error)
|
46
|
-
# Raw HTTP response; suitable for custom response parsing
|
47
|
-
field :raw_response, T.nilable(Faraday::Response)
|
48
48
|
|
49
49
|
|
50
|
-
sig { params(content_type: String, status_code: Integer, embed_access_token_response: T.nilable(Shared::EmbedAccessTokenResponse), error: T.nilable(Shared::Error)
|
51
|
-
def initialize(content_type: nil,
|
50
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, embed_access_token_response: T.nilable(Shared::EmbedAccessTokenResponse), error: T.nilable(Shared::Error)).void }
|
51
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, embed_access_token_response: nil, error: nil)
|
52
52
|
@content_type = content_type
|
53
|
+
@raw_response = raw_response
|
53
54
|
@status_code = status_code
|
54
55
|
@embed_access_token_response = embed_access_token_response
|
55
56
|
@error = error
|
56
|
-
@raw_response = raw_response
|
57
57
|
end
|
58
58
|
end
|
59
59
|
end
|
@@ -15,23 +15,23 @@ module SpeakeasyClientSDK
|
|
15
15
|
|
16
16
|
# HTTP response content type for this operation
|
17
17
|
field :content_type, String
|
18
|
+
# Raw HTTP response; suitable for custom response parsing
|
19
|
+
field :raw_response, Faraday::Response
|
18
20
|
# HTTP response status code for this operation
|
19
21
|
field :status_code, Integer
|
20
22
|
# OK
|
21
23
|
field :classes, T.nilable(T::Array[Shared::Plugin])
|
22
24
|
# Default error response
|
23
25
|
field :error, T.nilable(Shared::Error)
|
24
|
-
# Raw HTTP response; suitable for custom response parsing
|
25
|
-
field :raw_response, T.nilable(Faraday::Response)
|
26
26
|
|
27
27
|
|
28
|
-
sig { params(content_type: String, status_code: Integer, classes: T.nilable(T::Array[Shared::Plugin]), error: T.nilable(Shared::Error)
|
29
|
-
def initialize(content_type: nil,
|
28
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, classes: T.nilable(T::Array[Shared::Plugin]), error: T.nilable(Shared::Error)).void }
|
29
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, classes: nil, error: nil)
|
30
30
|
@content_type = content_type
|
31
|
+
@raw_response = raw_response
|
31
32
|
@status_code = status_code
|
32
33
|
@classes = classes
|
33
34
|
@error = error
|
34
|
-
@raw_response = raw_response
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
@@ -30,22 +30,22 @@ module SpeakeasyClientSDK
|
|
30
30
|
|
31
31
|
# HTTP response content type for this operation
|
32
32
|
field :content_type, String
|
33
|
+
# Raw HTTP response; suitable for custom response parsing
|
34
|
+
field :raw_response, Faraday::Response
|
33
35
|
# HTTP response status code for this operation
|
34
36
|
field :status_code, Integer
|
35
37
|
# Default error response
|
36
38
|
field :error, T.nilable(Shared::Error)
|
37
|
-
# Raw HTTP response; suitable for custom response parsing
|
38
|
-
field :raw_response, T.nilable(Faraday::Response)
|
39
39
|
# OK
|
40
40
|
field :unbounded_request, T.nilable(Shared::UnboundedRequest)
|
41
41
|
|
42
42
|
|
43
|
-
sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error),
|
44
|
-
def initialize(content_type: nil,
|
43
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, error: T.nilable(Shared::Error), unbounded_request: T.nilable(Shared::UnboundedRequest)).void }
|
44
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, unbounded_request: nil)
|
45
45
|
@content_type = content_type
|
46
|
+
@raw_response = raw_response
|
46
47
|
@status_code = status_code
|
47
48
|
@error = error
|
48
|
-
@raw_response = raw_response
|
49
49
|
@unbounded_request = unbounded_request
|
50
50
|
end
|
51
51
|
end
|
@@ -33,22 +33,22 @@ module SpeakeasyClientSDK
|
|
33
33
|
|
34
34
|
# HTTP response content type for this operation
|
35
35
|
field :content_type, String
|
36
|
+
# Raw HTTP response; suitable for custom response parsing
|
37
|
+
field :raw_response, Faraday::Response
|
36
38
|
# HTTP response status code for this operation
|
37
39
|
field :status_code, Integer
|
38
40
|
# Default error response
|
39
41
|
field :error, T.nilable(Shared::Error)
|
40
|
-
# Raw HTTP response; suitable for custom response parsing
|
41
|
-
field :raw_response, T.nilable(Faraday::Response)
|
42
42
|
# OK
|
43
43
|
field :schema, T.nilable(Shared::Schema)
|
44
44
|
|
45
45
|
|
46
|
-
sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error),
|
47
|
-
def initialize(content_type: nil,
|
46
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, error: T.nilable(Shared::Error), schema: T.nilable(Shared::Schema)).void }
|
47
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, schema: nil)
|
48
48
|
@content_type = content_type
|
49
|
+
@raw_response = raw_response
|
49
50
|
@status_code = status_code
|
50
51
|
@error = error
|
51
|
-
@raw_response = raw_response
|
52
52
|
@schema = schema
|
53
53
|
end
|
54
54
|
end
|
@@ -39,22 +39,22 @@ module SpeakeasyClientSDK
|
|
39
39
|
|
40
40
|
# HTTP response content type for this operation
|
41
41
|
field :content_type, String
|
42
|
+
# Raw HTTP response; suitable for custom response parsing
|
43
|
+
field :raw_response, Faraday::Response
|
42
44
|
# HTTP response status code for this operation
|
43
45
|
field :status_code, Integer
|
44
46
|
# Default error response
|
45
47
|
field :error, T.nilable(Shared::Error)
|
46
|
-
# Raw HTTP response; suitable for custom response parsing
|
47
|
-
field :raw_response, T.nilable(Faraday::Response)
|
48
48
|
# OK
|
49
49
|
field :schema_diff, T.nilable(Shared::SchemaDiff)
|
50
50
|
|
51
51
|
|
52
|
-
sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error),
|
53
|
-
def initialize(content_type: nil,
|
52
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, error: T.nilable(Shared::Error), schema_diff: T.nilable(Shared::SchemaDiff)).void }
|
53
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, schema_diff: nil)
|
54
54
|
@content_type = content_type
|
55
|
+
@raw_response = raw_response
|
55
56
|
@status_code = status_code
|
56
57
|
@error = error
|
57
|
-
@raw_response = raw_response
|
58
58
|
@schema_diff = schema_diff
|
59
59
|
end
|
60
60
|
end
|
@@ -36,22 +36,22 @@ module SpeakeasyClientSDK
|
|
36
36
|
|
37
37
|
# HTTP response content type for this operation
|
38
38
|
field :content_type, String
|
39
|
+
# Raw HTTP response; suitable for custom response parsing
|
40
|
+
field :raw_response, Faraday::Response
|
39
41
|
# HTTP response status code for this operation
|
40
42
|
field :status_code, Integer
|
41
43
|
# Default error response
|
42
44
|
field :error, T.nilable(Shared::Error)
|
43
|
-
# Raw HTTP response; suitable for custom response parsing
|
44
|
-
field :raw_response, T.nilable(Faraday::Response)
|
45
45
|
# OK
|
46
46
|
field :schema, T.nilable(Shared::Schema)
|
47
47
|
|
48
48
|
|
49
|
-
sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error),
|
50
|
-
def initialize(content_type: nil,
|
49
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, error: T.nilable(Shared::Error), schema: T.nilable(Shared::Schema)).void }
|
50
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, schema: nil)
|
51
51
|
@content_type = content_type
|
52
|
+
@raw_response = raw_response
|
52
53
|
@status_code = status_code
|
53
54
|
@error = error
|
54
|
-
@raw_response = raw_response
|
55
55
|
@schema = schema
|
56
56
|
end
|
57
57
|
end
|
@@ -32,23 +32,23 @@ module SpeakeasyClientSDK
|
|
32
32
|
|
33
33
|
# HTTP response content type for this operation
|
34
34
|
field :content_type, String
|
35
|
+
# Raw HTTP response; suitable for custom response parsing
|
36
|
+
field :raw_response, Faraday::Response
|
35
37
|
# HTTP response status code for this operation
|
36
38
|
field :status_code, Integer
|
37
39
|
# OK
|
38
40
|
field :classes, T.nilable(T::Array[Shared::Schema])
|
39
41
|
# Default error response
|
40
42
|
field :error, T.nilable(Shared::Error)
|
41
|
-
# Raw HTTP response; suitable for custom response parsing
|
42
|
-
field :raw_response, T.nilable(Faraday::Response)
|
43
43
|
|
44
44
|
|
45
|
-
sig { params(content_type: String, status_code: Integer, classes: T.nilable(T::Array[Shared::Schema]), error: T.nilable(Shared::Error)
|
46
|
-
def initialize(content_type: nil,
|
45
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, classes: T.nilable(T::Array[Shared::Schema]), error: T.nilable(Shared::Error)).void }
|
46
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, classes: nil, error: nil)
|
47
47
|
@content_type = content_type
|
48
|
+
@raw_response = raw_response
|
48
49
|
@status_code = status_code
|
49
50
|
@classes = classes
|
50
51
|
@error = error
|
51
|
-
@raw_response = raw_response
|
52
52
|
end
|
53
53
|
end
|
54
54
|
end
|
@@ -15,23 +15,23 @@ module SpeakeasyClientSDK
|
|
15
15
|
|
16
16
|
# HTTP response content type for this operation
|
17
17
|
field :content_type, String
|
18
|
+
# Raw HTTP response; suitable for custom response parsing
|
19
|
+
field :raw_response, Faraday::Response
|
18
20
|
# HTTP response status code for this operation
|
19
21
|
field :status_code, Integer
|
20
22
|
# OK
|
21
23
|
field :classes, T.nilable(T::Array[Shared::EmbedToken])
|
22
24
|
# Default error response
|
23
25
|
field :error, T.nilable(Shared::Error)
|
24
|
-
# Raw HTTP response; suitable for custom response parsing
|
25
|
-
field :raw_response, T.nilable(Faraday::Response)
|
26
26
|
|
27
27
|
|
28
|
-
sig { params(content_type: String, status_code: Integer, classes: T.nilable(T::Array[Shared::EmbedToken]), error: T.nilable(Shared::Error)
|
29
|
-
def initialize(content_type: nil,
|
28
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, classes: T.nilable(T::Array[Shared::EmbedToken]), error: T.nilable(Shared::Error)).void }
|
29
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, classes: nil, error: nil)
|
30
30
|
@content_type = content_type
|
31
|
+
@raw_response = raw_response
|
31
32
|
@status_code = status_code
|
32
33
|
@classes = classes
|
33
34
|
@error = error
|
34
|
-
@raw_response = raw_response
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
@@ -32,23 +32,23 @@ module SpeakeasyClientSDK
|
|
32
32
|
|
33
33
|
# HTTP response content type for this operation
|
34
34
|
field :content_type, String
|
35
|
+
# Raw HTTP response; suitable for custom response parsing
|
36
|
+
field :raw_response, Faraday::Response
|
35
37
|
# HTTP response status code for this operation
|
36
38
|
field :status_code, Integer
|
37
39
|
# OK
|
38
40
|
field :classes, T.nilable(T::Array[Shared::VersionMetadata])
|
39
41
|
# Default error response
|
40
42
|
field :error, T.nilable(Shared::Error)
|
41
|
-
# Raw HTTP response; suitable for custom response parsing
|
42
|
-
field :raw_response, T.nilable(Faraday::Response)
|
43
43
|
|
44
44
|
|
45
|
-
sig { params(content_type: String, status_code: Integer, classes: T.nilable(T::Array[Shared::VersionMetadata]), error: T.nilable(Shared::Error)
|
46
|
-
def initialize(content_type: nil,
|
45
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, classes: T.nilable(T::Array[Shared::VersionMetadata]), error: T.nilable(Shared::Error)).void }
|
46
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, classes: nil, error: nil)
|
47
47
|
@content_type = content_type
|
48
|
+
@raw_response = raw_response
|
48
49
|
@status_code = status_code
|
49
50
|
@classes = classes
|
50
51
|
@error = error
|
51
|
-
@raw_response = raw_response
|
52
52
|
end
|
53
53
|
end
|
54
54
|
end
|
@@ -36,22 +36,22 @@ module SpeakeasyClientSDK
|
|
36
36
|
|
37
37
|
# HTTP response content type for this operation
|
38
38
|
field :content_type, String
|
39
|
+
# Raw HTTP response; suitable for custom response parsing
|
40
|
+
field :raw_response, Faraday::Response
|
39
41
|
# HTTP response status code for this operation
|
40
42
|
field :status_code, Integer
|
41
43
|
# Default error response
|
42
44
|
field :error, T.nilable(Shared::Error)
|
43
|
-
# Raw HTTP response; suitable for custom response parsing
|
44
|
-
field :raw_response, T.nilable(Faraday::Response)
|
45
45
|
# OK
|
46
46
|
field :version_metadata, T.nilable(Shared::VersionMetadata)
|
47
47
|
|
48
48
|
|
49
|
-
sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error),
|
50
|
-
def initialize(content_type: nil,
|
49
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, error: T.nilable(Shared::Error), version_metadata: T.nilable(Shared::VersionMetadata)).void }
|
50
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, version_metadata: nil)
|
51
51
|
@content_type = content_type
|
52
|
+
@raw_response = raw_response
|
52
53
|
@status_code = status_code
|
53
54
|
@error = error
|
54
|
-
@raw_response = raw_response
|
55
55
|
@version_metadata = version_metadata
|
56
56
|
end
|
57
57
|
end
|
@@ -30,23 +30,23 @@ module SpeakeasyClientSDK
|
|
30
30
|
|
31
31
|
# HTTP response content type for this operation
|
32
32
|
field :content_type, String
|
33
|
+
# Raw HTTP response; suitable for custom response parsing
|
34
|
+
field :raw_response, Faraday::Response
|
33
35
|
# HTTP response status code for this operation
|
34
36
|
field :status_code, Integer
|
35
37
|
# OK
|
36
38
|
field :classes, T.nilable(T::Array[Shared::BoundedRequest])
|
37
39
|
# Default error response
|
38
40
|
field :error, T.nilable(Shared::Error)
|
39
|
-
# Raw HTTP response; suitable for custom response parsing
|
40
|
-
field :raw_response, T.nilable(Faraday::Response)
|
41
41
|
|
42
42
|
|
43
|
-
sig { params(content_type: String, status_code: Integer, classes: T.nilable(T::Array[Shared::BoundedRequest]), error: T.nilable(Shared::Error)
|
44
|
-
def initialize(content_type: nil,
|
43
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, classes: T.nilable(T::Array[Shared::BoundedRequest]), error: T.nilable(Shared::Error)).void }
|
44
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, classes: nil, error: nil)
|
45
45
|
@content_type = content_type
|
46
|
+
@raw_response = raw_response
|
46
47
|
@status_code = status_code
|
47
48
|
@classes = classes
|
48
49
|
@error = error
|
49
|
-
@raw_response = raw_response
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
@@ -66,20 +66,20 @@ module SpeakeasyClientSDK
|
|
66
66
|
|
67
67
|
# HTTP response content type for this operation
|
68
68
|
field :content_type, String
|
69
|
+
# Raw HTTP response; suitable for custom response parsing
|
70
|
+
field :raw_response, Faraday::Response
|
69
71
|
# HTTP response status code for this operation
|
70
72
|
field :status_code, Integer
|
71
73
|
# Default error response
|
72
74
|
field :error, T.nilable(Shared::Error)
|
73
|
-
# Raw HTTP response; suitable for custom response parsing
|
74
|
-
field :raw_response, T.nilable(Faraday::Response)
|
75
75
|
|
76
76
|
|
77
|
-
sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error)
|
78
|
-
def initialize(content_type: nil,
|
77
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, error: T.nilable(Shared::Error)).void }
|
78
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil)
|
79
79
|
@content_type = content_type
|
80
|
+
@raw_response = raw_response
|
80
81
|
@status_code = status_code
|
81
82
|
@error = error
|
82
|
-
@raw_response = raw_response
|
83
83
|
end
|
84
84
|
end
|
85
85
|
end
|
@@ -29,20 +29,20 @@ module SpeakeasyClientSDK
|
|
29
29
|
|
30
30
|
# HTTP response content type for this operation
|
31
31
|
field :content_type, String
|
32
|
+
# Raw HTTP response; suitable for custom response parsing
|
33
|
+
field :raw_response, Faraday::Response
|
32
34
|
# HTTP response status code for this operation
|
33
35
|
field :status_code, Integer
|
34
36
|
# Default error response
|
35
37
|
field :error, T.nilable(Shared::Error)
|
36
|
-
# Raw HTTP response; suitable for custom response parsing
|
37
|
-
field :raw_response, T.nilable(Faraday::Response)
|
38
38
|
|
39
39
|
|
40
|
-
sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error)
|
41
|
-
def initialize(content_type: nil,
|
40
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, error: T.nilable(Shared::Error)).void }
|
41
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil)
|
42
42
|
@content_type = content_type
|
43
|
+
@raw_response = raw_response
|
43
44
|
@status_code = status_code
|
44
45
|
@error = error
|
45
|
-
@raw_response = raw_response
|
46
46
|
end
|
47
47
|
end
|
48
48
|
end
|
@@ -33,23 +33,23 @@ module SpeakeasyClientSDK
|
|
33
33
|
|
34
34
|
# HTTP response content type for this operation
|
35
35
|
field :content_type, String
|
36
|
+
# Raw HTTP response; suitable for custom response parsing
|
37
|
+
field :raw_response, Faraday::Response
|
36
38
|
# HTTP response status code for this operation
|
37
39
|
field :status_code, Integer
|
38
40
|
# OK
|
39
41
|
field :classes, T.nilable(T::Array[Shared::BoundedRequest])
|
40
42
|
# Default error response
|
41
43
|
field :error, T.nilable(Shared::Error)
|
42
|
-
# Raw HTTP response; suitable for custom response parsing
|
43
|
-
field :raw_response, T.nilable(Faraday::Response)
|
44
44
|
|
45
45
|
|
46
|
-
sig { params(content_type: String, status_code: Integer, classes: T.nilable(T::Array[Shared::BoundedRequest]), error: T.nilable(Shared::Error)
|
47
|
-
def initialize(content_type: nil,
|
46
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, classes: T.nilable(T::Array[Shared::BoundedRequest]), error: T.nilable(Shared::Error)).void }
|
47
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, classes: nil, error: nil)
|
48
48
|
@content_type = content_type
|
49
|
+
@raw_response = raw_response
|
49
50
|
@status_code = status_code
|
50
51
|
@classes = classes
|
51
52
|
@error = error
|
52
|
-
@raw_response = raw_response
|
53
53
|
end
|
54
54
|
end
|
55
55
|
end
|
@@ -33,23 +33,23 @@ module SpeakeasyClientSDK
|
|
33
33
|
|
34
34
|
# HTTP response content type for this operation
|
35
35
|
field :content_type, String
|
36
|
+
# Raw HTTP response; suitable for custom response parsing
|
37
|
+
field :raw_response, Faraday::Response
|
36
38
|
# HTTP response status code for this operation
|
37
39
|
field :status_code, Integer
|
38
40
|
# OK
|
39
41
|
field :api, T.nilable(Shared::Api)
|
40
42
|
# Default error response
|
41
43
|
field :error, T.nilable(Shared::Error)
|
42
|
-
# Raw HTTP response; suitable for custom response parsing
|
43
|
-
field :raw_response, T.nilable(Faraday::Response)
|
44
44
|
|
45
45
|
|
46
|
-
sig { params(content_type: String, status_code: Integer, api: T.nilable(Shared::Api), error: T.nilable(Shared::Error)
|
47
|
-
def initialize(content_type: nil,
|
46
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, api: T.nilable(Shared::Api), error: T.nilable(Shared::Error)).void }
|
47
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, api: nil, error: nil)
|
48
48
|
@content_type = content_type
|
49
|
+
@raw_response = raw_response
|
49
50
|
@status_code = status_code
|
50
51
|
@api = api
|
51
52
|
@error = error
|
52
|
-
@raw_response = raw_response
|
53
53
|
end
|
54
54
|
end
|
55
55
|
end
|
@@ -39,23 +39,23 @@ module SpeakeasyClientSDK
|
|
39
39
|
|
40
40
|
# HTTP response content type for this operation
|
41
41
|
field :content_type, String
|
42
|
+
# Raw HTTP response; suitable for custom response parsing
|
43
|
+
field :raw_response, Faraday::Response
|
42
44
|
# HTTP response status code for this operation
|
43
45
|
field :status_code, Integer
|
44
46
|
# OK
|
45
47
|
field :api_endpoint, T.nilable(Shared::ApiEndpoint)
|
46
48
|
# Default error response
|
47
49
|
field :error, T.nilable(Shared::Error)
|
48
|
-
# Raw HTTP response; suitable for custom response parsing
|
49
|
-
field :raw_response, T.nilable(Faraday::Response)
|
50
50
|
|
51
51
|
|
52
|
-
sig { params(content_type: String, status_code: Integer, api_endpoint: T.nilable(Shared::ApiEndpoint), error: T.nilable(Shared::Error)
|
53
|
-
def initialize(content_type: nil,
|
52
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, api_endpoint: T.nilable(Shared::ApiEndpoint), error: T.nilable(Shared::Error)).void }
|
53
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, api_endpoint: nil, error: nil)
|
54
54
|
@content_type = content_type
|
55
|
+
@raw_response = raw_response
|
55
56
|
@status_code = status_code
|
56
57
|
@api_endpoint = api_endpoint
|
57
58
|
@error = error
|
58
|
-
@raw_response = raw_response
|
59
59
|
end
|
60
60
|
end
|
61
61
|
end
|
@@ -16,23 +16,23 @@ module SpeakeasyClientSDK
|
|
16
16
|
|
17
17
|
# HTTP response content type for this operation
|
18
18
|
field :content_type, String
|
19
|
+
# Raw HTTP response; suitable for custom response parsing
|
20
|
+
field :raw_response, Faraday::Response
|
19
21
|
# HTTP response status code for this operation
|
20
22
|
field :status_code, Integer
|
21
23
|
# Default error response
|
22
24
|
field :error, T.nilable(Shared::Error)
|
23
25
|
# OK
|
24
26
|
field :plugin, T.nilable(Shared::Plugin)
|
25
|
-
# Raw HTTP response; suitable for custom response parsing
|
26
|
-
field :raw_response, T.nilable(Faraday::Response)
|
27
27
|
|
28
28
|
|
29
|
-
sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), plugin: T.nilable(Shared::Plugin)
|
30
|
-
def initialize(content_type: nil,
|
29
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, error: T.nilable(Shared::Error), plugin: T.nilable(Shared::Plugin)).void }
|
30
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, plugin: nil)
|
31
31
|
@content_type = content_type
|
32
|
+
@raw_response = raw_response
|
32
33
|
@status_code = status_code
|
33
34
|
@error = error
|
34
35
|
@plugin = plugin
|
35
|
-
@raw_response = raw_response
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
@@ -15,20 +15,20 @@ module SpeakeasyClientSDK
|
|
15
15
|
|
16
16
|
# HTTP response content type for this operation
|
17
17
|
field :content_type, String
|
18
|
+
# Raw HTTP response; suitable for custom response parsing
|
19
|
+
field :raw_response, Faraday::Response
|
18
20
|
# HTTP response status code for this operation
|
19
21
|
field :status_code, Integer
|
20
22
|
# Default error response
|
21
23
|
field :error, T.nilable(Shared::Error)
|
22
|
-
# Raw HTTP response; suitable for custom response parsing
|
23
|
-
field :raw_response, T.nilable(Faraday::Response)
|
24
24
|
|
25
25
|
|
26
|
-
sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error)
|
27
|
-
def initialize(content_type: nil,
|
26
|
+
sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, error: T.nilable(Shared::Error)).void }
|
27
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil)
|
28
28
|
@content_type = content_type
|
29
|
+
@raw_response = raw_response
|
29
30
|
@status_code = status_code
|
30
31
|
@error = error
|
31
|
-
@raw_response = raw_response
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
data/lib/sdk/plugins.rb
CHANGED
@@ -43,6 +43,7 @@ module SpeakeasyClientSDK
|
|
43
43
|
res.classes = out
|
44
44
|
end
|
45
45
|
else
|
46
|
+
|
46
47
|
if Utils.match_content_type(content_type, 'application/json')
|
47
48
|
out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
|
48
49
|
res.error = out
|
@@ -84,6 +85,7 @@ module SpeakeasyClientSDK
|
|
84
85
|
res.classes = out
|
85
86
|
end
|
86
87
|
else
|
88
|
+
|
87
89
|
if Utils.match_content_type(content_type, 'application/json')
|
88
90
|
out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
|
89
91
|
res.error = out
|
@@ -128,6 +130,7 @@ module SpeakeasyClientSDK
|
|
128
130
|
res.plugin = out
|
129
131
|
end
|
130
132
|
else
|
133
|
+
|
131
134
|
if Utils.match_content_type(content_type, 'application/json')
|
132
135
|
out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
|
133
136
|
res.error = out
|
data/lib/sdk/requests.rb
CHANGED
@@ -46,7 +46,9 @@ module SpeakeasyClientSDK
|
|
46
46
|
)
|
47
47
|
if r.status == 200
|
48
48
|
res.postman_collection = r.env.response_body if Utils.match_content_type(content_type, 'application/octet-stream')
|
49
|
+
|
49
50
|
else
|
51
|
+
|
50
52
|
if Utils.match_content_type(content_type, 'application/json')
|
51
53
|
out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
|
52
54
|
res.error = out
|
@@ -86,6 +88,7 @@ module SpeakeasyClientSDK
|
|
86
88
|
res.unbounded_request = out
|
87
89
|
end
|
88
90
|
else
|
91
|
+
|
89
92
|
if Utils.match_content_type(content_type, 'application/json')
|
90
93
|
out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
|
91
94
|
res.error = out
|
@@ -124,6 +127,7 @@ module SpeakeasyClientSDK
|
|
124
127
|
res.classes = out
|
125
128
|
end
|
126
129
|
else
|
130
|
+
|
127
131
|
if Utils.match_content_type(content_type, 'application/json')
|
128
132
|
out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
|
129
133
|
res.error = out
|