speakeasy_client_sdk_ruby 2.2.3 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/lib/{sdk → speakeasy_client_sdk}/apiendpoints.rb +66 -49
  3. data/lib/{sdk → speakeasy_client_sdk}/apis.rb +49 -37
  4. data/lib/speakeasy_client_sdk/auth.rb +57 -0
  5. data/lib/{sdk → speakeasy_client_sdk}/embeds.rb +20 -15
  6. data/lib/speakeasy_client_sdk/events.rb +63 -0
  7. data/lib/{sdk → speakeasy_client_sdk}/metadata.rb +26 -19
  8. data/lib/speakeasy_client_sdk/models/operations/deleteapi_request.rb +27 -0
  9. data/lib/speakeasy_client_sdk/models/operations/deleteapi_response.rb +33 -0
  10. data/lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_request.rb +30 -0
  11. data/lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_response.rb +33 -0
  12. data/lib/speakeasy_client_sdk/models/operations/deleteschema_request.rb +30 -0
  13. data/lib/speakeasy_client_sdk/models/operations/deleteschema_response.rb +33 -0
  14. data/lib/speakeasy_client_sdk/models/operations/deleteversionmetadata_request.rb +33 -0
  15. data/lib/speakeasy_client_sdk/models/operations/deleteversionmetadata_response.rb +33 -0
  16. data/lib/speakeasy_client_sdk/models/operations/downloadschema_request.rb +27 -0
  17. data/lib/speakeasy_client_sdk/models/operations/downloadschema_response.rb +39 -0
  18. data/lib/speakeasy_client_sdk/models/operations/downloadschemarevision_request.rb +30 -0
  19. data/lib/speakeasy_client_sdk/models/operations/downloadschemarevision_response.rb +39 -0
  20. data/lib/speakeasy_client_sdk/models/operations/file.rb +27 -0
  21. data/lib/speakeasy_client_sdk/models/operations/findapiendpoint_request.rb +30 -0
  22. data/lib/speakeasy_client_sdk/models/operations/findapiendpoint_response.rb +36 -0
  23. data/lib/speakeasy_client_sdk/models/operations/generateopenapispec_request.rb +27 -0
  24. data/lib/speakeasy_client_sdk/models/operations/generateopenapispec_response.rb +36 -0
  25. data/lib/speakeasy_client_sdk/models/operations/generateopenapispecforapiendpoint_request.rb +30 -0
  26. data/lib/speakeasy_client_sdk/models/operations/generateopenapispecforapiendpoint_response.rb +36 -0
  27. data/lib/speakeasy_client_sdk/models/operations/generatepostmancollection_request.rb +27 -0
  28. data/lib/speakeasy_client_sdk/models/operations/generatepostmancollection_response.rb +36 -0
  29. data/lib/speakeasy_client_sdk/models/operations/generatepostmancollectionforapiendpoint_request.rb +30 -0
  30. data/lib/speakeasy_client_sdk/models/operations/generatepostmancollectionforapiendpoint_response.rb +36 -0
  31. data/lib/speakeasy_client_sdk/models/operations/generaterequestpostmancollection_request.rb +24 -0
  32. data/lib/speakeasy_client_sdk/models/operations/generaterequestpostmancollection_response.rb +36 -0
  33. data/lib/speakeasy_client_sdk/models/operations/getallapiendpoints_request.rb +24 -0
  34. data/lib/speakeasy_client_sdk/models/operations/getallapiendpoints_response.rb +36 -0
  35. data/lib/speakeasy_client_sdk/models/operations/getallapiversions_request.rb +30 -0
  36. data/lib/speakeasy_client_sdk/models/operations/getallapiversions_response.rb +36 -0
  37. data/lib/speakeasy_client_sdk/models/operations/getallforversionapiendpoints_request.rb +27 -0
  38. data/lib/speakeasy_client_sdk/models/operations/getallforversionapiendpoints_response.rb +36 -0
  39. data/lib/speakeasy_client_sdk/models/operations/getapiendpoint_request.rb +30 -0
  40. data/lib/speakeasy_client_sdk/models/operations/getapiendpoint_response.rb +36 -0
  41. data/lib/speakeasy_client_sdk/models/operations/getapis_request.rb +27 -0
  42. data/lib/speakeasy_client_sdk/models/operations/getapis_response.rb +36 -0
  43. data/lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb +30 -0
  44. data/lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb +36 -0
  45. data/lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_request.rb +24 -0
  46. data/lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_response.rb +36 -0
  47. data/lib/speakeasy_client_sdk/models/operations/getschema_request.rb +27 -0
  48. data/lib/speakeasy_client_sdk/models/operations/getschema_response.rb +36 -0
  49. data/lib/speakeasy_client_sdk/models/operations/getschemadiff_request.rb +33 -0
  50. data/lib/speakeasy_client_sdk/models/operations/getschemadiff_response.rb +36 -0
  51. data/lib/speakeasy_client_sdk/models/operations/getschemarevision_request.rb +30 -0
  52. data/lib/speakeasy_client_sdk/models/operations/getschemarevision_response.rb +36 -0
  53. data/lib/speakeasy_client_sdk/models/operations/getschemas_request.rb +27 -0
  54. data/lib/{sdk/models/operations/getplugins.rb → speakeasy_client_sdk/models/operations/getschemas_response.rb} +8 -10
  55. data/lib/{sdk/models/operations/getvalidembedaccesstokens.rb → speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb} +9 -11
  56. data/lib/speakeasy_client_sdk/models/operations/getversionmetadata_request.rb +27 -0
  57. data/lib/speakeasy_client_sdk/models/operations/getversionmetadata_response.rb +36 -0
  58. data/lib/speakeasy_client_sdk/models/operations/insertversionmetadata_request.rb +30 -0
  59. data/lib/speakeasy_client_sdk/models/operations/insertversionmetadata_response.rb +36 -0
  60. data/lib/speakeasy_client_sdk/models/operations/op.rb +24 -0
  61. data/lib/speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb +27 -0
  62. data/lib/speakeasy_client_sdk/models/operations/postworkspaceevents_response.rb +30 -0
  63. data/lib/speakeasy_client_sdk/models/operations/queryeventlog_request.rb +24 -0
  64. data/lib/speakeasy_client_sdk/models/operations/queryeventlog_response.rb +36 -0
  65. data/lib/speakeasy_client_sdk/models/operations/queryparam_op.rb +24 -0
  66. data/lib/speakeasy_client_sdk/models/operations/registerschema_request.rb +30 -0
  67. data/lib/speakeasy_client_sdk/models/operations/registerschema_requestbody.rb +24 -0
  68. data/lib/{sdk/models/operations/validateapikey.rb → speakeasy_client_sdk/models/operations/registerschema_response.rb} +7 -9
  69. data/lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_request.rb +24 -0
  70. data/lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb +33 -0
  71. data/lib/speakeasy_client_sdk/models/operations/upsertapi_request.rb +27 -0
  72. data/lib/speakeasy_client_sdk/models/operations/upsertapi_response.rb +36 -0
  73. data/lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_request.rb +33 -0
  74. data/lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_response.rb +36 -0
  75. data/lib/speakeasy_client_sdk/models/operations/validateapikey_response.rb +36 -0
  76. data/lib/speakeasy_client_sdk/models/operations.rb +77 -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/apikeydetails.rb +24 -0
  82. data/lib/speakeasy_client_sdk/models/shared/boundedrequest.rb +63 -0
  83. data/lib/speakeasy_client_sdk/models/shared/clievent.rb +156 -0
  84. data/lib/{sdk → speakeasy_client_sdk}/models/shared/embedaccesstokenresponse.rb +3 -4
  85. data/lib/speakeasy_client_sdk/models/shared/embedtoken.rb +51 -0
  86. data/lib/{sdk → speakeasy_client_sdk}/models/shared/error.rb +4 -5
  87. data/lib/{sdk → speakeasy_client_sdk}/models/shared/filter.rb +5 -6
  88. data/lib/{sdk → speakeasy_client_sdk}/models/shared/filters.rb +6 -7
  89. data/lib/speakeasy_client_sdk/models/shared/generate_bump_type.rb +22 -0
  90. data/lib/{sdk → speakeasy_client_sdk}/models/shared/generateopenapispecdiff.rb +4 -5
  91. data/lib/speakeasy_client_sdk/models/shared/interaction_type.rb +19 -0
  92. data/lib/{sdk → speakeasy_client_sdk}/models/shared/requestmetadata.rb +4 -5
  93. data/lib/speakeasy_client_sdk/models/shared/schema.rb +39 -0
  94. data/lib/speakeasy_client_sdk/models/shared/schemadiff.rb +30 -0
  95. data/lib/{sdk → speakeasy_client_sdk}/models/shared/security.rb +3 -4
  96. data/lib/{sdk → speakeasy_client_sdk}/models/shared/unboundedrequest.rb +7 -8
  97. data/lib/speakeasy_client_sdk/models/shared/valuechange.rb +27 -0
  98. data/lib/speakeasy_client_sdk/models/shared/versionmetadata.rb +39 -0
  99. data/lib/{sdk → speakeasy_client_sdk}/models/shared/versionmetadata_input.rb +4 -5
  100. data/lib/speakeasy_client_sdk/models/shared.rb +32 -0
  101. data/lib/{sdk → speakeasy_client_sdk}/requests.rb +24 -18
  102. data/lib/{sdk → speakeasy_client_sdk}/schemas.rb +62 -45
  103. data/lib/{sdk → speakeasy_client_sdk}/sdk.rb +18 -37
  104. data/lib/{sdk → speakeasy_client_sdk}/sdkconfiguration.rb +11 -8
  105. data/lib/{sdk → speakeasy_client_sdk}/utils/utils.rb +2 -2
  106. data/lib/speakeasy_client_sdk_ruby.rb +14 -66
  107. metadata +107 -67
  108. data/lib/sdk/models/operations/deleteapi.rb +0 -52
  109. data/lib/sdk/models/operations/deleteapiendpoint.rb +0 -55
  110. data/lib/sdk/models/operations/deleteschema.rb +0 -55
  111. data/lib/sdk/models/operations/deleteversionmetadata.rb +0 -58
  112. data/lib/sdk/models/operations/downloadschema.rb +0 -58
  113. data/lib/sdk/models/operations/downloadschemarevision.rb +0 -61
  114. data/lib/sdk/models/operations/findapiendpoint.rb +0 -59
  115. data/lib/sdk/models/operations/generateopenapispec.rb +0 -56
  116. data/lib/sdk/models/operations/generateopenapispecforapiendpoint.rb +0 -59
  117. data/lib/sdk/models/operations/generatepostmancollection.rb +0 -55
  118. data/lib/sdk/models/operations/generatepostmancollectionforapiendpoint.rb +0 -58
  119. data/lib/sdk/models/operations/generaterequestpostmancollection.rb +0 -52
  120. data/lib/sdk/models/operations/getallapiendpoints.rb +0 -52
  121. data/lib/sdk/models/operations/getallapiversions.rb +0 -72
  122. data/lib/sdk/models/operations/getallforversionapiendpoints.rb +0 -55
  123. data/lib/sdk/models/operations/getapiendpoint.rb +0 -59
  124. data/lib/sdk/models/operations/getapis.rb +0 -69
  125. data/lib/sdk/models/operations/getembedaccesstoken.rb +0 -60
  126. data/lib/sdk/models/operations/getrequestfromeventlog.rb +0 -53
  127. data/lib/sdk/models/operations/getschema.rb +0 -56
  128. data/lib/sdk/models/operations/getschemadiff.rb +0 -62
  129. data/lib/sdk/models/operations/getschemarevision.rb +0 -59
  130. data/lib/sdk/models/operations/getschemas.rb +0 -55
  131. data/lib/sdk/models/operations/getversionmetadata.rb +0 -55
  132. data/lib/sdk/models/operations/insertversionmetadata.rb +0 -59
  133. data/lib/sdk/models/operations/queryeventlog.rb +0 -53
  134. data/lib/sdk/models/operations/registerschema.rb +0 -86
  135. data/lib/sdk/models/operations/revokeembedaccesstoken.rb +0 -49
  136. data/lib/sdk/models/operations/runplugin.rb +0 -56
  137. data/lib/sdk/models/operations/upsertapi.rb +0 -56
  138. data/lib/sdk/models/operations/upsertapiendpoint.rb +0 -62
  139. data/lib/sdk/models/operations/upsertplugin.rb +0 -39
  140. data/lib/sdk/models/shared/apiendpoint.rb +0 -55
  141. data/lib/sdk/models/shared/boundedrequest.rb +0 -64
  142. data/lib/sdk/models/shared/embedtoken.rb +0 -52
  143. data/lib/sdk/models/shared/plugin.rb +0 -43
  144. data/lib/sdk/models/shared/schema.rb +0 -40
  145. data/lib/sdk/models/shared/schemadiff.rb +0 -48
  146. data/lib/sdk/models/shared/versionmetadata.rb +0 -40
  147. data/lib/sdk/plugins.rb +0 -142
  148. /data/lib/{sdk → speakeasy_client_sdk}/utils/metadata_fields.rb +0 -0
