speakeasy_client_sdk_ruby 2.2.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/lib/{sdk → speakeasy_client_sdk}/apiendpoints.rb +48 -39
  3. data/lib/{sdk → speakeasy_client_sdk}/apis.rb +37 -30
  4. data/lib/{sdk → speakeasy_client_sdk}/embeds.rb +17 -13
  5. data/lib/{sdk → speakeasy_client_sdk}/metadata.rb +19 -15
  6. data/lib/speakeasy_client_sdk/models/operations/deleteapi_request.rb +27 -0
  7. data/lib/speakeasy_client_sdk/models/operations/deleteapi_response.rb +33 -0
  8. data/lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_request.rb +30 -0
  9. data/lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_response.rb +33 -0
  10. data/lib/speakeasy_client_sdk/models/operations/deleteschema_request.rb +30 -0
  11. data/lib/speakeasy_client_sdk/models/operations/deleteschema_response.rb +33 -0
  12. data/lib/speakeasy_client_sdk/models/operations/deleteversionmetadata_request.rb +33 -0
  13. data/lib/speakeasy_client_sdk/models/operations/deleteversionmetadata_response.rb +33 -0
  14. data/lib/speakeasy_client_sdk/models/operations/downloadschema_request.rb +27 -0
  15. data/lib/speakeasy_client_sdk/models/operations/downloadschema_response.rb +39 -0
  16. data/lib/speakeasy_client_sdk/models/operations/downloadschemarevision_request.rb +30 -0
  17. data/lib/speakeasy_client_sdk/models/operations/downloadschemarevision_response.rb +39 -0
  18. data/lib/speakeasy_client_sdk/models/operations/file.rb +27 -0
  19. data/lib/speakeasy_client_sdk/models/operations/findapiendpoint_request.rb +30 -0
  20. data/lib/speakeasy_client_sdk/models/operations/findapiendpoint_response.rb +36 -0
  21. data/lib/speakeasy_client_sdk/models/operations/generateopenapispec_request.rb +27 -0
  22. data/lib/speakeasy_client_sdk/models/operations/generateopenapispec_response.rb +36 -0
  23. data/lib/speakeasy_client_sdk/models/operations/generateopenapispecforapiendpoint_request.rb +30 -0
  24. data/lib/speakeasy_client_sdk/models/operations/generateopenapispecforapiendpoint_response.rb +36 -0
  25. data/lib/speakeasy_client_sdk/models/operations/generatepostmancollection_request.rb +27 -0
  26. data/lib/speakeasy_client_sdk/models/operations/generatepostmancollection_response.rb +36 -0
  27. data/lib/speakeasy_client_sdk/models/operations/generatepostmancollectionforapiendpoint_request.rb +30 -0
  28. data/lib/speakeasy_client_sdk/models/operations/generatepostmancollectionforapiendpoint_response.rb +36 -0
  29. data/lib/speakeasy_client_sdk/models/operations/generaterequestpostmancollection_request.rb +24 -0
  30. data/lib/speakeasy_client_sdk/models/operations/generaterequestpostmancollection_response.rb +36 -0
  31. data/lib/speakeasy_client_sdk/models/operations/getallapiendpoints_request.rb +24 -0
  32. data/lib/speakeasy_client_sdk/models/operations/getallapiendpoints_response.rb +36 -0
  33. data/lib/speakeasy_client_sdk/models/operations/getallapiversions_request.rb +30 -0
  34. data/lib/speakeasy_client_sdk/models/operations/getallapiversions_response.rb +36 -0
  35. data/lib/speakeasy_client_sdk/models/operations/getallforversionapiendpoints_request.rb +27 -0
  36. data/lib/speakeasy_client_sdk/models/operations/getallforversionapiendpoints_response.rb +36 -0
  37. data/lib/speakeasy_client_sdk/models/operations/getapiendpoint_request.rb +30 -0
  38. data/lib/speakeasy_client_sdk/models/operations/getapiendpoint_response.rb +36 -0
  39. data/lib/speakeasy_client_sdk/models/operations/getapis_request.rb +27 -0
  40. data/lib/speakeasy_client_sdk/models/operations/getapis_response.rb +36 -0
  41. data/lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb +30 -0
  42. data/lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb +36 -0
  43. data/lib/{sdk/models/operations/getplugins.rb → speakeasy_client_sdk/models/operations/getplugins_response.rb} +7 -9
  44. data/lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_request.rb +24 -0
  45. data/lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_response.rb +36 -0
  46. data/lib/speakeasy_client_sdk/models/operations/getschema_request.rb +27 -0
  47. data/lib/speakeasy_client_sdk/models/operations/getschema_response.rb +36 -0
  48. data/lib/speakeasy_client_sdk/models/operations/getschemadiff_request.rb +33 -0
  49. data/lib/speakeasy_client_sdk/models/operations/getschemadiff_response.rb +36 -0
  50. data/lib/speakeasy_client_sdk/models/operations/getschemarevision_request.rb +30 -0
  51. data/lib/speakeasy_client_sdk/models/operations/getschemarevision_response.rb +36 -0
  52. data/lib/speakeasy_client_sdk/models/operations/getschemas_request.rb +27 -0
  53. data/lib/speakeasy_client_sdk/models/operations/getschemas_response.rb +36 -0
  54. data/lib/{sdk/models/operations/getvalidembedaccesstokens.rb → speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb} +7 -9
  55. data/lib/speakeasy_client_sdk/models/operations/getversionmetadata_request.rb +27 -0
  56. data/lib/speakeasy_client_sdk/models/operations/getversionmetadata_response.rb +36 -0
  57. data/lib/speakeasy_client_sdk/models/operations/insertversionmetadata_request.rb +30 -0
  58. data/lib/speakeasy_client_sdk/models/operations/insertversionmetadata_response.rb +36 -0
  59. data/lib/speakeasy_client_sdk/models/operations/op.rb +24 -0
  60. data/lib/speakeasy_client_sdk/models/operations/queryeventlog_request.rb +24 -0
  61. data/lib/speakeasy_client_sdk/models/operations/queryeventlog_response.rb +36 -0
  62. data/lib/speakeasy_client_sdk/models/operations/queryparam_op.rb +24 -0
  63. data/lib/speakeasy_client_sdk/models/operations/registerschema_request.rb +30 -0
  64. data/lib/speakeasy_client_sdk/models/operations/registerschema_requestbody.rb +24 -0
  65. data/lib/speakeasy_client_sdk/models/operations/registerschema_response.rb +33 -0
  66. data/lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_request.rb +24 -0
  67. data/lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb +33 -0
  68. data/lib/speakeasy_client_sdk/models/operations/runplugin_request.rb +27 -0
  69. data/lib/speakeasy_client_sdk/models/operations/runplugin_response.rb +36 -0
  70. data/lib/speakeasy_client_sdk/models/operations/upsertapi_request.rb +27 -0
  71. data/lib/speakeasy_client_sdk/models/operations/upsertapi_response.rb +36 -0
  72. data/lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_request.rb +33 -0
  73. data/lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_response.rb +36 -0
  74. data/lib/{sdk/models/operations/upsertplugin.rb → speakeasy_client_sdk/models/operations/upsertplugin_response.rb} +7 -10
  75. data/lib/{sdk/models/operations/validateapikey.rb → speakeasy_client_sdk/models/operations/validateapikey_response.rb} +6 -8
  76. data/lib/speakeasy_client_sdk/models/operations.rb +79 -0
  77. data/lib/{sdk → speakeasy_client_sdk}/models/shared/api.rb +9 -10
  78. data/lib/{sdk → speakeasy_client_sdk}/models/shared/api_input.rb +6 -7
  79. data/lib/speakeasy_client_sdk/models/shared/apiendpoint.rb +54 -0
  80. data/lib/{sdk → speakeasy_client_sdk}/models/shared/apiendpoint_input.rb +8 -9
  81. data/lib/speakeasy_client_sdk/models/shared/boundedrequest.rb +63 -0
  82. data/lib/{sdk → speakeasy_client_sdk}/models/shared/embedaccesstokenresponse.rb +3 -4
  83. data/lib/speakeasy_client_sdk/models/shared/embedtoken.rb +51 -0
  84. data/lib/{sdk → speakeasy_client_sdk}/models/shared/error.rb +4 -5
  85. data/lib/{sdk → speakeasy_client_sdk}/models/shared/filter.rb +5 -6
  86. data/lib/{sdk → speakeasy_client_sdk}/models/shared/filters.rb +6 -7
  87. data/lib/{sdk → speakeasy_client_sdk}/models/shared/generateopenapispecdiff.rb +4 -5
  88. data/lib/speakeasy_client_sdk/models/shared/plugin.rb +42 -0
  89. data/lib/{sdk → speakeasy_client_sdk}/models/shared/requestmetadata.rb +4 -5
  90. data/lib/speakeasy_client_sdk/models/shared/schema.rb +39 -0
  91. data/lib/speakeasy_client_sdk/models/shared/schemadiff.rb +30 -0
  92. data/lib/{sdk → speakeasy_client_sdk}/models/shared/security.rb +3 -4
  93. data/lib/{sdk → speakeasy_client_sdk}/models/shared/unboundedrequest.rb +7 -8
  94. data/lib/speakeasy_client_sdk/models/shared/valuechange.rb +27 -0
  95. data/lib/speakeasy_client_sdk/models/shared/versionmetadata.rb +39 -0
  96. data/lib/{sdk → speakeasy_client_sdk}/models/shared/versionmetadata_input.rb +4 -5
  97. data/lib/speakeasy_client_sdk/models/shared.rb +29 -0
  98. data/lib/{sdk → speakeasy_client_sdk}/plugins.rb +18 -14
  99. data/lib/{sdk → speakeasy_client_sdk}/requests.rb +19 -15
  100. data/lib/{sdk → speakeasy_client_sdk}/schemas.rb +46 -37
  101. data/lib/{sdk → speakeasy_client_sdk}/sdk.rb +3 -3
  102. data/lib/{sdk → speakeasy_client_sdk}/sdkconfiguration.rb +5 -5
  103. data/lib/{sdk → speakeasy_client_sdk}/utils/utils.rb +2 -2
  104. data/lib/speakeasy_client_sdk_ruby.rb +13 -66
  105. metadata +105 -67
  106. data/lib/sdk/models/operations/deleteapi.rb +0 -52
  107. data/lib/sdk/models/operations/deleteapiendpoint.rb +0 -55
  108. data/lib/sdk/models/operations/deleteschema.rb +0 -55
  109. data/lib/sdk/models/operations/deleteversionmetadata.rb +0 -58
  110. data/lib/sdk/models/operations/downloadschema.rb +0 -58
  111. data/lib/sdk/models/operations/downloadschemarevision.rb +0 -61
  112. data/lib/sdk/models/operations/findapiendpoint.rb +0 -59
  113. data/lib/sdk/models/operations/generateopenapispec.rb +0 -56
  114. data/lib/sdk/models/operations/generateopenapispecforapiendpoint.rb +0 -59
  115. data/lib/sdk/models/operations/generatepostmancollection.rb +0 -55
  116. data/lib/sdk/models/operations/generatepostmancollectionforapiendpoint.rb +0 -58
  117. data/lib/sdk/models/operations/generaterequestpostmancollection.rb +0 -52
  118. data/lib/sdk/models/operations/getallapiendpoints.rb +0 -52
  119. data/lib/sdk/models/operations/getallapiversions.rb +0 -72
  120. data/lib/sdk/models/operations/getallforversionapiendpoints.rb +0 -55
  121. data/lib/sdk/models/operations/getapiendpoint.rb +0 -59
  122. data/lib/sdk/models/operations/getapis.rb +0 -69
  123. data/lib/sdk/models/operations/getembedaccesstoken.rb +0 -60
  124. data/lib/sdk/models/operations/getrequestfromeventlog.rb +0 -53
  125. data/lib/sdk/models/operations/getschema.rb +0 -56
  126. data/lib/sdk/models/operations/getschemadiff.rb +0 -62
  127. data/lib/sdk/models/operations/getschemarevision.rb +0 -59
  128. data/lib/sdk/models/operations/getschemas.rb +0 -55
  129. data/lib/sdk/models/operations/getversionmetadata.rb +0 -55
  130. data/lib/sdk/models/operations/insertversionmetadata.rb +0 -59
  131. data/lib/sdk/models/operations/queryeventlog.rb +0 -53
  132. data/lib/sdk/models/operations/registerschema.rb +0 -86
  133. data/lib/sdk/models/operations/revokeembedaccesstoken.rb +0 -49
  134. data/lib/sdk/models/operations/runplugin.rb +0 -56
  135. data/lib/sdk/models/operations/upsertapi.rb +0 -56
  136. data/lib/sdk/models/operations/upsertapiendpoint.rb +0 -62
  137. data/lib/sdk/models/shared/apiendpoint.rb +0 -55
  138. data/lib/sdk/models/shared/boundedrequest.rb +0 -64
  139. data/lib/sdk/models/shared/embedtoken.rb +0 -52
  140. data/lib/sdk/models/shared/plugin.rb +0 -43
  141. data/lib/sdk/models/shared/schema.rb +0 -40
  142. data/lib/sdk/models/shared/schemadiff.rb +0 -48
  143. data/lib/sdk/models/shared/versionmetadata.rb +0 -40
  144. /data/lib/{sdk → speakeasy_client_sdk}/utils/metadata_fields.rb +0 -0
