speakeasy_client_sdk_ruby 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +7 -0
  2. data/lib/sdk/apiendpoints.rb +338 -0
  3. data/lib/sdk/apis.rb +264 -0
  4. data/lib/sdk/embeds.rb +128 -0
  5. data/lib/sdk/metadata.rb +144 -0
  6. data/lib/sdk/models/operations/deleteapi.rb +52 -0
  7. data/lib/sdk/models/operations/deleteapiendpoint.rb +55 -0
  8. data/lib/sdk/models/operations/deleteschema.rb +55 -0
  9. data/lib/sdk/models/operations/deleteversionmetadata.rb +58 -0
  10. data/lib/sdk/models/operations/downloadschema.rb +55 -0
  11. data/lib/sdk/models/operations/downloadschemarevision.rb +58 -0
  12. data/lib/sdk/models/operations/findapiendpoint.rb +59 -0
  13. data/lib/sdk/models/operations/generateopenapispec.rb +56 -0
  14. data/lib/sdk/models/operations/generateopenapispecforapiendpoint.rb +59 -0
  15. data/lib/sdk/models/operations/generatepostmancollection.rb +55 -0
  16. data/lib/sdk/models/operations/generatepostmancollectionforapiendpoint.rb +58 -0
  17. data/lib/sdk/models/operations/generaterequestpostmancollection.rb +52 -0
  18. data/lib/sdk/models/operations/getallapiendpoints.rb +52 -0
  19. data/lib/sdk/models/operations/getallapiversions.rb +72 -0
  20. data/lib/sdk/models/operations/getallforversionapiendpoints.rb +55 -0
  21. data/lib/sdk/models/operations/getapiendpoint.rb +59 -0
  22. data/lib/sdk/models/operations/getapis.rb +69 -0
  23. data/lib/sdk/models/operations/getembedaccesstoken.rb +60 -0
  24. data/lib/sdk/models/operations/getplugins.rb +38 -0
  25. data/lib/sdk/models/operations/getrequestfromeventlog.rb +53 -0
  26. data/lib/sdk/models/operations/getschema.rb +56 -0
  27. data/lib/sdk/models/operations/getschemadiff.rb +62 -0
  28. data/lib/sdk/models/operations/getschemarevision.rb +59 -0
  29. data/lib/sdk/models/operations/getschemas.rb +55 -0
  30. data/lib/sdk/models/operations/getvalidembedaccesstokens.rb +38 -0
  31. data/lib/sdk/models/operations/getversionmetadata.rb +55 -0
  32. data/lib/sdk/models/operations/insertversionmetadata.rb +60 -0
  33. data/lib/sdk/models/operations/queryeventlog.rb +53 -0
  34. data/lib/sdk/models/operations/registerschema.rb +86 -0
  35. data/lib/sdk/models/operations/revokeembedaccesstoken.rb +49 -0
  36. data/lib/sdk/models/operations/runplugin.rb +56 -0
  37. data/lib/sdk/models/operations/upsertapi.rb +57 -0
  38. data/lib/sdk/models/operations/upsertapiendpoint.rb +63 -0
  39. data/lib/sdk/models/operations/upsertplugin.rb +39 -0
  40. data/lib/sdk/models/operations/validateapikey.rb +35 -0
  41. data/lib/sdk/models/shared/api.rb +69 -0
  42. data/lib/sdk/models/shared/apiendpoint.rb +84 -0
  43. data/lib/sdk/models/shared/boundedrequest.rb +64 -0
  44. data/lib/sdk/models/shared/embedaccesstokenresponse.rb +25 -0
  45. data/lib/sdk/models/shared/embedtoken.rb +52 -0
  46. data/lib/sdk/models/shared/error.rb +28 -0
  47. data/lib/sdk/models/shared/filter.rb +31 -0
  48. data/lib/sdk/models/shared/filters.rb +34 -0
  49. data/lib/sdk/models/shared/generateopenapispecdiff.rb +28 -0
  50. data/lib/sdk/models/shared/plugin.rb +43 -0
  51. data/lib/sdk/models/shared/requestmetadata.rb +28 -0
  52. data/lib/sdk/models/shared/schema.rb +40 -0
  53. data/lib/sdk/models/shared/schemadiff.rb +48 -0
  54. data/lib/sdk/models/shared/security.rb +25 -0
  55. data/lib/sdk/models/shared/unboundedrequest.rb +37 -0
  56. data/lib/sdk/models/shared/versionmetadata.rb +57 -0
  57. data/lib/sdk/plugins.rb +140 -0
  58. data/lib/sdk/requests.rb +136 -0
  59. data/lib/sdk/schemas.rb +334 -0
  60. data/lib/sdk/sdk.rb +173 -0
  61. data/lib/sdk/utils/metadata_fields.rb +154 -0
  62. data/lib/sdk/utils/retries.rb +130 -0
  63. data/lib/sdk/utils/utils.rb +769 -0
  64. data/lib/speakeasy_client_sdk_ruby.rb +70 -0
  65. metadata +206 -0