@@ -0,0 +1,77 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ module SpeakeasyClientSDK
7
+ module Operations
8
+ autoload :DeleteApiRequest, 'speakeasy_client_sdk/models/operations/deleteapi_request.rb'
9
+ autoload :DeleteApiResponse, 'speakeasy_client_sdk/models/operations/deleteapi_response.rb'
10
+ autoload :GenerateOpenApiSpecRequest, 'speakeasy_client_sdk/models/operations/generateopenapispec_request.rb'
11
+ autoload :GenerateOpenApiSpecResponse, 'speakeasy_client_sdk/models/operations/generateopenapispec_response.rb'
12
+ autoload :GeneratePostmanCollectionRequest, 'speakeasy_client_sdk/models/operations/generatepostmancollection_request.rb'
13
+ autoload :GeneratePostmanCollectionResponse, 'speakeasy_client_sdk/models/operations/generatepostmancollection_response.rb'
14
+ autoload :Op, 'speakeasy_client_sdk/models/operations/op.rb'
15
+ autoload :GetAllApiVersionsRequest, 'speakeasy_client_sdk/models/operations/getallapiversions_request.rb'
16
+ autoload :GetAllApiVersionsResponse, 'speakeasy_client_sdk/models/operations/getallapiversions_response.rb'
17
+ autoload :QueryParamOp, 'speakeasy_client_sdk/models/operations/queryparam_op.rb'
18
+ autoload :GetApisRequest, 'speakeasy_client_sdk/models/operations/getapis_request.rb'
19
+ autoload :GetApisResponse, 'speakeasy_client_sdk/models/operations/getapis_response.rb'
20
+ autoload :UpsertApiRequest, 'speakeasy_client_sdk/models/operations/upsertapi_request.rb'
21
+ autoload :UpsertApiResponse, 'speakeasy_client_sdk/models/operations/upsertapi_response.rb'
22
+ autoload :DeleteApiEndpointRequest, 'speakeasy_client_sdk/models/operations/deleteapiendpoint_request.rb'
23
+ autoload :DeleteApiEndpointResponse, 'speakeasy_client_sdk/models/operations/deleteapiendpoint_response.rb'
24
+ autoload :FindApiEndpointRequest, 'speakeasy_client_sdk/models/operations/findapiendpoint_request.rb'
25
+ autoload :FindApiEndpointResponse, 'speakeasy_client_sdk/models/operations/findapiendpoint_response.rb'
26
+ autoload :GenerateOpenApiSpecForApiEndpointRequest, 'speakeasy_client_sdk/models/operations/generateopenapispecforapiendpoint_request.rb'
27
+ autoload :GenerateOpenApiSpecForApiEndpointResponse, 'speakeasy_client_sdk/models/operations/generateopenapispecforapiendpoint_response.rb'
28
+ autoload :GeneratePostmanCollectionForApiEndpointRequest, 'speakeasy_client_sdk/models/operations/generatepostmancollectionforapiendpoint_request.rb'
29
+ autoload :GeneratePostmanCollectionForApiEndpointResponse, 'speakeasy_client_sdk/models/operations/generatepostmancollectionforapiendpoint_response.rb'
30
+ autoload :GetAllApiEndpointsRequest, 'speakeasy_client_sdk/models/operations/getallapiendpoints_request.rb'
31
+ autoload :GetAllApiEndpointsResponse, 'speakeasy_client_sdk/models/operations/getallapiendpoints_response.rb'
32
+ autoload :GetAllForVersionApiEndpointsRequest, 'speakeasy_client_sdk/models/operations/getallforversionapiendpoints_request.rb'
33
+ autoload :GetAllForVersionApiEndpointsResponse, 'speakeasy_client_sdk/models/operations/getallforversionapiendpoints_response.rb'
34
+ autoload :GetApiEndpointRequest, 'speakeasy_client_sdk/models/operations/getapiendpoint_request.rb'
35
+ autoload :GetApiEndpointResponse, 'speakeasy_client_sdk/models/operations/getapiendpoint_response.rb'
36
+ autoload :UpsertApiEndpointRequest, 'speakeasy_client_sdk/models/operations/upsertapiendpoint_request.rb'
37
+ autoload :UpsertApiEndpointResponse, 'speakeasy_client_sdk/models/operations/upsertapiendpoint_response.rb'
38
+ autoload :DeleteVersionMetadataRequest, 'speakeasy_client_sdk/models/operations/deleteversionmetadata_request.rb'
39
+ autoload :DeleteVersionMetadataResponse, 'speakeasy_client_sdk/models/operations/deleteversionmetadata_response.rb'
40
+ autoload :GetVersionMetadataRequest, 'speakeasy_client_sdk/models/operations/getversionmetadata_request.rb'
41
+ autoload :GetVersionMetadataResponse, 'speakeasy_client_sdk/models/operations/getversionmetadata_response.rb'
42
+ autoload :InsertVersionMetadataRequest, 'speakeasy_client_sdk/models/operations/insertversionmetadata_request.rb'
43
+ autoload :InsertVersionMetadataResponse, 'speakeasy_client_sdk/models/operations/insertversionmetadata_response.rb'
44
+ autoload :DeleteSchemaRequest, 'speakeasy_client_sdk/models/operations/deleteschema_request.rb'
45
+ autoload :DeleteSchemaResponse, 'speakeasy_client_sdk/models/operations/deleteschema_response.rb'
46
+ autoload :DownloadSchemaRequest, 'speakeasy_client_sdk/models/operations/downloadschema_request.rb'
47
+ autoload :DownloadSchemaResponse, 'speakeasy_client_sdk/models/operations/downloadschema_response.rb'
48
+ autoload :DownloadSchemaRevisionRequest, 'speakeasy_client_sdk/models/operations/downloadschemarevision_request.rb'
49
+ autoload :DownloadSchemaRevisionResponse, 'speakeasy_client_sdk/models/operations/downloadschemarevision_response.rb'
50
+ autoload :GetSchemaRequest, 'speakeasy_client_sdk/models/operations/getschema_request.rb'
51
+ autoload :GetSchemaResponse, 'speakeasy_client_sdk/models/operations/getschema_response.rb'
52
+ autoload :GetSchemaDiffRequest, 'speakeasy_client_sdk/models/operations/getschemadiff_request.rb'
53
+ autoload :GetSchemaDiffResponse, 'speakeasy_client_sdk/models/operations/getschemadiff_response.rb'
54
+ autoload :GetSchemaRevisionRequest, 'speakeasy_client_sdk/models/operations/getschemarevision_request.rb'
55
+ autoload :GetSchemaRevisionResponse, 'speakeasy_client_sdk/models/operations/getschemarevision_response.rb'
56
+ autoload :GetSchemasRequest, 'speakeasy_client_sdk/models/operations/getschemas_request.rb'
57
+ autoload :GetSchemasResponse, 'speakeasy_client_sdk/models/operations/getschemas_response.rb'
58
+ autoload :File, 'speakeasy_client_sdk/models/operations/file.rb'
59
+ autoload :RegisterSchemaRequestBody, 'speakeasy_client_sdk/models/operations/registerschema_requestbody.rb'
60
+ autoload :RegisterSchemaRequest, 'speakeasy_client_sdk/models/operations/registerschema_request.rb'
61
+ autoload :RegisterSchemaResponse, 'speakeasy_client_sdk/models/operations/registerschema_response.rb'
62
+ autoload :ValidateApiKeyResponse, 'speakeasy_client_sdk/models/operations/validateapikey_response.rb'
63
+ autoload :GenerateRequestPostmanCollectionRequest, 'speakeasy_client_sdk/models/operations/generaterequestpostmancollection_request.rb'
64
+ autoload :GenerateRequestPostmanCollectionResponse, 'speakeasy_client_sdk/models/operations/generaterequestpostmancollection_response.rb'
65
+ autoload :GetRequestFromEventLogRequest, 'speakeasy_client_sdk/models/operations/getrequestfromeventlog_request.rb'
66
+ autoload :GetRequestFromEventLogResponse, 'speakeasy_client_sdk/models/operations/getrequestfromeventlog_response.rb'
67
+ autoload :QueryEventLogRequest, 'speakeasy_client_sdk/models/operations/queryeventlog_request.rb'
68
+ autoload :QueryEventLogResponse, 'speakeasy_client_sdk/models/operations/queryeventlog_response.rb'
69
+ autoload :GetEmbedAccessTokenRequest, 'speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb'
70
+ autoload :GetEmbedAccessTokenResponse, 'speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb'
71
+ autoload :GetValidEmbedAccessTokensResponse, 'speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb'
72
+ autoload :RevokeEmbedAccessTokenRequest, 'speakeasy_client_sdk/models/operations/revokeembedaccesstoken_request.rb'
73
+ autoload :RevokeEmbedAccessTokenResponse, 'speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb'
74
+ autoload :PostWorkspaceEventsRequest, 'speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb'
75
+ autoload :PostWorkspaceEventsResponse, 'speakeasy_client_sdk/models/operations/postworkspaceevents_response.rb'
76
+ end
77
+ end
@@ -3,34 +3,33 @@
3
3
  # typed: true