@@ -1,55 +0,0 @@
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
- # HTTP response content type for this operation
34
- field :content_type, String
35
- # Raw HTTP response; suitable for custom response parsing
36
- field :raw_response, Faraday::Response
37
- # HTTP response status code for this operation
38
- field :status_code, Integer
39
- # OK
40
- field :classes, T.nilable(T::Array[Shared::Schema])
41
- # Default error response
42
- field :error, T.nilable(Shared::Error)
43
-
44
-
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
- @content_type = content_type
48
- @raw_response = raw_response
49
- @status_code = status_code
50
- @classes = classes
51
- @error = error
52
- end
53
- end
54
- end
55
- end
@@ -1,55 +0,0 @@
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
- # HTTP response content type for this operation
34
- field :content_type, String
35
- # Raw HTTP response; suitable for custom response parsing
36
- field :raw_response, Faraday::Response
37
- # HTTP response status code for this operation
38
- field :status_code, Integer
39
- # OK
40
- field :classes, T.nilable(T::Array[Shared::VersionMetadata])
41
- # Default error response
42
- field :error, T.nilable(Shared::Error)
43
-
44
-
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
- @content_type = content_type
48
- @raw_response = raw_response
49
- @status_code = status_code
50
- @classes = classes
51
- @error = error
52
- end
53
- end
54
- end
55
- end
@@ -1,59 +0,0 @@
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/versionmetadata'
9
- require_relative '../shared/error'
10
-
11
- module SpeakeasyClientSDK
12
- module Operations
13
-
14
- class InsertVersionMetadataRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
15
- extend T::Sig
16
-
17
- # The ID of the Api to insert metadata for.
18
- field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
19
- # The version ID of the Api to insert metadata for.
20
- field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
21
- # A JSON representation of the metadata to insert.
22
- field :version_metadata, Shared::VersionMetadataInput, { 'request': { 'media_type': 'application/json' } }
23
-
24
-
25
- sig { params(api_id: String, version_id: String, version_metadata: Shared::VersionMetadataInput).void }
26
- def initialize(api_id: nil, version_id: nil, version_metadata: nil)
27
- @api_id = api_id
28
- @version_id = version_id
29
- @version_metadata = version_metadata
30
- end
31
- end
32
-
33
-
34
- class InsertVersionMetadataResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
35
- extend T::Sig
36
-
37
- # HTTP response content type for this operation
38
- field :content_type, String
39
- # Raw HTTP response; suitable for custom response parsing
40
- field :raw_response, Faraday::Response
41
- # HTTP response status code for this operation
42
- field :status_code, Integer
43
- # Default error response
44
- field :error, T.nilable(Shared::Error)
45
- # OK
46
- field :version_metadata, T.nilable(Shared::VersionMetadata)
47
-
48
-
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
- @content_type = content_type
52
- @raw_response = raw_response
53
- @status_code = status_code
54
- @error = error
55
- @version_metadata = version_metadata
56
- end
57
- end
58
- end
59
- end
@@ -1,53 +0,0 @@
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
- # HTTP response content type for this operation
32
- field :content_type, String
33
- # Raw HTTP response; suitable for custom response parsing
34
- field :raw_response, Faraday::Response
35
- # HTTP response status code for this operation
36
- field :status_code, Integer
37
- # OK
38
- field :classes, T.nilable(T::Array[Shared::BoundedRequest])
39
- # Default error response
40
- field :error, T.nilable(Shared::Error)
41
-
42
-
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
- @content_type = content_type
46
- @raw_response = raw_response
47
- @status_code = status_code
48
- @classes = classes
49
- @error = error
50
- end
51
- end
52
- end
53
- end
@@ -1,86 +0,0 @@
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 File < ::SpeakeasyClientSDK::Utils::FieldAugmented
14
- extend T::Sig
15
-
16
-
17
- field :content, String, { 'multipart_form': { 'content': true } }
18
-
19
- field :file_name, String, { 'multipart_form': { 'field_name': 'file' } }
20
-
21
-
22
- sig { params(content: String, file_name: String).void }
23
- def initialize(content: nil, file_name: nil)
24
- @content = content
25
- @file_name = file_name
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::File, { 'multipart_form': { 'file': true } }
35
-
36
-
37
- sig { params(file: Operations::File).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
- # HTTP response content type for this operation
68
- field :content_type, String
69
- # Raw HTTP response; suitable for custom response parsing
70
- field :raw_response, Faraday::Response
71
- # HTTP response status code for this operation
72
- field :status_code, Integer
73
- # Default error response
74
- field :error, T.nilable(Shared::Error)
75
-
76
-
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
- @content_type = content_type
80
- @raw_response = raw_response
81
- @status_code = status_code
82
- @error = error
83
- end
84
- end
85
- end
86
- end
@@ -1,49 +0,0 @@
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
- # HTTP response content type for this operation
31
- field :content_type, String
32
- # Raw HTTP response; suitable for custom response parsing
33
- field :raw_response, Faraday::Response
34
- # HTTP response status code for this operation
35
- field :status_code, Integer
36
- # Default error response
37
- field :error, T.nilable(Shared::Error)
38
-
39
-
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
- @content_type = content_type
43
- @raw_response = raw_response
44
- @status_code = status_code
45
- @error = error
46
- end
47
- end
48
- end
49
- end
@@ -1,56 +0,0 @@
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 RunPluginRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
15
- extend T::Sig
16
-
17
- # The ID of the plugin to run.
18
- field :plugin_id, String, { 'path_param': { 'field_name': 'pluginID', 'style': 'simple', 'explode': false } }
19
- # The filter to apply to the query.
20
- field :filters, T.nilable(Shared::Filters), { 'query_param': { 'field_name': 'filters', 'serialization': 'json' } }
21
-
22
-
23
- sig { params(plugin_id: String, filters: T.nilable(Shared::Filters)).void }
24
- def initialize(plugin_id: nil, filters: nil)
25
- @plugin_id = plugin_id
26
- @filters = filters
27
- end
28
- end
29
-
30
-
31
- class RunPluginResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
32
- extend T::Sig
33
-
34
- # HTTP response content type for this operation
35
- field :content_type, String
36
- # Raw HTTP response; suitable for custom response parsing
37
- field :raw_response, Faraday::Response
38
- # HTTP response status code for this operation
39
- field :status_code, Integer
40
- # OK
41
- field :classes, T.nilable(T::Array[Shared::BoundedRequest])
42
- # Default error response
43
- field :error, T.nilable(Shared::Error)
44
-
45
-
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
- @content_type = content_type
49
- @raw_response = raw_response
50
- @status_code = status_code
51
- @classes = classes
52
- @error = error
53
- end
54
- end
55
- end
56
- end
@@ -1,56 +0,0 @@
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/api'
9
- require_relative '../shared/error'
10
-
11
- module SpeakeasyClientSDK
12
- module Operations
13
-
14
- class UpsertApiRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
15
- extend T::Sig
16
-
17
- # A JSON representation of the Api to upsert
18
- field :api, Shared::ApiInput, { 'request': { 'media_type': 'application/json' } }
19
- # The ID of the Api to upsert.
20
- field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
21
-
22
-
23
- sig { params(api: Shared::ApiInput, api_id: String).void }
24
- def initialize(api: nil, api_id: nil)
25
- @api = api
26
- @api_id = api_id
27
- end
28
- end
29
-
30
-
31
- class UpsertApiResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
32
- extend T::Sig
33
-
34
- # HTTP response content type for this operation
35
- field :content_type, String
36
- # Raw HTTP response; suitable for custom response parsing
37
- field :raw_response, Faraday::Response
38
- # HTTP response status code for this operation
39
- field :status_code, Integer
40
- # OK
41
- field :api, T.nilable(Shared::Api)
42
- # Default error response
43
- field :error, T.nilable(Shared::Error)
44
-
45
-
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
- @content_type = content_type
49
- @raw_response = raw_response
50
- @status_code = status_code
51
- @api = api
52
- @error = error
53
- end
54
- end
55
- end
56
- end
@@ -1,62 +0,0 @@
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/apiendpoint'
9
- require_relative '../shared/error'
10
-
11
- module SpeakeasyClientSDK
12
- module Operations
13
-
14
- class UpsertApiEndpointRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
15
- extend T::Sig
16
-
17
- # A JSON representation of the ApiEndpoint to upsert.
18
- field :api_endpoint, Shared::ApiEndpointInput, { 'request': { 'media_type': 'application/json' } }
19
- # The ID of the ApiEndpoint to upsert.
20
- field :api_endpoint_id, String, { 'path_param': { 'field_name': 'apiEndpointID', 'style': 'simple', 'explode': false } }
21
- # The ID of the Api the ApiEndpoint belongs to.
22
- field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
23
- # The version ID of the Api the ApiEndpoint belongs to.
24
- field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
25
-
26
-
27
- sig { params(api_endpoint: Shared::ApiEndpointInput, api_endpoint_id: String, api_id: String, version_id: String).void }
28
- def initialize(api_endpoint: nil, api_endpoint_id: nil, api_id: nil, version_id: nil)
29
- @api_endpoint = api_endpoint
30
- @api_endpoint_id = api_endpoint_id
31
- @api_id = api_id
32
- @version_id = version_id
33
- end
34
- end
35
-
36
-
37
- class UpsertApiEndpointResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
38
- extend T::Sig
39
-
40
- # HTTP response content type for this operation
41
- field :content_type, String
42
- # Raw HTTP response; suitable for custom response parsing
43
- field :raw_response, Faraday::Response
44
- # HTTP response status code for this operation
45
- field :status_code, Integer
46
- # OK
47
- field :api_endpoint, T.nilable(Shared::ApiEndpoint)
48
- # Default error response
49
- field :error, T.nilable(Shared::Error)
50
-
51
-
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
- @content_type = content_type
55
- @raw_response = raw_response
56
- @status_code = status_code
57
- @api_endpoint = api_endpoint
58
- @error = error
59
- end
60
- end
61
- end
62
- end
@@ -1,55 +0,0 @@
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
-
9
- module SpeakeasyClientSDK
10
- module Shared
11
- # An ApiEndpoint is a description of an Endpoint for an API.
12
- class ApiEndpoint < ::SpeakeasyClientSDK::Utils::FieldAugmented
13
- extend T::Sig
14
-
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': ::SpeakeasyClientSDK::Utils.field_name('api_endpoint_id') } }
17
- # The ID of the Api this ApiEndpoint belongs to.
18
- field :api_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
19
- # Creation timestamp.
20
- field :created_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
21
- # A detailed description of the ApiEndpoint.
22
- field :description, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
23
- # A human-readable name for the ApiEndpoint.
24
- field :display_name, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('display_name') } }
25
- # HTTP verb.
26
- field :method, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('method') } }
27
- # Path that handles this Api.
28
- field :path, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('path') } }
29
- # Last update timestamp.
30
- field :updated_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
31
- # The version ID of the Api this ApiEndpoint belongs to.
32
- field :version_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
33
- # The workspace ID this ApiEndpoint belongs to.
34
- field :workspace_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
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': ::SpeakeasyClientSDK::Utils.field_name('matched') } }
37
-
38
-
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 }
40
- def initialize(api_endpoint_id: nil, api_id: nil, created_at: nil, description: nil, display_name: nil, method: nil, path: nil, updated_at: nil, version_id: nil, workspace_id: nil, matched: nil)
41
- @api_endpoint_id = api_endpoint_id
42
- @api_id = api_id
43
- @created_at = created_at
44
- @description = description
45
- @display_name = display_name
46
- @method = method
47
- @path = path
48
- @updated_at = updated_at
49
- @version_id = version_id
50
- @workspace_id = workspace_id
51
- @matched = matched
52
- end
53
- end
54
- end
55
- end
@@ -1,64 +0,0 @@
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
-
9
- module SpeakeasyClientSDK
10
- module Shared
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
13
- extend T::Sig
14
-
15
- # The ID of the ApiEndpoint this request was made to.
16
- field :api_endpoint_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_endpoint_id') } }
17
- # The ID of the Api this request was made to.
18
- field :api_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
19
- # Creation timestamp.
20
- field :created_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
21
- # The ID of the customer that made this request.
22
- field :customer_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('customer_id') } }
23
- # The latency of the request.
24
- field :latency, Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('latency') } }
25
- # HTTP verb.
26
- field :method, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('method') } }
27
- # The path of the request.
28
- field :path, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('path') } }
29
- # The time the request finished.
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
- # The ID of this request.
32
- field :request_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('request_id') } }
33
- # The time the request was made.
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
- # The status code of the request.
36
- field :status, Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('status') } }
37
- # The version ID of the Api this request was made to.
38
- field :version_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
39
- # The workspace ID this request was made to.
40
- field :workspace_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
41
- # Metadata associated with this request
42
- field :metadata, T.nilable(T::Array[Shared::RequestMetadata]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('metadata') } }
43
-
44
-
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 }
46
- def initialize(api_endpoint_id: nil, api_id: nil, created_at: nil, customer_id: nil, latency: nil, method: nil, path: nil, request_finish_time: nil, request_id: nil, request_start_time: nil, status: nil, version_id: nil, workspace_id: nil, metadata: nil)
47
- @api_endpoint_id = api_endpoint_id
48
- @api_id = api_id
49
- @created_at = created_at
50
- @customer_id = customer_id
51
- @latency = latency
52
- @method = method
53
- @path = path
54
- @request_finish_time = request_finish_time
55
- @request_id = request_id
56
- @request_start_time = request_start_time
57
- @status = status
58
- @version_id = version_id
59
- @workspace_id = workspace_id
60
- @metadata = metadata
61
- end
62
- end
63
- end
64
- end