@@ -0,0 +1,38 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'sorbet-runtime'
7
+ require 'faraday'
8
+ require_relative '../shared/error'
9
+
10
+ module SpeakeasyClientSDK
11
+ module Operations
12
+
13
+ class GetPluginsResponse < SpeakeasyClientSDK::Utils::FieldAugmented
14
+ extend T::Sig
15
+
16
+
17
+ field :content_type, String
18
+
19
+ field :status_code, Integer
20
+ # Default error response
21
+ field :error, T.nilable(Shared::Error)
22
+ # OK
23
+ field :plugins, T.nilable(T::Array[Shared::Plugin])
24
+
25
+ field :raw_response, T.nilable(Faraday::Response)
26
+
27
+
28
+ sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), plugins: T.nilable(T::Array[Shared::Plugin]), raw_response: T.nilable(Faraday::Response)).void }
29
+ def initialize(content_type: nil, status_code: nil, error: nil, plugins: nil, raw_response: nil)
30
+ @content_type = content_type
31
+ @status_code = status_code
32
+ @error = error
33
+ @plugins = plugins
34
+ @raw_response = raw_response
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,53 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'sorbet-runtime'
7
+ require 'faraday'
8
+ require_relative '../shared/error'
9
+ require_relative '../shared/unboundedrequest'
10
+
11
+ module SpeakeasyClientSDK
12
+ module Operations
13
+
14
+ class GetRequestFromEventLogRequest < SpeakeasyClientSDK::Utils::FieldAugmented
15
+ extend T::Sig
16
+
17
+ # The ID of the request to retrieve.
18
+ field :request_id, String, { 'path_param': { 'field_name': 'requestID', 'style': 'simple', 'explode': false } }
19
+
20
+
21
+ sig { params(request_id: String).void }
22
+ def initialize(request_id: nil)
23
+ @request_id = request_id
24
+ end
25
+ end
26
+
27
+
28
+ class GetRequestFromEventLogResponse < SpeakeasyClientSDK::Utils::FieldAugmented
29
+ extend T::Sig
30
+
31
+
32
+ field :content_type, String
33
+
34
+ field :status_code, Integer
35
+ # Default error response
36
+ field :error, T.nilable(Shared::Error)
37
+
38
+ field :raw_response, T.nilable(Faraday::Response)
39
+ # OK
40
+ field :unbounded_request, T.nilable(Shared::UnboundedRequest)
41
+
42
+
43
+ sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response), unbounded_request: T.nilable(Shared::UnboundedRequest)).void }
44
+ def initialize(content_type: nil, status_code: nil, error: nil, raw_response: nil, unbounded_request: nil)
45
+ @content_type = content_type
46
+ @status_code = status_code
47
+ @error = error
48
+ @raw_response = raw_response
49
+ @unbounded_request = unbounded_request
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,56 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'sorbet-runtime'
7
+ require 'faraday'
8
+ require_relative '../shared/error'
9
+ require_relative '../shared/schema'
10
+
11
+ module SpeakeasyClientSDK
12
+ module Operations
13
+
14
+ class GetSchemaRequest < SpeakeasyClientSDK::Utils::FieldAugmented
15
+ extend T::Sig
16
+
17
+ # The ID of the Api to get the schema for.
18
+ field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
19
+ # The version ID of the Api to delete metadata for.
20
+ field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
21
+
22
+
23
+ sig { params(api_id: String, version_id: String).void }
24
+ def initialize(api_id: nil, version_id: nil)
25
+ @api_id = api_id
26
+ @version_id = version_id
27
+ end
28
+ end
29
+
30
+
31
+ class GetSchemaResponse < SpeakeasyClientSDK::Utils::FieldAugmented
32
+ extend T::Sig
33
+
34
+
35
+ field :content_type, String
36
+
37
+ field :status_code, Integer
38
+ # Default error response
39
+ field :error, T.nilable(Shared::Error)
40
+
41
+ field :raw_response, T.nilable(Faraday::Response)
42
+ # OK
43
+ field :schema, T.nilable(Shared::Schema)
44
+
45
+
46
+ sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response), schema: T.nilable(Shared::Schema)).void }
47
+ def initialize(content_type: nil, status_code: nil, error: nil, raw_response: nil, schema: nil)
48
+ @content_type = content_type
49
+ @status_code = status_code
50
+ @error = error
51
+ @raw_response = raw_response
52
+ @schema = schema
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,62 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'sorbet-runtime'
7
+ require 'faraday'
8
+ require_relative '../shared/error'
9
+ require_relative '../shared/schemadiff'
10
+
11
+ module SpeakeasyClientSDK
12
+ module Operations
13
+
14
+ class GetSchemaDiffRequest < SpeakeasyClientSDK::Utils::FieldAugmented
15
+ extend T::Sig
16
+
17
+ # The ID of the Api to retrieve schemas for.
18
+ field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
19
+ # The base revision ID of the schema to retrieve.
20
+ field :base_revision_id, String, { 'path_param': { 'field_name': 'baseRevisionID', 'style': 'simple', 'explode': false } }
21
+ # The target revision ID of the schema to retrieve.
22
+ field :target_revision_id, String, { 'path_param': { 'field_name': 'targetRevisionID', 'style': 'simple', 'explode': false } }
23
+ # The version ID of the Api to delete metadata for.
24
+ field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
25
+
26
+
27
+ sig { params(api_id: String, base_revision_id: String, target_revision_id: String, version_id: String).void }
28
+ def initialize(api_id: nil, base_revision_id: nil, target_revision_id: nil, version_id: nil)
29
+ @api_id = api_id
30
+ @base_revision_id = base_revision_id
31
+ @target_revision_id = target_revision_id
32
+ @version_id = version_id
33
+ end
34
+ end
35
+
36
+
37
+ class GetSchemaDiffResponse < SpeakeasyClientSDK::Utils::FieldAugmented
38
+ extend T::Sig
39
+
40
+
41
+ field :content_type, String
42
+
43
+ field :status_code, Integer
44
+ # Default error response
45
+ field :error, T.nilable(Shared::Error)
46
+
47
+ field :raw_response, T.nilable(Faraday::Response)
48
+ # OK
49
+ field :schema_diff, T.nilable(Shared::SchemaDiff)
50
+
51
+
52
+ sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response), schema_diff: T.nilable(Shared::SchemaDiff)).void }
53
+ def initialize(content_type: nil, status_code: nil, error: nil, raw_response: nil, schema_diff: nil)
54
+ @content_type = content_type
55
+ @status_code = status_code
56
+ @error = error
57
+ @raw_response = raw_response
58
+ @schema_diff = schema_diff
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,59 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'sorbet-runtime'
7
+ require 'faraday'
8
+ require_relative '../shared/error'
9
+ require_relative '../shared/schema'
10
+
11
+ module SpeakeasyClientSDK
12
+ module Operations
13
+
14
+ class GetSchemaRevisionRequest < SpeakeasyClientSDK::Utils::FieldAugmented
15
+ extend T::Sig
16
+
17
+ # The ID of the Api to retrieve schemas for.
18
+ field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
19
+ # The revision ID of the schema to retrieve.
20
+ field :revision_id, String, { 'path_param': { 'field_name': 'revisionID', 'style': 'simple', 'explode': false } }
21
+ # The version ID of the Api to delete metadata for.
22
+ field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
23
+
24
+
25
+ sig { params(api_id: String, revision_id: String, version_id: String).void }
26
+ def initialize(api_id: nil, revision_id: nil, version_id: nil)
27
+ @api_id = api_id
28
+ @revision_id = revision_id
29
+ @version_id = version_id
30
+ end
31
+ end
32
+
33
+
34
+ class GetSchemaRevisionResponse < SpeakeasyClientSDK::Utils::FieldAugmented
35
+ extend T::Sig
36
+
37
+
38
+ field :content_type, String
39
+
40
+ field :status_code, Integer
41
+ # Default error response
42
+ field :error, T.nilable(Shared::Error)
43
+
44
+ field :raw_response, T.nilable(Faraday::Response)
45
+ # OK
46
+ field :schema, T.nilable(Shared::Schema)
47
+
48
+
49
+ sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response), schema: T.nilable(Shared::Schema)).void }
50
+ def initialize(content_type: nil, status_code: nil, error: nil, raw_response: nil, schema: nil)
51
+ @content_type = content_type
52
+ @status_code = status_code
53
+ @error = error
54
+ @raw_response = raw_response
55
+ @schema = schema
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,55 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'sorbet-runtime'
7
+ require 'faraday'
8
+ require_relative '../shared/error'
9
+
10
+ module SpeakeasyClientSDK
11
+ module Operations
12
+
13
+ class GetSchemasRequest < SpeakeasyClientSDK::Utils::FieldAugmented
14
+ extend T::Sig
15
+
16
+ # The ID of the Api to retrieve schemas for.
17
+ field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
18
+ # The version ID of the Api to delete metadata for.
19
+ field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
20
+
21
+
22
+ sig { params(api_id: String, version_id: String).void }
23
+ def initialize(api_id: nil, version_id: nil)
24
+ @api_id = api_id
25
+ @version_id = version_id
26
+ end
27
+ end
28
+
29
+
30
+ class GetSchemasResponse < SpeakeasyClientSDK::Utils::FieldAugmented
31
+ extend T::Sig
32
+
33
+
34
+ field :content_type, String
35
+
36
+ field :status_code, Integer
37
+ # Default error response
38
+ field :error, T.nilable(Shared::Error)
39
+
40
+ field :raw_response, T.nilable(Faraday::Response)
41
+ # OK
42
+ field :schemata, T.nilable(T::Array[Shared::Schema])
43
+
44
+
45
+ sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response), schemata: T.nilable(T::Array[Shared::Schema])).void }
46
+ def initialize(content_type: nil, status_code: nil, error: nil, raw_response: nil, schemata: nil)
47
+ @content_type = content_type
48
+ @status_code = status_code
49
+ @error = error
50
+ @raw_response = raw_response
51
+ @schemata = schemata
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,38 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'sorbet-runtime'
7
+ require 'faraday'
8
+ require_relative '../shared/error'
9
+
10
+ module SpeakeasyClientSDK
11
+ module Operations
12
+
13
+ class GetValidEmbedAccessTokensResponse < SpeakeasyClientSDK::Utils::FieldAugmented
14
+ extend T::Sig
15
+
16
+
17
+ field :content_type, String
18
+
19
+ field :status_code, Integer
20
+ # OK
21
+ field :embed_tokens, T.nilable(T::Array[Shared::EmbedToken])
22
+ # Default error response
23
+ field :error, T.nilable(Shared::Error)
24
+
25
+ field :raw_response, T.nilable(Faraday::Response)
26
+
27
+
28
+ sig { params(content_type: String, status_code: Integer, embed_tokens: T.nilable(T::Array[Shared::EmbedToken]), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
29
+ def initialize(content_type: nil, status_code: nil, embed_tokens: nil, error: nil, raw_response: nil)
30
+ @content_type = content_type
31
+ @status_code = status_code
32
+ @embed_tokens = embed_tokens
33
+ @error = error
34
+ @raw_response = raw_response
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,55 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'sorbet-runtime'
7
+ require 'faraday'
8
+ require_relative '../shared/error'
9
+
10
+ module SpeakeasyClientSDK
11
+ module Operations
12
+
13
+ class GetVersionMetadataRequest < SpeakeasyClientSDK::Utils::FieldAugmented
14
+ extend T::Sig
15
+
16
+ # The ID of the Api to retrieve metadata for.
17
+ field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
18
+ # The version ID of the Api to retrieve metadata for.
19
+ field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
20
+
21
+
22
+ sig { params(api_id: String, version_id: String).void }
23
+ def initialize(api_id: nil, version_id: nil)
24
+ @api_id = api_id
25
+ @version_id = version_id
26
+ end
27
+ end
28
+
29
+
30
+ class GetVersionMetadataResponse < SpeakeasyClientSDK::Utils::FieldAugmented
31
+ extend T::Sig
32
+
33
+
34
+ field :content_type, String
35
+
36
+ field :status_code, Integer
37
+ # Default error response
38
+ field :error, T.nilable(Shared::Error)
39
+
40
+ field :raw_response, T.nilable(Faraday::Response)
41
+ # OK
42
+ field :version_metadata, T.nilable(T::Array[Shared::VersionMetadata])
43
+
44
+
45
+ sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response), version_metadata: T.nilable(T::Array[Shared::VersionMetadata])).void }
46
+ def initialize(content_type: nil, status_code: nil, error: nil, raw_response: nil, version_metadata: nil)
47
+ @content_type = content_type
48
+ @status_code = status_code
49
+ @error = error
50
+ @raw_response = raw_response
51
+ @version_metadata = version_metadata
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,60 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'sorbet-runtime'
7
+ require 'faraday'
8
+ require_relative '../shared/versionmetadatainput'
9
+ require_relative '../shared/error'
10
+ require_relative '../shared/versionmetadata'
11
+
12
+ module SpeakeasyClientSDK
13
+ module Operations
14
+
15
+ class InsertVersionMetadataRequest < SpeakeasyClientSDK::Utils::FieldAugmented
16
+ extend T::Sig
17
+
18
+ # The ID of the Api to insert metadata for.
19
+ field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
20
+ # The version ID of the Api to insert metadata for.
21
+ field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
22
+ # A JSON representation of the metadata to insert.
23
+ field :version_metadata_input, Shared::VersionMetadataInput, { 'request': { 'media_type': 'application/json' } }
24
+
25
+
26
+ sig { params(api_id: String, version_id: String, version_metadata_input: Shared::VersionMetadataInput).void }
27
+ def initialize(api_id: nil, version_id: nil, version_metadata_input: nil)
28
+ @api_id = api_id
29
+ @version_id = version_id
30
+ @version_metadata_input = version_metadata_input
31
+ end
32
+ end
33
+
34
+
35
+ class InsertVersionMetadataResponse < SpeakeasyClientSDK::Utils::FieldAugmented
36
+ extend T::Sig
37
+
38
+
39
+ field :content_type, String
40
+
41
+ field :status_code, Integer
42
+ # Default error response
43
+ field :error, T.nilable(Shared::Error)
44
+
45
+ field :raw_response, T.nilable(Faraday::Response)
46
+ # OK
47
+ field :version_metadata, T.nilable(Shared::VersionMetadata)
48
+
49
+
50
+ sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response), version_metadata: T.nilable(Shared::VersionMetadata)).void }
51
+ def initialize(content_type: nil, status_code: nil, error: nil, raw_response: nil, version_metadata: nil)
52
+ @content_type = content_type
53
+ @status_code = status_code
54
+ @error = error
55
+ @raw_response = raw_response
56
+ @version_metadata = version_metadata
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,53 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'sorbet-runtime'
7
+ require 'faraday'
8
+ require_relative '../shared/filters'
9
+ require_relative '../shared/error'
10
+
11
+ module SpeakeasyClientSDK
12
+ module Operations
13
+
14
+ class QueryEventLogRequest < SpeakeasyClientSDK::Utils::FieldAugmented
15
+ extend T::Sig
16
+
17
+ # The filter to apply to the query.
18
+ field :filters, T.nilable(Shared::Filters), { 'query_param': { 'field_name': 'filters', 'serialization': 'json' } }
19
+
20
+
21
+ sig { params(filters: T.nilable(Shared::Filters)).void }
22
+ def initialize(filters: nil)
23
+ @filters = filters
24
+ end
25
+ end
26
+
27
+
28
+ class QueryEventLogResponse < SpeakeasyClientSDK::Utils::FieldAugmented
29
+ extend T::Sig
30
+
31
+
32
+ field :content_type, String
33
+
34
+ field :status_code, Integer
35
+ # OK
36
+ field :bounded_requests, T.nilable(T::Array[Shared::BoundedRequest])
37
+ # Default error response
38
+ field :error, T.nilable(Shared::Error)
39
+
40
+ field :raw_response, T.nilable(Faraday::Response)
41
+
42
+
43
+ sig { params(content_type: String, status_code: Integer, bounded_requests: T.nilable(T::Array[Shared::BoundedRequest]), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
44
+ def initialize(content_type: nil, status_code: nil, bounded_requests: nil, error: nil, raw_response: nil)
45
+ @content_type = content_type
46
+ @status_code = status_code
47
+ @bounded_requests = bounded_requests
48
+ @error = error
49
+ @raw_response = raw_response
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,86 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'sorbet-runtime'
7
+ require 'faraday'
8
+ require_relative '../shared/error'
9
+
10
+ module SpeakeasyClientSDK
11
+ module Operations
12
+
13
+ class RegisterSchemaRequestBodyFile < SpeakeasyClientSDK::Utils::FieldAugmented
14
+ extend T::Sig
15
+
16
+
17
+ field :content, String, { 'multipart_form': { 'content': true } }
18
+
19
+ field :file, String, { 'multipart_form': { 'field_name': 'file' } }
20
+
21
+
22
+ sig { params(content: String, file: String).void }
23
+ def initialize(content: nil, file: nil)
24
+ @content = content
25
+ @file = file
26
+ end
27
+ end
28
+
29
+ # The schema file to upload provided as a multipart/form-data file segment.
30
+ class RegisterSchemaRequestBody < SpeakeasyClientSDK::Utils::FieldAugmented
31
+ extend T::Sig
32
+
33
+
34
+ field :file, Operations::RegisterSchemaRequestBodyFile, { 'multipart_form': { 'file': true } }
35
+
36
+
37
+ sig { params(file: Operations::RegisterSchemaRequestBodyFile).void }
38
+ def initialize(file: nil)
39
+ @file = file
40
+ end
41
+ end
42
+
43
+
44
+ class RegisterSchemaRequest < SpeakeasyClientSDK::Utils::FieldAugmented
45
+ extend T::Sig
46
+
47
+ # The ID of the Api to get the schema for.
48
+ field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
49
+ # The schema file to upload provided as a multipart/form-data file segment.
50
+ field :request_body, Operations::RegisterSchemaRequestBody, { 'request': { 'media_type': 'multipart/form-data' } }
51
+ # The version ID of the Api to delete metadata for.
52
+ field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
53
+
54
+
55
+ sig { params(api_id: String, request_body: Operations::RegisterSchemaRequestBody, version_id: String).void }
56
+ def initialize(api_id: nil, request_body: nil, version_id: nil)
57
+ @api_id = api_id
58
+ @request_body = request_body
59
+ @version_id = version_id
60
+ end
61
+ end
62
+
63
+
64
+ class RegisterSchemaResponse < SpeakeasyClientSDK::Utils::FieldAugmented
65
+ extend T::Sig
66
+
67
+
68
+ field :content_type, String
69
+
70
+ field :status_code, Integer
71
+ # Default error response
72
+ field :error, T.nilable(Shared::Error)
73
+
74
+ field :raw_response, T.nilable(Faraday::Response)
75
+
76
+
77
+ sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
78
+ def initialize(content_type: nil, status_code: nil, error: nil, raw_response: nil)
79
+ @content_type = content_type
80
+ @status_code = status_code
81
+ @error = error
82
+ @raw_response = raw_response
83
+ end
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,49 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'sorbet-runtime'
7
+ require 'faraday'
8
+ require_relative '../shared/error'
9
+
10
+ module SpeakeasyClientSDK
11
+ module Operations
12
+
13
+ class RevokeEmbedAccessTokenRequest < SpeakeasyClientSDK::Utils::FieldAugmented
14
+ extend T::Sig
15
+
16
+ # The ID of the EmbedToken to revoke.
17
+ field :token_id, String, { 'path_param': { 'field_name': 'tokenID', 'style': 'simple', 'explode': false } }
18
+
19
+
20
+ sig { params(token_id: String).void }
21
+ def initialize(token_id: nil)
22
+ @token_id = token_id
23
+ end
24
+ end
25
+
26
+
27
+ class RevokeEmbedAccessTokenResponse < SpeakeasyClientSDK::Utils::FieldAugmented
28
+ extend T::Sig
29
+
30
+
31
+ field :content_type, String
32
+
33
+ field :status_code, Integer
34
+ # Default error response
35
+ field :error, T.nilable(Shared::Error)
36
+
37
+ field :raw_response, T.nilable(Faraday::Response)
38
+
39
+
40
+ sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
41
+ def initialize(content_type: nil, status_code: nil, error: nil, raw_response: nil)
42
+ @content_type = content_type
43
+ @status_code = status_code
44
+ @error = error
45
+ @raw_response = raw_response
46
+ end
47
+ end
48
+ end
49
+ end