4
4
  # frozen_string_literal: true
5
5
 
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
6
 
9
7
  module SpeakeasyClientSDK
10
8
  module Shared
9
+
11
10
  # An Api is representation of a API (a collection of API Endpoints) within the Speakeasy Platform.
12
11
  class Api < ::SpeakeasyClientSDK::Utils::FieldAugmented
13
12
  extend T::Sig
14
13
 
15
14
  # The ID of this Api. This is a human-readable name (subject to change).
16
- field :api_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
15
+ field :api_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
17
16
  # Creation timestamp.
18
- field :created_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
17
+ field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
19
18
  # A detailed description of the Api.
20
- field :description, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
19
+ field :description, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
21
20
  # Last update timestamp.
22
- field :updated_at, DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
21
+ field :updated_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
23
22
  # The version ID of this Api. This is semantic version identifier.
24
- field :version_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
23
+ field :version_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
25
24
  # The workspace ID this Api belongs to.
26
- field :workspace_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
25
+ field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
27
26
  # Determines if all the endpoints within the Api are found in the OpenAPI spec associated with the Api.
28
27
  field :matched, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('matched') } }
29
28
  # A set of values associated with a meta_data key. This field is only set on get requests.
30
- field :meta_data, T.nilable(T::Hash[Symbol, T::Array[String]]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_data') } }
29
+ field :meta_data, T.nilable(T::Hash[Symbol, T::Array[::String]]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_data') } }
31
30
 
32
31
 
33
- sig { params(api_id: String, created_at: DateTime, description: String, updated_at: DateTime, version_id: String, workspace_id: String, matched: T.nilable(T::Boolean), meta_data: T.nilable(T::Hash[Symbol, T::Array[String]])).void }
32
+ sig { params(api_id: ::String, created_at: ::DateTime, description: ::String, updated_at: ::DateTime, version_id: ::String, workspace_id: ::String, matched: T.nilable(T::Boolean), meta_data: T.nilable(T::Hash[Symbol, T::Array[::String]])).void }
34
33
  def initialize(api_id: nil, created_at: nil, description: nil, updated_at: nil, version_id: nil, workspace_id: nil, matched: nil, meta_data: nil)
35
34
  @api_id = api_id
36
35
  @created_at = created_at
@@ -3,26 +3,25 @@
3
3
  # typed: true
4
4
  # frozen_string_literal: true
5
5
 
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
6
 
9
7
  module SpeakeasyClientSDK
10
8
  module Shared
9
+
11
10
  # An Api is representation of a API (a collection of API Endpoints) within the Speakeasy Platform.
12
11
  class ApiInput < ::SpeakeasyClientSDK::Utils::FieldAugmented
13
12
  extend T::Sig
14
13
 
15
14
  # The ID of this Api. This is a human-readable name (subject to change).
16
- field :api_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
15
+ field :api_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
17
16
  # A detailed description of the Api.
18
- field :description, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
17
+ field :description, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
19
18
  # The version ID of this Api. This is semantic version identifier.
20
- field :version_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
19
+ field :version_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
21
20
  # A set of values associated with a meta_data key. This field is only set on get requests.
22
- field :meta_data, T.nilable(T::Hash[Symbol, T::Array[String]]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_data') } }
21
+ field :meta_data, T.nilable(T::Hash[Symbol, T::Array[::String]]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('meta_data') } }
23
22
 
24
23
 
25
- sig { params(api_id: String, description: String, version_id: String, meta_data: T.nilable(T::Hash[Symbol, T::Array[String]])).void }
24
+ sig { params(api_id: ::String, description: ::String, version_id: ::String, meta_data: T.nilable(T::Hash[Symbol, T::Array[::String]])).void }
26
25
  def initialize(api_id: nil, description: nil, version_id: nil, meta_data: nil)
27
26
  @api_id = api_id
28
27
  @description = description
@@ -0,0 +1,54 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Shared
9
+
10
+ # An ApiEndpoint is a description of an Endpoint for an API.
11
+ class ApiEndpoint < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The ID of this ApiEndpoint. This is a hash of the method and path.
15
+ field :api_endpoint_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_endpoint_id') } }
16
+ # The ID of the Api this ApiEndpoint belongs to.
17
+ field :api_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
18
+ # Creation timestamp.
19
+ field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
20
+ # A detailed description of the ApiEndpoint.
21
+ field :description, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
22
+ # A human-readable name for the ApiEndpoint.
23
+ field :display_name, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('display_name') } }
24
+ # HTTP verb.
25
+ field :method, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('method') } }
26
+ # Path that handles this Api.
27
+ field :path, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('path') } }
28
+ # Last update timestamp.
29
+ field :updated_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
30
+ # The version ID of the Api this ApiEndpoint belongs to.
31
+ field :version_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
32
+ # The workspace ID this ApiEndpoint belongs to.
33
+ field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
34
+ # Determines if the endpoint was found in the OpenAPI spec associated with the parent Api.
35
+ field :matched, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('matched') } }
36
+
37
+
38
+ sig { params(api_endpoint_id: ::String, api_id: ::String, created_at: ::DateTime, description: ::String, display_name: ::String, method: ::String, path: ::String, updated_at: ::DateTime, version_id: ::String, workspace_id: ::String, matched: T.nilable(T::Boolean)).void }
39
+ def initialize(api_endpoint_id: nil, api_id: nil, created_at: nil, description: nil, display_name: nil, method: nil, path: nil, updated_at: nil, version_id: nil, workspace_id: nil, matched: nil)
40
+ @api_endpoint_id = api_endpoint_id
41
+ @api_id = api_id
42
+ @created_at = created_at
43
+ @description = description
44
+ @display_name = display_name
45
+ @method = method
46
+ @path = path
47
+ @updated_at = updated_at
48
+ @version_id = version_id
49
+ @workspace_id = workspace_id
50
+ @matched = matched
51
+ end
52
+ end
53
+ end
54
+ end
@@ -3,30 +3,29 @@
3
3
  # typed: true
4
4
  # frozen_string_literal: true
5
5
 
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
6
 
9
7
  module SpeakeasyClientSDK
10
8
  module Shared
9
+
11
10
  # An ApiEndpoint is a description of an Endpoint for an API.
12
11
  class ApiEndpointInput < ::SpeakeasyClientSDK::Utils::FieldAugmented
13
12
  extend T::Sig
14
13
 
15
14
  # The ID of this ApiEndpoint. This is a hash of the method and path.
16
- field :api_endpoint_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_endpoint_id') } }
15
+ field :api_endpoint_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_endpoint_id') } }
17
16
  # A detailed description of the ApiEndpoint.
18
- field :description, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
17
+ field :description, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
19
18
  # A human-readable name for the ApiEndpoint.
20
- field :display_name, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('display_name') } }
19
+ field :display_name, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('display_name') } }
21
20
  # HTTP verb.
22
- field :method, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('method') } }
21
+ field :method, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('method') } }
23
22
  # Path that handles this Api.
24
- field :path, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('path') } }
23
+ field :path, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('path') } }
25
24
  # The version ID of the Api this ApiEndpoint belongs to.
26
- field :version_id, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
25
+ field :version_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
27
26
 
28
27
 
29
- sig { params(api_endpoint_id: String, description: String, display_name: String, method: String, path: String, version_id: String).void }
28
+ sig { params(api_endpoint_id: ::String, description: ::String, display_name: ::String, method: ::String, path: ::String, version_id: ::String).void }
30
29
  def initialize(api_endpoint_id: nil, description: nil, display_name: nil, method: nil, path: nil, version_id: nil)
31
30
  @api_endpoint_id = api_endpoint_id
32
31
  @description = description
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Shared
9
+
10
+
11
+ class ApiKeyDetails < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
16
+
17
+
18
+ sig { params(workspace_id: ::String).void }
19
+ def initialize(workspace_id: nil)
20
+ @workspace_id = workspace_id
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,63 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Shared
9
+
10
+ # A BoundedRequest is a request that has been logged by the Speakeasy without the contents of the request.
11
+ class BoundedRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The ID of the ApiEndpoint this request was made to.
15
+ field :api_endpoint_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_endpoint_id') } }
16
+ # The ID of the Api this request was made to.
17
+ field :api_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('api_id') } }
18
+ # Creation timestamp.
19
+ field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
20
+ # The ID of the customer that made this request.
21
+ field :customer_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('customer_id') } }
22
+ # The latency of the request.
23
+ field :latency, ::Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('latency') } }
24
+ # HTTP verb.
25
+ field :method, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('method') } }
26
+ # The path of the request.
27
+ field :path, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('path') } }
28
+ # The time the request finished.
29
+ field :request_finish_time, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('request_finish_time'), 'decoder': Utils.datetime_from_iso_format(false) } }
30
+ # The ID of this request.
31
+ field :request_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('request_id') } }
32
+ # The time the request was made.
33
+ field :request_start_time, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('request_start_time'), 'decoder': Utils.datetime_from_iso_format(false) } }
34
+ # The status code of the request.
35
+ field :status, ::Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('status') } }
36
+ # The version ID of the Api this request was made to.
37
+ field :version_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version_id') } }
38
+ # The workspace ID this request was made to.
39
+ field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
40
+ # Metadata associated with this request
41
+ field :metadata, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::RequestMetadata]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('metadata') } }
42
+
43
+
44
+ sig { params(api_endpoint_id: ::String, api_id: ::String, created_at: ::DateTime, customer_id: ::String, latency: ::Integer, method: ::String, path: ::String, request_finish_time: ::DateTime, request_id: ::String, request_start_time: ::DateTime, status: ::Integer, version_id: ::String, workspace_id: ::String, metadata: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::RequestMetadata])).void }
45
+ def initialize(api_endpoint_id: nil, api_id: nil, created_at: nil, customer_id: nil, latency: nil, method: nil, path: nil, request_finish_time: nil, request_id: nil, request_start_time: nil, status: nil, version_id: nil, workspace_id: nil, metadata: nil)
46
+ @api_endpoint_id = api_endpoint_id
47
+ @api_id = api_id
48
+ @created_at = created_at
49
+ @customer_id = customer_id
50
+ @latency = latency
51
+ @method = method
52
+ @path = path
53
+ @request_finish_time = request_finish_time
54
+ @request_id = request_id
55
+ @request_start_time = request_start_time
56
+ @status = status
57
+ @version_id = version_id
58
+ @workspace_id = workspace_id
59
+ @metadata = metadata
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,156 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Shared
9
+
10
+
11
+ class CliEvent < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # Timestamp when the event was created in the database.
15
+ field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
16
+ # Unique identifier for each execution of the CLI.
17
+ field :execution_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('execution_id') } }
18
+ # Unique identifier for each event.
19
+ field :id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('id') } }
20
+ # Type of interaction.
21
+ field :interaction_type, ::SpeakeasyClientSDK::Shared::InteractionType, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('interaction_type'), 'decoder': Utils.enum_from_string(::SpeakeasyClientSDK::Shared::InteractionType, false) } }
22
+ # Timestamp when the event started, in local time.
23
+ field :local_started_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('local_started_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
24
+ # Identifier of the Speakeasy API key.
25
+ field :speakeasy_api_key_name, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('speakeasy_api_key_name') } }
26
+ # Version of the Speakeasy CLI.
27
+ field :speakeasy_version, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('speakeasy_version') } }
28
+ # Indicates whether the event was successful.
29
+ field :success, T::Boolean, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('success') } }
30
+ # Identifier of the workspace.
31
+ field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
32
+ # Remote commit ID.
33
+ field :commit_head, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('commit_head') } }
34
+ # Duration of the event in milliseconds.
35
+ field :duration_ms, T.nilable(::Integer), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('duration_ms') } }
36
+ # Bump type of the lock file (calculated semver delta, or a custom change (manual release))
37
+ field :generate_bump_type, T.nilable(::SpeakeasyClientSDK::Shared::GenerateBumpType), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_bump_type'), 'decoder': Utils.enum_from_string(::SpeakeasyClientSDK::Shared::GenerateBumpType, true) } }
38
+ # Checksum of the configuration file (post generation)
39
+ field :generate_config_post_checksum, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_post_checksum') } }
40
+ # Rendered configuration file (post generation)
41
+ field :generate_config_post_raw, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_post_raw') } }
42
+ # Version of the generated target (post generation)
43
+ field :generate_config_post_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_post_version') } }
44
+ # Checksum of the configuration file (prior to generation)
45
+ field :generate_config_pre_checksum, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_pre_checksum') } }
46
+ # Rendered configuration file (prior to generation)
47
+ field :generate_config_pre_raw, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_pre_raw') } }
48
+ # Version of the generated target (prior to generation)
49
+ field :generate_config_pre_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_config_pre_version') } }
50
+ # gen.lock ID (expected to be a uuid).
51
+ field :generate_gen_lock_id, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_gen_lock_id') } }
52
+ # Features post generation
53
+ field :generate_gen_lock_post_features, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_gen_lock_post_features') } }
54
+ # Checksum of the Previous Rendered OpenAPI document (prior to generation, via gen lock)
55
+ field :generate_gen_lock_pre_doc_checksum, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_gen_lock_pre_doc_checksum') } }
56
+ # info.Version of the Previous Rendered OpenAPI document (prior to generation, via gen lock)
57
+ field :generate_gen_lock_pre_doc_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_gen_lock_pre_doc_version') } }
58
+ # Features prior to generation
59
+ field :generate_gen_lock_pre_features, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_gen_lock_pre_features') } }
60
+ # Artifact version for the Previous Generation
61
+ field :generate_gen_lock_pre_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_gen_lock_pre_version') } }
62
+ # Indicates whether tests were output.
63
+ field :generate_output_tests, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_output_tests') } }
64
+ # Indicates whether the target was considered published.
65
+ field :generate_published, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_published') } }
66
+ # Expected Repo URL, for use in documentation generation.
67
+ field :generate_repo_url, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_repo_url') } }
68
+ # The target of the event.
69
+ field :generate_target, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_target') } }
70
+ # The version of the target.
71
+ field :generate_target_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_target_version') } }
72
+ # Version of the generation logic used.
73
+ field :generate_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generate_version') } }
74
+ # GitHub organization of the action.
75
+ field :gh_action_organization, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('gh_action_organization') } }
76
+ # GitHub repository of the action.
77
+ field :gh_action_repository, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('gh_action_repository') } }
78
+ # Link to the GitHub action run.
79
+ field :gh_action_run_link, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('gh_action_run_link') } }
80
+ # Version of the GitHub action.
81
+ field :gh_action_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('gh_action_version') } }
82
+ # Current working directory relative to the git root.
83
+ field :git_relative_cwd, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_relative_cwd') } }
84
+ # Default owner for git remote.
85
+ field :git_remote_default_owner, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_remote_default_owner') } }
86
+ # Default repository name for git remote.
87
+ field :git_remote_default_repo, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_remote_default_repo') } }
88
+ # User email from git configuration.
89
+ field :git_user_email, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_user_email') } }
90
+ # User name from git configuration.
91
+ field :git_user_name, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('git_user_name') } }
92
+ # Remote hostname.
93
+ field :hostname, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('hostname') } }
94
+ # Timestamp when the event completed, in local time.
95
+ field :local_completed_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('local_completed_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
96
+ # Checksum of the currently Rendered OpenAPI document.
97
+ field :management_doc_checksum, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('management_doc_checksum') } }
98
+ # Version taken from info.version field of the Rendered OpenAPI document.
99
+ field :management_doc_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('management_doc_version') } }
100
+ # Full CLI command.
101
+ field :raw_command, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('raw_command') } }
102
+ # Label of the git repository.
103
+ field :repo_label, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('repo_label') } }
104
+
105
+
106
+ sig { params(created_at: ::DateTime, execution_id: ::String, id: ::String, interaction_type: ::SpeakeasyClientSDK::Shared::InteractionType, local_started_at: ::DateTime, speakeasy_api_key_name: ::String, speakeasy_version: ::String, success: T::Boolean, workspace_id: ::String, commit_head: T.nilable(::String), duration_ms: T.nilable(::Integer), generate_bump_type: T.nilable(::SpeakeasyClientSDK::Shared::GenerateBumpType), generate_config_post_checksum: T.nilable(::String), generate_config_post_raw: T.nilable(::String), generate_config_post_version: T.nilable(::String), generate_config_pre_checksum: T.nilable(::String), generate_config_pre_raw: T.nilable(::String), generate_config_pre_version: T.nilable(::String), generate_gen_lock_id: T.nilable(::String), generate_gen_lock_post_features: T.nilable(::String), generate_gen_lock_pre_doc_checksum: T.nilable(::String), generate_gen_lock_pre_doc_version: T.nilable(::String), generate_gen_lock_pre_features: T.nilable(::String), generate_gen_lock_pre_version: T.nilable(::String), generate_output_tests: T.nilable(T::Boolean), generate_published: T.nilable(T::Boolean), generate_repo_url: T.nilable(::String), generate_target: T.nilable(::String), generate_target_version: T.nilable(::String), generate_version: T.nilable(::String), gh_action_organization: T.nilable(::String), gh_action_repository: T.nilable(::String), gh_action_run_link: T.nilable(::String), gh_action_version: T.nilable(::String), git_relative_cwd: T.nilable(::String), git_remote_default_owner: T.nilable(::String), git_remote_default_repo: T.nilable(::String), git_user_email: T.nilable(::String), git_user_name: T.nilable(::String), hostname: T.nilable(::String), local_completed_at: T.nilable(::DateTime), management_doc_checksum: T.nilable(::String), management_doc_version: T.nilable(::String), raw_command: T.nilable(::String), repo_label: T.nilable(::String)).void }
107
+ def initialize(created_at: nil, execution_id: nil, id: nil, interaction_type: nil, local_started_at: nil, speakeasy_api_key_name: nil, speakeasy_version: nil, success: nil, workspace_id: nil, commit_head: nil, duration_ms: nil, generate_bump_type: nil, generate_config_post_checksum: nil, generate_config_post_raw: nil, generate_config_post_version: nil, generate_config_pre_checksum: nil, generate_config_pre_raw: nil, generate_config_pre_version: nil, generate_gen_lock_id: nil, generate_gen_lock_post_features: nil, generate_gen_lock_pre_doc_checksum: nil, generate_gen_lock_pre_doc_version: nil, generate_gen_lock_pre_features: nil, generate_gen_lock_pre_version: nil, generate_output_tests: nil, generate_published: nil, generate_repo_url: nil, generate_target: nil, generate_target_version: nil, generate_version: nil, gh_action_organization: nil, gh_action_repository: nil, gh_action_run_link: nil, gh_action_version: nil, git_relative_cwd: nil, git_remote_default_owner: nil, git_remote_default_repo: nil, git_user_email: nil, git_user_name: nil, hostname: nil, local_completed_at: nil, management_doc_checksum: nil, management_doc_version: nil, raw_command: nil, repo_label: nil)
108
+ @created_at = created_at
109
+ @execution_id = execution_id
110
+ @id = id
111
+ @interaction_type = interaction_type
112
+ @local_started_at = local_started_at
113
+ @speakeasy_api_key_name = speakeasy_api_key_name
114
+ @speakeasy_version = speakeasy_version
115
+ @success = success
116
+ @workspace_id = workspace_id
117
+ @commit_head = commit_head
118
+ @duration_ms = duration_ms
119
+ @generate_bump_type = generate_bump_type
120
+ @generate_config_post_checksum = generate_config_post_checksum
121
+ @generate_config_post_raw = generate_config_post_raw
122
+ @generate_config_post_version = generate_config_post_version
123
+ @generate_config_pre_checksum = generate_config_pre_checksum
124
+ @generate_config_pre_raw = generate_config_pre_raw
125
+ @generate_config_pre_version = generate_config_pre_version
126
+ @generate_gen_lock_id = generate_gen_lock_id
127
+ @generate_gen_lock_post_features = generate_gen_lock_post_features
128
+ @generate_gen_lock_pre_doc_checksum = generate_gen_lock_pre_doc_checksum
129
+ @generate_gen_lock_pre_doc_version = generate_gen_lock_pre_doc_version
130
+ @generate_gen_lock_pre_features = generate_gen_lock_pre_features
131
+ @generate_gen_lock_pre_version = generate_gen_lock_pre_version
132
+ @generate_output_tests = generate_output_tests
133
+ @generate_published = generate_published
134
+ @generate_repo_url = generate_repo_url
135
+ @generate_target = generate_target
136
+ @generate_target_version = generate_target_version
137
+ @generate_version = generate_version
138
+ @gh_action_organization = gh_action_organization
139
+ @gh_action_repository = gh_action_repository
140
+ @gh_action_run_link = gh_action_run_link
141
+ @gh_action_version = gh_action_version
142
+ @git_relative_cwd = git_relative_cwd
143
+ @git_remote_default_owner = git_remote_default_owner
144
+ @git_remote_default_repo = git_remote_default_repo
145
+ @git_user_email = git_user_email
146
+ @git_user_name = git_user_name
147
+ @hostname = hostname
148
+ @local_completed_at = local_completed_at
149
+ @management_doc_checksum = management_doc_checksum
150
+ @management_doc_version = management_doc_version
151
+ @raw_command = raw_command
152
+ @repo_label = repo_label
153
+ end
154
+ end
155
+ end
156
+ end
@@ -3,20 +3,19 @@
3
3
  # typed: true
4
4
  # frozen_string_literal: true
5
5
 
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
6
 
9
7
  module SpeakeasyClientSDK
10
8
  module Shared
9
+
11
10
  # An EmbedAccessTokenResponse contains a token that can be used to embed a Speakeasy dashboard.
12
11
  class EmbedAccessTokenResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
13
12
  extend T::Sig
14
13
 
15
14
 
16
- field :access_token, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('access_token') } }
15
+ field :access_token, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('access_token') } }
17
16
 
18
17
 
19
- sig { params(access_token: String).void }
18
+ sig { params(access_token: ::String).void }
20
19
  def initialize(access_token: nil)
21
20
  @access_token = access_token
22
21
  end
@@ -0,0 +1,51 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Shared
9
+
10
+ # A representation of an embed token granted for working with Speakeasy components.
11
+ class EmbedToken < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # Creation timestamp.
15
+ field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
16
+ # The ID of the user that created this token.
17
+ field :created_by, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_by') } }
18
+ # A detailed description of the EmbedToken.
19
+ field :description, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
20
+ # The time this token expires.
21
+ field :expires_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('expires_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
22
+ # The filters applied to this token.
23
+ field :filters, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('filters') } }
24
+ # The ID of this EmbedToken.
25
+ field :id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('id') } }
26
+ # The workspace ID this token belongs to.
27
+ field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
28
+ # The last time this token was used.
29
+ field :last_used, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('last_used'), 'decoder': Utils.datetime_from_iso_format(true) } }
30
+ # The time this token was revoked.
31
+ field :revoked_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('revoked_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
32
+ # The ID of the user that revoked this token.
33
+ field :revoked_by, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('revoked_by') } }
34
+
35
+
36
+ sig { params(created_at: ::DateTime, created_by: ::String, description: ::String, expires_at: ::DateTime, filters: ::String, id: ::String, workspace_id: ::String, last_used: T.nilable(::DateTime), revoked_at: T.nilable(::DateTime), revoked_by: T.nilable(::String)).void }
37
+ def initialize(created_at: nil, created_by: nil, description: nil, expires_at: nil, filters: nil, id: nil, workspace_id: nil, last_used: nil, revoked_at: nil, revoked_by: nil)
38
+ @created_at = created_at
39
+ @created_by = created_by
40
+ @description = description
41
+ @expires_at = expires_at
42
+ @filters = filters
43
+ @id = id
44
+ @workspace_id = workspace_id
45
+ @last_used = last_used
46
+ @revoked_at = revoked_at
47
+ @revoked_by = revoked_by
48
+ end
49
+ end
50
+ end
51
+ end
@@ -3,22 +3,21 @@
3
3
  # typed: true
4
4
  # frozen_string_literal: true
5
5
 
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
6
 
9
7
  module SpeakeasyClientSDK
10
8
  module Shared
9
+
11
10
  # The `Status` type defines a logical error model
12
11
  class Error < ::SpeakeasyClientSDK::Utils::FieldAugmented
13
12
  extend T::Sig
14
13
 
15
14
  # A developer-facing error message.
16
- field :message, String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('message') } }
15
+ field :message, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('message') } }
17
16
  # The HTTP status code
18
- field :status_code, Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('status_code') } }
17
+ field :status_code, ::Integer, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('status_code') } }
19
18
 
20
19
 
21
- sig { params(message: String, status_code: Integer).void }
20
+ sig { params(message: ::String, status_code: ::Integer).void }
22
21
  def initialize(message: nil, status_code: nil)
23
22
  @message = message
24
23
  @status_code = status_code